diff --git a/media-gfx/pngquant/files/pngquant-2.17.0-fix-test-version.patch b/media-gfx/pngquant/files/pngquant-2.17.0-fix-test-version.patch new file mode 100644 index 0000000000000..6b7fe013e5dc1 --- /dev/null +++ b/media-gfx/pngquant/files/pngquant-2.17.0-fix-test-version.patch @@ -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 diff --git a/media-gfx/pngquant/pngquant-2.17.0.ebuild b/media-gfx/pngquant/pngquant-2.17.0.ebuild index 39b969796e388..95adcc0f4890a 100644 --- a/media-gfx/pngquant/pngquant-2.17.0.ebuild +++ b/media-gfx/pngquant/pngquant-2.17.0.ebuild @@ -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