blob: ebd54233b4adea5c74abb9fc984e090ca87a0979 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/freecol-0.5.1.ebuild,v 1.5 2006/10/24 22:03:00 mr_bones_ Exp $
inherit eutils java-ant-2 java-pkg-2 games
DESCRIPTION="An open source clone of the game Colonization"
HOMEPAGE="http://www.freecol.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND=">=virtual/jre-1.4"
DEPEND=">=virtual/jdk-1.4
dev-java/ant"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}"
rm -f FreeCol.jar
sed -i \
-e '/saveDirectory/s/freecol/.freecol/' \
src/net/sf/freecol/FreeCol.java \
|| die "sed failed"
epatch "${FILESDIR}"/${P}-build.patch
}
src_compile() {
eant || die
}
src_install () {
insinto "${GAMES_DATADIR}/${PN}"
doins -r FreeCol.jar data/ jars/ || die "doins failed"
games_make_wrapper ${PN} "java -Xmx512M -jar FreeCol.jar" \
"${GAMES_DATADIR}"/${PN}
dodoc README
doicon ${PN}.xpm
make_desktop_entry ${PN} FreeCol ${PN}.xpm
prepgamesdirs
}
|