summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-12-20 22:30:33 +0100
committerDavid Seifert <soap@gentoo.org>2017-12-21 02:56:01 +0100
commitc820a3901ad2e6212bff0af7cdf5d898dfd2812f (patch)
tree8be4f3b9d96653544448e5df8a650e501ddaeec1 /games-strategy/triplea
parentgames-strategy/seven-kingdoms: Remove old (diff)
downloadgentoo-c820a3901ad2e6212bff0af7cdf5d898dfd2812f.tar.gz
gentoo-c820a3901ad2e6212bff0af7cdf5d898dfd2812f.tar.bz2
gentoo-c820a3901ad2e6212bff0af7cdf5d898dfd2812f.zip
games-strategy/triplea: Remove old
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'games-strategy/triplea')
-rw-r--r--games-strategy/triplea/triplea-1.8.0.9.ebuild91
1 files changed, 0 insertions, 91 deletions
diff --git a/games-strategy/triplea/triplea-1.8.0.9.ebuild b/games-strategy/triplea/triplea-1.8.0.9.ebuild
deleted file mode 100644
index 108ac60a4c7..00000000000
--- a/games-strategy/triplea/triplea-1.8.0.9.ebuild
+++ /dev/null
@@ -1,91 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-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
-}