1 |
commit: ec68302f8431a887377c95d166c58cb422fc3b64 |
2 |
Author: Matt Jolly <Matt.Jolly <AT> footclan <DOT> ninja> |
3 |
AuthorDate: Sat Aug 27 09:10:38 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 29 22:53:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec68302f |
7 |
|
8 |
games-fps/alephone: new package, add 9999, 20220115 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/82908 |
11 |
Signed-off-by: Matt Jolly <Matt.Jolly <AT> footclan.ninja> |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
games-fps/alephone/Manifest | 1 + |
15 |
games-fps/alephone/alephone-20220115.ebuild | 90 +++++++++++++++++++++++++++++ |
16 |
games-fps/alephone/alephone-9999.ebuild | 90 +++++++++++++++++++++++++++++ |
17 |
games-fps/alephone/files/alephone.sh | 28 +++++++++ |
18 |
games-fps/alephone/metadata.xml | 17 ++++++ |
19 |
5 files changed, 226 insertions(+) |
20 |
|
21 |
diff --git a/games-fps/alephone/Manifest b/games-fps/alephone/Manifest |
22 |
new file mode 100644 |
23 |
index 000000000000..56cfbda795a6 |
24 |
--- /dev/null |
25 |
+++ b/games-fps/alephone/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST release-20220115.tar.gz 6487243 BLAKE2B 7c304d28e826e2b3b32427661d3e85ff5ec41e6200d98468edeb5ea11a751fbbd333b72e3efe0937bc496088e36560351f810a6471d92cb684b0bf6adceabf68 SHA512 53d9c602af58f56b5236ca9a539ffac47abe8350b3d228345348e63648a5ef343335be9b0a3366a201807b3e3aa013dc360a38c3e7b47f4a6da2a696ec6ea646 |
28 |
|
29 |
diff --git a/games-fps/alephone/alephone-20220115.ebuild b/games-fps/alephone/alephone-20220115.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..9bddbbc0d931 |
32 |
--- /dev/null |
33 |
+++ b/games-fps/alephone/alephone-20220115.ebuild |
34 |
@@ -0,0 +1,90 @@ |
35 |
+# Copyright 1999-2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+inherit autotools optfeature prefix xdg |
41 |
+ |
42 |
+DESCRIPTION="An enhanced version of the game engine from the classic Mac game, Marathon" |
43 |
+HOMEPAGE="http://source.bungie.org/" |
44 |
+if [[ ${PV} = 9999* ]]; then |
45 |
+ inherit git-r3 |
46 |
+ EGIT_REPO_URI="https://github.com/Aleph-One-Marathon/alephone/" |
47 |
+ EGIT_SUBMODULES=() # Upstream includes game data as submodules, we only want the engine |
48 |
+else |
49 |
+ SRC_URI="https://github.com/Aleph-One-Marathon/alephone/archive/refs/tags/release-${PV}.tar.gz" |
50 |
+ S="${WORKDIR}/${PN}-release-${PV}" |
51 |
+ KEYWORDS="~amd64" |
52 |
+fi |
53 |
+ |
54 |
+LICENSE="GPL-3+ BitstreamVera OFL-1.1" |
55 |
+SLOT="0" |
56 |
+ |
57 |
+IUSE="alsa curl speex upnp" |
58 |
+ |
59 |
+# ffmpeg covers most audio/video use cases and the package doesn't configure with alternatives enabled (media-libs/smpeg) |
60 |
+# When resolved upstream, !ffmpeg ( media-libs/libmad media-libs/libsndfile media-libs/libvorbis media-libs/smpeg ) |
61 |
+# with an appropriate REQUIRED_USE may be added. |
62 |
+# See https://github.com/Aleph-One-Marathon/alephone/issues/85 |
63 |
+RDEPEND=" |
64 |
+ dev-libs/boost:= |
65 |
+ dev-libs/zziplib:= |
66 |
+ media-libs/libpng |
67 |
+ media-libs/libsdl2 |
68 |
+ media-libs/sdl2-image[png] |
69 |
+ media-libs/sdl2-net |
70 |
+ media-libs/sdl2-ttf |
71 |
+ media-video/ffmpeg:=[mp3,vorbis] |
72 |
+ sys-libs/zlib |
73 |
+ virtual/opengl |
74 |
+ virtual/glu |
75 |
+ alsa? ( media-libs/alsa-lib ) |
76 |
+ curl? ( net-misc/curl ) |
77 |
+ speex? ( media-libs/speex ) |
78 |
+ upnp? ( net-libs/miniupnpc ) |
79 |
+" |
80 |
+ |
81 |
+DEPEND=" |
82 |
+ ${RDEPEND} |
83 |
+" |
84 |
+ |
85 |
+BDEPEND=" |
86 |
+ virtual/pkgconfig |
87 |
+" |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ default |
91 |
+ eautoreconf |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ econf \ |
96 |
+ --enable-lua \ |
97 |
+ --enable-opengl \ |
98 |
+ --with-ffmpeg \ |
99 |
+ --without-mad \ |
100 |
+ --without-smpeg \ |
101 |
+ --without-sndfile \ |
102 |
+ --without-vorbis \ |
103 |
+ $(use_with alsa) \ |
104 |
+ $(use_with curl) \ |
105 |
+ $(use_with speex) \ |
106 |
+ $(use_with upnp miniupnpc) |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ default |
111 |
+ prefixify_ro "${FILESDIR}"/${PN}.sh |
112 |
+ dobin "${T}"/${PN}.sh |
113 |
+ doman docs/${PN}.6 |
114 |
+ docinto html/ |
115 |
+ dodoc docs/*.html |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ xdg_pkg_postinst |
120 |
+ optfeature_header "Install game data:" |
121 |
+ optfeature "Marathon data files" games-fps/alephone-marathon |
122 |
+ optfeature "Marathon 2 Durandal data files" games-fps/alephone-durandal |
123 |
+ optfeature "Marathon: Infinity data files" games-fps/alephone-infinity |
124 |
+} |
125 |
|
126 |
diff --git a/games-fps/alephone/alephone-9999.ebuild b/games-fps/alephone/alephone-9999.ebuild |
127 |
new file mode 100644 |
128 |
index 000000000000..9bddbbc0d931 |
129 |
--- /dev/null |
130 |
+++ b/games-fps/alephone/alephone-9999.ebuild |
131 |
@@ -0,0 +1,90 @@ |
132 |
+# Copyright 1999-2022 Gentoo Authors |
133 |
+# Distributed under the terms of the GNU General Public License v2 |
134 |
+ |
135 |
+EAPI=8 |
136 |
+ |
137 |
+inherit autotools optfeature prefix xdg |
138 |
+ |
139 |
+DESCRIPTION="An enhanced version of the game engine from the classic Mac game, Marathon" |
140 |
+HOMEPAGE="http://source.bungie.org/" |
141 |
+if [[ ${PV} = 9999* ]]; then |
142 |
+ inherit git-r3 |
143 |
+ EGIT_REPO_URI="https://github.com/Aleph-One-Marathon/alephone/" |
144 |
+ EGIT_SUBMODULES=() # Upstream includes game data as submodules, we only want the engine |
145 |
+else |
146 |
+ SRC_URI="https://github.com/Aleph-One-Marathon/alephone/archive/refs/tags/release-${PV}.tar.gz" |
147 |
+ S="${WORKDIR}/${PN}-release-${PV}" |
148 |
+ KEYWORDS="~amd64" |
149 |
+fi |
150 |
+ |
151 |
+LICENSE="GPL-3+ BitstreamVera OFL-1.1" |
152 |
+SLOT="0" |
153 |
+ |
154 |
+IUSE="alsa curl speex upnp" |
155 |
+ |
156 |
+# ffmpeg covers most audio/video use cases and the package doesn't configure with alternatives enabled (media-libs/smpeg) |
157 |
+# When resolved upstream, !ffmpeg ( media-libs/libmad media-libs/libsndfile media-libs/libvorbis media-libs/smpeg ) |
158 |
+# with an appropriate REQUIRED_USE may be added. |
159 |
+# See https://github.com/Aleph-One-Marathon/alephone/issues/85 |
160 |
+RDEPEND=" |
161 |
+ dev-libs/boost:= |
162 |
+ dev-libs/zziplib:= |
163 |
+ media-libs/libpng |
164 |
+ media-libs/libsdl2 |
165 |
+ media-libs/sdl2-image[png] |
166 |
+ media-libs/sdl2-net |
167 |
+ media-libs/sdl2-ttf |
168 |
+ media-video/ffmpeg:=[mp3,vorbis] |
169 |
+ sys-libs/zlib |
170 |
+ virtual/opengl |
171 |
+ virtual/glu |
172 |
+ alsa? ( media-libs/alsa-lib ) |
173 |
+ curl? ( net-misc/curl ) |
174 |
+ speex? ( media-libs/speex ) |
175 |
+ upnp? ( net-libs/miniupnpc ) |
176 |
+" |
177 |
+ |
178 |
+DEPEND=" |
179 |
+ ${RDEPEND} |
180 |
+" |
181 |
+ |
182 |
+BDEPEND=" |
183 |
+ virtual/pkgconfig |
184 |
+" |
185 |
+ |
186 |
+src_prepare() { |
187 |
+ default |
188 |
+ eautoreconf |
189 |
+} |
190 |
+ |
191 |
+src_configure() { |
192 |
+ econf \ |
193 |
+ --enable-lua \ |
194 |
+ --enable-opengl \ |
195 |
+ --with-ffmpeg \ |
196 |
+ --without-mad \ |
197 |
+ --without-smpeg \ |
198 |
+ --without-sndfile \ |
199 |
+ --without-vorbis \ |
200 |
+ $(use_with alsa) \ |
201 |
+ $(use_with curl) \ |
202 |
+ $(use_with speex) \ |
203 |
+ $(use_with upnp miniupnpc) |
204 |
+} |
205 |
+ |
206 |
+src_install() { |
207 |
+ default |
208 |
+ prefixify_ro "${FILESDIR}"/${PN}.sh |
209 |
+ dobin "${T}"/${PN}.sh |
210 |
+ doman docs/${PN}.6 |
211 |
+ docinto html/ |
212 |
+ dodoc docs/*.html |
213 |
+} |
214 |
+ |
215 |
+pkg_postinst() { |
216 |
+ xdg_pkg_postinst |
217 |
+ optfeature_header "Install game data:" |
218 |
+ optfeature "Marathon data files" games-fps/alephone-marathon |
219 |
+ optfeature "Marathon 2 Durandal data files" games-fps/alephone-durandal |
220 |
+ optfeature "Marathon: Infinity data files" games-fps/alephone-infinity |
221 |
+} |
222 |
|
223 |
diff --git a/games-fps/alephone/files/alephone.sh b/games-fps/alephone/files/alephone.sh |
224 |
new file mode 100644 |
225 |
index 000000000000..3bb51c26b67c |
226 |
--- /dev/null |
227 |
+++ b/games-fps/alephone/files/alephone.sh |
228 |
@@ -0,0 +1,28 @@ |
229 |
+#!/usr/bin/env bash |
230 |
+ |
231 |
+DIR=$(dirname "${0}") |
232 |
+CMD=$(basename "${0}") |
233 |
+ALEPHONE=${CMD%%.sh} |
234 |
+ |
235 |
+if [[ -z "${1}" ]] |
236 |
+then |
237 |
+ echo "Usage: ${0} SCENARIO FLAGS" |
238 |
+ echo "Where SCENARIO is one of:" |
239 |
+ for d in @GENTOO_PORTAGE_EPREFIX@/usr/share/alephone-* |
240 |
+ do |
241 |
+ echo " ${d##*/alephone-}" |
242 |
+ done |
243 |
+ exit 2 |
244 |
+fi |
245 |
+ |
246 |
+DATA="@GENTOO_PORTAGE_EPREFIX@/usr/share/alephone-${1}" |
247 |
+ |
248 |
+shift |
249 |
+ |
250 |
+# kill ARTS, because we're just that nice |
251 |
+if artsshell terminate 2> /dev/null |
252 |
+then |
253 |
+ sleep 2 |
254 |
+fi |
255 |
+ |
256 |
+"${DIR}"/"${ALEPHONE}" "$@" "${DATA}" |
257 |
|
258 |
diff --git a/games-fps/alephone/metadata.xml b/games-fps/alephone/metadata.xml |
259 |
new file mode 100644 |
260 |
index 000000000000..62d4b84ac671 |
261 |
--- /dev/null |
262 |
+++ b/games-fps/alephone/metadata.xml |
263 |
@@ -0,0 +1,17 @@ |
264 |
+<?xml version='1.0' encoding='UTF-8'?> |
265 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
266 |
+<pkgmetadata> |
267 |
+ <maintainer type="project"> |
268 |
+ <email>games@g.o</email> |
269 |
+ <name>Gentoo Games Project</name> |
270 |
+ </maintainer> |
271 |
+ <maintainer type="person" proxied="yes"> |
272 |
+ <email>Matt.Jolly@××××××××.ninja</email> |
273 |
+ <name>Matt Jolly</name> |
274 |
+ </maintainer> |
275 |
+ <upstream> |
276 |
+ <remote-id type="github">Aleph-One-Marathon/alephone</remote-id> |
277 |
+ <remote-id type="sourceforge">marathon</remote-id> |
278 |
+ <bugs-to>https://github.com/Aleph-One-Marathon/alephone/issues</bugs-to> |
279 |
+ </upstream> |
280 |
+</pkgmetadata> |