summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2009-02-25 17:30:09 +0000
committerTristan Heaven <nyhm@gentoo.org>2009-02-25 17:30:09 +0000
commitba6e217c7b7525667bfa89e61ac384f8d20d4527 (patch)
tree2b021d43f40c75554ddb2080a6ed46d58d5bdb9d /media-gfx/optipng
parentAdd fix from upstream for infinite loop with arrays. (diff)
downloadgentoo-2-ba6e217c7b7525667bfa89e61ac384f8d20d4527.tar.gz
gentoo-2-ba6e217c7b7525667bfa89e61ac384f8d20d4527.tar.bz2
gentoo-2-ba6e217c7b7525667bfa89e61ac384f8d20d4527.zip
Security patch, bug #260265
(Portage version: 2.2_rc23/cvs/Linux i686)
Diffstat (limited to 'media-gfx/optipng')
-rw-r--r--media-gfx/optipng/ChangeLog9
-rw-r--r--media-gfx/optipng/optipng-0.6.2-r1.ebuild45
2 files changed, 52 insertions, 2 deletions
diff --git a/media-gfx/optipng/ChangeLog b/media-gfx/optipng/ChangeLog
index cf412a184953..21d4f765b82c 100644
--- a/media-gfx/optipng/ChangeLog
+++ b/media-gfx/optipng/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-gfx/optipng
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.45 2008/12/07 13:41:52 nyhm Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.46 2009/02/25 17:30:09 nyhm Exp $
+
+*optipng-0.6.2-r1 (25 Feb 2009)
+
+ 25 Feb 2009; Tristan Heaven <nyhm@gentoo.org> +optipng-0.6.2-r1.ebuild:
+ Security patch, bug #260265
07 Dec 2008; Tristan Heaven <nyhm@gentoo.org> optipng-0.6.2.ebuild:
Pick up CFLAGS in src_compile instead of src_unpack, bug #240800
diff --git a/media-gfx/optipng/optipng-0.6.2-r1.ebuild b/media-gfx/optipng/optipng-0.6.2-r1.ebuild
new file mode 100644
index 000000000000..a3533b1de2bf
--- /dev/null
+++ b/media-gfx/optipng/optipng-0.6.2-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.6.2-r1.ebuild,v 1.1 2009/02/25 17:30:09 nyhm Exp $
+
+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
+ mirror://sourceforge/${PN}/${P}.1.diff"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~x86"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${DISTDIR}"/${P}.1.diff
+ sed -i \
+ -e '/^C/s: -O2.*: $(GENTOO_CFLAGS) -Wall:' \
+ -e '/^LD/s: -s$: $(GENTOO_LDFLAGS):' \
+ src/scripts/gcc.mak \
+ lib/libpng/scripts/makefile.gcc \
+ lib/pngxtern/scripts/gcc.mak \
+ || die "sed 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
+ dohtml doc/*.html
+ doman man/optipng.1
+}