geeqie-1.3-r1.ebuild 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit autotools
  5. DESCRIPTION="A lightweight GTK image viewer forked from GQview"
  6. HOMEPAGE="http://www.geeqie.org"
  7. SRC_URI="http://www.geeqie.org/${P}.tar.xz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~x86"
  11. IUSE="debug doc exif gpu-accel gtk3 jpeg lcms lirc lua map tiff xmp"
  12. RDEPEND="gtk3? ( x11-libs/gtk+:3 )
  13. !gtk3? ( x11-libs/gtk+:2 )
  14. virtual/libintl
  15. doc? ( app-text/gnome-doc-utils )
  16. gpu-accel? ( media-libs/clutter-gtk )
  17. jpeg? ( virtual/jpeg:0 )
  18. lcms? ( media-libs/lcms:2 )
  19. lirc? ( app-misc/lirc )
  20. lua? ( >=dev-lang/lua-5.1:= )
  21. map? ( media-libs/libchamplain:0.12 )
  22. xmp? ( >=media-gfx/exiv2-0.17:=[xmp] )
  23. !xmp? ( exif? ( >=media-gfx/exiv2-0.17:= ) )
  24. tiff? ( media-libs/tiff:0 )"
  25. DEPEND="${RDEPEND}
  26. virtual/pkgconfig
  27. dev-util/intltool
  28. sys-devel/gettext"
  29. REQUIRED_USE="gpu-accel? ( gtk3 )
  30. map? ( gpu-accel )"
  31. PATCHES=(
  32. "${FILESDIR}"/${P}-stdstring.patch
  33. )
  34. src_prepare() {
  35. default
  36. eautoreconf
  37. }
  38. src_configure() {
  39. # clutter does not compile, gps depends on clutter
  40. local myconf="--disable-dependency-tracking
  41. --with-readmedir="${EPREFIX}"/usr/share/doc/${PF}
  42. $(use_enable debug debug-log)
  43. $(use_enable gpu-accel)
  44. $(use_enable gtk3)
  45. $(use_enable jpeg)
  46. $(use_enable lcms)
  47. $(use_enable lua)
  48. $(use_enable lirc)
  49. $(use_enable map)
  50. $(use_enable tiff)"
  51. if use exif || use xmp; then
  52. myconf="${myconf} --enable-exiv2"
  53. else
  54. myconf="${myconf} --disable-exiv2"
  55. fi
  56. econf ${myconf}
  57. }
  58. src_install() {
  59. emake DESTDIR="${D}" install
  60. rm -f "${D}/usr/share/doc/${PF}/COPYING"
  61. # Application needs access to the uncompressed file
  62. docompress -x /usr/share/doc/${PF}/README
  63. }
  64. pkg_postinst() {
  65. elog "Some plugins may require additional packages"
  66. elog "- Image rotate plugin: media-gfx/fbida (JPEG), media-gfx/imagemagick (TIFF/PNG)"
  67. elog "- RAW images plugin: media-gfx/ufraw"
  68. }