summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2023-11-11 15:48:46 -0500
committerIonen Wolkens <ionen@gentoo.org>2023-11-11 16:20:19 -0500
commit2ad415df9042cdfe2de75a4a7b82387fa350e940 (patch)
treeab4dfc35ac69550efdce415618b745586e4ac1b6 /media-libs/vips
parentapp-emulation/wine-staging: add 8.20 (diff)
downloadgentoo-2ad415df9042cdfe2de75a4a7b82387fa350e940.tar.gz
gentoo-2ad415df9042cdfe2de75a4a7b82387fa350e940.tar.bz2
gentoo-2ad415df9042cdfe2de75a4a7b82387fa350e940.zip
media-libs/vips: add 8.15.0
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-libs/vips')
-rw-r--r--media-libs/vips/Manifest1
-rw-r--r--media-libs/vips/metadata.xml2
-rw-r--r--media-libs/vips/vips-8.15.0.ebuild164
3 files changed, 167 insertions, 0 deletions
diff --git a/media-libs/vips/Manifest b/media-libs/vips/Manifest
index d858ce7e51df..8a340df7f1b2 100644
--- a/media-libs/vips/Manifest
+++ b/media-libs/vips/Manifest
@@ -1 +1,2 @@
DIST vips-8.14.5.tar.xz 18652928 BLAKE2B 033359fcb7e52ec11daf7cf85641789e3c4b858644bce6290742920cbee8a1d8bc2f56ffdcd52ccb6d4da9f8bf24fbab626e121bba063eb97201af28eb440d57 SHA512 ceea6e4d378ac99eb026293e91da530b91febbd5d775b57ab807bcd60f39ca44a088161a713e31b972694d3797d4acaa97028f0e1d3ce4d9db7f8078c005dbe1
+DIST vips-8.15.0.tar.xz 18653932 BLAKE2B 3c5dfbf12de1d2fce5a0d1e11311d20d9f431276c42a72a9cbd4229ad9abbc2af3549c2b12934f1baefce688170346ae4b68f8c5bbbc07be005f44167d81e277 SHA512 2b5ba9529c3bb9c0fb80ef19dc958ba272611599a1e56395b4516c5dc66981b7a2dfea1039437843dc16f22f8d15a5a6233ec673c796d195154717d2d5167f67
diff --git a/media-libs/vips/metadata.xml b/media-libs/vips/metadata.xml
index 8c635b822ae4..8c7203ce40fc 100644
--- a/media-libs/vips/metadata.xml
+++ b/media-libs/vips/metadata.xml
@@ -6,9 +6,11 @@
<name>Ionen Wolkens</name>
</maintainer>
<use>
+ <flag name="archive">Enable support for compressed files using <pkg>app-arch/libarchive</pkg></flag>
<flag name="deprecated">Enable deprecated components</flag>
<flag name="fits">Enable support for the Flexible Image Transport System data format using <pkg>sci-libs/cfitsio</pkg></flag>
<flag name="gsf">Enable support for structured files using <pkg>gnome-extra/libgsf</pkg></flag>
+ <flag name="highway">Enable SIMD optimizations using <pkg>dev-cpp/highway</pkg> (replaces USE=orc)</flag>
<flag name="imagequant">Enable support for Image Quantization using <pkg>media-gfx/libimagequant</pkg></flag>
<flag name="matio">Enable support for matlab files using <pkg>sci-libs/matio</pkg></flag>
<flag name="pango">Enable support for text rendering using <pkg>x11-libs/pango</pkg></flag>
diff --git a/media-libs/vips/vips-8.15.0.ebuild b/media-libs/vips/vips-8.15.0.ebuild
new file mode 100644
index 000000000000..a7cf33376ada
--- /dev/null
+++ b/media-libs/vips/vips-8.15.0.ebuild
@@ -0,0 +1,164 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit meson python-single-r1 vala
+
+DESCRIPTION="VIPS Image Processing Library"
+HOMEPAGE="https://libvips.github.io/libvips/"
+SRC_URI="https://github.com/libvips/libvips/releases/download/v${PV}/${P}.tar.xz"
+
+LICENSE="LGPL-2.1+ MIT"
+SLOT="0/42" # soname
+KEYWORDS="~amd64 ~x86"
+IUSE="
+ archive deprecated doc exif fftw fits fontconfig graphicsmagick
+ gtk-doc heif +highway imagemagick imagequant +introspection +jpeg
+ jpeg2k jpegxl lcms matio openexr orc pango pdf +png python svg
+ test tiff vala webp
+"
+REQUIRED_USE="
+ fontconfig? ( pango )
+ graphicsmagick? ( imagemagick )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ test? ( jpeg png webp )
+ vala? ( introspection )
+"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-libs/glib:2
+ dev-libs/expat
+ virtual/libintl
+ archive? ( app-arch/libarchive:= )
+ exif? ( media-libs/libexif )
+ fftw? ( sci-libs/fftw:3.0= )
+ fits? ( sci-libs/cfitsio:= )
+ fontconfig? ( media-libs/fontconfig )
+ heif? ( media-libs/libheif:= )
+ highway? ( >=dev-cpp/highway-1.0.5 )
+ !highway? (
+ orc? ( dev-lang/orc )
+ )
+ imagemagick? (
+ graphicsmagick? ( media-gfx/graphicsmagick:= )
+ !graphicsmagick? ( media-gfx/imagemagick:= )
+ )
+ imagequant? ( media-gfx/libimagequant )
+ introspection? ( dev-libs/gobject-introspection )
+ jpeg? ( media-libs/libjpeg-turbo:= )
+ jpeg2k? ( media-libs/openjpeg:= )
+ jpegxl? ( media-libs/libjxl )
+ lcms? ( media-libs/lcms:2 )
+ matio? ( sci-libs/matio:= )
+ openexr? ( media-libs/openexr:= )
+ pango? (
+ x11-libs/cairo
+ x11-libs/pango
+ )
+ pdf? (
+ app-text/poppler[cairo]
+ x11-libs/cairo
+ )
+ png? ( media-libs/libpng:= )
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep 'dev-python/pycairo[${PYTHON_USEDEP}]')
+ )
+ svg? (
+ gnome-base/librsvg:2
+ sys-libs/zlib:=
+ x11-libs/cairo
+ )
+ tiff? ( media-libs/tiff:= )
+ webp? ( media-libs/libwebp:= )
+"
+DEPEND="
+ ${RDEPEND}
+ pango? ( x11-base/xorg-proto )
+ pdf? ( x11-base/xorg-proto )
+ svg? ( x11-base/xorg-proto )
+ test? (
+ tiff? ( media-libs/tiff[jpeg] )
+ )
+"
+BDEPEND="
+ dev-util/glib-utils
+ sys-devel/gettext
+ doc? (
+ app-doc/doxygen
+ media-gfx/graphviz
+ )
+ gtk-doc? ( dev-util/gtk-doc )
+ python? ( ${PYTHON_DEPS} )
+ vala? ( $(vala_depend) )
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ use vala && vala_setup
+
+ sed -i "s/'vips-doc'/'${PF}'/" cplusplus/meson.build || die
+
+ sed -i "/subdir('fuzz')/d" meson.build || die
+}
+
+src_configure() {
+ local emesonargs=(
+ $(meson_use deprecated)
+ $(meson_use doc doxygen)
+ -Dexamples=false
+ $(meson_use gtk-doc gtk_doc)
+ $(meson_use vala vapi)
+ -Dcgif=disabled # not packaged, and not used to view gif (only saving)
+ $(meson_feature archive)
+ $(meson_feature exif)
+ $(meson_feature fftw)
+ $(meson_feature fits cfitsio)
+ $(meson_feature fontconfig)
+ $(meson_feature heif)
+ $(meson_feature highway)
+ $(meson_feature imagemagick magick)
+ -Dmagick-package=$(usex graphicsmagick GraphicsMagick MagickCore)
+ $(meson_feature imagequant)
+ $(meson_feature introspection)
+ $(meson_feature jpeg)
+ $(meson_feature jpeg2k openjpeg)
+ $(meson_feature jpegxl jpeg-xl)
+ $(meson_feature lcms)
+ $(meson_feature matio)
+ -Dnifti=disabled # not packaged
+ $(meson_feature openexr)
+ -Dopenslide=disabled # not packaged
+ $(meson_feature orc) # no-op if USE=highway is set
+ $(meson_feature pango pangocairo)
+ -Dpdfium=disabled # not packaged, can use poppler instead
+ $(meson_feature png)
+ $(meson_feature pdf poppler)
+ -Dquantizr=disabled # not packaged, can use imagequant instead
+ -Dspng=disabled # not packaged, can use libpng instead
+ $(meson_feature svg rsvg)
+ $(meson_feature tiff)
+ $(meson_feature webp)
+ $(meson_feature svg zlib) # zlib is currently only used by svgload.c
+ )
+
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+
+ if use python; then
+ python_fix_shebang "${ED}"/usr/bin/vipsprofile
+ else
+ rm -- "${ED}"/usr/{bin/vipsprofile,share/man/man1/vipsprofile.1} || die
+ fi
+}