Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/optipng/
Date: Sun, 31 Dec 2017 18:39:05
Message-Id: 1514745533.d9aaca6c5dba4f10b301c1dc9c7bf2eacc5013cc.sping@gentoo
1 commit: d9aaca6c5dba4f10b301c1dc9c7bf2eacc5013cc
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 31 18:36:33 2017 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 31 18:38:53 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9aaca6c
7
8 media-gfx/optipng: 0.7.7
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11
12 media-gfx/optipng/Manifest | 1 +
13 media-gfx/optipng/optipng-0.7.7.ebuild | 60 ++++++++++++++++++++++++++++++++++
14 2 files changed, 61 insertions(+)
15
16 diff --git a/media-gfx/optipng/Manifest b/media-gfx/optipng/Manifest
17 index 46b54ad34d5..d0cdec1451f 100644
18 --- a/media-gfx/optipng/Manifest
19 +++ b/media-gfx/optipng/Manifest
20 @@ -1 +1,2 @@
21 DIST optipng-0.7.6.tar.gz 2202237 BLAKE2B f113027ff12f2fc97bd4dc43b8e62f5af8f86e251b43c0f86ffbd59366b329d1fc2a58103aa349cb18fb0c9d2e5f051517439c02aeb44ee435c6fff0c75efb7a SHA512 d31d7494c23413d87b601a706cc2faf82923156a818da66e0bfad11741aed065db8f1b0c088d2abd66899ac192408c05f594295ded2684c4549c5f03b140a184
22 +DIST optipng-0.7.7.tar.gz 2329555 BLAKE2B af3e1c806522282ccbf9325c0b49f61a30d24b8e2db2dd8ec316a312d0dea595cbb6e8b5b38ef5ea90f1efe14244b81f85f88e11e7334fdd4b91b43b6dae8e7d SHA512 c33b7650143ab39944d2c066e07e10273c37024c5bfe7c00475bfb513af96afa081ff388164845d426d3bce624c0282dee574fa150e963f18d3683d821030280
23
24 diff --git a/media-gfx/optipng/optipng-0.7.7.ebuild b/media-gfx/optipng/optipng-0.7.7.ebuild
25 new file mode 100644
26 index 00000000000..3880a888ddf
27 --- /dev/null
28 +++ b/media-gfx/optipng/optipng-0.7.7.ebuild
29 @@ -0,0 +1,60 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit eutils toolchain-funcs
36 +
37 +DESCRIPTION="Compress PNG files without affecting image quality"
38 +HOMEPAGE="http://optipng.sourceforge.net/"
39 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
40 +
41 +LICENSE="ZLIB"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
44 +IUSE=""
45 +
46 +RDEPEND="sys-libs/zlib
47 + media-libs/libpng:0="
48 +DEPEND="${RDEPEND}
49 + sys-apps/findutils"
50 +
51 +DOCS=( AUTHORS.txt README.txt )
52 +
53 +src_prepare() {
54 + rm -R src/{libpng,zlib} || die
55 + find . -type d -name build -exec rm -R {} + || die
56 +
57 + # next release is almost a complete rewrite, so plug this compilation
58 + # problem in anticipation of the much (c)leaner(?) rewrite
59 + sed -i \
60 + -e 's/^#if defined AT_FDCWD/#if (defined(AT_FDCWD) \&\& !(defined(__SVR4) \&\& defined(__sun)))/' \
61 + src/optipng/ioutil.c || die
62 +
63 + tc-export CC AR RANLIB
64 + export LD=$(tc-getCC)
65 +
66 + eapply_user
67 +}
68 +
69 +src_configure() {
70 + ./configure \
71 + -with-system-libpng \
72 + -with-system-zlib \
73 + || die "configure failed"
74 +}
75 +
76 +src_compile() {
77 + emake -C src/optipng
78 +}
79 +
80 +src_install() {
81 + einstalldocs
82 +
83 + dodoc doc/*.txt
84 + docinto html
85 + dodoc doc/*.html
86 + doman src/${PN}/man/${PN}.1
87 +
88 + dobin src/${PN}/${PN}
89 +}