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.6.5.ebuild
Date: Tue, 02 Aug 2011 15:10:56
Message-Id: 20110802151047.7B5912004C@flycatcher.gentoo.org
1 sping 11/08/02 15:10:47
2
3 Modified: ChangeLog
4 Added: optipng-0.6.5.ebuild
5 Log:
6 media-gfx/optipng: Bump to 0.6.5
7
8 (Portage version: 2.1.10.9/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.63 media-gfx/optipng/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/optipng/ChangeLog?rev=1.63&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/optipng/ChangeLog?rev=1.63&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/optipng/ChangeLog?r1=1.62&r2=1.63
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v
20 retrieving revision 1.62
21 retrieving revision 1.63
22 diff -u -r1.62 -r1.63
23 --- ChangeLog 30 Jan 2011 09:23:07 -0000 1.62
24 +++ ChangeLog 2 Aug 2011 15:10:47 -0000 1.63
25 @@ -1,6 +1,13 @@
26 # ChangeLog for media-gfx/optipng
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.62 2011/01/30 09:23:07 xarthisius Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/ChangeLog,v 1.63 2011/08/02 15:10:47 sping Exp $
30 +
31 +*optipng-0.6.5 (02 Aug 2011)
32 +
33 + 02 Aug 2011; Sebastian Pipping <sping@g.o> +optipng-0.6.5.ebuild,
34 + +files/optipng-0.6.5-libpng-1.4.8.patch:
35 + Bump to 0.6.5, fix compilation for libpng 1.4.8, deny compilation against
36 + libpng 1.5 from ebuild to match upstream's changes in configure script
37
38 30 Jan 2011; Kacper Kowalik <xarthisius@g.o> optipng-0.6.4.ebuild:
39 Add ~ppc64 wrt #346383
40
41
42
43 1.1 media-gfx/optipng/optipng-0.6.5.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/optipng/optipng-0.6.5.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/optipng/optipng-0.6.5.ebuild?rev=1.1&content-type=text/plain
47
48 Index: optipng-0.6.5.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.6.5.ebuild,v 1.1 2011/08/02 15:10:47 sping Exp $
53
54 EAPI=2
55 inherit eutils toolchain-funcs
56
57 DESCRIPTION="Compress PNG files without affecting image quality"
58 HOMEPAGE="http://optipng.sourceforge.net/"
59 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
60
61 LICENSE="ZLIB"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
64 IUSE=""
65
66 DEPEND="<media-libs/libpng-1.5"
67
68 src_prepare() {
69 sed -i \
70 -e '/^C/s: -O2.*: $(GENTOO_CFLAGS) -Wall:' \
71 -e '/^LD/s: -s$: $(GENTOO_LDFLAGS):' \
72 src/scripts/gcc.mak.in \
73 lib/pngxtern/scripts/gcc.mak.in \
74 || die "sed failed"
75 cp lib/libpng/pngpriv.h src/ || die
76 rm -rf lib/{libpng,zlib}
77
78 epatch "${FILESDIR}"/${P}-libpng-1.4.8.patch
79 }
80
81 src_configure() {
82 ./configure \
83 -with-system-libpng \
84 -with-system-zlib \
85 || die "configure failed"
86 }
87
88 src_compile() {
89 emake \
90 -C src \
91 -f scripts/gcc.mak \
92 CC="$(tc-getCC)" \
93 GENTOO_CFLAGS="${CFLAGS}" \
94 GENTOO_LDFLAGS="${LDFLAGS}" \
95 || die "emake failed"
96 }
97
98 src_install() {
99 dobin src/optipng || die "dobin failed"
100 dodoc README.txt doc/*.txt || die
101 dohtml doc/*.html || die
102 doman man/optipng.1 || die
103 }