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/droidassalt/, games-action/droidassalt/files/
Date: Mon, 16 Oct 2017 01:17:55
Message-Id: 1508116432.0fa5f63b8348346b4dc06fb50a8817ad119ce33b.Phil_miess@gentoo
1 commit: 0fa5f63b8348346b4dc06fb50a8817ad119ce33b
2 Author: Philip Miess <Philip_Miess <AT> yahoo <DOT> com>
3 AuthorDate: Mon Oct 16 01:13:52 2017 +0000
4 Commit: Philip Miess <Phil_miess <AT> yahoo <DOT> com>
5 CommitDate: Mon Oct 16 01:13:52 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/user/superposition.git/commit/?id=0fa5f63b
7
8 droid assault
9
10 .../droidassalt/droidassault-20151219.ebuild | 65 ++++++++++++++++++++++
11 .../droidassalt/files/20151219-launcher.patch | 54 ++++++++++++++++++
12 games-action/droidassalt/metadata.xml | 11 ++++
13 3 files changed, 130 insertions(+)
14
15 diff --git a/games-action/droidassalt/droidassault-20151219.ebuild b/games-action/droidassalt/droidassault-20151219.ebuild
16 new file mode 100644
17 index 0000000..ddd86f7
18 --- /dev/null
19 +++ b/games-action/droidassalt/droidassault-20151219.ebuild
20 @@ -0,0 +1,65 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit eutils java-pkg-2
27 +
28 +DESCRIPTION="Blaster battles with hordes of rampaging killer robots!"
29 +HOMEPAGE="http://www.puppygames.net/droid-assault"
30 +SRC_URI="DroidAssalt-HIB-20151219.tar.gz"
31 +
32 +LICENSE="all-rights-reserved"
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~x86"
35 +IUSE=""
36 +
37 +DEPEND=">=virtual/jre-1.7:*
38 + virtual/opengl
39 + media-libs/openal
40 + dev-java/gson
41 + dev-java/lwjgl:2.2.2"
42 +RDEPEND="${DEPEND}"
43 +
44 +RESTRICT="bindist fetch mirror strip"
45 +S="${WORKDIR}/droidassalt"
46 +
47 +pkg_nofetch() {
48 + einfo "Please download ${SRC_URI}"
49 + einfo "from your personal page in Humble Bundle site"
50 + einfo "(http://www.humblebundle.com) and place it in ${DISTDIR}"
51 +}
52 +
53 +JAVA_RM_FILES=(
54 + gson.jar
55 + lwjgl.jar
56 + lwjgl_util.jar
57 + libjinput-linux.so
58 + libjinput-linux64.so
59 + liblwjgl.so
60 + liblwjgl64.so
61 + 7za_amd64
62 + 7za_i386
63 + jvm.7z
64 +)
65 +src_prepare() {
66 + epatch "${FILESDIR}/${PV}-launcher.patch"
67 + default
68 +}
69 +
70 +src_install() {
71 + local dir="/opt/${P}"
72 +
73 + java-pkg_jarinto "${dir}"
74 + java-pkg_dojar *.jar
75 +
76 + java-pkg_sointo "${dir}"
77 + java-pkg_doso libgdx.so libgdx64.so
78 +
79 + exeinto "${dir}"
80 + doexe droidassalt.sh || die "doexe"
81 +
82 + make_wrapper ${PN} ./droidassalt.sh "${dir}" "${dir}"
83 + doicon droidassault.png
84 + make_desktop_entry ${PN} "Droid Assault" droidassalt Game
85 +}
86
87 diff --git a/games-action/droidassalt/files/20151219-launcher.patch b/games-action/droidassalt/files/20151219-launcher.patch
88 new file mode 100644
89 index 0000000..f78b789
90 --- /dev/null
91 +++ b/games-action/droidassalt/files/20151219-launcher.patch
92 @@ -0,0 +1,54 @@
93 +--- droidassault.sh 2015-12-18 19:14:42.000000000 -0500
94 ++++ droidassault.patched.sh 2017-10-15 21:11:37.372845150 -0400
95 +@@ -7,47 +7,15 @@
96 + SCRIPT="`basename \"$0\"`"
97 + GAMEDIR="${HOME}/.droid_assault"
98 + LOGFILE="${GAMEDIR}/${SCRIPT}.log"
99 +-INSTDIR="`dirname \"$0\"`" ; cd "${INSTDIR}" ; INSTDIR="`pwd`"
100 +-
101 ++INSTDIR="/opt/droidassalt-20151219"
102 ++cd "${INSTDIR}"
103 + [[ ! -d "${GAMEDIR}" ]] && mkdir -m 0755 "${GAMEDIR}"
104 +
105 +-if [ 1 == 0 ]
106 +-then
107 +- # 32 bit only
108 +- JVM="./bin/java32"
109 +- BOOTCLASSPATH="./lib/rt32.jar"
110 +-
111 +-elif [ `uname -m` == "i686" ]
112 +-then
113 +- JVM="./bin/java32"
114 +- BOOTCLASSPATH="./lib/rt32.jar"
115 +-
116 +- # Decompress JVM on first run
117 +- if [ ! -d "bin" ]
118 +- then
119 +- ./7za_i386 x jvm.7z
120 +- chmod u+x bin/java32
121 +- rm -f 7za_* jvm.7z
122 +- fi
123 +-else
124 +- JVM="./bin/java64"
125 +- BOOTCLASSPATH="./lib/rt64.jar"
126 +-
127 +- # Decompress JVM on first run
128 +- if [ ! -d "bin" ]
129 +- then
130 +- ./7za_amd64 x jvm.7z
131 +- chmod u+x bin/java64
132 +- rm -f 7za_* jvm.7z
133 +- fi
134 +-fi
135 +-
136 + # XMODIFIERS is cleared here to prevent SCIM screwing up keyboard input
137 +-_JAVA_OPTIONS= XMODIFIERS= "${JVM}" \
138 ++_JAVA_OPTIONS= XMODIFIERS= "ijava" \
139 + -server \
140 +- -Xbootclasspath/p:${BOOTCLASSPATH} \
141 + -Djava.library.path="${INSTDIR}" \
142 +- -Dorg.lwjgl.librarypath="${INSTDIR}" \
143 ++ -Dorg.lwjgl.librarypath="/usr/lib64/lwjgl-2.9" \
144 + -Dorg.lwjgl.util.NoChecks=false \
145 + -Djava.net.preferIPv4Stack=true \
146 + -Dnet.puppygames.applet.Launcher.resources=resources-hib.dat \
147
148 diff --git a/games-action/droidassalt/metadata.xml b/games-action/droidassalt/metadata.xml
149 new file mode 100644
150 index 0000000..4fe0e61
151 --- /dev/null
152 +++ b/games-action/droidassalt/metadata.xml
153 @@ -0,0 +1,11 @@
154 +<?xml version="1.0" encoding="UTF-8"?>
155 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
156 +<pkgmetadata>
157 +<maintainer type="person">
158 +<email>phil_miess@×××××.com</email>
159 +<name>Philip Miess</name>
160 +</maintainer>
161 +<longdescription lang="en">
162 +Discover a unique tactical arcade shooter, with the fun addictive gameplay of classics like Paradroid and Quazatron. You'll need your wits and the help of your acquired droid army to stay alive in this fast-paced retro actionfest!
163 +</longdescription>
164 +</pkgmetadata>