summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-08-14 17:58:58 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-08-14 17:58:58 +0000
commite149c496454914bce72847118cf7fe0d78e85143 (patch)
tree17c5c405d103c37ab6698aa393c447832f8915bc /games-strategy/freecol/freecol-0.7.1.ebuild
parentStable on ppc64; bug #178320 (diff)
downloadgentoo-2-e149c496454914bce72847118cf7fe0d78e85143.tar.gz
gentoo-2-e149c496454914bce72847118cf7fe0d78e85143.tar.bz2
gentoo-2-e149c496454914bce72847118cf7fe0d78e85143.zip
Version bump, bug #188855
(Portage version: 2.1.3.5)
Diffstat (limited to 'games-strategy/freecol/freecol-0.7.1.ebuild')
-rw-r--r--games-strategy/freecol/freecol-0.7.1.ebuild76
1 files changed, 76 insertions, 0 deletions
diff --git a/games-strategy/freecol/freecol-0.7.1.ebuild b/games-strategy/freecol/freecol-0.7.1.ebuild
new file mode 100644
index 000000000000..4b64d38e0e7c
--- /dev/null
+++ b/games-strategy/freecol/freecol-0.7.1.ebuild
@@ -0,0 +1,76 @@
+# 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.7.1.ebuild,v 1.1 2007/08/14 17:58:58 nyhm Exp $
+
+WANT_ANT_TASKS="ant-nodeps"
+
+inherit eutils java-pkg-2 java-ant-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 ~x86"
+IUSE="test"
+
+RDEPEND="dev-java/higlayout"
+DEPEND="${RDEPEND}
+ test? (
+ dev-java/ant-junit
+ dev-java/ant-trax
+ )
+ >=virtual/jdk-1.6"
+RDEPEND="${RDEPEND}
+ >=virtual/jre-1.6"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ games_pkg_setup
+ java-pkg-2_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm -v FreeCol.jar jars/* */*/*.jar || die
+
+ epatch "${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
+}
+
+# Default would be from games
+src_compile() {
+ eant
+}
+
+src_test() {
+ java-pkg_jar-from --into test/lib junit
+ ANT_TASKS="ant-junit ant-trax ant-nodeps" eant testall
+}
+
+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
+}