summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2005-12-28 05:07:56 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2005-12-28 05:07:56 +0000
commit829912baafd0227f227d1b33f1684d67bc3197c8 (patch)
tree5d019a5344ee71b9d98d8c75b4e1f358b268d2d8 /games-strategy/triplea
parent~alpha (diff)
downloadgentoo-2-829912baafd0227f227d1b33f1684d67bc3197c8.tar.gz
gentoo-2-829912baafd0227f227d1b33f1684d67bc3197c8.tar.bz2
gentoo-2-829912baafd0227f227d1b33f1684d67bc3197c8.zip
old
(Portage version: 2.0.53)
Diffstat (limited to 'games-strategy/triplea')
-rw-r--r--games-strategy/triplea/files/digest-triplea-0.5.1.11
-rw-r--r--games-strategy/triplea/files/triplea-0.5.1.1.patch79
-rw-r--r--games-strategy/triplea/triplea-0.5.1.1.ebuild88
3 files changed, 0 insertions, 168 deletions
diff --git a/games-strategy/triplea/files/digest-triplea-0.5.1.1 b/games-strategy/triplea/files/digest-triplea-0.5.1.1
deleted file mode 100644
index b0751e360855..000000000000
--- a/games-strategy/triplea/files/digest-triplea-0.5.1.1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 2d0c227f1b6656b8a7982e036dad9753 triplea_source_0_5_1_1.zip 6903301
diff --git a/games-strategy/triplea/files/triplea-0.5.1.1.patch b/games-strategy/triplea/files/triplea-0.5.1.1.patch
deleted file mode 100644
index e2763e4b187a..000000000000
--- a/games-strategy/triplea/files/triplea-0.5.1.1.patch
+++ /dev/null
@@ -1,79 +0,0 @@
---- src/games/strategy/engine/framework/GameRunner.java 2004-10-11 23:21:36.000000000 +0200
-+++ src/games/strategy/engine/framework/GameRunner.java 2004-12-17 14:03:11.741188160 +0100
-@@ -142,9 +142,11 @@
- */
- public static File getRootFolder()
- {
-- //TODO this is a bit hokey, we assume that we are running
-- //from the bin directory.
-- return new File("..");
-+ String rootFolder = System.getProperty("triplea.root");
-+ if (rootFolder != null)
-+ return new File(rootFolder);
-+ else
-+ return new File("..");
- }
-
-
---- src/games/strategy/engine/data/GameParser.java 2004-12-17 15:49:52.083188280 +0100
-+++ src/games/strategy/engine/data/GameParser.java 2004-12-17 15:49:58.714180216 +0100
-@@ -107,7 +107,7 @@
- factory.setValidating(true);
-
- //get the dtd location
-- URL url = GameParser.class.getResource("../xml/");
-+ URL url = GameParser.class.getResource("/games/strategy/engine/xml/");
- String system = url.toExternalForm();
-
- DocumentBuilder builder = factory.newDocumentBuilder();
---- build.xml 2004-12-17 13:18:51.315634320 +0100
-+++ build.xml 2004-12-17 13:25:03.583041072 +0100
-@@ -7,7 +7,9 @@
-
- <path id="full.path">
- <pathelement path="${junit.jar}"/>
-- <pathelement path="lib\plastic-1.2.0.jar"/>
-+ <fileset dir="lib">
-+ <include name="**/*.jar"/>
-+ </fileset>
- <pathelement path="${classpath}"/>
- <pathelement path="classes/"/>
- </path>
-@@ -58,6 +60,26 @@
- <target name="compileClean" depends="clean,compile" description="Clean then compile"/>
-
-
-+ <!-- jar -->
-+ <target name="jar" depends="init,compile" description="create a jar file">
-+ <jar destfile="triplea.jar">
-+ <fileset dir=".">
-+ <include name="triplea.properties"/>
-+ </fileset>
-+ <fileset dir="classes/">
-+ <include name="**/*.class"/>
-+ <exclude name="**/*Test.class"/> <!-- dont put Test classes in the main distribution -->
-+ <include name="**/*.dtd"/>
-+ <include name="**/*.gif"/>
-+ <include name="**/*.png"/>
-+ <include name="**/*.txt"/>
-+ <include name="**/*.wav"/>
-+ </fileset>
-+
-+ </jar>
-+ </target>
-+
-+
- <!-- zip -->
- <target name="zip" depends="init,compile" description="create a zip file for end users">
- <mkdir dir="release" />
---- src/games/strategy/triplea/ui/TerritoryData.java 2004-12-17 16:04:50.570597432 +0100
-+++ src/games/strategy/triplea/ui/TerritoryData.java 2004-12-17 16:05:14.404974056 +0100
-@@ -84,7 +84,7 @@
- {
- try
- {
-- String prefix = "../image/images/maps/"+mapDir+"/";
-+ String prefix = "/games/strategy/triplea/image/images/maps/"+mapDir+"/";
-
- m_place = PointFileReaderWriter.readOneToMany(this.getClass().getResourceAsStream(prefix+PLACEMENT_FILE));
- m_polys = PointFileReaderWriter.readOneToManyPolygons(this.getClass().getResourceAsStream(prefix+POLYGON_FILE));
diff --git a/games-strategy/triplea/triplea-0.5.1.1.ebuild b/games-strategy/triplea/triplea-0.5.1.1.ebuild
deleted file mode 100644
index 4b1b8dbb97a6..000000000000
--- a/games-strategy/triplea/triplea-0.5.1.1.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/triplea/triplea-0.5.1.1.ebuild,v 1.2 2005/08/23 20:07:51 wolf31o2 Exp $
-
-inherit eutils java-utils java-pkg games
-
-MY_PV=${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="~amd64 ~ppc ~x86"
-SLOT="0"
-IUSE="jikes"
-
-RDEPEND="|| (
- >=virtual/jdk-1.4
- >=virtual/jre-1.4 )"
-DEPEND="${RDEPEND}
- app-arch/unzip
- >=dev-java/ant-core-1.4.1
- >=dev-java/jgoodies-looks-bin-1.2.0
- dev-java/junit
- jikes? ( >=dev-java/jikes-1.17 )"
-
-S="${WORKDIR}/${PN}_${MY_PV}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${P}.patch"
-
- cd lib/
- rm -f *.jar
- java-pkg_jar-from jgoodies-looks-bin
- cd ..
-
-
- cat > "${T}/${PN}" <<-EOF
- #!/bin/bash
-
- cd "${GAMES_DATADIR}/${PN}"
- java -Dtriplea.root="${GAMES_DATADIR}/${PN}" -cp \\
- triplea.jar:\$(java-config -p jgoodies-looks-bin) \\
- games.strategy.engine.framework.GameRunner
- EOF
-
- cat > "${T}/${PN}_ai" <<-EOF
- #!/bin/bash
-
- cd "${GAMES_DATADIR}/${PN}"
- java -Dtriplea.ai=true -Dtriplea.root="${GAMES_DATADIR}/${PN}" -cp \\
- triplea.jar:\$(java-config -p jgoodies-looks-bin) \\
- games.strategy.engine.framework.GameRunner
- EOF
-
- # Repair bad path in .ant.properties (bug #47437)
- sed -i \
- -e "/^junit.jar/s:=.*:=$(java-config -p junit):" \
- .ant.properties \
- || die "sed .ant.properties failed"
-
- # The default savedGames directory is in the install root. This
- # sets it to use the users home directory.
- echo "triplea.saveGamesInHomeDir=true" > triplea.properties
-}
-
-src_compile() {
- local antflags="jar"
-
- if use jikes ; then
- antflags="${antflags} -Dbuild.compiler=jikes"
- fi
-
- ant ${antflags} || die "compile problem"
-}
-
-src_install () {
- dogamesbin \
- "${T}/${PN}" \
- "${T}/${PN}_ai" \
- || die "dogamesbin failed"
- dodir "${GAMES_DATADIR}/${PN}"
- cp -R games/ triplea.jar "${D}${GAMES_DATADIR}/${PN}" || die "cp failed"
- prepgamesdirs
-}