diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-05-25 21:47:15 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-05-25 21:47:15 +0000 |
commit | f0b2d3bffb70a338f601f13c796ad54110cf115f (patch) | |
tree | fa18753928ae4692c9dd236cc7c99b6134990ad3 /games-strategy/triplea | |
parent | Readd ~alpha wrt #176620 (diff) | |
download | historical-f0b2d3bffb70a338f601f13c796ad54110cf115f.tar.gz historical-f0b2d3bffb70a338f601f13c796ad54110cf115f.tar.bz2 historical-f0b2d3bffb70a338f601f13c796ad54110cf115f.zip |
Migrate to splitted ant, add pkg_setup calling both games_pkg_setup and java-pkg-2_pkg_setup, and RDEPEND on junit because the test classes are installed by this package.
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'games-strategy/triplea')
-rw-r--r-- | games-strategy/triplea/ChangeLog | 10 | ||||
-rw-r--r-- | games-strategy/triplea/Manifest | 25 | ||||
-rw-r--r-- | games-strategy/triplea/files/digest-triplea-0.9.0.2-r1 | 3 | ||||
-rw-r--r-- | games-strategy/triplea/triplea-0.9.0.2-r1.ebuild | 93 |
4 files changed, 126 insertions, 5 deletions
diff --git a/games-strategy/triplea/ChangeLog b/games-strategy/triplea/ChangeLog index 8bb8564df1f7..63ad7fac48dc 100644 --- a/games-strategy/triplea/ChangeLog +++ b/games-strategy/triplea/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for games-strategy/triplea # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/triplea/ChangeLog,v 1.30 2007/05/09 08:50:16 caster Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/triplea/ChangeLog,v 1.31 2007/05/25 21:47:15 betelgeuse Exp $ + +*triplea-0.9.0.2-r1 (25 May 2007) + + 25 May 2007; Petteri Räty <betelgeuse@gentoo.org> + +triplea-0.9.0.2-r1.ebuild: + Migrate to splitted ant, add pkg_setup calling both games_pkg_setup and + java-pkg-2_pkg_setup, and RDEPEND on junit because the test classes are + installed by this package. 09 May 2007; Vlastimil Babka <caster@gentoo.org> triplea-0.9.0.2.ebuild: Add junit to DEPEND to fix building with java-strict. Tests don't seem diff --git a/games-strategy/triplea/Manifest b/games-strategy/triplea/Manifest index beb2d8507252..43c6bafd72f7 100644 --- a/games-strategy/triplea/Manifest +++ b/games-strategy/triplea/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX triplea-0.6.0.1-gentoo.patch 1956 RMD160 2a251f4416ae27fbb1cbcd5e35a58a17a852c66b SHA1 339716cfc1bce2f7c257df696a9ab33e89df692d SHA256 8534e6db39c42f2658210e2cb826f4262b7596a830f52902e6ec8842e04c0f9e MD5 c8d37e2b98977adc8b30d8ff6249486f files/triplea-0.6.0.1-gentoo.patch 1956 RMD160 2a251f4416ae27fbb1cbcd5e35a58a17a852c66b files/triplea-0.6.0.1-gentoo.patch 1956 @@ -8,14 +11,18 @@ EBUILD triplea-0.6.0.1.ebuild 1874 RMD160 51e9ebb3ece15aa37a6a144076cff16522ad88 MD5 7baa9978ac2af3a5acef12dd5016753a triplea-0.6.0.1.ebuild 1874 RMD160 51e9ebb3ece15aa37a6a144076cff16522ad8858 triplea-0.6.0.1.ebuild 1874 SHA256 e8b184602e65a03bc1d4aba9edf9be8975b7f6a767a63f5c94bf84f086b816a3 triplea-0.6.0.1.ebuild 1874 +EBUILD triplea-0.9.0.2-r1.ebuild 2554 RMD160 fe4a2a9acd8a9f1ba2bac081a2837f09ffdf0388 SHA1 4ffe0689fb9915a9882031535e4eb0840be835c8 SHA256 16c2ec5779a75bba3d58a8798d70e53f392cb2606b0333401598f79e57dba8bf +MD5 83e5be0ec9c5c55c2310234a3878c1ef triplea-0.9.0.2-r1.ebuild 2554 +RMD160 fe4a2a9acd8a9f1ba2bac081a2837f09ffdf0388 triplea-0.9.0.2-r1.ebuild 2554 +SHA256 16c2ec5779a75bba3d58a8798d70e53f392cb2606b0333401598f79e57dba8bf triplea-0.9.0.2-r1.ebuild 2554 EBUILD triplea-0.9.0.2.ebuild 2173 RMD160 281ab50017076061e180baaad3cb18dabb629715 SHA1 2f80528f8090ebf0f1de57b0dd9c2f1f8ca17222 SHA256 af37f6903b8ebf984d6c356577ce908a92f315ca5ecc54f97d49e30c168a4c88 MD5 dcf9d5a00e9066bb7d5a451790b0a90c triplea-0.9.0.2.ebuild 2173 RMD160 281ab50017076061e180baaad3cb18dabb629715 triplea-0.9.0.2.ebuild 2173 SHA256 af37f6903b8ebf984d6c356577ce908a92f315ca5ecc54f97d49e30c168a4c88 triplea-0.9.0.2.ebuild 2173 -MISC ChangeLog 4023 RMD160 ba4d79af1371c1592bea740e64c724b7404aa1c0 SHA1 92d7e48b3d7b0877af09a54c906b1bf386805969 SHA256 ec4cc11a83ad265ca08974860ab5b068e174894b2c274ea53c72ff7662f2e878 -MD5 b59bccbb46b14a89fc639eafe637f28d ChangeLog 4023 -RMD160 ba4d79af1371c1592bea740e64c724b7404aa1c0 ChangeLog 4023 -SHA256 ec4cc11a83ad265ca08974860ab5b068e174894b2c274ea53c72ff7662f2e878 ChangeLog 4023 +MISC ChangeLog 4323 RMD160 1c39d6553e909ea023f99874e1402c97278c9791 SHA1 ddf6b3f924c9c82a65815dfaba0c81333365c1aa SHA256 5f9789f489c05f131d90d71f97403c5d639802e0caf4ece7bb29962ba7e58c0d +MD5 5eb08ecb0848719efdb04bd4dab9ab6c ChangeLog 4323 +RMD160 1c39d6553e909ea023f99874e1402c97278c9791 ChangeLog 4323 +SHA256 5f9789f489c05f131d90d71f97403c5d639802e0caf4ece7bb29962ba7e58c0d ChangeLog 4323 MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158 @@ -26,3 +33,13 @@ SHA256 9f2c0ddb98471edb3cce75153c91484e3844d3fa010d930d0c5f7f433577e7d6 files/di MD5 3173e6a417d66d7836e495a15b0cc631 files/digest-triplea-0.9.0.2 295 RMD160 fa6f7dbc442cbe0a8745337252862d977e57e1af files/digest-triplea-0.9.0.2 295 SHA256 b8dda0aea521b2e7fa45d60d451558659b39f7226f384015260217d9d43ae0e8 files/digest-triplea-0.9.0.2 295 +MD5 3173e6a417d66d7836e495a15b0cc631 files/digest-triplea-0.9.0.2-r1 295 +RMD160 fa6f7dbc442cbe0a8745337252862d977e57e1af files/digest-triplea-0.9.0.2-r1 295 +SHA256 b8dda0aea521b2e7fa45d60d451558659b39f7226f384015260217d9d43ae0e8 files/digest-triplea-0.9.0.2-r1 295 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.4 (GNU/Linux) + +iD8DBQFGV1lncxLzpIGCsLQRAt7cAJ0S9IkMNLD3/4DiyfFiYks7Q6M5ygCePVSL +JdmHhfONfnOcMM1gdYM/Hqs= +=pkFq +-----END PGP SIGNATURE----- diff --git a/games-strategy/triplea/files/digest-triplea-0.9.0.2-r1 b/games-strategy/triplea/files/digest-triplea-0.9.0.2-r1 new file mode 100644 index 000000000000..0f31266f0b8f --- /dev/null +++ b/games-strategy/triplea/files/digest-triplea-0.9.0.2-r1 @@ -0,0 +1,3 @@ +MD5 f96255fe0501c8201b565011e4fc2600 triplea_0_9_0_2_source_code_only.zip 13624383 +RMD160 f1ba831a92a593e0d0f8b34ac324e1f7ffeeea37 triplea_0_9_0_2_source_code_only.zip 13624383 +SHA256 1ce749cf7c107ebe7aaac13b91a31c30b453e8414a7935755be2857561e1bce7 triplea_0_9_0_2_source_code_only.zip 13624383 diff --git a/games-strategy/triplea/triplea-0.9.0.2-r1.ebuild b/games-strategy/triplea/triplea-0.9.0.2-r1.ebuild new file mode 100644 index 000000000000..5bf522492358 --- /dev/null +++ b/games-strategy/triplea/triplea-0.9.0.2-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/triplea/triplea-0.9.0.2-r1.ebuild,v 1.1 2007/05/25 21:47:15 betelgeuse Exp $ + +inherit eutils java-pkg-2 java-ant-2 versionator games + +MY_PV=$(replace_all_version_separators _) +DESCRIPTION="An open source clone of the popular Axis and Allies boardgame" +HOMEPAGE="http://triplea.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}_${MY_PV}_source_code_only.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="=dev-java/jgoodies-looks-2* + =dev-java/commons-httpclient-3* + dev-java/commons-logging + dev-java/commons-codec + dev-java/junit" +DEPEND="${RDEPEND} + >=virtual/jdk-1.5 + app-arch/unzip" +RDEPEND="${RDEPEND} + >=virtual/jre-1.5" + +S=${WORKDIR}/${PN}_${MY_PV} + +pkg_setup() { + games_pkg_setup + java-pkg-2_pkg_setup +} + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i \ + -e 's/getWindows/getMyWindows/' \ + src/games/strategy/debug/Console.java \ + || die "sed Console.java failed" + + sed -i \ + -e 's:/triplea/:/.triplea/:' \ + src/games/strategy/engine/framework/ui/SaveGameFileChooser.java \ + || die "sed SaveGameFileChooser.java failed" + + rm -f lib/{junit.jar,derby_10_1_2.jar} + java-pkg_jar-from jgoodies-looks-2.0 looks.jar lib/looks-2.0.4.jar + java-pkg_jar-from commons-httpclient-3 commons-httpclient.jar \ + lib/commons-httpclient-3.0.1.jar + java-pkg_jar-from commons-logging commons-logging.jar \ + lib/commons-logging-1.1.jar + java-pkg_jar-from commons-codec commons-codec.jar \ + lib/commons-codec-1.3.jar + # installs the test files + java-pkg_jar-from --into lib junit + java-pkg_ensure-no-bundled-jars +} + +src_compile() { + eant || die + echo "triplea.saveGamesInHomeDir=true" > classes/triplea.properties + # The only target creating this is zip which does unjar etc + mkdir bin + cd classes + jar cf ../bin/triplea.jar * || die + rm -fr * || die +} + +# Needs X11 maybe use virtualx.eclass +RESTRICT="test" +src_test() { + ANT_TASKS="ant-junit" eant test +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r bin data games images maps || die "doins failed" + + java-pkg_regjar "${D}/${GAMES_DATADIR}"/${PN}/bin/*.jar + # TODO: add server launcher (see run-server.sh) + java-pkg_dolauncher ${PN} -into "${GAMES_PREFIX}" --main \ + games.strategy.engine.framework.GameRunner + + newicon icons/triplea_icon.bmp ${PN}.bmp + make_desktop_entry ${PN} TripleA /usr/share/pixmaps/${PN}.bmp + + dodoc changelog.txt || die + dohtml -r doc/* readme.html || die + prepgamesdirs +} |