mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-22 04:19:06 -07:00
media-libs/tiff: add 4.7.1
Bug: https://bugs.gentoo.org/953883 Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/45472 Closes: https://github.com/gentoo/gentoo/pull/45472 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
d1fdc9fcee
commit
d2c3a014a2
@@ -4,3 +4,5 @@ DIST tiff-4.6.0.tar.xz 2124388 BLAKE2B 3b508b02b0a536c5bc8e67fe4c1b09ae9c8302527
|
||||
DIST tiff-4.6.0.tar.xz.sig 310 BLAKE2B 9f159a5839dd41bda34eceeed6e451455fbcfec5d51ebb097038e3977a391a751e91a9f683375593f45af0f9c8f0dbe55a0cc437fe4512537b30d513adfdb2c0 SHA512 da87b4294e17d49cf60e81ec5285f503291532423330552e41dddfb672c0636e95b8a80d603c3095abbee469cb7dce63c2df0c22b751a3bf8541550f97f78b49
|
||||
DIST tiff-4.7.0.tar.xz 2286220 BLAKE2B a5df7f3ae71821a13ff5a31db012191dd1b022b1c87fe81f90fd4b4a1349b7aa15d7b336d5fa8ac9e84edcfac5fe46214d9ea54790cb037438c6a5334980c11e SHA512 4234bc3d1a4de38587e21eb7d5785d6e11bc5f73c3d412dd44b9f7bcc42122d940ad017450a949dce5c3b270018829593202bff815a02d23268d9b9723266fe0
|
||||
DIST tiff-4.7.0.tar.xz.sig 310 BLAKE2B d0959eda87e6a7e5a9048474ac6ade89e1f1ff65337d2e0c6c16090d84f1f16881a8ac960df3c768de219ff68f02c3818c2e8f54d289ba8e7ee6167c23993a2e SHA512 ab4e1b415b4e1a23d3c7873b9c5a69f40c40fadb20a91db3e4400eeae596011ad01ccd9ec270befd14263716b938242dbb9bd3c8998ea37cf87870eb0217268a
|
||||
DIST tiff-4.7.1.tar.xz 2358600 BLAKE2B 07de35ac364c345ce86a8952c0e348afd1355c412b467e854f9e56b7294294149a3e8b3652723c40494175f6e51a5b909b5291d0c6cac3d80f3d821125d1ee79 SHA512 8add634dcf47edfb9afb75565e88e2ef10d7771fc00795c6d772a4ad2329a37ce9b91d26369e23929aba1097d23ccc02efa401ecc70a9f76e1d6a06b62a6dfad
|
||||
DIST tiff-4.7.1.tar.xz.sig 310 BLAKE2B 72adeca12d09cc535ab00a4dc0f476789fc375d26af2a0df5a00381f67616da7a0efc1d5bf6d42c678e6c462279a1e880ed0bac6bf4b31bb7a6c828879d318d9 SHA512 6921309cba6c7e0ef82861ec7c7730b542541ae0eaca79f1ce0e4036c03a27154d78e5e6558926a2c0278170d362bbbe10ec29ec5d4d904a8b2974ac06a6f26b
|
||||
|
||||
92
media-libs/tiff/tiff-4.7.1.ebuild
Normal file
92
media-libs/tiff/tiff-4.7.1.ebuild
Normal file
@@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Release signer can vary per version but not clear if others will be doing
|
||||
# them in future, so gone with Even Rouault for now as he does other geosci
|
||||
# stuff too like PROJ, GDAL. Previous release manager of TIFF was
|
||||
# GraphicsMagick maintainer Bob Friesenhahn. Please be careful when verifying
|
||||
# who made releases.
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/evenrouault.asc
|
||||
inherit libtool multilib-minimal verify-sig flag-o-matic
|
||||
|
||||
MY_P="${P/_rc/rc}"
|
||||
DESCRIPTION="Tag Image File Format (TIFF) library"
|
||||
HOMEPAGE="http://libtiff.maptools.org"
|
||||
SRC_URI="https://download.osgeo.org/libtiff/${MY_P}.tar.xz"
|
||||
SRC_URI+=" verify-sig? ( https://download.osgeo.org/libtiff/${MY_P}.tar.xz.sig )"
|
||||
S="${WORKDIR}/${PN}-$(ver_cut 1-3)"
|
||||
|
||||
LICENSE="libtiff"
|
||||
SLOT="0/6"
|
||||
if [[ ${PV} != *_rc* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
|
||||
fi
|
||||
IUSE="+cxx jbig jpeg lerc libdeflate lzma opengl static-libs test webp zlib zstd"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# lerc?( zlib ): bug #953883
|
||||
# test? ( jpeg ): bug #483132
|
||||
REQUIRED_USE="
|
||||
lerc? ( zlib )
|
||||
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 virtual/opengl )
|
||||
webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] )
|
||||
zlib? ( >=virtual/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}] )
|
||||
zstd? ( >=app-arch/zstd-1.3.7-r1:=[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="verify-sig? ( >=sec-keys/openpgp-keys-evenrouault-20250913 )"
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
/usr/include/tiffconf.h
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Added to fix cross-compilation
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
append-lfs-flags
|
||||
|
||||
local myeconfargs=(
|
||||
--disable-sphinx
|
||||
--with-docdir="${EPREFIX}"/usr/share/doc/${PF}
|
||||
$(use_enable cxx)
|
||||
$(use_enable jbig)
|
||||
$(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)
|
||||
|
||||
$(multilib_native_enable docs)
|
||||
$(multilib_native_enable contrib)
|
||||
$(multilib_native_enable tools)
|
||||
)
|
||||
|
||||
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
rm "${ED}"/usr/share/doc/${PF}/{README*,RELEASE-DATE,TODO,VERSION} || die
|
||||
}
|
||||
Reference in New Issue
Block a user