public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libjxl/
Date: Wed, 21 Jun 2023 07:04:21 +0000 (UTC)	[thread overview]
Message-ID: <1687330762.e4a0b85e5257d6946ced1d89531402217ec3ecab.juippis@gentoo> (raw)

commit:     e4a0b85e5257d6946ced1d89531402217ec3ecab
Author:     Matoro Mahri <matoro <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Mon Jun 19 20:19:31 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Jun 21 06:59:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4a0b85e

media-libs/libjxl: add 0.8.2, wire up tests

Bug: https://bugs.gentoo.org/908210
Signed-off-by: Matoro Mahri <matoro <AT> users.noreply.github.com>
Closes: https://github.com/gentoo/gentoo/pull/31430
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-libs/libjxl/Manifest                         |  2 ++
 .../{libjxl-9999.ebuild => libjxl-0.8.2.ebuild}    | 41 +++++++++++++---------
 media-libs/libjxl/libjxl-9999.ebuild               | 18 ++++++++--
 3 files changed, 42 insertions(+), 19 deletions(-)

diff --git a/media-libs/libjxl/Manifest b/media-libs/libjxl/Manifest
index 17a65414211a..627513cfca74 100644
--- a/media-libs/libjxl/Manifest
+++ b/media-libs/libjxl/Manifest
@@ -2,3 +2,5 @@ DIST libjxl-0.7.0.tar.gz 1505917 BLAKE2B fd60e8fb1d7082deaaaf413395ac09e6096bb16
 DIST libjxl-0.7.0_pre20220825.tar.gz 1505499 BLAKE2B 67b1f33112c85c8ccf1187cc44441f1afd6b5f11139f5b066092abe3dd2304e7ff8a8179fb1ef2a08982d2700ac757113019580c99abf37b3d701310f70861bf SHA512 13132dbe93d1b55cf878653803b01547b77152687aedd8ea07c162562f78965f74b5d96b82a434d2982962ad817096253a9447743e620cc72af0f1906a284b1d
 DIST libjxl-0.8.0.tar.gz 1611824 BLAKE2B e16fb51c7938be22754cad70ccab1e0e965b218993aa2fe9646b6b8958887b2e868bdc9631a9d3ff5c24ca1b02f9e262c4d531238d78a7d80f23ed5911a95b1e SHA512 ef472ddc5e277f3d41491c2acc03ed0152ec3ea87efb9e3320cfd830ceb383728658318444b06a3e9f8662bc11c0014675966572ce33f49c8e5cb13c5ed48de1
 DIST libjxl-0.8.1.tar.gz 1611905 BLAKE2B 75d7b4987c211e747520688a700744a0996483546b5929e8b765a66fc603b4d6edea8556bb427b8c7440ef447161fc38ef5ea390775f185df577da920711a009 SHA512 8011f2181cb627c2b516c7e1b8ecec78a201f357f3be6e568f7814a6a9c42d5979f4bb4ed040a67d68f6649d1f5c564f3cb2fac7e52702f755749084d903a737
+DIST libjxl-0.8.2.tar.gz 1612062 BLAKE2B 2b5e65cde6c85881c5f26f676afec825c974f6919c3cc3f056ca4a9679162e89f2de35ab7d0b2a60782d39eca1f4ddad779f8d25d3f520417f6d9dea71e854db SHA512 769f102c46755d11a705ce47ae9e2ef49627ae708f416693bf1293aeeb713934baf4466e45b9c70b04ec1fc8b4a00d5ca7688c8ca03f0a91c9a15252c522a887
+DIST libjxl-testdata-d6168ffb9e1cc24007e64b65dd84d822ad1fc759.tar.gz 67553075 BLAKE2B 779fee87386e617edd93bca7a523fa1ab223ae88114c3cc5484987a7c92cca2d0bb3d668fa3c8064b2a0255c17a06447c009f4fbf9ef379692ddfa37dee1be97 SHA512 a48d74a1ccff404eb7675225b59965e056dc3fc09930572785d83bae03fa1c38e105336dbf5ecfc3f0995e8b8bfb1097b451ae661f2933590b2b152192c8aa2f

diff --git a/media-libs/libjxl/libjxl-9999.ebuild b/media-libs/libjxl/libjxl-0.8.2.ebuild
similarity index 57%
copy from media-libs/libjxl/libjxl-9999.ebuild
copy to media-libs/libjxl/libjxl-0.8.2.ebuild
index 30362a1f1147..c410f3416414 100644
--- a/media-libs/libjxl/libjxl-9999.ebuild
+++ b/media-libs/libjxl/libjxl-0.8.2.ebuild
@@ -3,29 +3,31 @@
 
 EAPI=8
 
-inherit cmake-multilib flag-o-matic git-r3
+inherit cmake-multilib flag-o-matic
 
