diff options
author | Sebastian Pipping <sping@gentoo.org> | 2014-05-29 16:14:56 +0000 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2014-05-29 16:14:56 +0000 |
commit | 4ca7a4dc81fb62351932be80f995611ac056a3f8 (patch) | |
tree | e71922731aff451bde3c46fa63aee75527c5a395 /media-gfx/optipng | |
parent | Relaxed hard dependency on exactly same version of sci-physics/geant (diff) | |
download | gentoo-2-4ca7a4dc81fb62351932be80f995611ac056a3f8.tar.gz gentoo-2-4ca7a4dc81fb62351932be80f995611ac056a3f8.tar.bz2 gentoo-2-4ca7a4dc81fb62351932be80f995611ac056a3f8.zip |
media-gfx/optipng: 0.7.5
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x401A1600)
Diffstat (limited to 'media-gfx/optipng')
-rw-r--r-- | media-gfx/optipng/ChangeLog | 7 | ||||
-rw-r--r-- | media-gfx/optipng/optipng-0.7.5.ebuild | 54 |
2 files changed, 60 insertions, 1 deletions
diff --git a/media-gfx/optipng/ChangeLog b/media-gfx/optipng/ChangeLog index 69e78feca19f..dedd58345f07 100644 --- a/media-gfx/optipng/ChangeLog +++ b/media-gfx/optipng/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-gfx/optipng # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.91 2014/03/09 04:41:56 tristan Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.92 2014/05/29 16:14:56 sping Exp $ + +*optipng-0.7.5 (29 May 2014) + + 29 May 2014; Sebastian Pipping <sping@gentoo.org> +optipng-0.7.5.ebuild: + Bump to 0.7.5 09 Mar 2014; Tristan Heaven <tristan@gentoo.org> optipng-0.7.4.ebuild: Fix building when LD is set, bug #503924 diff --git a/media-gfx/optipng/optipng-0.7.5.ebuild b/media-gfx/optipng/optipng-0.7.5.ebuild new file mode 100644 index 000000000000..ffbc9002dbc2 --- /dev/null +++ b/media-gfx/optipng/optipng-0.7.5.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.7.5.ebuild,v 1.1 2014/05/29 16:14:56 sping Exp $ + +EAPI=4 + +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 ~arm ~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 + + tc-export CC AR RANLIB + export LD=$(tc-getCC) +} + +src_configure() { + ./configure \ + -with-system-libpng \ + -with-system-zlib \ + || die "configure failed" +} + +src_compile() { + emake -C src/optipng +} + +src_install() { + dodoc README.txt doc/*.txt + dohtml doc/*.html + doman src/${PN}/man/${PN}.1 + + dobin src/${PN}/${PN} +} |