summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2012-03-02 12:17:54 +0000
committerSebastian Pipping <sping@gentoo.org>2012-03-02 12:17:54 +0000
commit19ff36441eea812d45d9e3f29abffdb9011ab5fe (patch)
treefe0fe53660bb638ad3580a6b04363e4fe8da1cb0 /media-gfx/optipng
parentAdd ~x86-fbsd (diff)
downloadgentoo-2-19ff36441eea812d45d9e3f29abffdb9011ab5fe.tar.gz
gentoo-2-19ff36441eea812d45d9e3f29abffdb9011ab5fe.tar.bz2
gentoo-2-19ff36441eea812d45d9e3f29abffdb9011ab5fe.zip
media-gfx/optipng: 0.7
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/optipng')
-rw-r--r--media-gfx/optipng/ChangeLog12
-rw-r--r--media-gfx/optipng/metadata.xml4
-rw-r--r--media-gfx/optipng/optipng-0.7.ebuild48
3 files changed, 62 insertions, 2 deletions
diff --git a/media-gfx/optipng/ChangeLog b/media-gfx/optipng/ChangeLog
index 480922d24e13..557483d3a42c 100644
--- a/media-gfx/optipng/ChangeLog
+++ b/media-gfx/optipng/ChangeLog
@@ -1,6 +1,14 @@
# 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.69 2011/11/17 19:03:44 hwoarang Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.70 2012/03/02 12:17:54 sping Exp $
+
+ 02 Mar 2012; Sebastian Pipping <sping@gentoo.org> metadata.xml:
+ Add sping as secondary maintainer
+
+*optipng-0.7 (02 Mar 2012)
+
+ 02 Mar 2012; Sebastian Pipping <sping@gentoo.org> +optipng-0.7.ebuild:
+ Bump to 0.7 (which now compiles against libpng 1.5.9)
17 Nov 2011; Markos Chandras <hwoarang@gentoo.org> metadata.xml:
Change developer's email
diff --git a/media-gfx/optipng/metadata.xml b/media-gfx/optipng/metadata.xml
index cc160542fb5e..132fdc25d75c 100644
--- a/media-gfx/optipng/metadata.xml
+++ b/media-gfx/optipng/metadata.xml
@@ -5,4 +5,8 @@
<email>tristan@gentoo.org</email>
<name>Tristan Heaven</name>
</maintainer>
+ <maintainer>
+ <email>sping@gentoo.org</email>
+ <name>Sebastian Pipping</name>
+ </maintainer>
</pkgmetadata>
diff --git a/media-gfx/optipng/optipng-0.7.ebuild b/media-gfx/optipng/optipng-0.7.ebuild
new file mode 100644
index 000000000000..626388da83a0
--- /dev/null
+++ b/media-gfx/optipng/optipng-0.7.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.7.ebuild,v 1.1 2012/03/02 12:17:54 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=""
+
+RDEPEND="media-libs/libpng:0"
+DEPEND="${RDEPEND}
+ sys-apps/findutils"
+
+src_prepare() {
+ rm -R src/{libpng,zlib} || die
+ find . -type d -name build -exec rm -R {} + || die
+}
+
+src_configure() {
+ ./configure \
+ -with-system-libpng \
+ -with-system-zlib \
+ || die "configure failed"
+}
+
+src_compile() {
+ emake \
+ -C src/optipng \
+ CC="$(tc-getCC)" \
+ GENTOO_CFLAGS="${CFLAGS}" \
+ GENTOO_LDFLAGS="${LDFLAGS}" \
+ || die "emake failed"
+}
+
+src_install() {
+ dodoc README.txt doc/*.txt || die
+ dohtml doc/*.html || die
+ doman src/optipng/man/optipng.1 || die
+
+ dobin src/optipng/optipng || die "dobin failed"
+}