blob: 0a6b38d6dd4acca4b39328feb321d732b8309849 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/cel-cvs/cel-cvs-0.97.ebuild,v 1.4 2003/07/15 23:58:24 vapier Exp $
inherit cvs
ECVS_SERVER="cvs.cel.sourceforge.net:/cvsroot/cel"
ECVS_MODULE="cel"
ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}"
S=${WORKDIR}/${ECVS_MODULE}
DESCRIPTION="A game entity layer based on Crystal Space"
HOMEPAGE="http://cel.sourceforge.net/"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="x86"
DEPEND="dev-games/crystalspace
>=sys-apps/sed-4
dev-util/jam
!dev-games/cel-cvs"
CEL_PREFIX=/opt/crystal
CS_PREFIX=/opt/crystal
src_compile() {
./autogen.sh || die
env PATH="${CEL_PREFIX}/bin:${PATH}" ./configure \
--prefix=${CEL_PREFIX} --with-cs-prefix=${CEL_PREFIX} || die
jam || die
}
src_install() {
sed -i -e "s:/usr/local/cel:${CEL_PREFIX}:g" cel.cex
# attention don't put a / between ${D} and ${CEL_PREFIX} jam has a bug where
# it fails with 3 following slashes.
jam -sFILEMODE=0640 -sEXEMODE=0750 -sprefix=${D}${CEL_PREFIX} install || die
dobin cel.cex
}
|