public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-libs/icclib/files/, media-libs/icclib/
@ 2020-11-26 10:33 David Seifert
  0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2020-11-26 10:33 UTC (permalink / raw
  To: gentoo-commits

commit:     a854857e471de03b5b2f67b03b835f58db750768
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Thu Nov 26 10:32:30 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Nov 26 10:32:30 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a854857e

media-libs/icclib: fix build with gcc-10

Closes: https://bugs.gentoo.org/707306
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 media-libs/icclib/files/icclib-2.14-fno-common.patch | 17 +++++++++++++++++
 media-libs/icclib/icclib-2.14.ebuild                 |  5 ++++-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/media-libs/icclib/files/icclib-2.14-fno-common.patch b/media-libs/icclib/files/icclib-2.14-fno-common.patch
new file mode 100644
index 00000000000..564822b9fc8
--- /dev/null
+++ b/media-libs/icclib/files/icclib-2.14-fno-common.patch
@@ -0,0 +1,17 @@
+--- a/icc.h
++++ b/icc.h
+@@ -1705,12 +1705,12 @@ extern ICCLIB_API void icm1960UCS21964WUV(icmXYZNumber *w, double *out, double *
+ /* The standard D50 illuminant value */
+ extern icmXYZNumber icmD50;
+ extern icmXYZNumber icmD50_100;		/* Scaled to 100 */
+-double icmD50_ary3[3];				/* As an array */
++extern double icmD50_ary3[3];				/* As an array */
+ 
+ /* The standard D65 illuminant value */
+ extern icmXYZNumber icmD65;
+ extern icmXYZNumber icmD65_100;		/* Scaled to 100 */
+-double icmD65_ary3[3];				/* As an array */
++extern double icmD65_ary3[3];				/* As an array */
+ 
+ /* The default black value */
+ extern icmXYZNumber icmBlack;

diff --git a/media-libs/icclib/icclib-2.14.ebuild b/media-libs/icclib/icclib-2.14.ebuild
index c9b8483e17a..b472dd74897 100644
--- a/media-libs/icclib/icclib-2.14.ebuild
+++ b/media-libs/icclib/icclib-2.14.ebuild
@@ -19,7 +19,10 @@ BDEPEND="app-arch/unzip"
 
 S="${WORKDIR}"
 
-PATCHES=( "${FILESDIR}"/${P}-make.patch )
+PATCHES=(
+	"${FILESDIR}"/${P}-make.patch
+	"${FILESDIR}"/${P}-fno-common.patch
+)
 
 src_compile() {
 	ICCLIB_SOVERSION="0"


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/icclib/files/, media-libs/icclib/
@ 2025-04-12 20:59 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2025-04-12 20:59 UTC (permalink / raw
  To: gentoo-commits

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
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-12 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-26 10:33 [gentoo-commits] repo/gentoo:master commit in: media-libs/icclib/files/, media-libs/icclib/ David Seifert
  -- strict thread matches above, loose matches on Subject: below --
2025-04-12 20:59 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox