blob: ed6bb0bd9fdd1c7b6a354a73d71476a77bd9787d (
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
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/freecol-0.5.3-r1.ebuild,v 1.1 2007/01/11 19:17:36 nyhm 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="x86"
IUSE=""
RDEPEND="dev-java/higlayout"
DEPEND="${RDEPEND}
>=virtual/jdk-1.5
dev-java/ant"
RDEPEND="${RDEPEND}
>=virtual/jre-1.5"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}"
rm -rf FreeCol.jar src/classes jars/*
epatch \
"${FILESDIR}"/${P}-build.patch \
"${FILESDIR}"/${P}-home.patch
sed -i "/Class-Path/s:jars/.*$:$(java-pkg_getjars higlayout):" \
src/MANIFEST.MF \
|| die "sed failed"
cd jars
java-pkg_jar-from higlayout
}
src_compile() {
eant
}
src_install () {
insinto "${GAMES_DATADIR}"/${PN}
doins -r data || die "doins failed"
java-pkg_jarinto "${GAMES_DATADIR}"/${PN}
java-pkg_dojar FreeCol.jar
java-pkg_dolauncher ${PN} \
-into "${GAMES_PREFIX}" \
--pwd "${GAMES_DATADIR}"/${PN} \
--java_args -Xmx512M
dodoc README
doicon ${PN}.xpm
make_desktop_entry ${PN} FreeCol ${PN}.xpm
prepgamesdirs
}
|