diff options
author | Sebastian Pipping <sping@gentoo.org> | 2016-04-04 23:10:07 +0200 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2016-04-04 23:12:25 +0200 |
commit | db5868a52221a1dfda5156f7f3ea4fd823a1ee9d (patch) | |
tree | 5903754474700eda323cb5b44507c16d2f59042a /media-gfx | |
parent | dev-haskell/binary: keyword ~ia64 (diff) | |
download | gentoo-db5868a52221a1dfda5156f7f3ea4fd823a1ee9d.tar.gz gentoo-db5868a52221a1dfda5156f7f3ea4fd823a1ee9d.tar.bz2 gentoo-db5868a52221a1dfda5156f7f3ea4fd823a1ee9d.zip |
media-gfx/optipng: 0.7.6
Package-Manager: portage-2.2.28
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/optipng/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/optipng/optipng-0.7.6.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/media-gfx/optipng/Manifest b/media-gfx/optipng/Manifest index 2bd43fa7ddcb..6cf7aa0861ff 100644 --- a/media-gfx/optipng/Manifest +++ b/media-gfx/optipng/Manifest @@ -1,3 +1,4 @@ DIST optipng-0.7.3.tar.gz 1613868 SHA256 e07079fbf4cd7f11e756ca042f5285dd7a1f1784bb398fe6bbb63e5324368491 SHA512 2e15f88e9c1d1ed447c9236485bf6a0560678e11ea51e53a967b66ad6205f2cd000d0dccdeb2dd8f4ee3496891da112b37451ddeef80f31700542a69b9749eb4 WHIRLPOOL 87e397962019885ac1e4f9a36f1a707c325b4e8030add9f56bbf11841c2a5eab95ec472737a954bf96fbd8be0e06b08911f8786416758efd02ce3c4479c0fd83 DIST optipng-0.7.4.tar.gz 1613916 SHA256 520b5d5a9405dbdc5c905dd0cff87211e69c4ed2059744037510e613fe8237ff SHA512 53db8f528cded99aded4db85424e38890ebdc26043e0497a575d0f3b81fe575638355dab1ca0d46c24ebbbe8a6657ac8e0c4216eee0d02f41d7365e3e168e40f WHIRLPOOL 9ad5b0d5097c9de72780f22a501438c57606d03b8f522b258d43d148f2239518eaccd1ec4e3c40eb99da571db1debf739f5722405c9988345a0d55debf7fcfd5 DIST optipng-0.7.5.tar.gz 2141943 SHA256 74e54b798b012dff8993fb8d90185ca83f18cfa4935f4a93b0bcfc33c849619d SHA512 6f319965739235387e99244dda5f52533e22b7040301cf680180e383f24361819f66cb3adf1a90923e9509ed08d55bbe442ec363310c385fcf70f551febfbb6f WHIRLPOOL e632f2c018d132280fb73ec80587b1d8e4b8e857663175a3c47933054369cec4bf8a93d34c4627e00513a804fe1500c6ea2c2c62d908f295cab743c2f0e92cbe +DIST optipng-0.7.6.tar.gz 2202237 SHA256 4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80 SHA512 d31d7494c23413d87b601a706cc2faf82923156a818da66e0bfad11741aed065db8f1b0c088d2abd66899ac192408c05f594295ded2684c4549c5f03b140a184 WHIRLPOOL c2708d111d0e57e35658d540a1bb0bbdea8fa35501be359222970e81159a6691db02053a446c250e3dd393f17918cc748de80e9cf19a355dcd5da867716fb359 diff --git a/media-gfx/optipng/optipng-0.7.6.ebuild b/media-gfx/optipng/optipng-0.7.6.ebuild new file mode 100644 index 000000000000..e040a1067a04 --- /dev/null +++ b/media-gfx/optipng/optipng-0.7.6.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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() { + epatch "${FILESDIR}"/${PN}-0.7.5-estonian.patch + + 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} +} |