Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/lcms/
Date: Thu, 03 Nov 2022 06:15:22
Message-Id: 1667455511.dab6ce1f26bf2713b23bbf645cfd9f4eb2676f46.sam@gentoo
1 commit: dab6ce1f26bf2713b23bbf645cfd9f4eb2676f46
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 3 05:29:32 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 3 06:05:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dab6ce1f
7
8 media-libs/lcms: add 2.14
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 media-libs/lcms/Manifest | 1 +
13 media-libs/lcms/lcms-2.14.ebuild | 54 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 55 insertions(+)
15
16 diff --git a/media-libs/lcms/Manifest b/media-libs/lcms/Manifest
17 index fd95b9973f31..2b0cd869338b 100644
18 --- a/media-libs/lcms/Manifest
19 +++ b/media-libs/lcms/Manifest
20 @@ -1 +1,2 @@
21 DIST lcms2-2.13.1.tar.gz 7276499 BLAKE2B ff4815fc4bcea94dc942f8072741c592f1bbde9c8e997f4e21e36cd271062a341ecc9b1f3c56e3e36ec19091fec049ee9faf75df04c2bc1e11174dc4cfe8da9e SHA512 214ec63fa086b580a6507d493a54ccf5faf02c40e149d71e41f9fc8510efdb16554621c96d91cc886f09682c9631b10aa194b4b67eb6ffcc871d5d4666b05617
22 +DIST lcms2-2.14.tar.gz 7406694 BLAKE2B 777b0bf65829121a3d32bca1ab936ac022f9af739bccdd02d5f86688c3386b974f526a012bdec4d36649566eea0aa659db317dd383eede6488236d601156a0f9 SHA512 92fba0a457ea81590eba0b8d98b7b621da6a83e3857948585e0b524235954954f9ac1670cf6a19b457c0fce22a87899ea4c5810db1ff2acf7c6b6e0dc4b61a1b
23
24 diff --git a/media-libs/lcms/lcms-2.14.ebuild b/media-libs/lcms/lcms-2.14.ebuild
25 new file mode 100644
26 index 000000000000..359754c152ef
27 --- /dev/null
28 +++ b/media-libs/lcms/lcms-2.14.ebuild
29 @@ -0,0 +1,54 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit autotools multilib-minimal
36 +
37 +DESCRIPTION="A lightweight, speed optimized color management engine"
38 +HOMEPAGE="http://www.littlecms.com/"
39 +SRC_URI="https://github.com/mm2/Little-CMS/releases/download/lcms${PV}/${PN}2-${PV}.tar.gz"
40 +S="${WORKDIR}/lcms2-${PV}"
41 +
42 +LICENSE="MIT"
43 +SLOT="2"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 +IUSE="doc jpeg static-libs test +threads tiff zlib"
46 +REQUIRED_USE="tiff? ( zlib )"
47 +
48 +RESTRICT="!test? ( test )"
49 +
50 +RDEPEND="
51 + jpeg? ( media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] )
52 + tiff? ( >=media-libs/tiff-4.0.3-r6:=[${MULTILIB_USEDEP}] )
53 + zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
54 +"
55 +DEPEND="${RDEPEND}"
56 +
57 +src_prepare() {
58 + default
59 +
60 + # TODO: switch back to elibtoolize once https://github.com/mm2/Little-CMS/issues/339
61 + # is fixed.
62 + # for Prefix/Solaris
63 + #elibtoolize
64 + eautoreconf
65 +}
66 +
67 +multilib_src_configure() {
68 + local myeconfargs=(
69 + $(use_with jpeg)
70 + $(use_enable static-libs static)
71 + $(use_with threads)
72 + $(use_with tiff)
73 + $(use_with zlib)
74 + )
75 +
76 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
77 +}
78 +
79 +multilib_src_install_all() {
80 + find "${ED}" -type f -name "*.la" -delete || die
81 +
82 + use doc && dodoc doc/*.pdf
83 +}