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
commit5c78df99f3ded3edf264c3b6c5972b949374d8fc (patch)
treed7ebe990dd519fd013aa2941f6b28b50d0255a8b /games-strategy
parent~alpha (diff)
downloadhistorical-5c78df99f3ded3edf264c3b6c5972b949374d8fc.tar.gz
historical-5c78df99f3ded3edf264c3b6c5972b949374d8fc.tar.bz2
historical-5c78df99f3ded3edf264c3b6c5972b949374d8fc.zip
old
Package-Manager: portage-2.0.53
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/triplea/Manifest9
-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
4 files changed, 3 insertions, 174 deletions
diff --git a/games-strategy/triplea/Manifest b/games-strategy/triplea/Manifest
index d76a6e05416c..aa38a87798c3 100644
--- a/games-strategy/triplea/Manifest
+++ b/games-strategy/triplea/Manifest
@@ -1,10 +1,7 @@
MD5 bbe91eb251415da4975f5c2be1bd86a0 ChangeLog 2753
-MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
-MD5 d43df205b3fd3057cb8b2919db6171e7 triplea-0.4.8.ebuild 1978
-MD5 02b0891d8f006d387fc71f6acb03adea triplea-0.5.1.1.ebuild 2126
-MD5 2ec1b9180e5b6b2aaeccda9d04f8ba29 triplea-0.6.0.1.ebuild 1874
MD5 b609ff3eb027151169803aa25b5edd75 files/digest-triplea-0.4.8 70
-MD5 9a6bab7f4d8f6d017eb9fd91481706d1 files/digest-triplea-0.5.1.1 72
-MD5 7ffbd6e44e385dd4730e14206aae6cd8 files/triplea-0.5.1.1.patch 3254
MD5 e24d20d31aa44732ab64d3f599dd253f files/digest-triplea-0.6.0.1 72
MD5 c8d37e2b98977adc8b30d8ff6249486f files/triplea-0.6.0.1-gentoo.patch 1956
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+MD5 d43df205b3fd3057cb8b2919db6171e7 triplea-0.4.8.ebuild 1978
+MD5 2ec1b9180e5b6b2aaeccda9d04f8ba29 triplea-0.6.0.1.ebuild 1874
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
-}