media-gfx/pngquant: fix tests with newer libimagequant

Closes: https://bugs.gentoo.org/867760
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-09-01 02:18:58 +01:00
parent 358093e18c
commit 250b40499f
2 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
https://bugs.gentoo.org/867760
Drop check which looks at version as with newer libimagequant,
it becomes 4.0.0.
--- a/test/test.sh
+++ b/test/test.sh
@@ -9,7 +9,6 @@ BIN=$2
TESTBIN=$3
PATH=.:$PATH # Required, since BIN may be just 'pngquant'
-$BIN --version 2>&1 | fgrep 2.
$BIN --help | fgrep -q "usage:"
$BIN 2>/dev/null && { echo "should fail without args"; exit 1; } || true

View File

@@ -27,7 +27,10 @@ BDEPEND="virtual/pkgconfig"
RESTRICT="!test? ( test )"
PATCHES=( "${FILESDIR}"/${PN}-2.12.2-respect-CFLAGS.patch )
PATCHES=(
"${FILESDIR}"/${PN}-2.12.2-respect-CFLAGS.patch
"${FILESDIR}"/${PN}-2.17.0-fix-test-version.patch
)
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp