Gentoo Archives: gentoo-commits

From: Philip Miess <Phil_miess@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/superposition:master commit in: games-action/ultratron/files/, games-action/ultratron/
Date: Mon, 16 Oct 2017 01:48:03
Message-Id: 1508118571.dc4f1dc56ca25a8623cb43bfcaf25c4bfdf31198.Phil_miess@gentoo
1 commit: dc4f1dc56ca25a8623cb43bfcaf25c4bfdf31198
2 Author: Philip Miess <Philip_Miess <AT> yahoo <DOT> com>
3 AuthorDate: Mon Oct 16 01:49:31 2017 +0000
4 Commit: Philip Miess <Phil_miess <AT> yahoo <DOT> com>
5 CommitDate: Mon Oct 16 01:49:31 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/user/superposition.git/commit/?id=dc4f1dc5
7
8 ultratron
9
10 games-action/ultratron/Manifest | 4 ++
11 .../ultratron/files/20151219-launcher.patch | 54 ++++++++++++++++++
12 games-action/ultratron/metadata.xml | 22 ++++++++
13 games-action/ultratron/ultratron-20151219.ebuild | 65 ++++++++++++++++++++++
14 4 files changed, 145 insertions(+)
15
16 diff --git a/games-action/ultratron/Manifest b/games-action/ultratron/Manifest
17 new file mode 100644
18 index 0000000..8b6ee26
19 --- /dev/null
20 +++ b/games-action/ultratron/Manifest
21 @@ -0,0 +1,4 @@
22 +AUX 20151219-launcher.patch 1406 SHA256 9aadd448a16946547ed3e40f8d59c617e120223bda56ffc6bbc681939237170a SHA512 01b4a3dfb980bcd715a2b7ee0da061dad7a2407e15070ff20ce8701e18954fb19ddffda43491aef6c01aef14eff549a97464294c239d0455d8a4ae467f86bb28 WHIRLPOOL 18fad453740c011ca9354f71215cbd78c5acb3fe54de07e22f9367f05eec30823313917cc4b9f360e8341ec235ed4fbdc1a6689a6f5048c6854dfb1921cf26e7
23 +DIST Ultratron-HIB-20151219.tar.gz 88992216 SHA256 133945642ad0fb4a75eb6dac5f452485b8b53a960b445b4065914a6b9156b496 SHA512 8dd369060c539401ae33b760a0168c3e3ac54f62e36e770e6b8f57cfc980ff3cf9f0ca80361e8ad50d520901317059ab3347efe718fedcb7f327610ad37bb8bb WHIRLPOOL ff9704daed989036fcfb2dcd8ebd83415a03050576b3f0f492f49f06507c32542d17f2c9a69790939ff50bedd90362d81e51ca734d81e3af1aa6324452ada130
24 +EBUILD ultratron-20151219.ebuild 1284 SHA256 ef18ae7d45f00549fc1cb4807ca483c54427914279111094e24e61ed67265b6a SHA512 ea2a0c73f71918ce94efaf2c25e6ccf06be4ecd7d55dc84aaccf1e10aa565610424db8d7d63077ffc270cae32cb761dec06f22d0dd2fa3cb6a08a3b4e5fef568 WHIRLPOOL 104d7a28c2c411418d439a362fa91db8621714d7572906923d48e9b297740871c0bb0fe78f79a2715ce58186dc76874fdd46df13ac9c850eac262134df1aea46
25 +MISC metadata.xml 1308 SHA256 9ed76ba991a14e12d737453e31353847a6d1c0932ad5feb34da9661a76004931 SHA512 f3375b63c802a5d4404753be6822c4dd3eb830ef641f3485dac1038c6ebbbc2ebc06adb8b943fba31c7d668ae5e3088c3bb28981b9d89c0862bfcf346f045bcd WHIRLPOOL 12906803e0a96901eb2d025fea70beffeb8f172efa06d797417188725271795a863987c70efced566bde919567cfee7191d16649112e8b34ad450725f350ef14
26
27 diff --git a/games-action/ultratron/files/20151219-launcher.patch b/games-action/ultratron/files/20151219-launcher.patch
28 new file mode 100644
29 index 0000000..5a4d576
30 --- /dev/null
31 +++ b/games-action/ultratron/files/20151219-launcher.patch
32 @@ -0,0 +1,54 @@
33 +--- ultron.sh 2015-12-18 19:14:42.000000000 -0500
34 ++++ ultron.patched.sh 2017-10-15 21:11:37.372845150 -0400
35 +@@ -7,47 +7,15 @@
36 + SCRIPT="`basename \"$0\"`"
37 + GAMEDIR="${HOME}/.ultratron"
38 + LOGFILE="${GAMEDIR}/${SCRIPT}.log"
39 +-INSTDIR="`dirname \"$0\"`" ; cd "${INSTDIR}" ; INSTDIR="`pwd`"
40 +-
41 ++INSTDIR="/opt/ultratron-20151219"
42 ++cd "${INSTDIR}"
43 + [[ ! -d "${GAMEDIR}" ]] && mkdir -m 0755 "${GAMEDIR}"
44 +
45 +-if [ 1 == 0 ]
46 +-then
47 +- # 32 bit only
48 +- JVM="./bin/java32"
49 +- BOOTCLASSPATH="./lib/rt32.jar"
50 +-
51 +-elif [ `uname -m` == "i686" ]
52 +-then
53 +- JVM="./bin/java32"
54 +- BOOTCLASSPATH="./lib/rt32.jar"
55 +-
56 +- # Decompress JVM on first run
57 +- if [ ! -d "bin" ]
58 +- then
59 +- ./7za_i386 x jvm.7z
60 +- chmod u+x bin/java32
61 +- rm -f 7za_* jvm.7z
62 +- fi
63 +-else
64 +- JVM="./bin/java64"
65 +- BOOTCLASSPATH="./lib/rt64.jar"
66 +-
67 +- # Decompress JVM on first run
68 +- if [ ! -d "bin" ]
69 +- then
70 +- ./7za_amd64 x jvm.7z
71 +- chmod u+x bin/java64
72 +- rm -f 7za_* jvm.7z
73 +- fi
74 +-fi
75 +-
76 + # XMODIFIERS is cleared here to prevent SCIM screwing up keyboard input
77 +-_JAVA_OPTIONS= XMODIFIERS= "${JVM}" \
78 ++_JAVA_OPTIONS= XMODIFIERS= "java" \
79 + -server \
80 +- -Xbootclasspath/p:${BOOTCLASSPATH} \
81 + -Djava.library.path="${INSTDIR}" \
82 +- -Dorg.lwjgl.librarypath="${INSTDIR}" \
83 ++ -Dorg.lwjgl.librarypath="/usr/lib64/lwjgl-2.9" \
84 + -Dorg.lwjgl.util.NoChecks=false \
85 + -Djava.net.preferIPv4Stack=true \
86 + -Dnet.puppygames.applet.Launcher.resources=resources-hib.dat \
87
88 diff --git a/games-action/ultratron/metadata.xml b/games-action/ultratron/metadata.xml
89 new file mode 100644
90 index 0000000..006bdda
91 --- /dev/null
92 +++ b/games-action/ultratron/metadata.xml
93 @@ -0,0 +1,22 @@
94 +<?xml version="1.0" encoding="UTF-8"?>
95 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
96 +<pkgmetadata>
97 +<maintainer type="person">
98 +<email>phil_miess@×××××.com</email>
99 +<name>Philip Miess</name>
100 +</maintainer>
101 +<longdescription lang="en">
102 +Enter the world of Ultratron and experience the addictive gameplay of old-school arcade favourites such as Robotron: 2084, updated and improved for the 21st century!
103 +
104 +Unique retro-futuristic sound and graphics, player responsive difficulty, and a subtle system of tactics combined with classic gameplay make Ultratron a fun and hypnotic arcade blast.
105 +
106 +The last human has been slain by evil killer robots. You are the one remaining humanoid battle droid. Your mission: avenge the human race!
107 +
108 +Blast your way through 40+ glowing neon levels, avoiding Chasers, Turrets, Spawners, Minelayers, bombs, and bullets, and take on the four giant boss 'bots of the Apocalypse - Ieiunitas, Bellum, Lues and Letum!
109 +Classic old-school arcade arena action!
110 +
111 +Boost your battledroid with ever more powerful weaponry, destroy Spiderbots to gain extra special weapon abilities and field defence and pet drones to help you along.
112 +
113 +Think you've got what it takes to be the best? Compete on the online hiscores table for the ultimate glory!
114 +</longdescription>
115 +</pkgmetadata>
116
117 diff --git a/games-action/ultratron/ultratron-20151219.ebuild b/games-action/ultratron/ultratron-20151219.ebuild
118 new file mode 100644
119 index 0000000..d4fda78
120 --- /dev/null
121 +++ b/games-action/ultratron/ultratron-20151219.ebuild
122 @@ -0,0 +1,65 @@
123 +# Copyright 1999-2017 Gentoo Foundation
124 +# Distributed under the terms of the GNU General Public License v2
125 +
126 +EAPI=6
127 +
128 +inherit eutils java-pkg-2
129 +
130 +DESCRIPTION="Destroy the robots Avenge the Human Race!"
131 +HOMEPAGE="http://www.puppygames.net/ultratron"
132 +SRC_URI="Ultratron-HIB-20151219.tar.gz"
133 +
134 +LICENSE="all-rights-reserved"
135 +SLOT="0"
136 +KEYWORDS="~amd64 ~x86"
137 +IUSE=""
138 +
139 +DEPEND=">=virtual/jre-1.7:*
140 + virtual/opengl
141 + media-libs/openal
142 + dev-java/gson:2.2.2
143 + dev-java/lwjgl:2.9"
144 +RDEPEND="${DEPEND}"
145 +
146 +RESTRICT="bindist fetch mirror strip"
147 +S="${WORKDIR}/ultratron"
148 +
149 +pkg_nofetch() {
150 + einfo "Please download ${SRC_URI}"
151 + einfo "from your personal page in Humble Bundle site"
152 + einfo "(http://www.humblebundle.com) and place it in ${DISTDIR}"
153 +}
154 +
155 +JAVA_RM_FILES=(
156 + gson.jar
157 + lwjgl.jar
158 + lwjgl_util.jar
159 + libjinput-linux.so
160 + libjinput-linux64.so
161 + liblwjgl.so
162 + liblwjgl64.so
163 + 7za_amd64
164 + 7za_i386
165 + jvm.7z
166 +)
167 +src_prepare() {
168 + epatch "${FILESDIR}/${PV}-launcher.patch"
169 + default
170 +}
171 +
172 +src_install() {
173 + local dir="/opt/${P}"
174 +
175 + java-pkg_jarinto "${dir}"
176 + java-pkg_dojar *.jar
177 +
178 + java-pkg_sointo "${dir}"
179 + java-pkg_doso libgdx.so libgdx64.so
180 +
181 + exeinto "${dir}"
182 + doexe ultratron.sh || die "doexe"
183 +
184 + make_wrapper ${PN} ./ulttraron.sh "${dir}" "${dir}"
185 + doicon ultron.png
186 + make_desktop_entry ${PN} "Ultratron" ultratron Game
187 +}