From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libheif/
Date: Sat, 19 Jul 2025 19:47:01 +0000 (UTC)	[thread overview]
Message-ID: <1752954392.b946e62885a56ee14eb50fa7406b7b356ab523f3.sam@gentoo> (raw)
commit:     b946e62885a56ee14eb50fa7406b7b356ab523f3
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sat Jul 19 17:33:42 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul 19 19:46:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b946e628
media-libs/libheif: test-full - enable more verbose tests
Allow tests that rely on options not normally enabled
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43070
Closes: https://github.com/gentoo/gentoo/pull/43070
Signed-off-by: Sam James <sam <AT> gentoo.org>
 media-libs/libheif/libheif-1.20.1.ebuild | 14 +++++++++++++-
 media-libs/libheif/libheif-9999.ebuild   | 14 +++++++++++++-
 media-libs/libheif/metadata.xml          |  1 +
 3 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/media-libs/libheif/libheif-1.20.1.ebuild b/media-libs/libheif/libheif-1.20.1.ebuild
index c50b717c32c8..73ffddeaffc1 100644
--- a/media-libs/libheif/libheif-1.20.1.ebuild
+++ b/media-libs/libheif/libheif-1.20.1.ebuild
@@ -18,8 +18,9 @@ fi
 
 LICENSE="GPL-3 MIT"
 SLOT="0/$(ver_cut 1-2)"
-IUSE="+aom dav1d +de265 doc examples ffmpeg gdk-pixbuf +jpeg +jpeg2k +kvazaar openh264 rav1e svt-av1 test +threads tools +webp x265"
+IUSE="+aom dav1d +de265 doc examples ffmpeg gdk-pixbuf +jpeg +jpeg2k +kvazaar openh264 rav1e svt-av1 test test-full +threads tools +webp x265"
 # IUSE+=" vvdec vvenc"
+REQUIRED_USE="test-full? ( test )"
 RESTRICT="!test? ( test )"
 
 BDEPEND="
@@ -83,6 +84,17 @@ multilib_src_configure() {
 		-DWITH_OpenJPEG_ENCODER=$(usex jpeg2k)
 	)
 
+	# Allow tests that rely on options not normally enabled
+	# https://github.com/strukturag/libheif/blob/v1.20.1/tests/CMakeLists.txt#L36-L46
+	# https://github.com/strukturag/libheif/blob/v1.20.1/tests/CMakeLists.txt#L82-L101
+	if use test && use test-full; then
+		mycmakeargs+=(
+			-DENABLE_EXPERIMENTAL_FEATURES=ON
+			-DWITH_REDUCED_VISIBILITY=OFF
+			-DWITH_UNCOMPRESSED_CODEC=ON
+		)
+	fi
+
 	# TODO WITH_EXAMPLE_HEIF_VIEW in -9999
 	if ! use tools; then
 		mycmakeargs+=(
diff --git a/media-libs/libheif/libheif-9999.ebuild b/media-libs/libheif/libheif-9999.ebuild
index b75aae965d92..c544ffc5e0f6 100644
--- a/media-libs/libheif/libheif-9999.ebuild
+++ b/media-libs/libheif/libheif-9999.ebuild
@@ -18,8 +18,9 @@ fi
 
 LICENSE="GPL-3 MIT"
 SLOT="0/$(ver_cut 1-2)"
-IUSE="+aom dav1d +de265 doc examples ffmpeg gdk-pixbuf +jpeg +jpeg2k +kvazaar openh264 rav1e svt-av1 test +threads tools +webp x265"
+IUSE="+aom dav1d +de265 doc examples ffmpeg gdk-pixbuf +jpeg +jpeg2k +kvazaar openh264 rav1e svt-av1 test test-full +threads tools +webp x265"
 # IUSE+=" vvdec vvenc"
+REQUIRED_USE="test-full? ( test )"
 RESTRICT="!test? ( test )"
 
 BDEPEND="
@@ -83,6 +84,17 @@ multilib_src_configure() {
 		-DWITH_OpenJPEG_ENCODER=$(usex jpeg2k)
 	)
 
+	# Allow tests that rely on options not normally enabled
+	# https://github.com/strukturag/libheif/blob/v1.20.1/tests/CMakeLists.txt#L36-L46
+	# https://github.com/strukturag/libheif/blob/v1.20.1/tests/CMakeLists.txt#L82-L101
+	if use test && use test-full; then
+		mycmakeargs+=(
+			-DENABLE_EXPERIMENTAL_FEATURES=ON
+			-DWITH_REDUCED_VISIBILITY=OFF
+			-DWITH_UNCOMPRESSED_CODEC=ON
+		)
+	fi
+
 	cmake_src_configure
 }
 
