summaryrefslogtreecommitdiff
blob: 40fcf525b2d7949e451a5148a9d091d79d1bc1dc (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
36
37
38
39
40
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit cvs

ECVS_SERVER="panotools.cvs.sourceforge.net:/cvsroot/panotools"
ECVS_MODULE="clens"
# There is no 0.3.1 branch, we use a date instead
ECVS_CO_OPTS="-D 6/19/06"
ECVS_UP_OPTS="-dP -D 6/19/06"

DESCRIPTION="A command-line version of PTLens"
SRC_URI=""
HOMEPAGE="http://panotools.sourceforge.net/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="media-gfx/ptlens-profiles
	>=media-libs/libpano13-2.8.4"
RDEPEND="${DEPEND}"

PTLENS_PROFILES="/usr/share/ptlens/profiles/profile.txt"

S="${WORKDIR}/${ECVS_MODULE}"

src_compile() {
	./bootstrap || die "bootstrap failed"
	econf || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	echo "CLENS_PROFILE=\"${PTLENS_PROFILES}\"" > 99clens
	doenvd 99clens
}