summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-11-03 05:29:32 +0000
committerSam James <sam@gentoo.org>2022-11-03 06:05:11 +0000
commitdab6ce1f26bf2713b23bbf645cfd9f4eb2676f46 (patch)
tree615fbe2afbf61ba95d46048ee56cb8dd12d67069 /media-libs/lcms
parentdev-python/django: Bump to 4.1.3 (diff)
downloadgentoo-dab6ce1f26bf2713b23bbf645cfd9f4eb2676f46.tar.gz
gentoo-dab6ce1f26bf2713b23bbf645cfd9f4eb2676f46.tar.bz2
gentoo-dab6ce1f26bf2713b23bbf645cfd9f4eb2676f46.zip
media-libs/lcms: add 2.14
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/lcms')
-rw-r--r--media-libs/lcms/Manifest1
-rw-r--r--media-libs/lcms/lcms-2.14.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/media-libs/lcms/Manifest b/media-libs/lcms/Manifest
index fd95b9973f31..2b0cd869338b 100644
--- a/media-libs/lcms/Manifest
+++ b/media-libs/lcms/Manifest
@@ -1 +1,2 @@
DIST lcms2-2.13.1.tar.gz 7276499 BLAKE2B ff4815fc4bcea94dc942f8072741c592f1bbde9c8e997f4e21e36cd271062a341ecc9b1f3c56e3e36ec19091fec049ee9faf75df04c2bc1e11174dc4cfe8da9e SHA512 214ec63fa086b580a6507d493a54ccf5faf02c40e149d71e41f9fc8510efdb16554621c96d91cc886f09682c9631b10aa194b4b67eb6ffcc871d5d4666b05617
+DIST lcms2-2.14.tar.gz 7406694 BLAKE2B 777b0bf65829121a3d32bca1ab936ac022f9af739bccdd02d5f86688c3386b974f526a012bdec4d36649566eea0aa659db317dd383eede6488236d601156a0f9 SHA512 92fba0a457ea81590eba0b8d98b7b621da6a83e3857948585e0b524235954954f9ac1670cf6a19b457c0fce22a87899ea4c5810db1ff2acf7c6b6e0dc4b61a1b
diff --git a/media-libs/lcms/lcms-2.14.ebuild b/media-libs/lcms/lcms-2.14.ebuild
new file mode 100644
index 000000000000..359754c152ef
--- /dev/null
+++ b/media-libs/lcms/lcms-2.14.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="A lightweight, speed optimized color management engine"
+HOMEPAGE="http://www.littlecms.com/"
+SRC_URI="https://github.com/mm2/Little-CMS/releases/download/lcms${PV}/${PN}2-${PV}.tar.gz"
+S="${WORKDIR}/lcms2-${PV}"
+
+LICENSE="MIT"
+SLOT="2"
+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"
+IUSE="doc jpeg static-libs test +threads tiff zlib"
+REQUIRED_USE="tiff? ( zlib )"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ jpeg? ( media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] )
+ tiff? ( >=media-libs/tiff-4.0.3-r6:=[${MULTILIB_USEDEP}] )
+ zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+
+ # TODO: switch back to elibtoolize once https://github.com/mm2/Little-CMS/issues/339
+ # is fixed.
+ # for Prefix/Solaris
+ #elibtoolize
+ eautoreconf
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ $(use_with jpeg)
+ $(use_enable static-libs static)
+ $(use_with threads)
+ $(use_with tiff)
+ $(use_with zlib)
+ )
+
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_install_all() {
+ find "${ED}" -type f -name "*.la" -delete || die
+
+ use doc && dodoc doc/*.pdf
+}