* [gentoo-commits] repo/gentoo:master commit in: media-gfx/pngquant/files/, media-gfx/pngquant/
@ 2016-08-20 1:15 Tim Harder
0 siblings, 0 replies; 3+ messages in thread
From: Tim Harder @ 2016-08-20 1:15 UTC (permalink / raw
To: gentoo-commits
commit: 05436c856aca424eacb7cd92b05d32aa4faedfaf
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 20 01:13:49 2016 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Aug 20 01:14:23 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05436c85
media-gfx/pngquant: remove old
media-gfx/pngquant/Manifest | 6 ---
.../pngquant/files/pngquant-1.8.3-libpng16.patch | 53 ----------------------
media-gfx/pngquant/pngquant-1.8.2.ebuild | 38 ----------------
media-gfx/pngquant/pngquant-1.8.3.ebuild | 49 --------------------
media-gfx/pngquant/pngquant-2.0.2.ebuild | 48 --------------------
media-gfx/pngquant/pngquant-2.1.0.ebuild | 48 --------------------
media-gfx/pngquant/pngquant-2.2.0.ebuild | 48 --------------------
media-gfx/pngquant/pngquant-2.3.3.ebuild | 40 ----------------
8 files changed, 330 deletions(-)
diff --git a/media-gfx/pngquant/Manifest b/media-gfx/pngquant/Manifest
index 0e7e699..75d8516 100644
--- a/media-gfx/pngquant/Manifest
+++ b/media-gfx/pngquant/Manifest
@@ -1,8 +1,2 @@
-DIST pngquant-1.8.2-src.tar.bz2 31901 SHA256 a51924ad141c010516e46122e84c6d1882d26b7e984900aaa107d74274e1a396 SHA512 394688ea754be781f96372a793c4186d35014dc1fc3b974e2335542d0aaaebe811bd4db5c34f7d7ec492aa38ff8b46c43a6ce77dc78483c4d43afb8aef8ba708 WHIRLPOOL 1904afa05206b11458fe54889cfacee0267f85379186e1cd344a4dc8411598e79e1950a90e1f997b212e0a5b8ed3c13acfce36a2300e0afa295c0eac361d44fa
-DIST pngquant-1.8.3-src.tar.bz2 32287 SHA256 e3d18b12ddf4ee159a696408b147d667674e52121f11660fc15ce3967dd053b9 SHA512 6a123722d1b035fd9cff51004ab222e5d6cc09890cdc440683609b187d492a24f924fec7b15201c8c4bff84bb3891d7f17a99fd24714b71d4ab3c8ac5c3cfc38 WHIRLPOOL a799e840e645c6bd5ec4ce118d5af8b263f3d1ca0ed898ed447bee8ffa98d61eb97eab392cd7db0440600568809891b9cac1c033cfecac65d0c36bca446f469f
-DIST pngquant-2.0.2-src.tar.bz2 45160 SHA256 e1988b18cab1efb889224ac1d640510f09464b5b6fd43beb5edcb161b67db96f SHA512 9e7f652c8e32d408e3f2ccd7854961d8b49e3517f847018cddb9ed415f4bc820c00d27a15760222af33e631a2023c57c420ca306a56f717d2de526da4b5670b8 WHIRLPOOL f0af27fbd3d172677b5cae0bf20d13b71a66fb7738c3b9576b19b785a29b6cd77c21935b3aeb51230696cfb05f4495eca2977d885d616e344f0bf2be079e3621
-DIST pngquant-2.1.0-src.tar.bz2 46435 SHA256 ef41138ff320495c785155eb9f774ae6e1d41978b3e490854e6a8c46c0b032e2 SHA512 277c8fdb07e3eb2fa3643787b2442fc35f17b955e90a5e496aacd87c791ea2ae9fd0c9734cccf5bdc8bc7bc633ea42d6ff94dcb410ad0bfce83c619fff8d83df WHIRLPOOL d277027232fc96f37a7e3e3aacfad4f2bf5ec0cbaa46b67dd291d88075c5794918a3d1a24bbb345def79fb2b0669bdcbd6b547099abe6b15aa877ef17edec5c4
-DIST pngquant-2.2.0-src.tar.bz2 49041 SHA256 7ee202f26270bb0ea8ad6f9a2fc2517ffca2bcded3dfdbd3b99692dcc72e5d11 SHA512 58ab515f1b3a12d95edc597b088f026668be3d022e753ddaf2e9474dd9feaaad9f0362b1b7ad0951ffe27b00fa7940e555372b404a52b79398e06e3c533b584c WHIRLPOOL b3aa2269771e94262badd396766b472d65b310b17c1a733b91059a61194f612f20b9fc9e34bab6015d228d24f1fa7ec5b17327131e2ea5afcbe7787cb0ce316a
-DIST pngquant-2.3.3-src.tar.bz2 53274 SHA256 522d8d4255dbba7ee7b0edd4cadd387a819eae925f4a0679278c3295430b78d6 SHA512 b772d7d887cb1e52ca4c61fd55aba08f8b1f1b2edf45fcb17411e127cfc7a89afc2f12ef91ad9d690c216ba20cabd6e04fca465622a97f9fd538fb720acd9bba WHIRLPOOL d2eb753723bdbda9649dd3fe4b05333c4d3f2aec4e32f9b19612110c1f99020a7e2d544012205b0caf7aa04b3f3f3ebb1a7844b663606bca9c8f07a3eda3ba2a
DIST pngquant-2.5.2-src.tar.bz2 54611 SHA256 5b064596305c6f765a753e96e08224dd71b31c20b72bdaf0f205da16b76a347d SHA512 d542765bc1f7e22fd7199cd4aeb8dc7b82fa87fe05c53ca6b7919522e081c861d419a541909284aa4e5dcfeeedb19729a50150d9139389c1949b3aeaf4933401 WHIRLPOOL 84682a44087a51a5475f1d21e3ce9e58fbb7cee81dc76c3e52cd234a28e80bd56686cc5323dcf8202e3a46fab3ca59278f45efee54dc93277040e742592bb064
DIST pngquant-2.7.2-src.tar.gz 91721 SHA256 75801ed048c40cc4bff12773892d16d7ff00c11b9c549845c2133fd3abca17c2 SHA512 ab84651cf0b5f3af2095b5741e0d03f4ddedbed59e75c5c75faeac20efa8dd2fb482f2a8d9447b5673e9ae6970b9af8dfdbe40062bdf377206ee87eaa69ed9d8 WHIRLPOOL 88a6b77b8204e43f5f97815f34df103f31936e75f4e4822d7f8ac3d2ec80d5a584af7645277ef57d663159d088ce326c15d3eb69d016a682858e3658aabfa410
diff --git a/media-gfx/pngquant/files/pngquant-1.8.3-libpng16.patch b/media-gfx/pngquant/files/pngquant-1.8.3-libpng16.patch
deleted file mode 100644
index edf089f..0000000
--- a/media-gfx/pngquant/files/pngquant-1.8.3-libpng16.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-Rename to prevent conflict with png_image from libpng16
-
-http://bugs.gentoo.org/464762
-
---- rwpng.c
-+++ rwpng.c
-@@ -213,7 +213,7 @@
- }
-
-
--pngquant_error rwpng_write_image_init(png_image *mainprog_ptr, png_structpp png_ptr_p, png_infopp info_ptr_p, FILE *outfile)
-+pngquant_error rwpng_write_image_init(rwpng_png_image *mainprog_ptr, png_structpp png_ptr_p, png_infopp info_ptr_p, FILE *outfile)
- {
- /* could also replace libpng warning-handler (final NULL), but no need: */
-
-@@ -277,7 +277,7 @@
- png_structp png_ptr;
- png_infop info_ptr;
-
-- pngquant_error retval = rwpng_write_image_init((png_image*)mainprog_ptr, &png_ptr, &info_ptr, outfile);
-+ pngquant_error retval = rwpng_write_image_init((rwpng_png_image*)mainprog_ptr, &png_ptr, &info_ptr, outfile);
- if (retval) return retval;
-
- // Palette images generally don't gain anything from filtering
-@@ -321,7 +321,7 @@
- png_structp png_ptr;
- png_infop info_ptr;
-
-- pngquant_error retval = rwpng_write_image_init((png_image*)mainprog_ptr, &png_ptr, &info_ptr, outfile);
-+ pngquant_error retval = rwpng_write_image_init((rwpng_png_image*)mainprog_ptr, &png_ptr, &info_ptr, outfile);
- if (retval) return retval;
-
- rwpng_set_gamma(info_ptr, png_ptr, mainprog_ptr->gamma);
-@@ -344,7 +344,7 @@
-
- static void rwpng_error_handler(png_structp png_ptr, png_const_charp msg)
- {
-- png_image *mainprog_ptr;
-+ rwpng_png_image *mainprog_ptr;
-
- /* This function, aside from the extra step of retrieving the "error
- * pointer" (below) and the fact that it exists within the application
---- rwpng.h
-+++ rwpng.h
-@@ -80,7 +80,7 @@
- jmp_buf jmpbuf;
- png24_image png24;
- png8_image png8;
--} png_image;
-+} rwpng_png_image;
-
- /* prototypes for public functions in rwpng.c */
-
diff --git a/media-gfx/pngquant/pngquant-1.8.2.ebuild b/media-gfx/pngquant/pngquant-1.8.2.ebuild
deleted file mode 100644
index 79c4ef5..0000000
--- a/media-gfx/pngquant/pngquant-1.8.2.ebuild
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-inherit toolchain-funcs
-
-DESCRIPTION="command-line utility and library for lossy compression of PNG images"
-HOMEPAGE="http://pngquant.org/"
-SRC_URI="http://pngquant.org/${P}-src.tar.bz2"
-
-LICENSE="HPND rwpng"
-SLOT=0
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RDEPEND="media-libs/libpng:0=
- sys-libs/zlib:="
-DEPEND=${RDEPEND}
-
-src_prepare() {
- # Failure in upstream logic. Otherwise we lose the -I and -L flags
- # from Makefile.
- sed -i \
- -e 's:CFLAGS ?=:CFLAGS +=:' \
- -e 's:LDFLAGS ?=:LDFLAGS +=:' \
- Makefile || die
-}
-
-src_compile() {
- tc-export CC
- emake CFLAGSOPT=''
-}
-
-src_install() {
- emake DESTDIR="${D}" PREFIX=/usr install
- dodoc CHANGELOG README.md
-}
diff --git a/media-gfx/pngquant/pngquant-1.8.3.ebuild b/media-gfx/pngquant/pngquant-1.8.3.ebuild
deleted file mode 100644
index 7cd1ba7..0000000
--- a/media-gfx/pngquant/pngquant-1.8.3.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-inherit eutils flag-o-matic toolchain-funcs
-
-DESCRIPTION="command-line utility and library for lossy compression of PNG images"
-HOMEPAGE="http://pngquant.org/"
-SRC_URI="http://pngquant.org/${P}-src.tar.bz2"
-
-LICENSE="HPND rwpng"
-SLOT=0
-KEYWORDS="~amd64 ~x86"
-IUSE="debug openmp cpu_flags_x86_sse2"
-
-RDEPEND="media-libs/libpng:0=
- sys-libs/zlib:="
-DEPEND=${RDEPEND}
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-libpng16.patch
-
- # Failure in upstream logic. Otherwise we lose the -I and -L flags
- # from Makefile.
- sed -i \
- -e 's:CFLAGS ?=:CFLAGS +=:' \
- -e 's:LDFLAGS ?=:LDFLAGS +=:' \
- Makefile || die
-}
-
-src_compile() {
- use debug || append-cflags -DNDEBUG
- use cpu_flags_x86_sse2 && append-cflags -DUSE_SSE=1
-
- local openmp
- if use openmp && tc-has-openmp; then
- append-cflags -fopenmp
- openmp="-lgomp"
- fi
-
- tc-export CC
- emake CFLAGSOPT="" OPENMPFLAGS="${openmp}"
-}
-
-src_install() {
- emake CFLAGSOPT="" DESTDIR="${D}" PREFIX=/usr install
- dodoc CHANGELOG README.md
-}
diff --git a/media-gfx/pngquant/pngquant-2.0.2.ebuild b/media-gfx/pngquant/pngquant-2.0.2.ebuild
deleted file mode 100644
index a039b26..0000000
--- a/media-gfx/pngquant/pngquant-2.0.2.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-inherit eutils flag-o-matic toolchain-funcs
-
-DESCRIPTION="command-line utility and library for lossy compression of PNG images"
-HOMEPAGE="http://pngquant.org/"
-SRC_URI="http://pngquant.org/${P}-src.tar.bz2"
-
-LICENSE="HPND rwpng"
-SLOT=0
-KEYWORDS="~amd64 ~x86"
-IUSE="debug openmp cpu_flags_x86_sse2"
-
-RDEPEND="media-libs/libpng:0=
- sys-libs/zlib:="
-DEPEND=${RDEPEND}
-
-src_prepare() {
- # Failure in upstream logic. Otherwise we lose the -I and -L flags
- # from Makefile.
- sed -i \
- -e 's:CFLAGS ?=:CFLAGS +=:' \
- -e 's:LDFLAGS ?=:LDFLAGS +=:' \
- Makefile || die
-}
-
-src_compile() {
- use debug || append-cflags -DNDEBUG
- use cpu_flags_x86_sse2 && append-cflags -DUSE_SSE=1
-
- local openmp
- if use openmp && tc-has-openmp; then
- append-cflags -fopenmp
- openmp="-lgomp"
- fi
-
- tc-export CC
- emake CFLAGSOPT="" OPENMPFLAGS="${openmp}"
-}
-
-src_install() {
- dobin ${PN}
- doman ${PN}.1
- dodoc CHANGELOG README.md
-}
diff --git a/media-gfx/pngquant/pngquant-2.1.0.ebuild b/media-gfx/pngquant/pngquant-2.1.0.ebuild
deleted file mode 100644
index 78b26d9..0000000
--- a/media-gfx/pngquant/pngquant-2.1.0.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="command-line utility and library for lossy compression of PNG images"
-HOMEPAGE="http://pngquant.org/"
-SRC_URI="http://pngquant.org/${P}-src.tar.bz2"
-
-LICENSE="HPND rwpng"
-SLOT=0
-KEYWORDS="~amd64 ~x86"
-IUSE="debug openmp cpu_flags_x86_sse2"
-
-RDEPEND="media-libs/libpng:0=
- sys-libs/zlib:="
-DEPEND=${RDEPEND}
-
-src_prepare() {
- # Failure in upstream logic. Otherwise we lose the -I and -L flags
- # from Makefile.
- sed -i \
- -e 's:CFLAGS ?=:CFLAGS +=:' \
- -e 's:LDFLAGS ?=:LDFLAGS +=:' \
- Makefile || die
-}
-
-src_compile() {
- use debug || append-cflags -DNDEBUG
- use cpu_flags_x86_sse2 && append-cflags -DUSE_SSE=1
-
- local openmp
- if use openmp && tc-has-openmp; then
- append-cflags -fopenmp
- openmp="-lgomp"
- fi
-
- tc-export CC
- emake CFLAGSOPT="" OPENMPFLAGS="${openmp}"
-}
-
-src_install() {
- dobin ${PN}
- doman ${PN}.1
- dodoc CHANGELOG README.md
-}
diff --git a/media-gfx/pngquant/pngquant-2.2.0.ebuild b/media-gfx/pngquant/pngquant-2.2.0.ebuild
deleted file mode 100644
index 78b26d9..0000000
--- a/media-gfx/pngquant/pngquant-2.2.0.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="command-line utility and library for lossy compression of PNG images"
-HOMEPAGE="http://pngquant.org/"
-SRC_URI="http://pngquant.org/${P}-src.tar.bz2"
-
-LICENSE="HPND rwpng"
-SLOT=0
-KEYWORDS="~amd64 ~x86"
-IUSE="debug openmp cpu_flags_x86_sse2"
-
-RDEPEND="media-libs/libpng:0=
- sys-libs/zlib:="
-DEPEND=${RDEPEND}
-
-src_prepare() {
- # Failure in upstream logic. Otherwise we lose the -I and -L flags
- # from Makefile.
- sed -i \
- -e 's:CFLAGS ?=:CFLAGS +=:' \
- -e 's:LDFLAGS ?=:LDFLAGS +=:' \
- Makefile || die
-}
-
-src_compile() {
- use debug || append-cflags -DNDEBUG
- use cpu_flags_x86_sse2 && append-cflags -DUSE_SSE=1
-
- local openmp
- if use openmp && tc-has-openmp; then
- append-cflags -fopenmp
- openmp="-lgomp"
- fi
-
- tc-export CC
- emake CFLAGSOPT="" OPENMPFLAGS="${openmp}"
-}
-
-src_install() {
- dobin ${PN}
- doman ${PN}.1
- dodoc CHANGELOG README.md
-}
diff --git a/media-gfx/pngquant/pngquant-2.3.3.ebuild b/media-gfx/pngquant/pngquant-2.3.3.ebuild
deleted file mode 100644
index aeb5acd..0000000
--- a/media-gfx/pngquant/pngquant-2.3.3.ebuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-
-inherit toolchain-funcs
-
-DESCRIPTION="command-line utility and library for lossy compression of PNG images"
-HOMEPAGE="http://pngquant.org/"
-SRC_URI="http://pngquant.org/${P}-src.tar.bz2"
-
-LICENSE="HPND rwpng"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug lcms openmp cpu_flags_x86_sse2"
-
-RDEPEND="media-libs/libpng:0=
- sys-libs/zlib:=
- lcms? ( media-libs/lcms:2 )"
-DEPEND="${RDEPEND}"
-
-src_configure() {
- tc-export AR CC
- # Hand rolled configure script, so not all flags are supported.
- ./configure \
- --prefix="${EPREFIX}/usr" \
- $(use debug && echo --enable-debug) \
- $(use_enable cpu_flags_x86_sse2 sse) \
- $(use openmp && tc-has-openmp && echo --with-openmp) \
- $(use_with lcms lcms2) \
- CFLAGS="${CFLAGS} ${CPPFLAGS}" \
- LDFLAGS="${LDFLAGS}"
-}
-
-src_install() {
- dobin ${PN}
- doman ${PN}.1
- dodoc CHANGELOG README.md
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-gfx/pngquant/files/, media-gfx/pngquant/
@ 2018-12-14 1:08 Thomas Deutschmann
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Deutschmann @ 2018-12-14 1:08 UTC (permalink / raw
To: gentoo-commits
commit: 0605f361b5e371c6b82dab684128be5642ccc204
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 14 01:08:08 2018 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Dec 14 01:08:39 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0605f361
media-gfx/pngquant: bump to v2.12.2
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
media-gfx/pngquant/Manifest | 1 +
.../files/pngquant-2.12.2-respect-CFLAGS.patch | 17 ++++++++
media-gfx/pngquant/pngquant-2.12.2.ebuild | 51 ++++++++++++++++++++++
3 files changed, 69 insertions(+)
diff --git a/media-gfx/pngquant/Manifest b/media-gfx/pngquant/Manifest
index f79cf2c9374..81e9b100501 100644
--- a/media-gfx/pngquant/Manifest
+++ b/media-gfx/pngquant/Manifest
@@ -1,2 +1,3 @@
DIST pngquant-2.11.4-src.tar.gz 142149 BLAKE2B eccf0c7a279d62981cfdf44ab0e378b2331377cd892019161b453edc7ffe73616a2aa83a07cf5f8d7292a0f96bf25612c23129348463cac73647021eae44f160 SHA512 171949977e1fd71c05bd75552f2e62535f6c15f31c3192cbe31df7451091634a6fbbfd08b47dd040f353af3b5f41fcc13db4421a212ca07cc6836f029635ddd0
DIST pngquant-2.11.7-src.tar.gz 141959 BLAKE2B 00e36a818a2150aeb3c927daeb8621bafa41497a6fe32afe30e41ad04d788946390f382139aea9878f58fc7a84fdbaf597681c9d8769e0e23b785a10d2e0233c SHA512 5325577dcb16acf5dff81a5f3bcf8cfa2a12df07a7c2308ebb9a343b74e56ea21184ed3f87819122c8bb97b4a7ffd3b61046c60f7f339da9a93e76dfa17ebee6
+DIST pngquant-2.12.2-src.tar.gz 143404 BLAKE2B b06b1185fdeb1990e6b6f0cb77e33051729731fc2c2f4b1f618bd9077057354eabc21405872c938dbdf5395040860b4a884e9780bbd439da36f2af61d53e82a9 SHA512 ed82e0a57d9f4f3ee40258c4cbbf7ed086177dee1e2afdcb7d308f779c83fb2be9c7226c0713b9c72e6b6c22161dbaca3d14f2bdc2f0468daa608be80e9ef1c9
diff --git a/media-gfx/pngquant/files/pngquant-2.12.2-respect-CFLAGS.patch b/media-gfx/pngquant/files/pngquant-2.12.2-respect-CFLAGS.patch
new file mode 100644
index 00000000000..c290af36fe5
--- /dev/null
+++ b/media-gfx/pngquant/files/pngquant-2.12.2-respect-CFLAGS.patch
@@ -0,0 +1,17 @@
+--- a/configure
++++ b/configure
+@@ -152,12 +152,12 @@ rm -f pngquant-gcccheck pngquant-gcccheck.c
+ status "Compiler" "$CC"
+
+ # init flags
+-CFLAGS=${CFLAGS:--fno-math-errno -funroll-loops -fomit-frame-pointer -Wall}
++CFLAGS=${CFLAGS:--fno-math-errno -funroll-loops -fomit-frame-pointer}
+ cflags "-std=c99 -I."
+
+ # DEBUG
+ if [ -z "$DEBUG" ]; then
+- cflags "-O3 -DNDEBUG"
++ cflags "-DNDEBUG"
+ status "Debug" "no"
+ else
+ cflags "-O1 -g"
diff --git a/media-gfx/pngquant/pngquant-2.12.2.ebuild b/media-gfx/pngquant/pngquant-2.12.2.ebuild
new file mode 100644
index 00000000000..5bc16502eb6
--- /dev/null
+++ b/media-gfx/pngquant/pngquant-2.12.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit toolchain-funcs
+
+DESCRIPTION="command-line utility and library for lossy compression of PNG images"
+HOMEPAGE="https://pngquant.org/"
+SRC_URI="https://pngquant.org/${P}-src.tar.gz"
+
+LICENSE="GPL-3 HPND rwpng"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug lcms openmp cpu_flags_x86_sse2"
+
+RDEPEND="media-libs/libpng:0=
+ media-gfx/libimagequant:=
+ sys-libs/zlib:=
+ lcms? ( media-libs/lcms:2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.12.2-respect-CFLAGS.patch )
+
+src_prepare() {
+ default
+
+ # avoid silent fallback to bundled lib
+ rm -rv lib || die
+}
+
+src_configure() {
+ tc-export AR CC
+ # Hand rolled configure script, so not all flags are supported.
+ ./configure \
+ --prefix="${EPREFIX}/usr" \
+ --with-libimagequant \
+ $(use debug && echo --enable-debug) \
+ $(use_enable cpu_flags_x86_sse2 sse) \
+ $(use openmp && tc-has-openmp && echo --with-openmp) \
+ $(use_with lcms lcms2) \
+ CFLAGS="${CFLAGS} ${CPPFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dodoc CHANGELOG README.md
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-gfx/pngquant/files/, media-gfx/pngquant/
@ 2022-09-01 1:23 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2022-09-01 1:23 UTC (permalink / raw
To: gentoo-commits
commit: 250b40499fe9dc1e9a327cb9ec42ffe2b2330b47
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 1 01:18:58 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 1 01:23:26 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=250b4049
media-gfx/pngquant: fix tests with newer libimagequant
Closes: https://bugs.gentoo.org/867760
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../pngquant/files/pngquant-2.17.0-fix-test-version.patch | 14 ++++++++++++++
media-gfx/pngquant/pngquant-2.17.0.ebuild | 5 ++++-
2 files changed, 18 insertions(+), 1 deletion(-)
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 000000000000..6b7fe013e5dc
--- /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 39b969796e38..95adcc0f4890 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
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-01 1:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-14 1:08 [gentoo-commits] repo/gentoo:master commit in: media-gfx/pngquant/files/, media-gfx/pngquant/ Thomas Deutschmann
-- strict thread matches above, loose matches on Subject: below --
2022-09-01 1:23 Sam James
2016-08-20 1:15 Tim Harder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox