diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2005-07-14 07:16:27 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2005-07-14 07:16:27 +0000 |
commit | 49167fb6c4428305b5de56d85e9cdfdd96897a0f (patch) | |
tree | bfcad35a3d1c1d9fe6695fa04f0d623b188bbf96 /games-strategy/triplea | |
parent | Version bump. (diff) | |
download | gentoo-2-49167fb6c4428305b5de56d85e9cdfdd96897a0f.tar.gz gentoo-2-49167fb6c4428305b5de56d85e9cdfdd96897a0f.tar.bz2 gentoo-2-49167fb6c4428305b5de56d85e9cdfdd96897a0f.zip |
version bump - ebuild supplied by Thomas Matthijs via bug #96647
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'games-strategy/triplea')
-rw-r--r-- | games-strategy/triplea/ChangeLog | 8 | ||||
-rw-r--r-- | games-strategy/triplea/Manifest | 11 | ||||
-rw-r--r-- | games-strategy/triplea/files/digest-triplea-0.6.0.1 | 1 | ||||
-rw-r--r-- | games-strategy/triplea/files/triplea-0.6.0.1-gentoo.patch | 54 | ||||
-rw-r--r-- | games-strategy/triplea/triplea-0.6.0.1.ebuild | 77 |
5 files changed, 146 insertions, 5 deletions
diff --git a/games-strategy/triplea/ChangeLog b/games-strategy/triplea/ChangeLog index 04369ebbf867..95f10eba4f4a 100644 --- a/games-strategy/triplea/ChangeLog +++ b/games-strategy/triplea/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-strategy/triplea # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/triplea/ChangeLog,v 1.15 2005/06/05 11:30:25 hansmi Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/triplea/ChangeLog,v 1.16 2005/07/14 07:16:27 mr_bones_ Exp $ + +*triplea-0.6.0.1 (14 Jul 2005) + + 14 Jul 2005; Michael Sterrett <mr_bones_@gentoo.org> + +files/triplea-0.6.0.1-gentoo.patch, +triplea-0.6.0.1.ebuild: + version bump - ebuild supplied by Thomas Matthijs via bug #96647 05 Jun 2005; Michael Hanselmann <hansmi@gentoo.org> triplea-0.4.8.ebuild: Stable on ppc. diff --git a/games-strategy/triplea/Manifest b/games-strategy/triplea/Manifest index b82ead8b2a9d..51d84c3ef1d0 100644 --- a/games-strategy/triplea/Manifest +++ b/games-strategy/triplea/Manifest @@ -1,7 +1,10 @@ -MD5 d43df205b3fd3057cb8b2919db6171e7 triplea-0.4.8.ebuild 1978 +MD5 6fe482fc7cfcc44ebfacd997cc78976d triplea-0.5.1.1.ebuild 2120 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 +MD5 224400f5f10c363e8f183cb9f7e3068b triplea-0.6.0.1.ebuild 2042 +MD5 d43df205b3fd3057cb8b2919db6171e7 triplea-0.4.8.ebuild 1978 MD5 da91c7b9c8aeda025a5844086d4c54ef ChangeLog 2076 -MD5 6fe482fc7cfcc44ebfacd997cc78976d triplea-0.5.1.1.ebuild 2120 -MD5 b609ff3eb027151169803aa25b5edd75 files/digest-triplea-0.4.8 70 -MD5 9a6bab7f4d8f6d017eb9fd91481706d1 files/digest-triplea-0.5.1.1 72 +MD5 c8d37e2b98977adc8b30d8ff6249486f files/triplea-0.6.0.1-gentoo.patch 1956 MD5 7ffbd6e44e385dd4730e14206aae6cd8 files/triplea-0.5.1.1.patch 3254 +MD5 9a6bab7f4d8f6d017eb9fd91481706d1 files/digest-triplea-0.5.1.1 72 +MD5 b609ff3eb027151169803aa25b5edd75 files/digest-triplea-0.4.8 70 +MD5 e24d20d31aa44732ab64d3f599dd253f files/digest-triplea-0.6.0.1 72 diff --git a/games-strategy/triplea/files/digest-triplea-0.6.0.1 b/games-strategy/triplea/files/digest-triplea-0.6.0.1 new file mode 100644 index 000000000000..0e9665046658 --- /dev/null +++ b/games-strategy/triplea/files/digest-triplea-0.6.0.1 @@ -0,0 +1 @@ +MD5 30137f64b8264c3820e90ce78e624f30 triplea_source_0_6_0_1.zip 9365353 diff --git a/games-strategy/triplea/files/triplea-0.6.0.1-gentoo.patch b/games-strategy/triplea/files/triplea-0.6.0.1-gentoo.patch new file mode 100644 index 000000000000..e8ca880e2262 --- /dev/null +++ b/games-strategy/triplea/files/triplea-0.6.0.1-gentoo.patch @@ -0,0 +1,54 @@ +--- build.xml.orig 2005-06-29 22:01:47.000000000 +0200 ++++ build.xml 2005-06-29 22:28:54.000000000 +0200 +@@ -6,9 +6,9 @@ + <property file=".ant.properties"/> + + <path id="full.path"> +- <pathelement path="lib\junit.jar"/> +- <pathelement path="lib\looks-1.3.1.jar"/> +- <pathelement path="lib\backport-util-concurrent.jar"/> ++ <fileset dir="lib"> ++ <include name="**/*.jar"/> ++ </fileset> + <pathelement path="${classpath}"/> + <pathelement path="classes/"/> + </path> +@@ -59,6 +59,25 @@ + <!-- compileClean --> + <target name="compileClean" depends="clean,compile" description="Clean then compile"/> + ++ <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="**/*.jpg"/> ++ <include name="**/*.jpeg"/> ++ <include name="**/*.txt"/> ++ <include name="**/*.wav"/> ++ <include name="**/*.properties"/> ++ </fileset> ++ </jar> ++ </target> + + <!-- zip --> + <target name="zip" depends="init,compile" description="create a zip file for end users"> +--- src/games/strategy/engine/framework/GameRunner.java 2005-04-15 11:26:04.000000000 +0200 ++++ src/games/strategy/engine/framework/GameRunner.java 2005-06-29 22:18:25.000000000 +0200 +@@ -153,6 +153,10 @@ + */ + public static File getRootFolder() + { ++ String rootFolder = System.getProperty("triplea.root"); ++ if (rootFolder != null) ++ return new File(rootFolder); ++ + //this will fail if we are in a jar + //what we are doing is looking up the url to GameRunner.class + //we can find it because we are it diff --git a/games-strategy/triplea/triplea-0.6.0.1.ebuild b/games-strategy/triplea/triplea-0.6.0.1.ebuild new file mode 100644 index 000000000000..f5f0dd7b3095 --- /dev/null +++ b/games-strategy/triplea/triplea-0.6.0.1.ebuild @@ -0,0 +1,77 @@ +# 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.6.0.1.ebuild,v 1.1 2005/07/14 07:16:27 mr_bones_ Exp $ + +inherit 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="~x86" +SLOT="0" +IUSE="doc jikes" + +RDEPEND=">=virtual/jre-1.4 + =dev-java/jgoodies-looks-1.3* + dev-java/backport-util-concurrent" + +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + jikes? ( >=dev-java/jikes-1.17 ) + ${RDEPEND}" + +S="${WORKDIR}/${PN}_${MY_PV}" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch "${FILESDIR}/${P}-gentoo.patch" + + cat > "${T}/${PN}" <<-EOF + #!/bin/bash + + cd "${GAMES_DATADIR}/${PN}" + java -Dtriplea.root="${GAMES_DATADIR}/${PN}" \\ + -cp \$(java-config -p triplea,jgoodies-looks-1.3,backport-util-concurrent) \\ + games.strategy.engine.framework.GameRunner + EOF + + # The default savedGames directory is in the install root. This + # sets it to use the users home directory. + echo "triplea.saveGamesInHomeDir=true" > triplea.properties + + cd lib/ + rm *.jar + java-pkg_jar-from jgoodies-looks-1.3 + java-pkg_jar-from backport-util-concurrent +} + +src_compile() { + local antflags="jar" + + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + use doc && antflags="${antflags} javadoc" + + ant ${antflags} || die "compile problem" +} + +src_install () { + dodoc changelog.txt + java-pkg_dohtml readme.html + + if use doc; then + java-pkg_dohtml -r api + java-pkg_dohtml -r doc/* + fi + java-pkg_dojar ${PN}.jar + + dogamesbin "${T}/${PN}" || die "dogamesbin failed" + + insinto "${GAMES_DATADIR}/${PN}" + doins -r games/ || die "doins failed" + prepgamesdirs +} |