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>
