logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

vips-8.9.1.ebuild (2442B)


  1. # Copyright 1999-2020 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils autotools multilib-minimal
  5. DESCRIPTION="VIPS Image Processing Library"
  6. SRC_URI="https://github.com/libvips/libvips/releases/download/v${PV}/${P}.tar.gz"
  7. HOMEPAGE="https://libvips.github.io/libvips/"
  8. LICENSE="LGPL-2.1"
  9. SLOT="1"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="doc debug exif fits fftw heif gsf graphicsmagick imagemagick jpeg lcms matio openexr orc pango pdf png svg static-libs tiff webp zlib"
  12. # FIXME: nitfi (FIND_NIFTI)
  13. # openslide? ( >=media-libs/openslide-3.3.0 )
  14. RDEPEND="
  15. >=dev-libs/glib-2.6:2
  16. dev-libs/expat:=
  17. debug? ( dev-libs/dmalloc )
  18. fftw? ( sci-libs/fftw:3.0= )
  19. imagemagick? (
  20. graphicsmagick? ( media-gfx/graphicsmagick )
  21. !graphicsmagick? ( media-gfx/imagemagick )
  22. )
  23. exif? ( >=media-libs/libexif-0.6 )
  24. fits? ( sci-libs/cfitsio )
  25. heif? ( media-libs/libheif:= )
  26. jpeg? ( virtual/jpeg:0= )
  27. gsf? ( gnome-extra/libgsf:= )
  28. lcms? ( media-libs/lcms )
  29. matio? ( >=sci-libs/matio-1.3.4 )
  30. openexr? ( >=media-libs/openexr-1.2.2 )
  31. orc? ( >=dev-lang/orc-0.4.11 )
  32. pango? ( x11-libs/pango )
  33. pdf? ( app-text/poppler[cairo] )
  34. png? ( >=media-libs/libpng-1.2.9:0= )
  35. svg? ( gnome-base/librsvg )
  36. tiff? ( media-libs/tiff:0= )
  37. webp? ( media-libs/libwebp )
  38. zlib? ( sys-libs/zlib )
  39. "
  40. DEPEND="
  41. ${RDEPEND}
  42. doc? (
  43. dev-util/gtk-doc
  44. dev-util/gtk-doc-am
  45. )
  46. "
  47. DOCS=(ChangeLog NEWS THANKS README.md)
  48. src_prepare() {
  49. default
  50. eautoreconf
  51. multilib_copy_sources
  52. }
  53. multilib_src_configure() {
  54. local magick="--without-magick";
  55. use imagemagick && magick="--with-magickpackage=MagickCore"
  56. use graphicsmagick && magick="--with-magickpackage=GraphicsMagick"
  57. econf \
  58. ${magick} \
  59. $(multilib_native_use_enable doc gtk-doc) \
  60. $(use_enable debug) \
  61. $(use_with debug dmalloc) \
  62. $(use_with exif libexif) \
  63. $(use_with fftw) \
  64. $(use_with fits cfitsio) \
  65. $(use_with gsf) \
  66. $(use_with jpeg) \
  67. $(use_with lcms) \
  68. $(use_with matio ) \
  69. $(use_with openexr OpenEXR) \
  70. # $(use_with openslide) \
  71. $(use_with orc) \
  72. $(use_with pango pangoft2) \
  73. $(use_with pdf poppler) \
  74. $(use_with png) \
  75. $(use_with svg rsvg) \
  76. $(use_with tiff) \
  77. $(use_with webp libwebp) \
  78. $(use_with zlib) \
  79. $(use_enable static-libs static) \
  80. --with-html-dir="/usr/share/gtk-doc/html"
  81. }
  82. multilib_src_install() {
  83. emake DESTDIR="${D}" install
  84. }
  85. multilib_src_install_all() {
  86. einstalldocs
  87. prune_libtool_files
  88. }