blob: dfccd46458cbc33cb65a5136af2ff3f6e5d3449a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/pngcrush/pngcrush-1.6.7.ebuild,v 1.1 2008/07/30 20:07:40 drac Exp $
inherit eutils toolchain-funcs
DESCRIPTION="Portable Network Graphics (PNG) optimizing utility"
HOMEPAGE="http://pmt.sourceforge.net/pngcrush"
SRC_URI="mirror://debian/pool/main/p/${PN}/${PN}_${PV}.orig.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~x86"
IUSE=""
DEPEND=">=media-libs/libpng-1.2.26-r1"
S=${WORKDIR}/${P}-nolib
src_unpack() {
unpack ${A}
cd "${S}"
# Use system libpng, fix various bugs and sanitize Makefile
epatch "${FILESDIR}"/${P}-modified_debian_patchset_1.patch
}
src_compile() {
tc-export CC
emake || die "emake failed."
}
src_install() {
dobin ${PN} || die "dobin failed."
dodoc *.txt
}
|