chemical-mime-data-0.1.94-r2.ebuild 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. AUTOTOOLS_AUTORECONF=true
  5. inherit autotools-utils fdo-mime
  6. DESCRIPTION="A collection of data files to add support for chemical MIME types"
  7. HOMEPAGE="http://chemical-mime.sourceforge.net/"
  8. SRC_URI="mirror://sourceforge/${PN/-data/}/${P}.tar.bz2"
  9. LICENSE="LGPL-2.1"
  10. SLOT="0"
  11. KEYWORDS="amd64 x86"
  12. IUSE=""
  13. RDEPEND="
  14. gnome-base/gnome-mime-data
  15. x11-misc/shared-mime-info"
  16. DEPEND="${RDEPEND}
  17. dev-util/intltool
  18. dev-util/desktop-file-utils
  19. dev-libs/libxslt
  20. media-gfx/imagemagick[xml,png,svg]
  21. media-gfx/inkscape
  22. virtual/pkgconfig"
  23. PATCHES=(
  24. "${FILESDIR}"/${P}-turbomole.patch
  25. "${FILESDIR}"/${P}-pigz.patch
  26. "${FILESDIR}"/${P}-namespace-svg.patch
  27. )
  28. src_prepare() {
  29. # needed for convert/inkscape #464782
  30. export XDG_CONFIG_HOME=$HOME/.config
  31. autotools-utils_src_prepare
  32. }
  33. src_configure() {
  34. local myeconfargs=(
  35. --disable-update-database
  36. --htmldir=/usr/share/doc/${PF}/html
  37. )
  38. autotools-utils_src_configure
  39. }
  40. pkg_postinst() {
  41. fdo-mime_desktop_database_update
  42. fdo-mime_mime_database_update
  43. ewarn "You can ignore any 'Unknown media type in type' warnings."
  44. }
  45. pkg_postrm() {
  46. fdo-mime_desktop_database_update
  47. fdo-mime_mime_database_update
  48. ewarn "You can ignore any 'Unknown media type in type' warnings."
  49. }