1 |
commit: 2c53fcbd720cd1199621db02413546e397672d28 |
2 |
Author: Philip Miess <Philip_Miess <AT> yahoo <DOT> com> |
3 |
AuthorDate: Mon Oct 16 00:15:56 2017 +0000 |
4 |
Commit: Philip Miess <Phil_miess <AT> yahoo <DOT> com> |
5 |
CommitDate: Mon Oct 16 00:15:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/superposition.git/commit/?id=2c53fcbd |
7 |
|
8 |
add titanattacks |
9 |
|
10 |
games-arcade/titanattacks/Manifest | 4 ++ |
11 |
.../titanattacks/files/titanattacks-20151219.patch | 54 ++++++++++++++++++ |
12 |
games-arcade/titanattacks/metadata.xml | 11 ++++ |
13 |
.../titanattacks/titanattacks-20151219.ebuild | 65 ++++++++++++++++++++++ |
14 |
4 files changed, 134 insertions(+) |
15 |
|
16 |
diff --git a/games-arcade/titanattacks/Manifest b/games-arcade/titanattacks/Manifest |
17 |
new file mode 100644 |
18 |
index 0000000..d5d5a3b |
19 |
--- /dev/null |
20 |
+++ b/games-arcade/titanattacks/Manifest |
21 |
@@ -0,0 +1,4 @@ |
22 |
+AUX titanattacks-20151219.patch 1425 SHA256 ee66e9d700087d01bb07aa51c623ae997f3a9284615efa772d765c05d6a08bc9 SHA512 30a4fd57dc3ee44f18a03b7d269c909601fff7c16fa63ba5b326c63638f3378edc035d02d172a1697a543d6c409809d6bca78263a86c281cc45a75950d1b1c4c WHIRLPOOL faaadc753f19baf26fb45282526aed733d82bb6da91bfa39cdb4eded7ef0ce107d4590dfcc68c19422a96e3181419113558ff3d6974d1e57a6ddd36c0302e587 |
23 |
+DIST TitanAttacks-HIB-20151219.tar.gz 46012148 SHA256 bbf21a20a3faca04a07d5f799a5932b74d6d00fdfe920c8c72f6165d3180b217 SHA512 143afe2b095b8c833ba68b8ede46d32fcbb5385b81a1f3b93be1879c54f84016d338891a00fdea1e5ec23cf5df819ff3e670ea72720f0ba41d201232190a33a2 WHIRLPOOL 229e7267380537a921ee6891aee10e8ee358920cfdc70b05628880a138ff004067d383e9c4b0de733156fd728faf1b349e50a825d46b7a5e644bcbed50851d86 |
24 |
+EBUILD titanattacks-20151219.ebuild 1314 SHA256 c54a3b0866385776777c6ee7361726113328509266bfc4165a196f1264655bcc SHA512 58e55675c3507b9d6053ac2e0997f631f0bb20a07112b76f6dd9ac9e310af4cc6d20d7cb16a04bcb5a69f30077baa9a5070362b181aa01f18315484f1ab0f0d8 WHIRLPOOL ca3692d085dd9da2da852843aa03ef27b08333bfb75efe1eb01470818aae7cc12303d5b835722d984666bbcd6aa5a90b5d2763ce0c1abe65641ebbc538c7565d |
25 |
+MISC metadata.xml 478 SHA256 c9542afc15418d1f455d6bdb92db24ff1c2efbfc00071c463ec078e8591f4163 SHA512 12979c309dc45e6b84a23d589db95de0b5efe69c177473659bff3218f43ff16adea1b03759f7e926dbb66be2ecd93e946431bb17457df3adbf61614dbf69cb39 WHIRLPOOL afc08aee2d1a3d329a4afb1357f2e482ba2107d1f09d2c8e51b58654b452e3f76d2665ac91ed37f9bb951c9a44beb56f883da0bf5d709a1c4c65ed3689a0fafe |
26 |
|
27 |
diff --git a/games-arcade/titanattacks/files/titanattacks-20151219.patch b/games-arcade/titanattacks/files/titanattacks-20151219.patch |
28 |
new file mode 100644 |
29 |
index 0000000..d72236c |
30 |
--- /dev/null |
31 |
+++ b/games-arcade/titanattacks/files/titanattacks-20151219.patch |
32 |
@@ -0,0 +1,54 @@ |
33 |
+--- titanattacks.sh 2015-12-18 19:13:46.000000000 -0500 |
34 |
++++ titanattacks.patched.sh 2017-10-15 20:11:09.032148605 -0400 |
35 |
+@@ -7,47 +7,16 @@ |
36 |
+ SCRIPT="`basename \"$0\"`" |
37 |
+ GAMEDIR="${HOME}/.titan_attacks" |
38 |
+ LOGFILE="${GAMEDIR}/${SCRIPT}.log" |
39 |
+-INSTDIR="`dirname \"$0\"`" ; cd "${INSTDIR}" ; INSTDIR="`pwd`" |
40 |
++INSTDIR="/opt/titanattacks-20151219" |
41 |
++cd "${INSTDIR}" |
42 |
+ |
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-arcade/titanattacks/metadata.xml b/games-arcade/titanattacks/metadata.xml |
89 |
new file mode 100644 |
90 |
index 0000000..f3784c7 |
91 |
--- /dev/null |
92 |
+++ b/games-arcade/titanattacks/metadata.xml |
93 |
@@ -0,0 +1,11 @@ |
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 |
+As the last surviving tank commander on Earth, single-handedly turn back the evil invading alien army, drive back the Titans across the Solar System, and defeat them on their homeworld... |
103 |
+</longdescription> |
104 |
+</pkgmetadata> |
105 |
|
106 |
diff --git a/games-arcade/titanattacks/titanattacks-20151219.ebuild b/games-arcade/titanattacks/titanattacks-20151219.ebuild |
107 |
new file mode 100644 |
108 |
index 0000000..341838a |
109 |
--- /dev/null |
110 |
+++ b/games-arcade/titanattacks/titanattacks-20151219.ebuild |
111 |
@@ -0,0 +1,65 @@ |
112 |
+# Copyright 1999-2017 Gentoo Foundation |
113 |
+# Distributed under the terms of the GNU General Public License v2 |
114 |
+ |
115 |
+EAPI=6 |
116 |
+ |
117 |
+inherit eutils java-pkg-2 |
118 |
+ |
119 |
+DESCRIPTION="single-handedly turn back the evil invading alien army" |
120 |
+HOMEPAGE="http://www.puppygames.net/titan-attacks" |
121 |
+SRC_URI="TitanAttacks-HIB-20151219.tar.gz" |
122 |
+ |
123 |
+LICENSE="all-rights-reserved" |
124 |
+SLOT="0" |
125 |
+KEYWORDS="~amd64 ~x86" |
126 |
+IUSE="" |
127 |
+ |
128 |
+DEPEND=">=virtual/jre-1.7:* |
129 |
+ virtual/opengl |
130 |
+ media-libs/openal |
131 |
+ dev-java/gson |
132 |
+ dev-java/lwjgl" |
133 |
+RDEPEND="${DEPEND}" |
134 |
+ |
135 |
+RESTRICT="bindist fetch mirror strip" |
136 |
+S="${WORKDIR}/revenge" |
137 |
+ |
138 |
+pkg_nofetch() { |
139 |
+ einfo "Please download ${SRC_URI}" |
140 |
+ einfo "from your personal page in Humble Bundle site" |
141 |
+ einfo "(http://www.humblebundle.com) and place it in ${DISTDIR}" |
142 |
+} |
143 |
+ |
144 |
+JAVA_RM_FILES=( |
145 |
+ gson.jar |
146 |
+ lwjgl.jar |
147 |
+ lwjgl_util.jar |
148 |
+ libjinput-linux.so |
149 |
+ libjinput-linux64.so |
150 |
+ liblwjgl.so |
151 |
+ liblwjgl64.so |
152 |
+ 7za_amd64 |
153 |
+ 7za_i386 |
154 |
+ jvm.7z |
155 |
+) |
156 |
+src_prepare() { |
157 |
+ epatch "${FILESDIR}/${PV}-launcher.patch" |
158 |
+ default |
159 |
+} |
160 |
+ |
161 |
+src_install() { |
162 |
+ local dir="/opt/${P}" |
163 |
+ |
164 |
+ java-pkg_jarinto "${dir}" |
165 |
+ java-pkg_dojar *.jar |
166 |
+ |
167 |
+ java-pkg_sointo "${dir}" |
168 |
+ java-pkg_doso libgdx.so libgdx64.so |
169 |
+ |
170 |
+ exeinto "${dir}" |
171 |
+ doexe titanattacks.sh || die "doexe" |
172 |
+ |
173 |
+ make_wrapper ${PN} ./titanattacks.sh "${dir}" "${dir}" |
174 |
+ doicon titanattacks.png |
175 |
+ make_desktop_entry ${PN} "Titans Attacks" titanattacks Game |
176 |
+} |