summaryrefslogtreecommitdiff
blob: 5cf441cceae14b787a4346b73280dcfdc5d0db16 (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
41
42
43
44
45
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/fracplanet/fracplanet-0.3.3.ebuild,v 1.2 2008/06/19 11:21:35 drac Exp $

EAPI=1

inherit eutils qt3

DESCRIPTION="Interactive tool for creating fractal planets with terrains, oceans, rivers, lakes and icecaps."
HOMEPAGE="http://www.bottlenose.demon.co.uk/share/fracplanet"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

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

RDEPEND="x11-libs/qt:3
	dev-libs/boost
	virtual/opengl
	virtual/glu"
# We use xsltproc only at build-time.
DEPEND="${RDEPEND}
	dev-libs/libxslt"

S=${WORKDIR}/${PN}

pkg_setup() {
	if ! built_with_use x11-libs/qt:3 opengl; then
		die "Re-emerge x11-libs/qt with USE opengl."
	fi
}

src_compile() {
	export PATH="${QTDIR}/bin:${PATH}"
	./configure || die "./configure failed."
	emake || die "emake failed."
}

src_install() {
	dobin ${PN} || die "dobin failed."
	doman man/man1/*.1
	dodoc BUGS CHANGES README THANKS TODO
	dohtml *.{css,htm}
}