Gentoo Archives: gentoo-commits

From: "Sebastian Pipping (sping)" <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/optipng: ChangeLog optipng-0.7.5.ebuild
Date: Thu, 29 May 2014 16:15:00
Message-Id: 20140529161456.ECF592004E@flycatcher.gentoo.org
1 sping 14/05/29 16:14:56
2
3 Modified: ChangeLog
4 Added: optipng-0.7.5.ebuild
5 Log:
6 media-gfx/optipng: 0.7.5
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x401A1600)
9
10 Revision Changes Path
11 1.92 media-gfx/optipng/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/optipng/ChangeLog?rev=1.92&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/optipng/ChangeLog?rev=1.92&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/optipng/ChangeLog?r1=1.91&r2=1.92
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v
20 retrieving revision 1.91
21 retrieving revision 1.92
22 diff -u -r1.91 -r1.92
23 --- ChangeLog 9 Mar 2014 04:41:56 -0000 1.91
24 +++ ChangeLog 29 May 2014 16:14:56 -0000 1.92
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-gfx/optipng
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.91 2014/03/09 04:41:56 tristan Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.92 2014/05/29 16:14:56 sping Exp $
30 +
31 +*optipng-0.7.5 (29 May 2014)
32 +
33 + 29 May 2014; Sebastian Pipping <sping@g.o> +optipng-0.7.5.ebuild:
34 + Bump to 0.7.5
35
36 09 Mar 2014; Tristan Heaven <tristan@g.o> optipng-0.7.4.ebuild:
37 Fix building when LD is set, bug #503924
38
39
40
41 1.1 media-gfx/optipng/optipng-0.7.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/optipng/optipng-0.7.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/optipng/optipng-0.7.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: optipng-0.7.5.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.7.5.ebuild,v 1.1 2014/05/29 16:14:56 sping Exp $
51
52 EAPI=4
53
54 inherit eutils toolchain-funcs
55
56 DESCRIPTION="Compress PNG files without affecting image quality"
57 HOMEPAGE="http://optipng.sourceforge.net/"
58 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
59
60 LICENSE="ZLIB"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
63 IUSE=""
64
65 RDEPEND="sys-libs/zlib
66 media-libs/libpng:0"
67 DEPEND="${RDEPEND}
68 sys-apps/findutils"
69
70 src_prepare() {
71 rm -R src/{libpng,zlib} || die
72 find . -type d -name build -exec rm -R {} + || die
73
74 # next release is almost a complete rewrite, so plug this compilation
75 # problem in anticipation of the much (c)leaner(?) rewrite
76 sed -i \
77 -e 's/^#ifdef AT_FDCWD/#if defined(AT_FDCWD) \&\& !(defined (__SVR4) \&\& defined (__sun))/' \
78 src/optipng/osys.c || die
79
80 tc-export CC AR RANLIB
81 export LD=$(tc-getCC)
82 }
83
84 src_configure() {
85 ./configure \
86 -with-system-libpng \
87 -with-system-zlib \
88 || die "configure failed"
89 }
90
91 src_compile() {
92 emake -C src/optipng
93 }
94
95 src_install() {
96 dodoc README.txt doc/*.txt
97 dohtml doc/*.html
98 doman src/${PN}/man/${PN}.1
99
100 dobin src/${PN}/${PN}
101 }