1 |
mr_bones_ 15/02/07 20:13:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: triplea-1.8.0.5.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.60 games-strategy/triplea/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/triplea/ChangeLog?rev=1.60&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/triplea/ChangeLog?rev=1.60&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/triplea/ChangeLog?r1=1.59&r2=1.60 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/games-strategy/triplea/ChangeLog,v |
20 |
retrieving revision 1.59 |
21 |
retrieving revision 1.60 |
22 |
diff -u -r1.59 -r1.60 |
23 |
--- ChangeLog 2 Sep 2014 21:34:55 -0000 1.59 |
24 |
+++ ChangeLog 7 Feb 2015 20:13:23 -0000 1.60 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for games-strategy/triplea |
27 |
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/triplea/ChangeLog,v 1.59 2014/09/02 21:34:55 mr_bones_ Exp $ |
29 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/triplea/ChangeLog,v 1.60 2015/02/07 20:13:23 mr_bones_ Exp $ |
31 |
+ |
32 |
+*triplea-1.8.0.5 (07 Feb 2015) |
33 |
+ |
34 |
+ 07 Feb 2015; Michael Sterrett <mr_bones_@g.o> +triplea-1.8.0.5.ebuild: |
35 |
+ version bump |
36 |
|
37 |
*triplea-1.8.0.3 (02 Sep 2014) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 games-strategy/triplea/triplea-1.8.0.5.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/triplea/triplea-1.8.0.5.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/triplea/triplea-1.8.0.5.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: triplea-1.8.0.5.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2015 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/games-strategy/triplea/triplea-1.8.0.5.ebuild,v 1.1 2015/02/07 20:13:23 mr_bones_ Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
inherit eutils java-pkg-2 java-ant-2 versionator games |
55 |
|
56 |
MY_PV=$(replace_all_version_separators _) |
57 |
DESCRIPTION="An open source clone of the popular Axis and Allies boardgame" |
58 |
HOMEPAGE="http://triplea.sourceforge.net/" |
59 |
SRC_URI="mirror://sourceforge/triplea/${PN}_${MY_PV}_source_code_only.zip" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~ppc ~x86" |
64 |
IUSE="" |
65 |
RESTRICT="test" # Needs X11 maybe use virtualx.eclass |
66 |
|
67 |
RDEPEND="dev-java/commons-httpclient:3 |
68 |
dev-java/apple-java-extensions-bin |
69 |
dev-java/commons-logging |
70 |
dev-java/commons-codec |
71 |
=dev-java/junit-3.8*" |
72 |
DEPEND="${RDEPEND} |
73 |
>=virtual/jdk-1.6 |
74 |
app-arch/unzip" |
75 |
RDEPEND="${RDEPEND} |
76 |
>=virtual/jre-1.6" |
77 |
|
78 |
S=${WORKDIR}/${PN}_${MY_PV} |
79 |
|
80 |
pkg_setup() { |
81 |
games_pkg_setup |
82 |
java-pkg-2_pkg_setup |
83 |
} |
84 |
|
85 |
src_prepare() { |
86 |
sed -i \ |
87 |
-e '/userHome.*triplea/s:"triplea":".triplea":g' \ |
88 |
src/games/strategy/engine/framework/GameRunner2.java || die |
89 |
|
90 |
rm -r old/ lib/derby*.jar || die |
91 |
java-pkg_jar-from apple-java-extensions-bin AppleJavaExtensions.jar \ |
92 |
lib/AppleJavaExtensions.jar |
93 |
java-pkg_jar-from commons-httpclient-3 commons-httpclient.jar \ |
94 |
lib/commons-httpclient-3.0.1.jar |
95 |
java-pkg_jar-from commons-logging commons-logging.jar \ |
96 |
lib/commons-logging-1.1.jar |
97 |
java-pkg_jar-from commons-codec commons-codec.jar \ |
98 |
lib/commons-codec-1.3.jar |
99 |
# installs the test files |
100 |
java-pkg_jar-from --into lib junit |
101 |
|
102 |
# lots of other jars from some other java packages... |
103 |
# either missing from portage or none stable is ages. |
104 |
#java-pkg_ensure-no-bundled-jars |
105 |
} |
106 |
|
107 |
src_compile() { |
108 |
eant || die |
109 |
echo "triplea.saveGamesInHomeDir=true" > data/triplea.properties |
110 |
# The only target creating this is zip which does unjar etc |
111 |
cd classes || die |
112 |
jar cf ../bin/triplea.jar * || die |
113 |
rm -r * || die |
114 |
} |
115 |
|
116 |
src_test() { |
117 |
ANT_TASKS="ant-junit" eant test |
118 |
} |
119 |
|
120 |
src_install() { |
121 |
insinto "${GAMES_DATADIR}"/${PN} |
122 |
doins -r assets bin data dice_servers maps |
123 |
|
124 |
java-pkg_regjar "${D}/${GAMES_DATADIR}"/${PN}/bin/*.jar |
125 |
java-pkg_dolauncher ${PN} -into "${GAMES_PREFIX}" \ |
126 |
--java_args "-Xmx256m" --main \ |
127 |
games.strategy.engine.framework.GameRunner |
128 |
java-pkg_dolauncher ${PN}-server -into "${GAMES_PREFIX}" \ |
129 |
--java_args "-server -Xmx64m -Dtriplea.lobby.port=3303 -Dtriplea.lobby.console=true" \ |
130 |
--main games.strategy.engine.lobby.server.LobbyServer |
131 |
|
132 |
newicon icons/triplea_icon.png ${PN}.png |
133 |
newicon icons/triplea_icon.png ${PN}-server.png |
134 |
make_desktop_entry ${PN} TripleA |
135 |
make_desktop_entry ${PN}-server TripleA-server |
136 |
|
137 |
dodoc changelog.txt TripleA_RuleBook.pdf |
138 |
dohtml -r doc/* readme.html |
139 |
prepgamesdirs |
140 |
} |