From e081beed44137d31fde1e87ef47045bd161a3317 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Sat, 7 Jun 2025 19:03:14 -0400 Subject: [PATCH] games-emulation/hatari: depend on imagemagick-tools[png] for tests I think(?) it's able to skip some tests if missing, but does not cope well when it's found and png is disabled which is rare so may be why it took so long to be noticed. Closes: https://bugs.gentoo.org/957522 Signed-off-by: Ionen Wolkens --- games-emulation/hatari/hatari-2.5.0.ebuild | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/games-emulation/hatari/hatari-2.5.0.ebuild b/games-emulation/hatari/hatari-2.5.0.ebuild index a7daa033bf059..dbf9cc028213b 100644 --- a/games-emulation/hatari/hatari-2.5.0.ebuild +++ b/games-emulation/hatari/hatari-2.5.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_COMPAT=( python3_{11..13} ) inherit cmake python-single-r1 xdg DESCRIPTION="Atari ST emulator" @@ -13,11 +13,12 @@ SRC_URI="https://download.tuxfamily.org/hatari/${PV}/${P}.tar.bz2" LICENSE="GPL-2+" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="X capsimage capstone gui png portmidi readline udev zlib" +IUSE="X capsimage capstone gui png portmidi readline test udev zlib" REQUIRED_USE=" ${PYTHON_REQUIRED_USE} png? ( zlib ) " +RESTRICT="!test? ( test )" COMMON_DEPEND=" media-libs/libsdl2[X?,joystick,sound,video] @@ -43,7 +44,10 @@ DEPEND=" ${COMMON_DEPEND} X? ( x11-base/xorg-proto ) " -BDEPEND="${PYTHON_DEPS}" +BDEPEND=" + ${PYTHON_DEPS} + test? ( virtual/imagemagick-tools[png] ) +" PATCHES=( "${FILESDIR}"/${PN}-2.3.1-caps5-include-path.patch