commit: 3a48eb73a678d66bf31c777028a7ec729cce24f8 Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Sun Jan 26 23:27:33 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Feb 23 03:10:11 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a48eb73
media-libs/tiff: add libdeflate support Bug: https://bugs.gentoo.org/930111 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> media-libs/tiff/metadata.xml | 3 +++ media-libs/tiff/tiff-4.7.0-r1.ebuild | 12 ++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/media-libs/tiff/metadata.xml b/media-libs/tiff/metadata.xml index 34a785d9586c..bb58f90d5fab 100644 --- a/media-libs/tiff/metadata.xml +++ b/media-libs/tiff/metadata.xml @@ -14,4 +14,7 @@ <remote-id type="cpe">cpe:/a:libtiff:libtiff</remote-id> <remote-id type="cpe">cpe:/a:libtiff_project:libtiff</remote-id> </upstream> + <use> + <flag name="libdeflate">Faster Deflate support with <pkg>app-arch/libdeflate</pkg></flag> + </use> </pkgmetadata> diff --git a/media-libs/tiff/tiff-4.7.0-r1.ebuild b/media-libs/tiff/tiff-4.7.0-r1.ebuild index a859e56d7d45..31f673f734f2 100644 --- a/media-libs/tiff/tiff-4.7.0-r1.ebuild +++ b/media-libs/tiff/tiff-4.7.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -23,16 +23,20 @@ SLOT="0/6" if [[ ${PV} != *_rc* ]] ; then KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" fi -IUSE="+cxx jbig jpeg lerc lzma opengl static-libs test webp zlib zstd" +IUSE="+cxx jbig jpeg lerc libdeflate lzma opengl static-libs test webp zlib zstd" RESTRICT="!test? ( test )" # bug #483132 -REQUIRED_USE="test? ( jpeg )" +REQUIRED_USE=" + libdeflate? ( zlib ) + test? ( jpeg ) +" RDEPEND=" jbig? ( >=media-libs/jbigkit-2.1:=[${MULTILIB_USEDEP}] ) jpeg? ( media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] ) lerc? ( media-libs/lerc:=[${MULTILIB_USEDEP}] ) + libdeflate? ( app-arch/libdeflate[${MULTILIB_USEDEP}] ) lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) opengl? ( media-libs/freeglut ) webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] ) @@ -64,13 +68,13 @@ multilib_src_configure() { $(use_enable jpeg) $(multilib_native_use_enable opengl) $(use_enable lerc) + $(use_enable libdeflate) $(use_enable lzma) $(use_enable static-libs static) $(use_enable test tests) $(use_enable webp) $(use_enable zlib) $(use_enable zstd) - --disable-libdeflate # bug #930111 $(multilib_native_enable docs) $(multilib_native_enable contrib)
