commit: f89190179d8c12fc1584f1c5729e182aafb20ce1 Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Thu Mar 20 14:00:12 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Apr 12 20:58:20 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8919017
media-libs/icclib: add 3.2.0 Upstream fixed bugs we patch in, and also included test files which simplifies running smoke test significantly. Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40753 Signed-off-by: Sam James <sam <AT> gentoo.org> media-libs/icclib/Manifest | 1 + media-libs/icclib/files/meson-3.2.0.build | 59 +++++++++++++++++++++++++++++++ media-libs/icclib/icclib-3.2.0.ebuild | 36 +++++++++++++++++++ 3 files changed, 96 insertions(+) diff --git a/media-libs/icclib/Manifest b/media-libs/icclib/Manifest index 731120a7d0ed..19a80cf24f1b 100644 --- a/media-libs/icclib/Manifest +++ b/media-libs/icclib/Manifest @@ -1 +1,2 @@ +DIST ICCLib_V3.2.0.zip 316666 BLAKE2B 4fe46ca8a70044cf39fa18c3db7cb2a0352e337de30d792dbf487dab5dfa888e3bb7d2fc61abaf5809f47c874020d5cf7316299ea8ca9392b15768b7c218e607 SHA512 8a0e4c3b026ea6d8c0bb41d3002e583801ee83f0d2ed9e72499dc706bda70e6a1a23b27e6ee39f4c03c89578df2a87cd2230948d986ad0cab040a33394c3a916 DIST icclib_V2.14.zip 158606 BLAKE2B a42a16a00d540f3e0036f86a4934ed8ac3c67bfea135df5fc893cef939b451f0298c576aa4067360597912fff1afe3315588af64e4edc9605ea5944ff9e42cf6 SHA512 ed038c8655968c794491f30c295ef115900bfcc2e8bfd8607f12f73d6f2236fc339c1ed53a364524478273097ab9065a372bb26f38231bfc6dc02773a11546a3 diff --git a/media-libs/icclib/files/meson-3.2.0.build b/media-libs/icclib/files/meson-3.2.0.build new file mode 100644 index 000000000000..f6c2886e3e62 --- /dev/null +++ b/media-libs/icclib/files/meson-3.2.0.build @@ -0,0 +1,59 @@ +project('icclib', 'c', version: '3.2.0') + +add_project_arguments('-DUNIX', language: 'c') + +cc = meson.get_compiler('c') + +math = cc.find_library('m', required: false) + +icclib = library( + 'icc', + 'icc.c', + soversion: '0', + dependencies: math, + install: true, +) + +executable( + 'iccdump', + ['iccdump.c', 'iccstd.c'], + install: true, + link_with: icclib, + dependencies: math, +) +executable( + 'lutest', + ['lutest.c', 'iccstd.c'], + install: false, + link_with: icclib, + dependencies: math, +) +executable( + 'icclu', + ['icclu.c', 'iccstd.c'], + install: false, + link_with: icclib, + dependencies: math, +) +executable( + 'iccrw', + ['iccrw.c', 'iccstd.c'], + install: false, + link_with: icclib, + dependencies: math, +) +executable( + 'icctest', + ['icctest.c', 'iccstd.c'], + install: false, + link_with: icclib, + dependencies: math, +) +executable( + 'mkDispProf', + ['mkDispProf.c', 'iccstd.c'], + install: false, + link_with: icclib, + dependencies: math, +) + diff --git a/media-libs/icclib/icclib-3.2.0.ebuild b/media-libs/icclib/icclib-3.2.0.ebuild new file mode 100644 index 000000000000..b4bca6f0793b --- /dev/null +++ b/media-libs/icclib/icclib-3.2.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +MY_P="ICCLib_V${PV}" + +DESCRIPTION="Library for reading and writing ICC color profile files" +HOMEPAGE="https://https://argyllcms.com/icclibsrc.html" +SRC_URI="https://www.argyllcms.com/${MY_P}_src.zip -> ${MY_P}.zip" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND="app-arch/unzip" + +src_prepare() { + default + + cp "${FILESDIR}"/meson-"${PV}".build ./meson.build || die "Failed to move corrected build system" +} + +src_test() { + "${BUILD_DIR}"/iccdump sRGB.icm || die +} + +src_install() { + meson_install + + doheader icc*.h + dodoc Readme.txt todo.txt log.txt +}
