mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
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:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user