blob: b4d8ebe5b33950a762fd83cf2261d1427330df11 (
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
46
47
48
49
50
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/cel/cel-1.0.1.ebuild,v 1.2 2007/09/06 07:30:59 opfer Exp $
inherit eutils
MY_P=${PN}-src-${PV}
DESCRIPTION="A game entity layer based on Crystal Space"
HOMEPAGE="http://cel.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE="python"
RDEPEND=">=dev-games/crystalspace-1.0
dev-games/hawknl"
DEPEND="${RDEPEND}
dev-util/jam"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}"-amd64.patch
}
src_compile() {
econf \
--disable-separate-debug-info \
--disable-cstest \
$(use_with python) \
|| die
jam -q || die "jam failed"
}
src_install() {
jam -q -s DESTDIR="${D}" install || die "jam install failed"
# Fill cache directory for the examples
cp "${D}"/usr/share/${PN}/data/{basic_,}world
cslight -video=null "${D}"/usr/share/${PN}/data
cp "${D}"/usr/share/${PN}/data/{walktut_,}world
cslight -video=null "${D}"/usr/share/${PN}/data
rm "${D}"/usr/share/${PN}/data/world
dodoc docs/history*.txt docs/todo.txt
}
|