diff --git a/media-libs/libheif/metadata.xml b/media-libs/libheif/metadata.xml
index a5b7b6225c19..7d3074fb07b0 100644
--- a/media-libs/libheif/metadata.xml
+++ b/media-libs/libheif/metadata.xml
@@ -12,6 +12,7 @@
 	<flag name="openh264">Enable H.264 support using <pkg>media-libs/openh264</pkg></flag>
 	<flag name="rav1e">Use <pkg>media-video/rav1e</pkg> for AVIF encoding</flag>
 	<flag name="svt-av1">Use <pkg>media-libs/svt-av1</pkg> for SVT-AV1 encoding</flag>
+	<flag name="test-full">Allow tests that rely on options not normally enabled</flag>
 	<flag name="tools">Build heif-view tool</flag>
 	<flag name="webp">Enable high-quality YCbCr/RGB color space conversion algorithms</flag>
 	<flag name="x265">Use <pkg> media-libs/x265</pkg> for HEIF encoding</flag>
next             reply	other threads:[~2025-07-19 19:47 UTC|newest]
Thread overview: 129+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-19 19:47 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-05  9:18 [gentoo-commits] repo/gentoo:master commit in: media-libs/libheif/ Michał Górny
2025-08-05  9:18 Michał Górny
2025-08-05  9:18 Michał Górny
2025-08-05  9:18 Michał Górny
2025-07-19 19:47 Sam James
2025-07-19 19:47 Sam James
2025-07-19 19:47 Sam James
2025-07-19 19:47 Sam James
2025-07-04  8:39 Arthur Zamarin
2025-06-22 16:38 Arthur Zamarin
2025-04-29 19:26 Sam James
2025-04-28  2:01 Sam James
2025-04-28  2:01 Sam James
2025-04-23 15:52 Sam James
2025-04-22  0:36 Sam James
2025-04-22  0:36 Sam James
2025-04-21  7:11 Sam James
2025-04-21  7:11 Sam James
2025-04-20  9:26 Sam James
2025-04-20  9:15 Sam James
2024-11-23 17:30 Andreas Sturmlechner
2024-11-15 22:06 Andreas Sturmlechner
2024-11-11  8:08 Arthur Zamarin
2024-11-10 16:51 Sam James
2024-11-10 16:03 Sam James
2024-11-10 13:12 Sam James
2024-11-10 12:52 Sam James
2024-11-10 11:44 Andreas Sturmlechner
2024-11-10 11:44 Andreas Sturmlechner
2024-10-19 18:23 Arthur Zamarin
2024-09-28 15:35 Sam James
2024-09-25 12:18 Joonas Niilola
2024-09-25 12:15 Joonas Niilola
2024-09-24 20:02 Arthur Zamarin
2024-08-27  7:00 Joonas Niilola
2024-08-27  7:00 Joonas Niilola
2024-08-13  4:55 Michał Górny
2024-07-29  9:35 Pacho Ramos
2024-07-21  8:10 Pacho Ramos
2024-07-21  8:10 Pacho Ramos
2024-07-21  8:10 Pacho Ramos
2024-06-18 18:55 Jakov Smolić
2024-06-18 18:55 Jakov Smolić
2024-01-06  1:21 Jakov Smolić
2024-01-06  1:18 Jakov Smolić
2024-01-06  1:18 Jakov Smolić
2023-06-09 16:50 Arthur Zamarin
2023-04-10  2:54 Sam James
2022-11-24  7:03 Jakov Smolić
2022-10-20 10:56 Jakov Smolić
2022-10-20 10:52 Jakov Smolić
2022-10-16  8:55 Agostino Sarubbo
2022-10-16  8:55 Agostino Sarubbo
2022-10-16  8:54 Agostino Sarubbo
2022-09-21 12:26 Agostino Sarubbo
2022-09-18  8:05 Agostino Sarubbo
2022-09-18  8:05 Agostino Sarubbo
2022-09-18  0:19 Sam James
2022-09-18  0:19 Sam James
2022-09-13 10:57 Jakov Smolić
2022-08-16  1:39 Sam James
2022-08-16  1:26 Sam James
2022-08-16  1:10 Sam James
2022-08-16  1:08 Sam James
2022-08-16  0:39 Sam James
2022-08-11 15:26 WANG Xuerui
2022-08-11 15:26 WANG Xuerui
2022-08-01 17:41 Joonas Niilola
2022-08-01 17:41 Joonas Niilola
2022-07-28 10:27 Jakov Smolić
2022-07-28  9:15 Jakov Smolić
2021-09-19  8:06 Jakov Smolić
2021-09-07  3:05 Sam James
2021-08-12 19:59 David Seifert
2021-08-12 15:31 Sam James
2021-08-03 23:37 Sam James
2021-07-28 16:14 Sam James
2021-06-06 13:01 Sam James
2021-05-06 14:29 David Seifert
2021-05-06 14:29 David Seifert
2021-04-25  9:31 Sam James
2021-04-14  6:26 Joonas Niilola
2021-04-11 12:22 Mikle Kolyada
2021-04-01 12:11 Thomas Deutschmann
2021-03-02 14:17 Thomas Deutschmann
2021-03-02 11:51 Thomas Deutschmann
2021-03-02 11:51 Thomas Deutschmann
2021-03-02 11:51 Thomas Deutschmann
2021-03-02 11:51 Thomas Deutschmann
2021-01-23 10:43 David Seifert
2021-01-23 10:43 David Seifert
2020-11-13 20:57 Aaron Bauman
2020-11-12 15:17 Sam James
2020-11-12  6:51 Joonas Niilola
2020-10-12  9:06 Joonas Niilola
2020-10-12  9:06 Joonas Niilola
2020-10-12  9:06 Joonas Niilola
2020-10-12  9:06 Joonas Niilola
2020-10-12  9:06 Joonas Niilola
2020-10-12  9:06 Joonas Niilola
2020-10-12  9:06 Joonas Niilola
2020-09-20 20:21 Agostino Sarubbo
2020-09-07  0:50 Thomas Deutschmann
2020-09-06 21:43 Sam James
2020-08-30 22:17 Thomas Deutschmann
2020-08-30 22:17 Thomas Deutschmann
2020-08-30 22:17 Thomas Deutschmann
2020-08-16 18:15 Jeroen Roovers
2020-08-16 18:01 Jeroen Roovers
2020-08-16  6:18 Sam James
2020-08-16  6:18 Sam James
2020-07-30  4:01 Sam James
2020-07-27 15:09 Craig Andrews
2020-03-08 20:32 Andreas Sturmlechner
2020-01-23 23:05 Thomas Deutschmann
2019-12-26 12:56 Georgy Yakovlev
2019-12-26 12:56 Georgy Yakovlev
2019-11-24 17:13 Andreas Sturmlechner
2019-10-07  3:11 Aaron Bauman
2019-10-06 21:18 Thomas Deutschmann
2019-10-05  1:36 Thomas Deutschmann
2019-10-05  1:26 Thomas Deutschmann
2019-10-05  1:26 Thomas Deutschmann
2019-07-24 23:09 Aaron Bauman
2019-06-10 19:50 Thomas Deutschmann
2018-10-31 13:45 Thomas Deutschmann
2018-09-09 14:41 Thomas Deutschmann
2018-09-09  0:16 Thomas Deutschmann
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=1752954392.b946e62885a56ee14eb50fa7406b7b356ab523f3.sam@gentoo \
    --to=sam@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