1 |
commit: 832211a4b7a310e08a4727706278fea67206da11 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 20 12:48:11 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 20 13:45:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=832211a4 |
7 |
|
8 |
media-libs/tiff: add 4.3.0 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
media-libs/tiff/Manifest | 1 + |
13 |
media-libs/tiff/tiff-4.3.0.ebuild | 79 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 80 insertions(+) |
15 |
|
16 |
diff --git a/media-libs/tiff/Manifest b/media-libs/tiff/Manifest |
17 |
index 038a13d2b1c..239384cfa60 100644 |
18 |
--- a/media-libs/tiff/Manifest |
19 |
+++ b/media-libs/tiff/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST tiff-4.2.0.tar.gz 2809373 BLAKE2B 62178da595e7ff4041f33643a87698580cd3a32d4536b5c60c414c9497616258686cf61514e1d4e0f062cb1333190c39ce86896bf07c01532c07454745d89cd9 SHA512 d7d42e6e6dbda9604c638f28e6cfa4705191a4e8ea276d18031d50dbab0931ac91141e57a2cf294124487f1a2e6dfcb9be62431c1b69de5acf4d0e632f3322e5 |
22 |
+DIST tiff-4.3.0.tar.gz 2808254 BLAKE2B 433a087249541f6142dd25b6dc807018639908175b0d73b4af3aa301af2dee3d76184e4689e7b2f1f9b73567ac78d50456ee94fffe00bad6da05375cf2d94d92 SHA512 e04a4a6c542e58a174c1e9516af3908acf1d3d3e1096648c5514f4963f73e7af27387a76b0fbabe43cf867a18874088f963796a7cd6e45deb998692e3e235493 |
23 |
|
24 |
diff --git a/media-libs/tiff/tiff-4.3.0.ebuild b/media-libs/tiff/tiff-4.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..49ce9bf164b |
27 |
--- /dev/null |
28 |
+++ b/media-libs/tiff/tiff-4.3.0.ebuild |
29 |
@@ -0,0 +1,79 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit autotools multilib-minimal |
36 |
+ |
37 |
+DESCRIPTION="Tag Image File Format (TIFF) library" |
38 |
+HOMEPAGE="http://libtiff.maptools.org" |
39 |
+SRC_URI="https://download.osgeo.org/libtiff/${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="libtiff" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
44 |
+IUSE="+cxx jbig jpeg lzma static-libs test webp zlib zstd" |
45 |
+RESTRICT="!test? ( test )" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ jbig? ( >=media-libs/jbigkit-2.1:=[${MULTILIB_USEDEP}] ) |
49 |
+ jpeg? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] ) |
50 |
+ lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
51 |
+ webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] ) |
52 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
53 |
+ zstd? ( >=app-arch/zstd-1.3.7-r1:=[${MULTILIB_USEDEP}] ) |
54 |
+" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+ |
57 |
+REQUIRED_USE="test? ( jpeg )" #483132 |
58 |
+ |
59 |
+MULTILIB_WRAPPED_HEADERS=( |
60 |
+ /usr/include/tiffconf.h |
61 |
+) |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ |
66 |
+ # tiffcp-thumbnail.sh fails as thumbnail binary doesn't get built anymore since tiff-4.0.7 |
67 |
+ sed '/tiffcp-thumbnail\.sh/d' -i test/Makefile.am || die |
68 |
+ |
69 |
+ eautoreconf |
70 |
+} |
71 |
+ |
72 |
+multilib_src_configure() { |
73 |
+ local myeconfargs=( |
74 |
+ --without-x |
75 |
+ --with-docdir="${EPREFIX}"/usr/share/doc/${PF} |
76 |
+ $(use_enable cxx) |
77 |
+ $(use_enable jbig) |
78 |
+ $(use_enable jpeg) |
79 |
+ $(use_enable lzma) |
80 |
+ $(use_enable static-libs static) |
81 |
+ $(use_enable webp) |
82 |
+ $(use_enable zlib) |
83 |
+ $(use_enable zstd) |
84 |
+ ) |
85 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
86 |
+ |
87 |
+ # remove useless subdirs |
88 |
+ if ! multilib_is_native_abi ; then |
89 |
+ sed -i \ |
90 |
+ -e 's/ tools//' \ |
91 |
+ -e 's/ contrib//' \ |
92 |
+ -e 's/ man//' \ |
93 |
+ -e 's/ html//' \ |
94 |
+ Makefile || die |
95 |
+ fi |
96 |
+} |
97 |
+ |
98 |
+multilib_src_test() { |
99 |
+ if ! multilib_is_native_abi ; then |
100 |
+ emake -C tools |
101 |
+ fi |
102 |
+ emake check |
103 |
+} |
104 |
+ |
105 |
+multilib_src_install_all() { |
106 |
+ find "${ED}" -type f -name '*.la' -delete || die |
107 |
+ rm "${ED}"/usr/share/doc/${PF}/{COPYRIGHT,README*,RELEASE-DATE,TODO,VERSION} || die |
108 |
+} |