+# This changes frequently.  Please check the testdata submodule when bumping.
+TESTDATA_COMMIT="d6168ffb9e1cc24007e64b65dd84d822ad1fc759"
 DESCRIPTION="JPEG XL image format reference implementation"
 HOMEPAGE="https://github.com/libjxl/libjxl"
-
-EGIT_REPO_URI="https://github.com/libjxl/libjxl.git"
-EGIT_SUBMODULES=(third_party/skcms)
+SRC_URI="https://github.com/libjxl/libjxl/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+	test? ( https://github.com/libjxl/testdata/archive/${TESTDATA_COMMIT}.tar.gz
+		-> ${PN}-testdata-${TESTDATA_COMMIT}.tar.gz )"
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="gdk-pixbuf openexr"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="openexr test"
+RESTRICT="!test? ( test )"
 
 DEPEND="app-arch/brotli:=[${MULTILIB_USEDEP}]
 	>=dev-cpp/highway-1.0.0[${MULTILIB_USEDEP}]
 	media-libs/giflib:=[${MULTILIB_USEDEP}]
+	>=media-libs/lcms-2.13:2[${MULTILIB_USEDEP}]
 	media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}]
 	media-libs/libpng:=[${MULTILIB_USEDEP}]
 	>=x11-misc/shared-mime-info-2.2
-	gdk-pixbuf? (
-		dev-libs/glib:2
-		x11-libs/gdk-pixbuf:2
-	)
 	openexr? ( media-libs/openexr:= )
+	test? ( dev-cpp/gtest )
 "
 RDEPEND="${DEPEND}"
 
@@ -33,17 +35,19 @@ multilib_src_configure() {
 	filter-lto
 
 	local mycmakeargs=(
-		-DBUILD_TESTING=OFF
 		-DJPEGXL_ENABLE_BENCHMARK=OFF
 		-DJPEGXL_ENABLE_COVERAGE=OFF
 		-DJPEGXL_ENABLE_FUZZERS=OFF
 		-DJPEGXL_ENABLE_SJPEG=OFF
 		-DJPEGXL_WARNINGS_AS_ERRORS=OFF
 
-		-DJPEGXL_ENABLE_SKCMS=ON
+		-DJPEGXL_ENABLE_SKCMS=OFF
 		-DJPEGXL_ENABLE_VIEWERS=OFF
+		-DJPEGXL_ENABLE_PLUGINS=OFF
 		-DJPEGXL_FORCE_SYSTEM_BROTLI=ON
+		-DJPEGXL_FORCE_SYSTEM_GTEST=ON
 		-DJPEGXL_FORCE_SYSTEM_HWY=ON
+		-DJPEGXL_FORCE_SYSTEM_LCMS2=ON
 		-DJPEGXL_ENABLE_DOXYGEN=OFF
 		-DJPEGXL_ENABLE_MANPAGES=OFF
 		-DJPEGXL_ENABLE_JNI=OFF
@@ -56,18 +60,23 @@ multilib_src_configure() {
 		mycmakeargs+=(
 			-DJPEGXL_ENABLE_TOOLS=ON
 			-DJPEGXL_ENABLE_OPENEXR=$(usex openexr)
-			-DJPEGXL_ENABLE_PLUGINS=ON
-			-DJPEGXL_ENABLE_PLUGIN_GDKPIXBUF=$(usex gdk-pixbuf)
-			-DJPEGXL_ENABLE_PLUGIN_GIMP210=OFF
-			-DJPEGXL_ENABLE_PLUGIN_MIME=OFF
+			-DBUILD_TESTING=$(usex test ON OFF)
 		)
+		use test && \
+			mycmakeargs+=( -DJPEGXL_TEST_DATA_PATH="${WORKDIR}/testdata-${TESTDATA_COMMIT}" )
 	else
 		mycmakeargs+=(
 			-DJPEGXL_ENABLE_TOOLS=OFF
 			-DJPEGXL_ENABLE_OPENEXR=OFF
-			-DJPEGXL_ENABLE_PLUGINS=OFF
+			-DBUILD_TESTING=OFF
 		)
 	fi
 
 	cmake_src_configure
 }
+
+multilib_src_install() {
+	cmake_src_install
+
+	find "${ED}" -name '*.a' -delete || die
+}

diff --git a/media-libs/libjxl/libjxl-9999.ebuild b/media-libs/libjxl/libjxl-9999.ebuild
index 30362a1f1147..ec78391c0006 100644
--- a/media-libs/libjxl/libjxl-9999.ebuild
+++ b/media-libs/libjxl/libjxl-9999.ebuild
@@ -9,15 +9,17 @@ DESCRIPTION="JPEG XL image format reference implementation"
 HOMEPAGE="https://github.com/libjxl/libjxl"
 
 EGIT_REPO_URI="https://github.com/libjxl/libjxl.git"
-EGIT_SUBMODULES=(third_party/skcms)
+EGIT_SUBMODULES=(third_party/testdata third_party/skcms)
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="gdk-pixbuf openexr"
+IUSE="gdk-pixbuf openexr test"
+RESTRICT="!test? ( test )"
 
 DEPEND="app-arch/brotli:=[${MULTILIB_USEDEP}]
 	>=dev-cpp/highway-1.0.0[${MULTILIB_USEDEP}]
 	media-libs/giflib:=[${MULTILIB_USEDEP}]
+	>=media-libs/lcms-2.13:2[${MULTILIB_USEDEP}]
 	media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}]
 	media-libs/libpng:=[${MULTILIB_USEDEP}]
 	>=x11-misc/shared-mime-info-2.2
