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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jan 1 12:05:47 2012 UTC (2 years, 7 months ago) by sping
Branch: MAIN
media-gfx/imageworsener: 0.9.6

(Portage version: 2.1.10.43/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.5.ebuild,v 1.2 2011/10/21 22:03:00 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}"/${PN}-0.9.5-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