diff options
author | Sebastian Pipping <sping@gentoo.org> | 2012-09-17 17:55:29 +0000 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2012-09-17 17:55:29 +0000 |
commit | 03dcc6c81f0f0eb27f28674a4ea8c51a1d0bf937 (patch) | |
tree | 3e76a6bfd7b7209dc20f34d81b5011284f534676 /media-gfx/optipng | |
parent | Version bump to 0.6.1. Wrt bug#435254. (diff) | |
download | gentoo-2-03dcc6c81f0f0eb27f28674a4ea8c51a1d0bf937.tar.gz gentoo-2-03dcc6c81f0f0eb27f28674a4ea8c51a1d0bf937.tar.bz2 gentoo-2-03dcc6c81f0f0eb27f28674a4ea8c51a1d0bf937.zip |
media-gfx/optipng: 0.7.3 (bug #435340)
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/optipng')
-rw-r--r-- | media-gfx/optipng/ChangeLog | 7 | ||||
-rw-r--r-- | media-gfx/optipng/optipng-0.7.3.ebuild | 55 |
2 files changed, 61 insertions, 1 deletions
diff --git a/media-gfx/optipng/ChangeLog b/media-gfx/optipng/ChangeLog index 52f4353a266e..f9cd8ef1e060 100644 --- a/media-gfx/optipng/ChangeLog +++ b/media-gfx/optipng/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-gfx/optipng # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.82 2012/08/25 16:10:10 sping Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.83 2012/09/17 17:55:29 sping Exp $ + +*optipng-0.7.3 (17 Sep 2012) + + 17 Sep 2012; Sebastian Pipping <sping@gentoo.org> +optipng-0.7.3.ebuild: + Bump to 0.7.3 (bug #435340) *optipng-0.7.2 (25 Aug 2012) diff --git a/media-gfx/optipng/optipng-0.7.3.ebuild b/media-gfx/optipng/optipng-0.7.3.ebuild new file mode 100644 index 000000000000..c97c9ce71819 --- /dev/null +++ b/media-gfx/optipng/optipng-0.7.3.ebuild @@ -0,0 +1,55 @@ +# 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.3.ebuild,v 1.1 2012/09/17 17:55:29 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="sys-libs/zlib + 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 + + # next release is almost a complete rewrite, so plug this compilation + # problem in anticipation of the much (c)leaner(?) rewrite + sed -i \ + -e 's/^#ifdef AT_FDCWD/#if defined(AT_FDCWD) \&\& !(defined (__SVR4) \&\& defined (__sun))/' \ + src/optipng/osys.c || 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" +} |