summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2016-02-01 14:53:43 -0500
committerMichael Sterrett <mr_bones_@gentoo.org>2016-02-04 17:17:04 -0500
commit5c110321240ff87f5f6694ae911e3f28ec6f22d5 (patch)
treeed97520a6ecb2c93a0111338983e71d7fd3052f7 /games-strategy
parentmedia-libs/rubberband: add alpha keyword (diff)
downloadgentoo-5c110321240ff87f5f6694ae911e3f28ec6f22d5.tar.gz
gentoo-5c110321240ff87f5f6694ae911e3f28ec6f22d5.tar.bz2
gentoo-5c110321240ff87f5f6694ae911e3f28ec6f22d5.zip
games-strategy/triplea: version bump
Package-Manager: portage-2.2.26
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/triplea/Manifest1
-rw-r--r--games-strategy/triplea/triplea-1.8.0.9.ebuild92
2 files changed, 93 insertions, 0 deletions
diff --git a/games-strategy/triplea/Manifest b/games-strategy/triplea/Manifest
index 48d899135c55..a6432e54e136 100644
--- a/games-strategy/triplea/Manifest
+++ b/games-strategy/triplea/Manifest
@@ -1 +1,2 @@
DIST triplea_1_8_0_5_source_code_only.zip 377607369 SHA256 7d43d8936650ee5ce8b215c7bb6c5ac611f3a232559c0cbb48dba910f63643f5 SHA512 76275121e71b727d05c47612c3a27431beb3e610f1953c8aea4cef878bac4f0a4309794c805462b75fff71d875bc92395108f196f1e04544bb4ef0b8e298904c WHIRLPOOL be06d9c6c4af75ca3ab221b69c13e8e3139569f7108cb4c5de510397a888da7e21822dd1a2e1b5ee63ce5e2e36153d3651088d036089e6f1e08beb5a473f015c
+DIST triplea_1_8_0_9_source_code_only.zip 378475905 SHA256 5f1d0811b96338e1d7200269e24f99cdfe801198922da2a951d14d3ab31c5187 SHA512 d117bb85d0136d85c76f091cf3b2a398ad1f8755df2cea02867be36d91c6cc98e0fc713a72a93dc74ec91c7b44959afdad5b136591a25a0080f4eabf3c8bff0d WHIRLPOOL 7d3bfc1eb344d77efb1cb20bb8dc33f89c93546e4c64bc04f128ad255ac5db31f0c2e0f7c47d85fb9e8bb200490046fd128e883c82d320e5c01a1712cb9b86f4
diff --git a/games-strategy/triplea/triplea-1.8.0.9.ebuild b/games-strategy/triplea/triplea-1.8.0.9.ebuild
new file mode 100644
index 000000000000..7cd819e58fce
--- /dev/null
+++ b/games-strategy/triplea/triplea-1.8.0.9.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+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/triplea/${PN}_${MY_PV}_source_code_only.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="test" # Needs X11 maybe use virtualx.eclass
+
+RDEPEND="dev-java/commons-httpclient:3
+ dev-java/commons-logging
+ dev-java/junit:4"
+DEPEND="${RDEPEND}
+ >=virtual/jdk-1.6
+ app-arch/unzip"
+RDEPEND="${RDEPEND}
+ >=virtual/jre-1.6"
+
+S=${WORKDIR}/${PN}_${MY_PV}
+
+pkg_setup() {
+ games_pkg_setup
+ java-pkg-2_pkg_setup
+}
+
+src_prepare() {
+ sed -i \
+ -e '/userHome.*triplea/s:"triplea":".triplea":g' \
+ src/games/strategy/engine/framework/GameRunner2.java || die
+
+ rm -r old/ lib/derby*.jar || die
+ # dev-java/commons-logging is lagging behind in portage...
+ # java-pkg_jar-from apple-java-extensions-bin AppleJavaExtensions.jar \
+ # lib/AppleJavaExtensions.jar
+ java-pkg_jar-from commons-httpclient-3 commons-httpclient.jar \
+ lib/commons-httpclient-3.1.jar
+ java-pkg_jar-from commons-logging commons-logging.jar \
+ lib/commons-logging-1.1.3.jar
+ # dev-java/commons-codec is lagging behind in portage...
+ # 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
+
+ # lots of other jars from some other java packages...
+ # either missing from portage or none stable is ages.
+ #java-pkg_ensure-no-bundled-jars
+}
+
+src_compile() {
+ eant || die
+ echo "triplea.saveGamesInHomeDir=true" > data/triplea.properties
+ # The only target creating this is zip which does unjar etc
+ cd classes || die
+ jar cf ../bin/triplea.jar * || die
+ rm -r * || die
+}
+
+src_test() {
+ ANT_TASKS="ant-junit" eant test
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r assets bin data dice_servers maps
+
+ java-pkg_regjar "${D}/${GAMES_DATADIR}"/${PN}/bin/*.jar
+ java-pkg_dolauncher ${PN} -into "${GAMES_PREFIX}" \
+ --java_args "-Xmx256m" --main \
+ games.strategy.engine.framework.GameRunner
+ java-pkg_dolauncher ${PN}-server -into "${GAMES_PREFIX}" \
+ --java_args "-server -Xmx64m -Dtriplea.lobby.port=3303 -Dtriplea.lobby.console=true" \
+ --main games.strategy.engine.lobby.server.LobbyServer
+
+ newicon icons/triplea_icon.png ${PN}.png
+ newicon icons/triplea_icon.png ${PN}-server.png
+ make_desktop_entry ${PN} TripleA
+ make_desktop_entry ${PN}-server TripleA-server
+
+ dodoc changelog.txt TripleA_RuleBook.pdf
+ dohtml -r doc/* readme.html
+ prepgamesdirs
+}