summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-03-09 10:27:00 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-03-09 10:27:00 +0000
commit0e084cd49c8b0719a9b53f1abda8c99d979c61df (patch)
tree08e50bb45e610eeaad6e5f14a78725df9d945d69
parentinherit eutils for epatch (diff)
downloadhistorical-0e084cd49c8b0719a9b53f1abda8c99d979c61df.tar.gz
historical-0e084cd49c8b0719a9b53f1abda8c99d979c61df.tar.bz2
historical-0e084cd49c8b0719a9b53f1abda8c99d979c61df.zip
initial commit; ebuild submitted by Will McQueen via bug #43563
-rw-r--r--games-strategy/triplea/ChangeLog10
-rw-r--r--games-strategy/triplea/Manifest4
-rw-r--r--games-strategy/triplea/files/digest-triplea-0.3.31
-rw-r--r--games-strategy/triplea/metadata.xml5
-rw-r--r--games-strategy/triplea/triplea-0.3.3.ebuild77
5 files changed, 97 insertions, 0 deletions
diff --git a/games-strategy/triplea/ChangeLog b/games-strategy/triplea/ChangeLog
new file mode 100644
index 000000000000..d7459e25d27c
--- /dev/null
+++ b/games-strategy/triplea/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-strategy/triplea
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/triplea/ChangeLog,v 1.1 2004/03/09 10:27:00 mr_bones_ Exp $
+
+*triplea-0.3.3 (09 Mar 2004)
+
+ 09 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> metadata.xml,
+ triplea-0.3.3.ebuild:
+ initial commit; ebuild submitted by Will McQueen via bug #43563
+
diff --git a/games-strategy/triplea/Manifest b/games-strategy/triplea/Manifest
new file mode 100644
index 000000000000..24d64a392fac
--- /dev/null
+++ b/games-strategy/triplea/Manifest
@@ -0,0 +1,4 @@
+MD5 59f698585ecf02a8b0ed1e4602c08065 triplea-0.3.3.ebuild 2021
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+MD5 9fceaed28995b7a194472285d230d350 ChangeLog 419
+MD5 1d829a95d4fbf750dfea9a0743082592 files/digest-triplea-0.3.3 70
diff --git a/games-strategy/triplea/files/digest-triplea-0.3.3 b/games-strategy/triplea/files/digest-triplea-0.3.3
new file mode 100644
index 000000000000..e1025b3114a1
--- /dev/null
+++ b/games-strategy/triplea/files/digest-triplea-0.3.3
@@ -0,0 +1 @@
+MD5 f0a193f58c5f241720cc23706192d7dc triplea_source_0_3_3.zip 5905932
diff --git a/games-strategy/triplea/metadata.xml b/games-strategy/triplea/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-strategy/triplea/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-strategy/triplea/triplea-0.3.3.ebuild b/games-strategy/triplea/triplea-0.3.3.ebuild
new file mode 100644
index 000000000000..5a3b9f033cb3
--- /dev/null
+++ b/games-strategy/triplea/triplea-0.3.3.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/triplea/triplea-0.3.3.ebuild,v 1.1 2004/03/09 10:27:00 mr_bones_ Exp $
+
+inherit games
+
+MY_PV=${PV//\./_}
+S="${WORKDIR}/${PN}_${MY_PV}"
+
+DESCRIPTION="An open source clone of the popular Axis and Allies boardgame"
+HOMEPAGE="http://triplea.sf.net"
+SRC_URI="mirror://sourceforge/${PN}/${PN}_source_${MY_PV}.zip"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+SLOT="0"
+IUSE="jikes"
+
+RDEPEND="|| (
+ >=virtual/jdk-1.4
+ >=virtual/jre-1.4
+ )"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4
+ app-arch/unzip
+ >=dev-java/ant-1.4.1
+ dev-java/junit
+ jikes? ( >=dev-java/jikes-1.17 )"
+
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # Change saved games directory to ~/.triplea/savedGames
+ sed -i \
+ -e "/DEFAULT_DIRECTORY =/ s:GameRunner.getRootFolder():System.getProperties().get(\"user.home\") + \"/.triplea\":" \
+ -e 's/DEFAULT_DIRECTORY.mkdir()/DEFAULT_DIRECTORY.mkdirs()/' \
+ src/games/strategy/engine/framework/ui/SaveGameFileChooser.java \
+ || die "sed SaveGameFileChooser.java failed"
+}
+
+src_compile() {
+ local antflags=
+
+ 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
+
+ if [ `use jikes` ] ; then
+ antflags="-Dbuild.compiler=jikes"
+ fi
+
+ ant ${antflags} || die "compile problem"
+ jar cf lib/${P}.jar -C classes . || die "jar problem"
+}
+
+src_install () {
+ # The sourcecode currently assumes the game is being run from a directory
+ # one level below the installation root.
+ cat >"${T}/${PN}" <<-EOF
+ #!/bin/sh
+
+ cd "${GAMES_DATADIR}/${PN}/lib"
+ java -mx96M -cp \\
+ ../data:../lib/plastic-1.2.0.jar:../lib/${P}.jar \\
+ games.strategy.engine.framework.GameRunner
+ EOF
+ dogamesbin "${T}/${PN}" || die "dogamesbin failed"
+ dodir "${GAMES_DATADIR}/${PN}"
+ cp -R data/ games/ lib/ "${D}${GAMES_DATADIR}/${PN}" || die "cp failed"
+ prepgamesdirs
+}