blob: bf6e0eb47f83b97cd1ea2c6c8a1e933f48bcaea2 (
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
51
52
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/freecol-0.4.0.ebuild,v 1.1 2005/06/24 04:21:32 mr_bones_ Exp $
inherit games
DESCRIPTION="An open source clone of the game Colonization"
HOMEPAGE="http://freecol.sf.net"
SRC_URI="mirror://sourceforge/${PN}/${PN}-${PV}-src.tar.gz"
KEYWORDS="~ppc x86"
SLOT="0"
LICENSE="GPL-2"
IUSE=""
RDEPEND=">=virtual/jre-1.4"
DEPEND=">=virtual/jdk-1.4
>=dev-java/ant-core-1.4.1"
S=${WORKDIR}/${PN}
pkg_setup() {
if [ -z "$JAVA_HOME" ]; then
einfo
einfo "\$JAVA_HOME not set!"
einfo "Please use java-config to configure your JVM and try again."
einfo
die "\$JAVA_HOME not set."
fi
games_pkg_setup
}
src_unpack() {
unpack ${A}
echo "#!/bin/sh" > "${T}/${PN}"
echo "\"\${JAVA_HOME}\"/bin/java -Xmx128M -jar '${GAMES_DATADIR}/${PN}/FreeCol.jar' --freecol-data '${GAMES_DATADIR}/${PN}/data'" >> "${T}/${PN}"
find "${S}/data/" -type f -exec chmod a-x \{\} \;
}
src_compile() {
ant -Dnojars=true -Dnodata=true || die "ant failed"
}
src_install () {
dogamesbin "${T}/${PN}" || die "dogamesbin failed"
insinto "${GAMES_DATADIR}/${PN}"
doins -r FreeCol.jar data/ jars/ || die "doins failed"
dodoc README
prepgamesdirs
}
|