commit: ce8bf5cc9ad03fac2622df2198a6e5a8591b4940
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 19 17:57:08 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 19 17:57:40 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce8bf5cc
media-libs/sdl2-image: refine src_test
Use upstream's suggested variables for distributors to ensure the expected
formats are supported.
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-libs/sdl2-image/sdl2-image-2.8.5.ebuild | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/media-libs/sdl2-image/sdl2-image-2.8.5.ebuild
b/media-libs/sdl2-image/sdl2-image-2.8.5.ebuild
index e2a2384fc854..f0c42e91997c 100644
--- a/media-libs/sdl2-image/sdl2-image-2.8.5.ebuild
+++ b/media-libs/sdl2-image/sdl2-image-2.8.5.ebuild
@@ -103,6 +103,27 @@ src_compile() {
}
src_test() {
+ #
https://github.com/libsdl-org/SDL_image/tree/main/test#asserting-format-support
+ # Match same order as src_configure. The intent is to catch build system
+ # bugs, so it may need updating sometimes for legitimate changes in
+ # sdl2-image support.
+ local -x SDL_IMAGE_TEST_REQUIRE_{LOAD,SAVE}_AVIF=$(usex avif 1 0)
+ local -x SDL_IMAGE_TEST_REQUIRE_LOAD_BMP=1
+ local -x SDL_IMAGE_TEST_REQUIRE_LOAD_GIF=$(usex gif 1 0)
+ local -x SDL_IMAGE_TEST_REQUIRE_{LOAD,SAVE}_JPG=$(usex jpeg 1 0)
+ local -x SDL_IMAGE_TEST_REQUIRE_{LOAD,SAVE}_JXL=$(usex jpegxl 1 0)
+ local -x SDL_IMAGE_TEST_REQUIRE_{LOAD,SAVE}_LBM=1
+ local -x SDL_IMAGE_TEST_REQUIRE_LOAD_PCX=1
+ local -x SDL_IMAGE_TEST_REQUIRE_{LOAD,SAVE}_PNG=$(usex png 1 0)
+ local -x SDL_IMAGE_TEST_REQUIRE_LOAD_QOI=1
+ local -x SDL_IMAGE_TEST_REQUIRE_LOAD_SVG=1
+ local -x SDL_IMAGE_TEST_REQUIRE_LOAD_TGA=1
+ local -x SDL_IMAGE_TEST_REQUIRE_LOAD_TIF=$(usex tiff 1 0)
+ local -x SDL_IMAGE_TEST_REQUIRE_LOAD_WEBP=$(usex webp 1 0)
+ local -x SDL_IMAGE_TEST_REQUIRE_LOAD_XCF=1
+ local -x SDL_IMAGE_TEST_REQUIRE_LOAD_XPM=1
+ local -x SDL_IMAGE_TEST_REQUIRE_LOAD_XV=1
+
multibuild_foreach_variant cmake-multilib_src_test
}