@@ -26,6 +28,7 @@ DEPEND="app-arch/brotli:=[${MULTILIB_USEDEP}]
 		x11-libs/gdk-pixbuf:2
 	)
 	openexr? ( media-libs/openexr:= )
+	test? ( dev-cpp/gtest )
 "
 RDEPEND="${DEPEND}"
 
@@ -33,7 +36,6 @@ multilib_src_configure() {
 	filter-lto
 
 	local mycmakeargs=(
-		-DBUILD_TESTING=OFF
 		-DJPEGXL_ENABLE_BENCHMARK=OFF
 		-DJPEGXL_ENABLE_COVERAGE=OFF
 		-DJPEGXL_ENABLE_FUZZERS=OFF
@@ -43,7 +45,9 @@ multilib_src_configure() {
 		-DJPEGXL_ENABLE_SKCMS=ON
 		-DJPEGXL_ENABLE_VIEWERS=OFF
 		-DJPEGXL_FORCE_SYSTEM_BROTLI=ON
+		-DJPEGXL_FORCE_SYSTEM_GTEST=ON
 		-DJPEGXL_FORCE_SYSTEM_HWY=ON
+		-DJPEGXL_FORCE_SYSTEM_LCMS2=ON
 		-DJPEGXL_ENABLE_DOXYGEN=OFF
 		-DJPEGXL_ENABLE_MANPAGES=OFF
 		-DJPEGXL_ENABLE_JNI=OFF
@@ -60,14 +64,22 @@ multilib_src_configure() {
 			-DJPEGXL_ENABLE_PLUGIN_GDKPIXBUF=$(usex gdk-pixbuf)
 			-DJPEGXL_ENABLE_PLUGIN_GIMP210=OFF
 			-DJPEGXL_ENABLE_PLUGIN_MIME=OFF
+			-DBUILD_TESTING=$(usex test ON OFF)
 		)
 	else
 		mycmakeargs+=(
 			-DJPEGXL_ENABLE_TOOLS=OFF
 			-DJPEGXL_ENABLE_OPENEXR=OFF
 			-DJPEGXL_ENABLE_PLUGINS=OFF
+			-DBUILD_TESTING=OFF
 		)
 	fi
 
 	cmake_src_configure
 }
+
+multilib_src_install() {
+	cmake_src_install
+
+	find "${ED}" -name '*.a' -delete || die
+}


             reply	other threads:[~2023-06-21  7:04 UTC|newest]

Thread overview: 124+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-21  7:04 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-15 22:06 [gentoo-commits] repo/gentoo:master commit in: media-libs/libjxl/ Andreas Sturmlechner
2024-09-28 14:14 Arthur Zamarin
2024-09-28 13:30 Arthur Zamarin
2024-09-28 12:32 Arthur Zamarin
2024-09-28 11:05 Arthur Zamarin
2024-09-28 11:05 Jakov Smolić
2024-09-13 13:47 Michał Górny
2024-07-13 19:25 Michał Górny
2024-07-13 18:14 Arthur Zamarin
2024-07-13 15:31 Arthur Zamarin
2024-07-13 15:25 Arthur Zamarin
2024-07-13 15:18 Arthur Zamarin
2024-07-13 15:18 Arthur Zamarin
2024-07-13 15:18 Arthur Zamarin
2024-07-13 12:10 Arthur Zamarin
2024-07-13 12:10 Arthur Zamarin
2024-07-13 10:49 Arthur Zamarin
2024-07-13 10:49 Arthur Zamarin
2024-07-13 10:34 Arthur Zamarin
2024-07-13  9:54 Arthur Zamarin
2024-07-13  9:36 Arthur Zamarin
2024-07-13  9:36 Arthur Zamarin
2024-07-13  9:36 Arthur Zamarin
2024-06-29 19:31 Michał Górny
2024-06-29 19:23 Sam James
2024-06-29 18:41 Sam James
2024-06-29 10:55 Sam James
2024-06-29  8:53 Sam James
2024-06-29  8:53 Sam James
2024-06-29  8:53 Sam James
2024-06-29  8:53 Sam James
2024-06-29  8:53 Sam James
2024-06-29  6:33 Arthur Zamarin
2024-06-29  6:22 Joonas Niilola
2024-06-29  6:22 Joonas Niilola
2024-06-29  6:22 Joonas Niilola
2024-06-29  6:22 Joonas Niilola
2024-06-29  6:22 Joonas Niilola
2024-06-29  6:22 Joonas Niilola
2024-06-28 15:17 Michał Górny
2024-06-28  5:19 Michał Górny
2024-06-28  5:19 Michał Górny
2024-06-05 11:04 Michał Górny
2024-04-12  6:26 Arthur Zamarin
2024-04-09 14:44 Sam James
2024-03-23 13:39 Sam James
2024-03-23 11:53 Michał Górny
2024-03-23 11:53 Michał Górny
2024-03-23 11:53 Michał Górny
2024-03-23 10:41 Michał Górny
2024-03-23  5:40 Michał Górny
2024-03-22  3:58 Sam James
2024-03-22  3:58 Sam James
2024-03-20 16:49 Michał Górny
2024-03-20 16:44 Ionen Wolkens
2024-03-20 15:13 Michał Górny
2024-03-20  0:36 Sam James
2024-03-19 20:09 Michał Górny
2024-03-09  7:18 Michał Górny
2024-03-06  8:32 Michał Górny
2024-03-05 19:34 Michał Górny
2024-03-05 19:34 Michał Górny
2024-03-05 19:34 Michał Górny
2024-02-18  8:33 Sam James
2024-02-18  8:33 Sam James
2024-02-18  8:05 Sam James
2024-02-18  7:12 Joonas Niilola
2024-02-18  7:12 Joonas Niilola
2024-02-18  3:28 Michał Górny
2024-02-06 11:02 Michał Górny
2024-02-06  3:07 Michał Górny
2024-01-19 14:44 Michał Górny
2024-01-19 13:59 Michał Górny
2024-01-19 13:59 Michał Górny
2023-12-01  7:52 Joonas Niilola
2023-08-11  7:55 Joonas Niilola
2023-07-16  6:27 Joonas Niilola
2023-06-21  7:04 Joonas Niilola
2023-05-05  9:44 Arthur Zamarin
2023-05-05  9:25 Arthur Zamarin
2023-05-04  7:22 Sam James
2023-05-04  7:15 Jakov Smolić
2023-05-04  7:15 Jakov Smolić
2023-05-04  7:15 Jakov Smolić
2023-05-04  7:15 Jakov Smolić
2023-03-06 12:08 Arthur Zamarin
2023-03-02 16:48 Joonas Niilola
2023-01-27 11:53 Viorel Munteanu
2022-11-28  7:58 WANG Xuerui
2022-10-25 18:36 Andreas Sturmlechner
2022-10-25 18:35 Arthur Zamarin
2022-10-25 16:20 Andreas Sturmlechner
2022-10-25 16:16 Andreas Sturmlechner
2022-10-20 10:37 Andreas Sturmlechner
2022-10-17  6:45 Agostino Sarubbo
2022-10-17  6:44 Agostino Sarubbo
2022-10-17  5:28 Arthur Zamarin
2022-10-17  5:27 Joonas Niilola
2022-10-17  5:16 Joonas Niilola
2022-10-16 15:53 Arthur Zamarin
2022-09-14 18:18 Andreas Sturmlechner
2022-08-10  8:31 Joonas Niilola
2022-08-08 12:39 Agostino Sarubbo
2022-08-05  7:16 Agostino Sarubbo
2022-08-04  8:03 Agostino Sarubbo
2022-06-15 14:31 Agostino Sarubbo
2022-06-14  6:17 Jakov Smolić
2022-06-13 21:14 Sam James
2022-06-13 21:14 Sam James
2022-04-29  3:30 Sam James
2022-04-21 14:14 Joonas Niilola
2022-04-20 23:53 Sam James
2022-04-20 23:53 Sam James
2022-04-03 23:15 Yixun Lan
2022-04-02  7:41 Arthur Zamarin
2022-04-02  7:33 Arthur Zamarin
2022-04-01  1:31 Sam James
2022-03-31 19:15 Arthur Zamarin
2022-03-31 19:12 Arthur Zamarin
2022-03-27 23:58 Yixun Lan
2022-03-24 12:46 Joonas Niilola
2022-03-24 12:46 Joonas Niilola
2022-03-24 12:46 Joonas Niilola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1687330762.e4a0b85e5257d6946ced1d89531402217ec3ecab.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox