1 |
commit: 0d0592550d27c8d666bc9e8abf22c84f49ec9386 |
2 |
Author: i.Dark_Templar <darktemplar <AT> dark-templar-archives <DOT> net> |
3 |
AuthorDate: Sun Apr 2 12:46:27 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 15 15:11:18 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d059255 |
7 |
|
8 |
media-libs/lcms: Fix USE=static-libs |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/4344 |
11 |
|
12 |
media-libs/lcms/lcms-2.8-r2.ebuild | 51 ++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 51 insertions(+) |
14 |
|
15 |
diff --git a/media-libs/lcms/lcms-2.8-r2.ebuild b/media-libs/lcms/lcms-2.8-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..bca90ecc304 |
18 |
--- /dev/null |
19 |
+++ b/media-libs/lcms/lcms-2.8-r2.ebuild |
20 |
@@ -0,0 +1,51 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+AUTOTOOLS_PRUNE_LIBTOOL_FILES="modules" |
26 |
+inherit eutils multilib-minimal |
27 |
+ |
28 |
+DESCRIPTION="A lightweight, speed optimized color management engine" |
29 |
+HOMEPAGE="http://www.littlecms.com/" |
30 |
+SRC_URI="mirror://sourceforge/${PN}/lcms2-${PV}.tar.gz" |
31 |
+ |
32 |
+LICENSE="MIT" |
33 |
+SLOT="2" |
34 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" |
35 |
+IUSE="doc jpeg static-libs +threads test tiff zlib" |
36 |
+ |
37 |
+RDEPEND="jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] ) |
38 |
+ tiff? ( >=media-libs/tiff-4.0.3-r6:0=[${MULTILIB_USEDEP}] ) |
39 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}] ) |
40 |
+ abi_x86_32? ( |
41 |
+ !<=app-emulation/emul-linux-x86-baselibs-20130224-r10 |
42 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
43 |
+ )" |
44 |
+DEPEND="${RDEPEND}" |
45 |
+ |
46 |
+S=${WORKDIR}/lcms2-${PV} |
47 |
+ |
48 |
+PATCHES=( |
49 |
+ "${FILESDIR}/${P}-CVE-2016-10165.patch" |
50 |
+) |
51 |
+ |
52 |
+multilib_src_configure() { |
53 |
+ local myeconfargs=( |
54 |
+ $(use_with jpeg) |
55 |
+ $(use_enable static-libs static) |
56 |
+ $(use_with tiff) |
57 |
+ $(use_with zlib) |
58 |
+ $(use_with threads) |
59 |
+ ) |
60 |
+ ECONF_SOURCE="${S}" \ |
61 |
+ econf ${myeconfargs[@]} |
62 |
+} |
63 |
+ |
64 |
+multilib_src_install_all() { |
65 |
+ find "${ED}" -name "*.la" -delete || die |
66 |
+ |
67 |
+ if use doc; then |
68 |
+ docinto pdf |
69 |
+ dodoc doc/*.pdf |
70 |
+ fi |
71 |
+} |