1 |
commit: dcb79f89e4bf45be86971d99ede5db5e1565457c |
2 |
Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 2 04:29:02 2022 +0000 |
4 |
Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 2 04:29:41 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcb79f89 |
7 |
|
8 |
games-roguelike/stone-soup: remove old versions |
9 |
|
10 |
Signed-off-by: Erik Mackdanz <stasibear <AT> gentoo.org> |
11 |
|
12 |
games-roguelike/stone-soup/Manifest | 1 - |
13 |
.../stone-soup/stone-soup-0.25.1-r102.ebuild | 190 ------------------ |
14 |
.../stone-soup/stone-soup-0.26.1-r1.ebuild | 194 ------------------ |
15 |
.../stone-soup/stone-soup-0.27.1.ebuild | 190 ------------------ |
16 |
.../stone-soup/stone-soup-0.28.0.ebuild | 209 ------------------- |
17 |
.../stone-soup-0.29.0_pre20220522.ebuild | 222 --------------------- |
18 |
6 files changed, 1006 deletions(-) |
19 |
|
20 |
diff --git a/games-roguelike/stone-soup/Manifest b/games-roguelike/stone-soup/Manifest |
21 |
index f604c412b47b..e6830d96ca62 100644 |
22 |
--- a/games-roguelike/stone-soup/Manifest |
23 |
+++ b/games-roguelike/stone-soup/Manifest |
24 |
@@ -6,7 +6,6 @@ DIST stone-soup-0.27.png 1351 BLAKE2B cc31abd59701aa6f0fb0bdcd90630ceebf7b3cb8b6 |
25 |
DIST stone-soup-0.27.svg 68546 BLAKE2B 7c66286c9e8a3516e8483b3edb628a59fce29d8d248c3fd5b06e308782bbc651814f21ec958b30c36074a2576ced4bb10f291b5236da6f6e865ce1d7cefdf96d SHA512 dca555271faf704eb8ecdf5ee8a763df42cdeba94e9c163608c438cfc73c6fbf53416547050cad57f477ade191842e701785b65b7a9f18e27ceab05df8f2f75f |
26 |
DIST stone-soup-0.28.png 1351 BLAKE2B cc31abd59701aa6f0fb0bdcd90630ceebf7b3cb8b60f0e2817f8800c5bc4b3a5b9fef63c90a97b6248f306e7e3da0df3863a2195b8771863344d2443e7956d59 SHA512 4695204c8b936f7aac1ba15b02a6115a955fb2c56aa9a0b968ff007bc9a1a59b608110d60cce5625a9b92cd2c869bbea7e15433a53c1a338622809477a5846bc |
27 |
DIST stone-soup-0.28.svg 68546 BLAKE2B 7c66286c9e8a3516e8483b3edb628a59fce29d8d248c3fd5b06e308782bbc651814f21ec958b30c36074a2576ced4bb10f291b5236da6f6e865ce1d7cefdf96d SHA512 dca555271faf704eb8ecdf5ee8a763df42cdeba94e9c163608c438cfc73c6fbf53416547050cad57f477ade191842e701785b65b7a9f18e27ceab05df8f2f75f |
28 |
-DIST stone-soup-0.29.0_pre20220522.tar.gz 16361027 BLAKE2B 6155ce9a56a99b5845ae9ab1747adaed5c3b0e6155eeb42a3a7cba026819701e9b8de72a7e83996f8a3892bfc8119c446feffeb639831be76c626e130ccd8cda SHA512 e026b314d94c45bb91ca41d0ab52003902718dadd16c536fbef6a49348b837a04d48d7eccf43d3e6b810ab4b38d11fe5ede3cd88b6925762b6a7fcadfdf8f936 |
29 |
DIST stone-soup-0.29.0_pre20220701.tar.gz 16490746 BLAKE2B dfc4251a3c4eda66867833ac2a97178c24ebd03ce23b63d067143d7c8046821bb9f658bc53242ad56053aa117b09a5ffb7dcf499035bf5ee1aff6c8bd06b64c8 SHA512 66e95e32067e281adb3195823d34e9a13fdc8089c4bc747e35844718a29657674a0c89d2c9823a60c2bc479caa5b6eb8b4cc7e7ade990c8f14bbc34ed11555ed |
30 |
DIST stone-soup-0.29.png 1351 BLAKE2B cc31abd59701aa6f0fb0bdcd90630ceebf7b3cb8b60f0e2817f8800c5bc4b3a5b9fef63c90a97b6248f306e7e3da0df3863a2195b8771863344d2443e7956d59 SHA512 4695204c8b936f7aac1ba15b02a6115a955fb2c56aa9a0b968ff007bc9a1a59b608110d60cce5625a9b92cd2c869bbea7e15433a53c1a338622809477a5846bc |
31 |
DIST stone-soup-0.29.svg 68546 BLAKE2B 7c66286c9e8a3516e8483b3edb628a59fce29d8d248c3fd5b06e308782bbc651814f21ec958b30c36074a2576ced4bb10f291b5236da6f6e865ce1d7cefdf96d SHA512 dca555271faf704eb8ecdf5ee8a763df42cdeba94e9c163608c438cfc73c6fbf53416547050cad57f477ade191842e701785b65b7a9f18e27ceab05df8f2f75f |
32 |
|
33 |
diff --git a/games-roguelike/stone-soup/stone-soup-0.25.1-r102.ebuild b/games-roguelike/stone-soup/stone-soup-0.25.1-r102.ebuild |
34 |
deleted file mode 100644 |
35 |
index caf09a0a1313..000000000000 |
36 |
--- a/games-roguelike/stone-soup/stone-soup-0.25.1-r102.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,190 +0,0 @@ |
39 |
-# Copyright 1999-2022 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=8 |
43 |
- |
44 |
-LUA_COMPAT=( lua5-{1..3} ) |
45 |
-PYTHON_COMPAT=( python3_{7,8,9,10} ) |
46 |
-VIRTUALX_REQUIRED="manual" |
47 |
-inherit desktop python-any-r1 lua-single xdg-utils toolchain-funcs |
48 |
- |
49 |
-MY_P="stone_soup-${PV}" |
50 |
-DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons" |
51 |
-HOMEPAGE="https://crawl.develz.org" |
52 |
-SLOT="0.25" |
53 |
-SRC_URI=" |
54 |
- https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip |
55 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png |
56 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg |
57 |
-" |
58 |
- |
59 |
-# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h |
60 |
-# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs |
61 |
-# Public Domain|CC0: most of tiles |
62 |
-# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/ |
63 |
-LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0 MIT" |
64 |
-KEYWORDS="amd64 x86" |
65 |
-IUSE="debug ncurses sound test +tiles" |
66 |
-RESTRICT="!test? ( test )" |
67 |
- |
68 |
-RDEPEND=" |
69 |
- ${LUA_DEPS} |
70 |
- dev-db/sqlite:3 |
71 |
- sys-libs/zlib |
72 |
- !ncurses? ( !tiles? ( sys-libs/ncurses:0 ) ) |
73 |
- ncurses? ( sys-libs/ncurses:0 ) |
74 |
- tiles? ( |
75 |
- media-fonts/dejavu |
76 |
- media-libs/freetype:2 |
77 |
- media-libs/libpng:0 |
78 |
- sound? ( |
79 |
- media-libs/libsdl2[X,opengl,sound,video] |
80 |
- media-libs/sdl2-mixer |
81 |
- ) |
82 |
- !sound? ( media-libs/libsdl2[X,opengl,video] ) |
83 |
- media-libs/sdl2-image[png] |
84 |
- virtual/glu |
85 |
- virtual/opengl |
86 |
- )" |
87 |
-DEPEND="${RDEPEND} |
88 |
- app-arch/unzip |
89 |
- dev-lang/perl |
90 |
- ${PYTHON_DEPS} |
91 |
- $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') |
92 |
- sys-devel/flex |
93 |
- test? ( dev-cpp/catch:0 ) |
94 |
- tiles? ( |
95 |
- media-gfx/pngcrush |
96 |
- sys-libs/ncurses:0 |
97 |
- ) |
98 |
- virtual/pkgconfig |
99 |
- virtual/yacc |
100 |
- " |
101 |
- |
102 |
-S=${WORKDIR}/${MY_P}/source |
103 |
-PATCHES=( |
104 |
- "${FILESDIR}"/make-no-png-dep-fix.patch |
105 |
- "${FILESDIR}"/rltiles-make.patch |
106 |
-) |
107 |
- |
108 |
-python_check_deps() { |
109 |
- has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" |
110 |
-} |
111 |
- |
112 |
-pkg_setup() { |
113 |
- |
114 |
- python-any-r1_pkg_setup |
115 |
- |
116 |
- if use !ncurses && use !tiles ; then |
117 |
- ewarn "Neither ncurses nor tiles frontend" |
118 |
- ewarn "selected, choosing ncurses only." |
119 |
- ewarn "Note that you can also enable both." |
120 |
- fi |
121 |
- |
122 |
- if use sound && use !tiles ; then |
123 |
- ewarn "Sound support is only available with tiles." |
124 |
- fi |
125 |
-} |
126 |
- |
127 |
-src_prepare() { |
128 |
- default |
129 |
- python_fix_shebang "${S}/util/species-gen.py" |
130 |
- |
131 |
- sed -i -e "s/GAME = crawl$/GAME = crawl-${SLOT}/" "${S}/Makefile" \ |
132 |
- || die "Couldn't append slot to executable name" |
133 |
- |
134 |
- # Replace bundled catch2 package with system implementation |
135 |
- # https://bugs.gentoo.org/829950 |
136 |
- if use test; then |
137 |
- cp /usr/include/catch2/catch.hpp "${S}/catch2-tests" || die "Couldn't substitute system catch2" |
138 |
- fi |
139 |
-} |
140 |
- |
141 |
-src_compile() { |
142 |
- |
143 |
- # Insurance that we're not using bundled lib sources |
144 |
- rm -rf contrib || die "Couldn't delete contrib directory" |
145 |
- |
146 |
- myemakeargs=( |
147 |
- $(usex debug "FULLDEBUG=y DEBUG=y" "") |
148 |
- BUILD_LUA= |
149 |
- AR="$(tc-getAR)" |
150 |
- CFOPTIMIZE='' |
151 |
- CFOTHERS="${CXXFLAGS}" |
152 |
- CONTRIBS= |
153 |
- DATADIR="/usr/share/${PN}-${SLOT}" |
154 |
- FORCE_CC="$(tc-getCC)" |
155 |
- FORCE_CXX="$(tc-getCXX)" |
156 |
- LDFLAGS="${LDFLAGS}" |
157 |
- MAKEOPTS="${MAKEOPTS}" |
158 |
- PKGCONFIG="$(tc-getPKG_CONFIG)" |
159 |
- RANLIB="$(tc-getRANLIB)" |
160 |
- SAVEDIR="~/.crawl-${SLOT}" |
161 |
- SOUND=$(usex sound "y" "") |
162 |
- STRIP=touch |
163 |
- USE_LUAJIT= |
164 |
- V=1 |
165 |
- prefix="/usr" |
166 |
- ) |
167 |
- |
168 |
- if use ncurses || (use !ncurses && use !tiles) ; then |
169 |
- emake "${myemakeargs[@]}" |
170 |
- # move it in case we build both variants |
171 |
- use tiles && { mv "crawl-${SLOT}" "${WORKDIR}"/crawl-ncurses-${SLOT} || die ;} |
172 |
- fi |
173 |
- |
174 |
- if use tiles ; then |
175 |
- emake "${myemakeargs[@]}" clean |
176 |
- emake "${myemakeargs[@]}" "TILES=y" |
177 |
- fi |
178 |
-} |
179 |
- |
180 |
-src_test() { |
181 |
- emake "${myemakeargs[@]}" \ |
182 |
- $(usex tiles "TILES=y" "") \ |
183 |
- catch2-tests |
184 |
-} |
185 |
- |
186 |
-src_install() { |
187 |
- emake "${myemakeargs[@]}" \ |
188 |
- $(usex tiles "TILES=y" "") \ |
189 |
- DESTDIR="${D}" \ |
190 |
- prefix_fp="" \ |
191 |
- bin_prefix="${D}/usr/bin" \ |
192 |
- install |
193 |
- |
194 |
- [[ -e "${WORKDIR}/crawl-ncurses-${SLOT}" ]] && dobin "${WORKDIR}/crawl-ncurses-${SLOT}" |
195 |
- |
196 |
- # don't relocate docs, needed at runtime |
197 |
- rm -rf "${D}/usr/share/${PN}-${SLOT}"/docs/license |
198 |
- |
199 |
- mv "${WORKDIR}/${MY_P}"/docs/crawl.6 "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" \ |
200 |
- || die "Couldn't append slot to man page name" |
201 |
- doman "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" |
202 |
- |
203 |
- # icons and menu for graphical build |
204 |
- if use tiles ; then |
205 |
- doicon -s 48 "${DISTDIR}"/${PN}-${SLOT}.png |
206 |
- doicon -s scalable "${DISTDIR}"/${PN}-${SLOT}.svg |
207 |
- make_desktop_entry "crawl-${SLOT}" "crawl-${SLOT}" "crawl-${SLOT}" |
208 |
- fi |
209 |
-} |
210 |
- |
211 |
-pkg_postinst() { |
212 |
- xdg_icon_cache_update |
213 |
- |
214 |
- elog "crawl is a slotted install that supports having" |
215 |
- elog "multiple versions installed. The binary has the" |
216 |
- elog "slot appended, e.g. 'crawl-"${SLOT}"'." |
217 |
- |
218 |
- if use tiles && use ncurses ; then |
219 |
- elog |
220 |
- elog "Since you have enabled both tiles and ncurses frontends" |
221 |
- elog "the ncurses binary is called 'crawl-ncurses-"${SLOT}"' and the" |
222 |
- elog "tiles binary is called 'crawl-"${SLOT}"'." |
223 |
- fi |
224 |
-} |
225 |
- |
226 |
-pkg_postrm() { |
227 |
- xdg_icon_cache_update |
228 |
-} |
229 |
|
230 |
diff --git a/games-roguelike/stone-soup/stone-soup-0.26.1-r1.ebuild b/games-roguelike/stone-soup/stone-soup-0.26.1-r1.ebuild |
231 |
deleted file mode 100644 |
232 |
index 21a11669794b..000000000000 |
233 |
--- a/games-roguelike/stone-soup/stone-soup-0.26.1-r1.ebuild |
234 |
+++ /dev/null |
235 |
@@ -1,194 +0,0 @@ |
236 |
-# Copyright 1999-2022 Gentoo Authors |
237 |
-# Distributed under the terms of the GNU General Public License v2 |
238 |
- |
239 |
-EAPI=8 |
240 |
- |
241 |
-LUA_COMPAT=( lua5-{1..3} ) |
242 |
-PYTHON_COMPAT=( python3_{7,8,9,10} ) |
243 |
-VIRTUALX_REQUIRED="manual" |
244 |
-inherit desktop python-any-r1 lua-single xdg-utils toolchain-funcs |
245 |
- |
246 |
-MY_P="stone_soup-${PV}" |
247 |
-DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons" |
248 |
-HOMEPAGE="https://crawl.develz.org" |
249 |
-SLOT="0.26" |
250 |
-SRC_URI=" |
251 |
- https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip |
252 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png |
253 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg |
254 |
-" |
255 |
- |
256 |
-# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h |
257 |
-# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs |
258 |
-# Public Domain|CC0: most of tiles |
259 |
-# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/ |
260 |
-LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0 MIT" |
261 |
-KEYWORDS="amd64 x86" |
262 |
-IUSE="debug ncurses sound test +tiles" |
263 |
-RESTRICT="!test? ( test )" |
264 |
- |
265 |
-RDEPEND=" |
266 |
- ${LUA_DEPS} |
267 |
- dev-db/sqlite:3 |
268 |
- sys-libs/zlib |
269 |
- !ncurses? ( !tiles? ( sys-libs/ncurses:0 ) ) |
270 |
- ncurses? ( sys-libs/ncurses:0 ) |
271 |
- tiles? ( |
272 |
- media-fonts/dejavu |
273 |
- media-libs/freetype:2 |
274 |
- media-libs/libpng:0 |
275 |
- sound? ( |
276 |
- media-libs/libsdl2[X,opengl,sound,video] |
277 |
- media-libs/sdl2-mixer |
278 |
- ) |
279 |
- !sound? ( media-libs/libsdl2[X,opengl,video] ) |
280 |
- media-libs/sdl2-image[png] |
281 |
- virtual/glu |
282 |
- virtual/opengl |
283 |
- )" |
284 |
-DEPEND="${RDEPEND} |
285 |
- app-arch/unzip |
286 |
- dev-lang/perl |
287 |
- ${PYTHON_DEPS} |
288 |
- $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') |
289 |
- sys-devel/flex |
290 |
- test? ( dev-cpp/catch:0 ) |
291 |
- tiles? ( |
292 |
- media-gfx/pngcrush |
293 |
- sys-libs/ncurses:0 |
294 |
- ) |
295 |
- virtual/pkgconfig |
296 |
- virtual/yacc |
297 |
- " |
298 |
- |
299 |
-S=${WORKDIR}/${MY_P}/source |
300 |
-PATCHES=( |
301 |
- "${FILESDIR}"/make-no-png-dep-fix.patch |
302 |
- "${FILESDIR}"/rltiles-make.patch |
303 |
-) |
304 |
- |
305 |
-python_check_deps() { |
306 |
- has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" |
307 |
-} |
308 |
- |
309 |
-pkg_setup() { |
310 |
- |
311 |
- python-any-r1_pkg_setup |
312 |
- |
313 |
- if use !ncurses && use !tiles ; then |
314 |
- ewarn "Neither ncurses nor tiles frontend" |
315 |
- ewarn "selected, choosing ncurses only." |
316 |
- ewarn "Note that you can also enable both." |
317 |
- fi |
318 |
- |
319 |
- if use sound && use !tiles ; then |
320 |
- ewarn "Sound support is only available with tiles." |
321 |
- fi |
322 |
-} |
323 |
- |
324 |
-src_prepare() { |
325 |
- default |
326 |
- python_fix_shebang "${S}/util/species-gen.py" |
327 |
- |
328 |
- sed -i -e "s/GAME = crawl$/GAME = crawl-${SLOT}/" "${S}/Makefile" \ |
329 |
- || die "Couldn't append slot to executable name" |
330 |
- |
331 |
- # Replace bundled catch2 package with system implementation |
332 |
- # https://bugs.gentoo.org/829950 |
333 |
- if use test; then |
334 |
- cp /usr/include/catch2/catch.hpp "${S}/catch2-tests" || die "Couldn't substitute system catch2" |
335 |
- fi |
336 |
-} |
337 |
- |
338 |
-src_compile() { |
339 |
- |
340 |
- # Insurance that we're not using bundled lib sources |
341 |
- rm -rf contrib || die "Couldn't delete contrib directory" |
342 |
- |
343 |
- myemakeargs=( |
344 |
- $(usex debug "FULLDEBUG=y DEBUG=y" "") |
345 |
- BUILD_LUA= |
346 |
- AR="$(tc-getAR)" |
347 |
- CFOPTIMIZE='' |
348 |
- CFOTHERS="${CXXFLAGS}" |
349 |
- CONTRIBS= |
350 |
- DATADIR="/usr/share/${PN}-${SLOT}" |
351 |
- FORCE_CC="$(tc-getCC)" |
352 |
- FORCE_CXX="$(tc-getCXX)" |
353 |
- LDFLAGS="${LDFLAGS}" |
354 |
- MAKEOPTS="${MAKEOPTS}" |
355 |
- PKGCONFIG="$(tc-getPKG_CONFIG)" |
356 |
- RANLIB="$(tc-getRANLIB)" |
357 |
- SAVEDIR="~/.crawl-${SLOT}" |
358 |
- SOUND=$(usex sound "y" "") |
359 |
- STRIP=touch |
360 |
- USE_LUAJIT= |
361 |
- V=1 |
362 |
- prefix="/usr" |
363 |
- ) |
364 |
- |
365 |
- if use ncurses || (use !ncurses && use !tiles) ; then |
366 |
- emake "${myemakeargs[@]}" |
367 |
- # move it in case we build both variants |
368 |
- use tiles && { mv "crawl-${SLOT}" "${WORKDIR}"/crawl-ncurses-${SLOT} || die ;} |
369 |
- fi |
370 |
- |
371 |
- if use tiles ; then |
372 |
- emake "${myemakeargs[@]}" clean |
373 |
- emake "${myemakeargs[@]}" "TILES=y" |
374 |
- fi |
375 |
-} |
376 |
- |
377 |
-src_test() { |
378 |
- emake "${myemakeargs[@]}" \ |
379 |
- $(usex tiles "TILES=y" "") \ |
380 |
- catch2-tests |
381 |
-} |
382 |
- |
383 |
-src_install() { |
384 |
- emake "${myemakeargs[@]}" \ |
385 |
- $(usex tiles "TILES=y" "") \ |
386 |
- DESTDIR="${D}" \ |
387 |
- prefix_fp="" \ |
388 |
- bin_prefix="${D}/usr/bin" \ |
389 |
- install |
390 |
- |
391 |
- [[ -e "${WORKDIR}/crawl-ncurses-${SLOT}" ]] && dobin "${WORKDIR}/crawl-ncurses-${SLOT}" |
392 |
- |
393 |
- # don't relocate docs, needed at runtime |
394 |
- rm -rf "${D}/usr/share/${PN}-${SLOT}"/docs/license |
395 |
- |
396 |
- mv "${WORKDIR}/${MY_P}"/docs/crawl.6 "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" \ |
397 |
- || die "Couldn't append slot to man page name" |
398 |
- doman "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" |
399 |
- |
400 |
- # icons and menu for graphical build |
401 |
- if use tiles ; then |
402 |
- doicon -s 48 "${DISTDIR}"/${PN}-${SLOT}.png |
403 |
- doicon -s scalable "${DISTDIR}"/${PN}-${SLOT}.svg |
404 |
- make_desktop_entry "crawl-${SLOT}" "crawl-${SLOT}" "crawl-${SLOT}" |
405 |
- fi |
406 |
-} |
407 |
- |
408 |
-pkg_postinst() { |
409 |
- xdg_icon_cache_update |
410 |
- |
411 |
- elog "Since version 0.25.1-r101, crawl is a slotted install" |
412 |
- elog "that supports having multiple versions installed. The" |
413 |
- elog "binary has the slot appended, e.g. 'crawl-"${SLOT}"'." |
414 |
- elog |
415 |
- elog "The local save directory also has the slot appended." |
416 |
- elog "If you have saved games from 0.25 but before 0.25.1-r101" |
417 |
- elog "you can 'mv ~/.crawl ~/.crawl-0.25' to fix it" |
418 |
- |
419 |
- if use tiles && use ncurses ; then |
420 |
- elog |
421 |
- elog "Since you have enabled both tiles and ncurses frontends" |
422 |
- elog "the ncurses binary is called 'crawl-ncurses-"${SLOT}"' and the" |
423 |
- elog "tiles binary is called 'crawl-"${SLOT}"'." |
424 |
- fi |
425 |
-} |
426 |
- |
427 |
-pkg_postrm() { |
428 |
- xdg_icon_cache_update |
429 |
-} |
430 |
|
431 |
diff --git a/games-roguelike/stone-soup/stone-soup-0.27.1.ebuild b/games-roguelike/stone-soup/stone-soup-0.27.1.ebuild |
432 |
deleted file mode 100644 |
433 |
index 8c7c910c42ba..000000000000 |
434 |
--- a/games-roguelike/stone-soup/stone-soup-0.27.1.ebuild |
435 |
+++ /dev/null |
436 |
@@ -1,190 +0,0 @@ |
437 |
-# Copyright 1999-2022 Gentoo Authors |
438 |
-# Distributed under the terms of the GNU General Public License v2 |
439 |
- |
440 |
-EAPI=8 |
441 |
- |
442 |
-LUA_COMPAT=( lua5-{1..3} ) |
443 |
-PYTHON_COMPAT=( python3_{7,8,9,10} ) |
444 |
-VIRTUALX_REQUIRED="manual" |
445 |
-inherit desktop python-any-r1 lua-single xdg-utils toolchain-funcs |
446 |
- |
447 |
-MY_P="stone_soup-${PV}" |
448 |
-DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons" |
449 |
-HOMEPAGE="https://crawl.develz.org" |
450 |
-SLOT="0.27" |
451 |
-SRC_URI=" |
452 |
- https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip |
453 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png |
454 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg |
455 |
-" |
456 |
- |
457 |
-# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h |
458 |
-# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs |
459 |
-# Public Domain|CC0: most of tiles |
460 |
-# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/ |
461 |
-LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0 MIT" |
462 |
-KEYWORDS="amd64 x86" |
463 |
-IUSE="debug ncurses sound test +tiles" |
464 |
-RESTRICT="!test? ( test )" |
465 |
- |
466 |
-RDEPEND=" |
467 |
- ${LUA_DEPS} |
468 |
- dev-db/sqlite:3 |
469 |
- sys-libs/zlib |
470 |
- !ncurses? ( !tiles? ( sys-libs/ncurses:0 ) ) |
471 |
- ncurses? ( sys-libs/ncurses:0 ) |
472 |
- tiles? ( |
473 |
- media-fonts/dejavu |
474 |
- media-libs/freetype:2 |
475 |
- media-libs/libpng:0 |
476 |
- sound? ( |
477 |
- media-libs/libsdl2[X,opengl,sound,video] |
478 |
- media-libs/sdl2-mixer |
479 |
- ) |
480 |
- !sound? ( media-libs/libsdl2[X,opengl,video] ) |
481 |
- media-libs/sdl2-image[png] |
482 |
- virtual/glu |
483 |
- virtual/opengl |
484 |
- )" |
485 |
-DEPEND="${RDEPEND} |
486 |
- app-arch/unzip |
487 |
- dev-lang/perl |
488 |
- ${PYTHON_DEPS} |
489 |
- $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') |
490 |
- sys-devel/flex |
491 |
- test? ( dev-cpp/catch:0 ) |
492 |
- tiles? ( |
493 |
- media-gfx/pngcrush |
494 |
- sys-libs/ncurses:0 |
495 |
- ) |
496 |
- virtual/pkgconfig |
497 |
- virtual/yacc |
498 |
- " |
499 |
- |
500 |
-S=${WORKDIR}/${MY_P}/source |
501 |
-PATCHES=( |
502 |
- "${FILESDIR}"/make-no-png-dep-fix.patch |
503 |
- "${FILESDIR}"/rltiles-make.patch |
504 |
-) |
505 |
- |
506 |
-python_check_deps() { |
507 |
- has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" |
508 |
-} |
509 |
- |
510 |
-pkg_setup() { |
511 |
- |
512 |
- python-any-r1_pkg_setup |
513 |
- |
514 |
- if use !ncurses && use !tiles ; then |
515 |
- ewarn "Neither ncurses nor tiles frontend" |
516 |
- ewarn "selected, choosing ncurses only." |
517 |
- ewarn "Note that you can also enable both." |
518 |
- fi |
519 |
- |
520 |
- if use sound && use !tiles ; then |
521 |
- ewarn "Sound support is only available with tiles." |
522 |
- fi |
523 |
-} |
524 |
- |
525 |
-src_prepare() { |
526 |
- default |
527 |
- python_fix_shebang "${S}/util/species-gen.py" |
528 |
- |
529 |
- sed -i -e "s/GAME = crawl$/GAME = crawl-${SLOT}/" "${S}/Makefile" \ |
530 |
- || die "Couldn't append slot to executable name" |
531 |
- |
532 |
- # Replace bundled catch2 package with system implementation |
533 |
- # https://bugs.gentoo.org/829950 |
534 |
- if use test; then |
535 |
- cp /usr/include/catch2/catch.hpp "${S}/catch2-tests" || die "Couldn't substitute system catch2" |
536 |
- fi |
537 |
-} |
538 |
- |
539 |
-src_compile() { |
540 |
- |
541 |
- # Insurance that we're not using bundled lib sources |
542 |
- rm -rf contrib || die "Couldn't delete contrib directory" |
543 |
- |
544 |
- myemakeargs=( |
545 |
- $(usex debug "FULLDEBUG=y DEBUG=y" "") |
546 |
- BUILD_LUA= |
547 |
- AR="$(tc-getAR)" |
548 |
- CFOPTIMIZE='' |
549 |
- CFOTHERS="${CXXFLAGS}" |
550 |
- CONTRIBS= |
551 |
- DATADIR="/usr/share/${PN}-${SLOT}" |
552 |
- FORCE_CC="$(tc-getCC)" |
553 |
- FORCE_CXX="$(tc-getCXX)" |
554 |
- LDFLAGS="${LDFLAGS}" |
555 |
- MAKEOPTS="${MAKEOPTS}" |
556 |
- PKGCONFIG="$(tc-getPKG_CONFIG)" |
557 |
- RANLIB="$(tc-getRANLIB)" |
558 |
- SAVEDIR="~/.crawl-${SLOT}" |
559 |
- SOUND=$(usex sound "y" "") |
560 |
- STRIP=touch |
561 |
- USE_LUAJIT= |
562 |
- V=1 |
563 |
- prefix="/usr" |
564 |
- ) |
565 |
- |
566 |
- if use ncurses || (use !ncurses && use !tiles) ; then |
567 |
- emake "${myemakeargs[@]}" |
568 |
- # move it in case we build both variants |
569 |
- use tiles && { mv "crawl-${SLOT}" "${WORKDIR}"/crawl-ncurses-${SLOT} || die ;} |
570 |
- fi |
571 |
- |
572 |
- if use tiles ; then |
573 |
- emake "${myemakeargs[@]}" clean |
574 |
- emake "${myemakeargs[@]}" "TILES=y" |
575 |
- fi |
576 |
-} |
577 |
- |
578 |
-src_test() { |
579 |
- emake "${myemakeargs[@]}" \ |
580 |
- $(usex tiles "TILES=y" "") \ |
581 |
- catch2-tests |
582 |
-} |
583 |
- |
584 |
-src_install() { |
585 |
- emake "${myemakeargs[@]}" \ |
586 |
- $(usex tiles "TILES=y" "") \ |
587 |
- DESTDIR="${D}" \ |
588 |
- prefix_fp="" \ |
589 |
- bin_prefix="${D}/usr/bin" \ |
590 |
- install |
591 |
- |
592 |
- [[ -e "${WORKDIR}/crawl-ncurses-${SLOT}" ]] && dobin "${WORKDIR}/crawl-ncurses-${SLOT}" |
593 |
- |
594 |
- # don't relocate docs, needed at runtime |
595 |
- rm -rf "${D}/usr/share/${PN}-${SLOT}"/docs/license |
596 |
- |
597 |
- mv "${WORKDIR}/${MY_P}"/docs/crawl.6 "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" \ |
598 |
- || die "Couldn't append slot to man page name" |
599 |
- doman "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" |
600 |
- |
601 |
- # icons and menu for graphical build |
602 |
- if use tiles ; then |
603 |
- doicon -s 48 "${DISTDIR}"/${PN}-${SLOT}.png |
604 |
- doicon -s scalable "${DISTDIR}"/${PN}-${SLOT}.svg |
605 |
- make_desktop_entry "crawl-${SLOT}" "crawl-${SLOT}" "crawl-${SLOT}" |
606 |
- fi |
607 |
-} |
608 |
- |
609 |
-pkg_postinst() { |
610 |
- xdg_icon_cache_update |
611 |
- |
612 |
- elog "crawl is a slotted install that supports having" |
613 |
- elog "multiple versions installed. The binary has the" |
614 |
- elog "slot appended, e.g. 'crawl-"${SLOT}"'." |
615 |
- |
616 |
- if use tiles && use ncurses ; then |
617 |
- elog |
618 |
- elog "Since you have enabled both tiles and ncurses frontends" |
619 |
- elog "the ncurses binary is called 'crawl-ncurses-"${SLOT}"' and the" |
620 |
- elog "tiles binary is called 'crawl-"${SLOT}"'." |
621 |
- fi |
622 |
-} |
623 |
- |
624 |
-pkg_postrm() { |
625 |
- xdg_icon_cache_update |
626 |
-} |
627 |
|
628 |
diff --git a/games-roguelike/stone-soup/stone-soup-0.28.0.ebuild b/games-roguelike/stone-soup/stone-soup-0.28.0.ebuild |
629 |
deleted file mode 100644 |
630 |
index 9922b64db97c..000000000000 |
631 |
--- a/games-roguelike/stone-soup/stone-soup-0.28.0.ebuild |
632 |
+++ /dev/null |
633 |
@@ -1,209 +0,0 @@ |
634 |
-# Copyright 1999-2022 Gentoo Authors |
635 |
-# Distributed under the terms of the GNU General Public License v2 |
636 |
- |
637 |
-EAPI=8 |
638 |
- |
639 |
-LUA_COMPAT=( lua5-{1..3} ) |
640 |
-PYTHON_COMPAT=( python3_{7,8,9,10} ) |
641 |
-VIRTUALX_REQUIRED="manual" |
642 |
-inherit desktop python-any-r1 lua-single xdg-utils toolchain-funcs |
643 |
- |
644 |
-DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons" |
645 |
-HOMEPAGE="https://crawl.develz.org" |
646 |
-SLOT="0.28" |
647 |
- |
648 |
-# Leave empty string if not a _pre release |
649 |
-COMMITSHA="" |
650 |
-if [ -z "${COMMITSHA}" ]; then |
651 |
- # This is a proper release |
652 |
- SRC_URI=" |
653 |
- https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip |
654 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png |
655 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg |
656 |
- " |
657 |
- MY_P="stone_soup-${PV}" |
658 |
-else |
659 |
- # This is a _pre release |
660 |
- SRC_URI=" |
661 |
- https://github.com/crawl/crawl/archive/${COMMITSHA}.tar.gz -> ${P}.tar.gz |
662 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png |
663 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg |
664 |
- " |
665 |
- MY_P="crawl-${COMMITSHA}/crawl-ref" |
666 |
-fi |
667 |
- |
668 |
-# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h |
669 |
-# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs |
670 |
-# Public Domain|CC0: most of tiles |
671 |
-# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/ |
672 |
-LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0 MIT" |
673 |
-KEYWORDS="amd64 x86" |
674 |
-IUSE="debug ncurses sound test +tiles" |
675 |
-RESTRICT="!test? ( test )" |
676 |
- |
677 |
-S=${WORKDIR}/${MY_P}/source |
678 |
-RDEPEND=" |
679 |
- ${LUA_DEPS} |
680 |
- dev-db/sqlite:3 |
681 |
- sys-libs/zlib |
682 |
- !ncurses? ( !tiles? ( sys-libs/ncurses:0 ) ) |
683 |
- ncurses? ( sys-libs/ncurses:0 ) |
684 |
- tiles? ( |
685 |
- media-fonts/dejavu |
686 |
- media-libs/freetype:2 |
687 |
- media-libs/libpng:0 |
688 |
- sound? ( |
689 |
- media-libs/libsdl2[X,opengl,sound,video] |
690 |
- media-libs/sdl2-mixer |
691 |
- ) |
692 |
- !sound? ( media-libs/libsdl2[X,opengl,video] ) |
693 |
- media-libs/sdl2-image[png] |
694 |
- virtual/glu |
695 |
- virtual/opengl |
696 |
- )" |
697 |
-DEPEND="${RDEPEND} |
698 |
- app-arch/unzip |
699 |
- dev-lang/perl |
700 |
- ${PYTHON_DEPS} |
701 |
- $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') |
702 |
- sys-devel/flex |
703 |
- test? ( dev-cpp/catch:0 ) |
704 |
- tiles? ( |
705 |
- media-gfx/pngcrush |
706 |
- sys-libs/ncurses:0 |
707 |
- ) |
708 |
- virtual/pkgconfig |
709 |
- virtual/yacc |
710 |
- " |
711 |
- |
712 |
-PATCHES=( |
713 |
- "${FILESDIR}"/make-no-png-dep-fix.patch |
714 |
- "${FILESDIR}"/rltiles-make.patch |
715 |
-) |
716 |
- |
717 |
-python_check_deps() { |
718 |
- has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" |
719 |
-} |
720 |
- |
721 |
-pkg_setup() { |
722 |
- |
723 |
- python-any-r1_pkg_setup |
724 |
- |
725 |
- if use !ncurses && use !tiles ; then |
726 |
- ewarn "Neither ncurses nor tiles frontend" |
727 |
- ewarn "selected, choosing ncurses only." |
728 |
- ewarn "Note that you can also enable both." |
729 |
- fi |
730 |
- |
731 |
- if use sound && use !tiles ; then |
732 |
- ewarn "Sound support is only available with tiles." |
733 |
- fi |
734 |
-} |
735 |
- |
736 |
-src_prepare() { |
737 |
- default |
738 |
- python_fix_shebang "${S}/util/species-gen.py" |
739 |
- |
740 |
- sed -i -e "s/GAME = crawl$/GAME = crawl-${SLOT}/" "${S}/Makefile" \ |
741 |
- || die "Couldn't append slot to executable name" |
742 |
- |
743 |
- # File required for a _pre build |
744 |
- if ! [ -f "${S}/util/release_ver" ]; then |
745 |
- echo "${SLOT}" >"${S}/util/release_ver" || die "Couldn't write release_ver" |
746 |
- fi |
747 |
- |
748 |
- # Replace bundled catch2 package with system implementation |
749 |
- # https://bugs.gentoo.org/829950 |
750 |
- if use test; then |
751 |
- cp /usr/include/catch2/catch.hpp "${S}/catch2-tests" || die "Couldn't substitute system catch2" |
752 |
- fi |
753 |
-} |
754 |
- |
755 |
-src_compile() { |
756 |
- |
757 |
- # Insurance that we're not using bundled lib sources |
758 |
- rm -rf contrib || die "Couldn't delete contrib directory" |
759 |
- |
760 |
- myemakeargs=( |
761 |
- $(usex debug "FULLDEBUG=y DEBUG=y" "") |
762 |
- BUILD_LUA= |
763 |
- AR="$(tc-getAR)" |
764 |
- CFOPTIMIZE='' |
765 |
- CFOTHERS="${CXXFLAGS}" |
766 |
- CONTRIBS= |
767 |
- DATADIR="/usr/share/${PN}-${SLOT}" |
768 |
- FORCE_CC="$(tc-getCC)" |
769 |
- FORCE_CXX="$(tc-getCXX)" |
770 |
- LDFLAGS="${LDFLAGS}" |
771 |
- MAKEOPTS="${MAKEOPTS}" |
772 |
- PKGCONFIG="$(tc-getPKG_CONFIG)" |
773 |
- RANLIB="$(tc-getRANLIB)" |
774 |
- SAVEDIR="~/.crawl-${SLOT}" |
775 |
- SOUND=$(usex sound "y" "") |
776 |
- STRIP=touch |
777 |
- USE_LUAJIT= |
778 |
- V=1 |
779 |
- prefix="/usr" |
780 |
- ) |
781 |
- |
782 |
- if use ncurses || (use !ncurses && use !tiles) ; then |
783 |
- emake "${myemakeargs[@]}" |
784 |
- # move it in case we build both variants |
785 |
- use tiles && { mv "crawl-${SLOT}" "${WORKDIR}"/crawl-ncurses-${SLOT} || die ;} |
786 |
- fi |
787 |
- |
788 |
- if use tiles ; then |
789 |
- emake "${myemakeargs[@]}" clean |
790 |
- emake "${myemakeargs[@]}" "TILES=y" |
791 |
- fi |
792 |
-} |
793 |
- |
794 |
-src_test() { |
795 |
- emake "${myemakeargs[@]}" \ |
796 |
- $(usex tiles "TILES=y" "") \ |
797 |
- catch2-tests |
798 |
-} |
799 |
- |
800 |
-src_install() { |
801 |
- emake "${myemakeargs[@]}" \ |
802 |
- $(usex tiles "TILES=y" "") \ |
803 |
- DESTDIR="${D}" \ |
804 |
- prefix_fp="" \ |
805 |
- bin_prefix="${D}/usr/bin" \ |
806 |
- install |
807 |
- |
808 |
- [[ -e "${WORKDIR}/crawl-ncurses-${SLOT}" ]] && dobin "${WORKDIR}/crawl-ncurses-${SLOT}" |
809 |
- |
810 |
- # don't relocate docs, needed at runtime |
811 |
- rm -rf "${D}/usr/share/${PN}-${SLOT}"/docs/license |
812 |
- |
813 |
- mv "${WORKDIR}/${MY_P}"/docs/crawl.6 "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" \ |
814 |
- || die "Couldn't append slot to man page name" |
815 |
- doman "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" |
816 |
- |
817 |
- # icons and menu for graphical build |
818 |
- if use tiles ; then |
819 |
- doicon -s 48 "${DISTDIR}"/${PN}-${SLOT}.png |
820 |
- doicon -s scalable "${DISTDIR}"/${PN}-${SLOT}.svg |
821 |
- make_desktop_entry "crawl-${SLOT}" "crawl-${SLOT}" "crawl-${SLOT}" |
822 |
- fi |
823 |
-} |
824 |
- |
825 |
-pkg_postinst() { |
826 |
- xdg_icon_cache_update |
827 |
- |
828 |
- elog "crawl is a slotted install that supports having" |
829 |
- elog "multiple versions installed. The binary has the" |
830 |
- elog "slot appended, e.g. 'crawl-"${SLOT}"'." |
831 |
- |
832 |
- if use tiles && use ncurses ; then |
833 |
- elog |
834 |
- elog "Since you have enabled both tiles and ncurses frontends" |
835 |
- elog "the ncurses binary is called 'crawl-ncurses-"${SLOT}"' and the" |
836 |
- elog "tiles binary is called 'crawl-"${SLOT}"'." |
837 |
- fi |
838 |
-} |
839 |
- |
840 |
-pkg_postrm() { |
841 |
- xdg_icon_cache_update |
842 |
-} |
843 |
|
844 |
diff --git a/games-roguelike/stone-soup/stone-soup-0.29.0_pre20220522.ebuild b/games-roguelike/stone-soup/stone-soup-0.29.0_pre20220522.ebuild |
845 |
deleted file mode 100644 |
846 |
index 581562af2424..000000000000 |
847 |
--- a/games-roguelike/stone-soup/stone-soup-0.29.0_pre20220522.ebuild |
848 |
+++ /dev/null |
849 |
@@ -1,222 +0,0 @@ |
850 |
-# Copyright 1999-2022 Gentoo Authors |
851 |
-# Distributed under the terms of the GNU General Public License v2 |
852 |
- |
853 |
-EAPI=8 |
854 |
- |
855 |
-LUA_COMPAT=( lua5-{1..3} ) |
856 |
-PYTHON_COMPAT=( python3_{7,8,9,10} ) |
857 |
-VIRTUALX_REQUIRED="manual" |
858 |
-inherit desktop python-any-r1 lua-single xdg-utils toolchain-funcs |
859 |
- |
860 |
-DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons" |
861 |
-HOMEPAGE="https://crawl.develz.org" |
862 |
-SLOT="0.29" |
863 |
- |
864 |
-# Leave empty string if not a _pre release |
865 |
-COMMITSHA="acb4ef3bc58aea425821c9a58552bf662dc29f07" |
866 |
-if [ -z "${COMMITSHA}" ]; then |
867 |
- # This is a proper release |
868 |
- SRC_URI=" |
869 |
- https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip |
870 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png |
871 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg |
872 |
- " |
873 |
- MY_P="stone_soup-${PV}" |
874 |
-else |
875 |
- # This is a _pre release |
876 |
- SRC_URI=" |
877 |
- https://github.com/crawl/crawl/archive/${COMMITSHA}.tar.gz -> ${P}.tar.gz |
878 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png |
879 |
- https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg |
880 |
- " |
881 |
- MY_P="crawl-${COMMITSHA}/crawl-ref" |
882 |
-fi |
883 |
- |
884 |
-# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h |
885 |
-# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs |
886 |
-# Public Domain|CC0: most of tiles |
887 |
-# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/ |
888 |
-LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0 MIT" |
889 |
-KEYWORDS="~amd64 ~x86" |
890 |
-IUSE="advpng debug ncurses sound test +tiles" |
891 |
-RESTRICT="!test? ( test )" |
892 |
- |
893 |
-S=${WORKDIR}/${MY_P}/source |
894 |
-RDEPEND=" |
895 |
- ${LUA_DEPS} |
896 |
- dev-db/sqlite:3 |
897 |
- sys-libs/zlib |
898 |
- !ncurses? ( !tiles? ( sys-libs/ncurses:0 ) ) |
899 |
- ncurses? ( sys-libs/ncurses:0 ) |
900 |
- tiles? ( |
901 |
- media-fonts/dejavu |
902 |
- media-libs/freetype:2 |
903 |
- media-libs/libpng:0 |
904 |
- sound? ( |
905 |
- media-libs/libsdl2[X,opengl,sound,video] |
906 |
- media-libs/sdl2-mixer |
907 |
- ) |
908 |
- !sound? ( media-libs/libsdl2[X,opengl,video] ) |
909 |
- media-libs/sdl2-image[png] |
910 |
- virtual/glu |
911 |
- virtual/opengl |
912 |
- )" |
913 |
-DEPEND="${RDEPEND} |
914 |
- test? ( dev-cpp/catch:0 ) |
915 |
- tiles? ( |
916 |
- sys-libs/ncurses:0 |
917 |
- ) |
918 |
- " |
919 |
-BDEPEND=" |
920 |
- app-arch/unzip |
921 |
- dev-lang/perl |
922 |
- ${PYTHON_DEPS} |
923 |
- $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') |
924 |
- sys-devel/flex |
925 |
- tiles? ( |
926 |
- advpng? ( |
927 |
- app-arch/advancecomp |
928 |
- ) |
929 |
- !advpng? ( |
930 |
- media-gfx/pngcrush |
931 |
- ) |
932 |
- ) |
933 |
- virtual/pkgconfig |
934 |
- virtual/yacc |
935 |
- " |
936 |
- |
937 |
-PATCHES=( |
938 |
- "${FILESDIR}"/make.patch |
939 |
- "${FILESDIR}"/rltiles-make.patch |
940 |
-) |
941 |
- |
942 |
-python_check_deps() { |
943 |
- has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" |
944 |
-} |
945 |
- |
946 |
-pkg_setup() { |
947 |
- |
948 |
- python-any-r1_pkg_setup |
949 |
- |
950 |
- if use !ncurses && use !tiles ; then |
951 |
- ewarn "Neither ncurses nor tiles frontend" |
952 |
- ewarn "selected, choosing ncurses only." |
953 |
- ewarn "Note that you can also enable both." |
954 |
- fi |
955 |
- |
956 |
- if use sound && use !tiles ; then |
957 |
- ewarn "Sound support is only available with tiles." |
958 |
- fi |
959 |
-} |
960 |
- |
961 |
-src_prepare() { |
962 |
- default |
963 |
- python_fix_shebang "${S}/util/species-gen.py" |
964 |
- |
965 |
- if use advpng; then |
966 |
- eapply "${FILESDIR}/make-advpng.patch" |
967 |
- fi |
968 |
- |
969 |
- sed -i -e "s/GAME = crawl$/GAME = crawl-${SLOT}/" "${S}/Makefile" \ |
970 |
- || die "Couldn't append slot to executable name" |
971 |
- |
972 |
- # File required for a _pre build |
973 |
- if ! [ -f "${S}/util/release_ver" ]; then |
974 |
- echo "${SLOT}" >"${S}/util/release_ver" || die "Couldn't write release_ver" |
975 |
- fi |
976 |
- |
977 |
- # Replace bundled catch2 package with system implementation |
978 |
- # https://bugs.gentoo.org/829950 |
979 |
- if use test; then |
980 |
- cp /usr/include/catch2/catch.hpp "${S}/catch2-tests" || die "Couldn't substitute system catch2" |
981 |
- fi |
982 |
-} |
983 |
- |
984 |
-src_compile() { |
985 |
- |
986 |
- # Insurance that we're not using bundled lib sources |
987 |
- rm -rf contrib || die "Couldn't delete contrib directory" |
988 |
- |
989 |
- myemakeargs=( |
990 |
- $(usex debug "FULLDEBUG=y DEBUG=y" "") |
991 |
- BUILD_LUA= |
992 |
- AR="$(tc-getAR)" |
993 |
- CFOPTIMIZE='' |
994 |
- CFOTHERS="${CXXFLAGS}" |
995 |
- CONTRIBS= |
996 |
- DATADIR="/usr/share/${PN}-${SLOT}" |
997 |
- FORCE_CC="$(tc-getCC)" |
998 |
- FORCE_CXX="$(tc-getCXX)" |
999 |
- LDFLAGS="${LDFLAGS}" |
1000 |
- MAKEOPTS="${MAKEOPTS}" |
1001 |
- PKGCONFIG="$(tc-getPKG_CONFIG)" |
1002 |
- RANLIB="$(tc-getRANLIB)" |
1003 |
- SAVEDIR="~/.crawl-${SLOT}" |
1004 |
- SOUND=$(usex sound "y" "") |
1005 |
- STRIP=touch |
1006 |
- USE_LUAJIT= |
1007 |
- V=1 |
1008 |
- prefix="/usr" |
1009 |
- ) |
1010 |
- |
1011 |
- if use ncurses || (use !ncurses && use !tiles) ; then |
1012 |
- emake "${myemakeargs[@]}" |
1013 |
- # move it in case we build both variants |
1014 |
- use tiles && { mv "crawl-${SLOT}" "${WORKDIR}"/crawl-ncurses-${SLOT} || die ;} |
1015 |
- fi |
1016 |
- |
1017 |
- if use tiles ; then |
1018 |
- emake "${myemakeargs[@]}" clean |
1019 |
- emake "${myemakeargs[@]}" "TILES=y" |
1020 |
- fi |
1021 |
-} |
1022 |
- |
1023 |
-src_test() { |
1024 |
- emake "${myemakeargs[@]}" \ |
1025 |
- $(usex tiles "TILES=y" "") \ |
1026 |
- catch2-tests |
1027 |
-} |
1028 |
- |
1029 |
-src_install() { |
1030 |
- emake "${myemakeargs[@]}" \ |
1031 |
- $(usex tiles "TILES=y" "") \ |
1032 |
- DESTDIR="${D}" \ |
1033 |
- prefix_fp="" \ |
1034 |
- bin_prefix="${D}/usr/bin" \ |
1035 |
- install |
1036 |
- |
1037 |
- [[ -e "${WORKDIR}/crawl-ncurses-${SLOT}" ]] && dobin "${WORKDIR}/crawl-ncurses-${SLOT}" |
1038 |
- |
1039 |
- # don't relocate docs, needed at runtime |
1040 |
- rm -rf "${D}/usr/share/${PN}-${SLOT}"/docs/license |
1041 |
- |
1042 |
- mv "${WORKDIR}/${MY_P}"/docs/crawl.6 "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" \ |
1043 |
- || die "Couldn't append slot to man page name" |
1044 |
- doman "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" |
1045 |
- |
1046 |
- # icons and menu for graphical build |
1047 |
- if use tiles ; then |
1048 |
- doicon -s 48 "${DISTDIR}"/${PN}-${SLOT}.png |
1049 |
- doicon -s scalable "${DISTDIR}"/${PN}-${SLOT}.svg |
1050 |
- make_desktop_entry "crawl-${SLOT}" "crawl-${SLOT}" "crawl-${SLOT}" |
1051 |
- fi |
1052 |
-} |
1053 |
- |
1054 |
-pkg_postinst() { |
1055 |
- xdg_icon_cache_update |
1056 |
- |
1057 |
- elog "crawl is a slotted install that supports having" |
1058 |
- elog "multiple versions installed. The binary has the" |
1059 |
- elog "slot appended, e.g. 'crawl-"${SLOT}"'." |
1060 |
- |
1061 |
- if use tiles && use ncurses ; then |
1062 |
- elog |
1063 |
- elog "Since you have enabled both tiles and ncurses frontends" |
1064 |
- elog "the ncurses binary is called 'crawl-ncurses-"${SLOT}"' and the" |
1065 |
- elog "tiles binary is called 'crawl-"${SLOT}"'." |
1066 |
- fi |
1067 |
-} |
1068 |
- |
1069 |
-pkg_postrm() { |
1070 |
- xdg_icon_cache_update |
1071 |
-} |