summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2011-08-02 15:10:47 +0000
committerSebastian Pipping <sping@gentoo.org>2011-08-02 15:10:47 +0000
commit1ced04d5cb4b890f863ab8283d08e8521546b2e0 (patch)
treec1e718f77a115b22713da61cd0441f8c7b0bc3e5
parentStable on amd64 wrt bug #376359 (diff)
downloadhistorical-1ced04d5cb4b890f863ab8283d08e8521546b2e0.tar.gz
historical-1ced04d5cb4b890f863ab8283d08e8521546b2e0.tar.bz2
historical-1ced04d5cb4b890f863ab8283d08e8521546b2e0.zip
media-gfx/optipng: Bump to 0.6.5
Package-Manager: portage-2.1.10.9/cvs/Linux x86_64
-rw-r--r--media-gfx/optipng/ChangeLog9
-rw-r--r--media-gfx/optipng/Manifest15
-rw-r--r--media-gfx/optipng/files/optipng-0.6.5-libpng-1.4.8.patch84
-rw-r--r--media-gfx/optipng/optipng-0.6.5.ebuild54
4 files changed, 160 insertions, 2 deletions
diff --git a/media-gfx/optipng/ChangeLog b/media-gfx/optipng/ChangeLog
index 42134ee30150..b06ac8bd818b 100644
--- a/media-gfx/optipng/ChangeLog
+++ b/media-gfx/optipng/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-gfx/optipng
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.62 2011/01/30 09:23:07 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.63 2011/08/02 15:10:47 sping Exp $
+
+*optipng-0.6.5 (02 Aug 2011)
+
+ 02 Aug 2011; Sebastian Pipping <sping@gentoo.org> +optipng-0.6.5.ebuild,
+ +files/optipng-0.6.5-libpng-1.4.8.patch:
+ Bump to 0.6.5, fix compilation for libpng 1.4.8, deny compilation against
+ libpng 1.5 from ebuild to match upstream's changes in configure script
30 Jan 2011; Kacper Kowalik <xarthisius@gentoo.org> optipng-0.6.4.ebuild:
Add ~ppc64 wrt #346383
diff --git a/media-gfx/optipng/Manifest b/media-gfx/optipng/Manifest
index 7e798ba1cae3..da7229a70e11 100644
--- a/media-gfx/optipng/Manifest
+++ b/media-gfx/optipng/Manifest
@@ -1,6 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX optipng-0.6.5-libpng-1.4.8.patch 3257 RMD160 6b4cb26e1c96d1074b3ce4eb8a8f2d9d524267a6 SHA1 eae46c43ef1bbf9a25839273327cebdbcf7cb7fb SHA256 48306de1267095caa239fac5ed37925c894d9e64fa2a251bc2fd016e6f964f9b
DIST optipng-0.6.3.tar.gz 1060571 RMD160 3ef55878defee86a57b8b0b268da1a7e9eca0d14 SHA1 eba6e3c940588b1d02abfabc407e5c759a3fdd8a SHA256 d11630955e2e72f07dd0aa1270f9d20caaef41796fdbfbbc1caad5b931fdf721
DIST optipng-0.6.4.tar.gz 1483806 RMD160 6b5248c3c6b744315e70e86b49d998fe66759879 SHA1 ebb8d623c7f79c5c6942803bb96789103780bce9 SHA256 3000892b1d240351f057fbc8012485c3a1e75b991fa8d54e048273fa0fa87647
+DIST optipng-0.6.5.tar.gz 1534271 RMD160 2b67ce48cba37e5c77ef13bdc285b37e919e2b01 SHA1 91525748a0bbd9bbfa8355529da7c17a408173e5 SHA256 2998e203941cdb95eb97587a44b02b3b765e85a7d62fe2df076b0123a7ba5b44
EBUILD optipng-0.6.3.ebuild 1196 RMD160 9b0ff8b3155199bf24e73d8f2149614558bc93fc SHA1 2dd24d8c25b89c3b78827ed9825b8c48baff60b8 SHA256 2e3b69be983b5b551fc970ee07ba87cd754cfe924e1811833bee55107e379aa6
EBUILD optipng-0.6.4.ebuild 1244 RMD160 99d9fff0680c13f9b0444c32b6b078db4e707f33 SHA1 21a44c2a17dd1d391ff7c326dccd81b7941560e8 SHA256 0797194c6d3f0ff153c1fb86bcbbd533b5f2fce58b0066ee3be6179e2dbb080b
-MISC ChangeLog 7808 RMD160 b59a0698b32451347d7e8eca884274a9b05ea73e SHA1 fa48e6b6f60fbc3d692898dd9d08c432942ab4fb SHA256 341d4f05fed90eb12dfb6ca152c7a5017da7d7488de2cf0be47b78e86d89b454
+EBUILD optipng-0.6.5.ebuild 1323 RMD160 2ef5dd0061487036e7f7375e240a1e5b0cb72363 SHA1 327e2663de92fee8c6285c470869b7e952656bf5 SHA256 24890afae3df6bcf3adf9dd8c76faffc522147907bc7c13ce3f771a67e0c48bd
+MISC ChangeLog 8101 RMD160 9b66f169586700ff4a57b66fd6f9176a8f16c703 SHA1 c8ba9bb2961f550c9172a47808c433030518f791 SHA256 cba8b8dec60cb55ef784c6655e5e372d6cdddf5d50a0d85ca4bb43967a7051a0
MISC metadata.xml 253 RMD160 33155d552badd3133f93e25bfcd82b62d296deb9 SHA1 b30245f00aae656e7a024b2ab4b8ad8e5549250f SHA256 2ddc2634b7e897546998869bcf0803bfbf4940cb75da9e45a2a8f421b4dabfd3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iEYEARECAAYFAk44E3QACgkQsAvGakAaFgB/3QCginIG0uMsq6C7TMqSUTrsZ3vC
+qcAAoLkAnevWoC2g5G/VXcohlfdt7wYz
+=2Jm+
+-----END PGP SIGNATURE-----
diff --git a/media-gfx/optipng/files/optipng-0.6.5-libpng-1.4.8.patch b/media-gfx/optipng/files/optipng-0.6.5-libpng-1.4.8.patch
new file mode 100644
index 000000000000..0714f685b6f5
--- /dev/null
+++ b/media-gfx/optipng/files/optipng-0.6.5-libpng-1.4.8.patch
@@ -0,0 +1,84 @@
+From d84fd1880aae22a2a92ca759a3f9e07f2f7b6bee Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Tue, 2 Aug 2011 17:01:51 +0200
+Subject: [PATCH] Fix compilation against libpng 1.4.8
+
+---
+ src/opngoptim.c | 2 +-
+ src/opngreduc.c | 16 ++++++++--------
+ 2 files changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/src/opngoptim.c b/src/opngoptim.c
+index 16f7acd..ead0c6e 100644
+--- a/src/opngoptim.c
++++ b/src/opngoptim.c
+@@ -19,10 +19,10 @@
+ #include "proginfo.h"
+
+ #include "cbitset.h"
+-#include "cexcept.h"
+ #include "opngreduc.h"
+ #include "osys.h"
+ #include "png.h"
++#include "cexcept.h"
+ #include "pngx.h"
+ #include "pngxtern.h"
+ #include "zlib.h"
+diff --git a/src/opngreduc.c b/src/opngreduc.c
+index e4d5c98..5ef0b60 100644
+--- a/src/opngreduc.c
++++ b/src/opngreduc.c
+@@ -366,8 +366,8 @@ opng_get_alpha_row(png_structp png_ptr, png_infop info_ptr,
+ channels = (png_ptr->usr_channels > 0) ?
+ png_ptr->usr_channels : info_ptr->channels;
+ sample_ptr = row;
+- if (!(png_ptr->transformations & PNG_FILLER) ||
+- (png_ptr->flags & PNG_FLAG_FILLER_AFTER))
++ if (!(png_ptr->transformations & OPNG_FILLER) ||
++ (png_ptr->flags & OPNG_FLAG_FILLER_AFTER))
+ sample_ptr += channels - 1; /* alpha sample is the last in RGBA tuple */
+ for (i = 0; i < width; ++i, sample_ptr += channels, ++alpha_row)
+ *alpha_row = *sample_ptr;
+@@ -416,8 +416,8 @@ opng_analyze_bits(png_structp png_ptr, png_infop info_ptr,
+ reductions &= ~OPNG_REDUCE_STRIP_ALPHA;
+
+ offset_color = offset_alpha = 0;
+- if ((png_ptr->transformations & PNG_FILLER) &&
+- !(png_ptr->flags & PNG_FLAG_FILLER_AFTER))
++ if ((png_ptr->transformations & OPNG_FILLER) &&
++ !(png_ptr->flags & OPNG_FLAG_FILLER_AFTER))
+ offset_color = byte_depth;
+ else
+ offset_alpha = (channels - 1) * byte_depth;
+@@ -565,7 +565,7 @@ opng_reduce_bits(png_structp png_ptr, png_infop info_ptr,
+ /* See which reductions may be performed. */
+ reductions = opng_analyze_bits(png_ptr, info_ptr, reductions);
+ /* Strip the filler even if it is not an alpha channel. */
+- if (png_ptr->transformations & PNG_FILLER)
++ if (png_ptr->transformations & OPNG_FILLER)
+ reductions |= OPNG_REDUCE_STRIP_ALPHA;
+ if (reductions == OPNG_REDUCE_NONE)
+ return OPNG_REDUCE_NONE; /* nothing can be reduced */
+@@ -606,8 +606,8 @@ opng_reduce_bits(png_structp png_ptr, png_infop info_ptr,
+ dest_sample_size = dest_channels * dest_byte_depth;
+ dest_pixel_depth = dest_channels * dest_bit_depth;
+
+- if (!(png_ptr->transformations & PNG_FILLER) ||
+- (png_ptr->flags & PNG_FLAG_FILLER_AFTER))
++ if (!(png_ptr->transformations & OPNG_FILLER) ||
++ (png_ptr->flags & OPNG_FLAG_FILLER_AFTER))
+ src_offset_alpha = (src_channels - 1) * src_byte_depth;
+ else
+ src_offset_alpha = 0;
+@@ -748,7 +748,7 @@ opng_reduce_bits(png_structp png_ptr, png_infop info_ptr,
+ png_ptr->pixel_depth = info_ptr->pixel_depth = (png_byte)dest_pixel_depth;
+ if (reductions & OPNG_REDUCE_STRIP_ALPHA)
+ {
+- png_ptr->transformations &= ~PNG_FILLER;
++ png_ptr->transformations &= ~OPNG_FILLER;
+ if (png_ptr->usr_channels > 0)
+ --png_ptr->usr_channels;
+ }
+--
+1.7.6
+
diff --git a/media-gfx/optipng/optipng-0.6.5.ebuild b/media-gfx/optipng/optipng-0.6.5.ebuild
new file mode 100644
index 000000000000..fbb0fa635087
--- /dev/null
+++ b/media-gfx/optipng/optipng-0.6.5.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.6.5.ebuild,v 1.1 2011/08/02 15:10:47 sping Exp $
+
+EAPI=2
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Compress PNG files without affecting image quality"
+HOMEPAGE="http://optipng.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+IUSE=""
+
+DEPEND="<media-libs/libpng-1.5"
+
+src_prepare() {
+ sed -i \
+ -e '/^C/s: -O2.*: $(GENTOO_CFLAGS) -Wall:' \
+ -e '/^LD/s: -s$: $(GENTOO_LDFLAGS):' \
+ src/scripts/gcc.mak.in \
+ lib/pngxtern/scripts/gcc.mak.in \
+ || die "sed failed"
+ cp lib/libpng/pngpriv.h src/ || die
+ rm -rf lib/{libpng,zlib}
+
+ epatch "${FILESDIR}"/${P}-libpng-1.4.8.patch
+}
+
+src_configure() {
+ ./configure \
+ -with-system-libpng \
+ -with-system-zlib \
+ || die "configure failed"
+}
+
+src_compile() {
+ emake \
+ -C src \
+ -f scripts/gcc.mak \
+ CC="$(tc-getCC)" \
+ GENTOO_CFLAGS="${CFLAGS}" \
+ GENTOO_LDFLAGS="${LDFLAGS}" \
+ || die "emake failed"
+}
+
+src_install() {
+ dobin src/optipng || die "dobin failed"
+ dodoc README.txt doc/*.txt || die
+ dohtml doc/*.html || die
+ doman man/optipng.1 || die
+}