/[gentoo-x86]/media-gfx/imageworsener/imageworsener-0.9.8.ebuild
Gentoo

Contents of /media-gfx/imageworsener/imageworsener-0.9.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Mar 15 20:31:51 2012 UTC (2 years, 6 months ago) by sping
Branch: MAIN
Changes since 1.1: +7 -2 lines
media-gfx/imageworsener: Fix underlinking (bug #408303)

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/imageworsener/imageworsener-0.9.8.ebuild,v 1.1 2012/02/26 17:27:18 sping Exp $
4
5 EAPI="4"
6
7 inherit eutils autotools
8
9 MY_P="${PN}-src-${PV}"
10 MY_PN="imagew"
11
12 DESCRIPTION="Utility for image scaling and processing"
13 HOMEPAGE="http://entropymine.com/imageworsener/"
14 SRC_URI="http://entropymine.com/${PN}/${MY_P}.tar.gz"
15
16 LICENSE="GPL-3"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="jpeg png test webp zlib"
20
21 DEPEND="png? ( media-libs/libpng:0 )
22 jpeg? ( virtual/jpeg )
23 webp? ( >=media-libs/libwebp-0.1.3 )
24 zlib? ( sys-libs/zlib )"
25 RDEPEND="${DEPEND}"
26
27 REQUIRED_USE="test? ( jpeg png webp zlib )"
28
29 src_prepare() {
30 epatch "${FILESDIR}"/${P}-libm.patch
31 eautoreconf
32 }
33
34 src_configure() {
35 local switch=
36 use test && switch=test
37
38 econf \
39 $(use_with ${switch} jpeg) \
40 $(use_with ${switch} png) \
41 $(use_with ${switch} webp) \
42 $(use_with ${switch} zlib) \
43 || die
44 }
45
46 src_install() {
47 default
48 dodoc readme.txt technical.txt changelog.txt || die
49
50 # Remove dummy files pointing to others
51 rm "${D}"/usr/share/doc/${PF}/{ChangeLog,README} || die
52 }
53
54 src_test() {
55 cd "${S}/tests" || die
56 ./runtest "${S}/${MY_PN}"
57 }

  ViewVC Help
Powered by ViewVC 1.1.20