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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Oct 21 22:03:00 2011 UTC (2 years, 8 months ago) by sping
Branch: MAIN
Changes since 1.1: +12 -9 lines
media-gfx/imageworsener: Bring back support for webp images (bug #387761)

(Portage version: 2.1.10.27/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.5.ebuild,v 1.1 2011/10/20 00:47:21 sping Exp $
4
5 EAPI="2"
6
7 CMAKE_IN_SOURCE_BUILD=1
8 CMAKE_VERBOSE=1
9 inherit eutils cmake-utils
10
11 MY_P="${PN}-src-${PV}"
12 MY_PN="imagew"
13
14 DESCRIPTION="Utility for image scaling and processing"
15 HOMEPAGE="http://entropymine.com/imageworsener/"
16 SRC_URI="http://entropymine.com/${PN}/${MY_P}.tar.gz"
17
18 LICENSE="GPL-3"
19 SLOT="0"
20 KEYWORDS="~amd64 ~x86"
21 IUSE="test webp"
22
23 WEBP_DEPEND='>=media-libs/libwebp-0.1.3'
24 DEPEND="media-libs/libpng:0
25 virtual/jpeg
26 webp? ( ${WEBP_DEPEND} )
27 test? ( ${WEBP_DEPEND} )"
28 RDEPEND="${DEPEND}"
29
30 src_prepare() {
31 epatch "${FILESDIR}"/${P}-webp.patch
32 }
33
34 src_configure() {
35 local webp=0
36 use webp && webp=1
37 use test && webp=1
38 mycmakeargs=( -DIW_SUPPORT_WEBP=${webp} )
39
40 cmake-utils_src_configure
41 }
42
43 src_install() {
44 dobin ${MY_PN} || die "dobin failed."
45 dodoc readme.txt technical.txt changelog.txt || die
46 }
47
48 src_test() {
49 cd "${S}/tests" || die
50 ./runtest "${S}/${MY_PN}"
51 }

  ViewVC Help
Powered by ViewVC 1.1.20