Gentoo Archives: gentoo-commits

From: Erik Mackdanz <stasibear@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-roguelike/stone-soup/
Date: Sat, 05 Feb 2022 03:39:55
Message-Id: 1644032370.99de4ad734964d95697be554652ea2fca12f4841.stasibear@gentoo
1 commit: 99de4ad734964d95697be554652ea2fca12f4841
2 Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 5 03:39:30 2022 +0000
4 Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 5 03:39:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99de4ad7
7
8 games-roguelike/stone-soup: remove 0.28 pre-release
9
10 Signed-off-by: Erik Mackdanz <stasibear <AT> gentoo.org>
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12
13 games-roguelike/stone-soup/Manifest | 1 -
14 .../stone-soup-0.28.0_pre20220107.ebuild | 209 ---------------------
15 2 files changed, 210 deletions(-)
16
17 diff --git a/games-roguelike/stone-soup/Manifest b/games-roguelike/stone-soup/Manifest
18 index 22f34da02b59..87183395a3d8 100644
19 --- a/games-roguelike/stone-soup/Manifest
20 +++ b/games-roguelike/stone-soup/Manifest
21 @@ -4,7 +4,6 @@ DIST stone-soup-0.26.png 1351 BLAKE2B cc31abd59701aa6f0fb0bdcd90630ceebf7b3cb8b6
22 DIST stone-soup-0.26.svg 68546 BLAKE2B 7c66286c9e8a3516e8483b3edb628a59fce29d8d248c3fd5b06e308782bbc651814f21ec958b30c36074a2576ced4bb10f291b5236da6f6e865ce1d7cefdf96d SHA512 dca555271faf704eb8ecdf5ee8a763df42cdeba94e9c163608c438cfc73c6fbf53416547050cad57f477ade191842e701785b65b7a9f18e27ceab05df8f2f75f
23 DIST stone-soup-0.27.png 1351 BLAKE2B cc31abd59701aa6f0fb0bdcd90630ceebf7b3cb8b60f0e2817f8800c5bc4b3a5b9fef63c90a97b6248f306e7e3da0df3863a2195b8771863344d2443e7956d59 SHA512 4695204c8b936f7aac1ba15b02a6115a955fb2c56aa9a0b968ff007bc9a1a59b608110d60cce5625a9b92cd2c869bbea7e15433a53c1a338622809477a5846bc
24 DIST stone-soup-0.27.svg 68546 BLAKE2B 7c66286c9e8a3516e8483b3edb628a59fce29d8d248c3fd5b06e308782bbc651814f21ec958b30c36074a2576ced4bb10f291b5236da6f6e865ce1d7cefdf96d SHA512 dca555271faf704eb8ecdf5ee8a763df42cdeba94e9c163608c438cfc73c6fbf53416547050cad57f477ade191842e701785b65b7a9f18e27ceab05df8f2f75f
25 -DIST stone-soup-0.28.0_pre20220107.tar.gz 16263257 BLAKE2B 9a1b9127460aad8722cd0a538937897976f15fa08de9043a109cc47fd8b831ad3c788ba91d1b84f15e102a2a7976c060c4bc99bb8fef0410eaa6def0c608ef26 SHA512 f90c8849640c9a1c8f59f4c1204064e830527f68118d65452040dfd46def1512025f1e51ed9aa108ab1cf27bf8cebc5725d3d9605033a9349b907ba290db3472
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.25.1.zip 95477710 BLAKE2B 0b38a6c7cb7c4c87acccb861b5aae665cd2b6b532f6e86d4a9fa594e0d363b86b4af1ea47275f7fd026ea69d85215be8cdf46258bd620e738b4850e5eceed006 SHA512 fa7e8be582c5c6615531884ade4c113542c06c164b6912095c1adf2f16a31cb2ecce057d74132b11b1b1c256a77433037948d4e54819739b7e222cc896cd5220
29
30 diff --git a/games-roguelike/stone-soup/stone-soup-0.28.0_pre20220107.ebuild b/games-roguelike/stone-soup/stone-soup-0.28.0_pre20220107.ebuild
31 deleted file mode 100644
32 index b2a25a40c786..000000000000
33 --- a/games-roguelike/stone-soup/stone-soup-0.28.0_pre20220107.ebuild
34 +++ /dev/null
35 @@ -1,209 +0,0 @@
36 -# Copyright 1999-2022 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=8
40 -
41 -LUA_COMPAT=( lua5-{1..3} )
42 -PYTHON_COMPAT=( python3_{7,8,9,10} )
43 -VIRTUALX_REQUIRED="manual"
44 -inherit desktop python-any-r1 lua-single xdg-utils toolchain-funcs
45 -
46 -DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons"
47 -HOMEPAGE="https://crawl.develz.org"
48 -SLOT="0.28"
49 -
50 -# Leave empty string if not a _pre release
51 -COMMITSHA="f3d713df7a6deafd7ba73dbf2eb6319aedc5b6dc"
52 -if [ -z "${COMMITSHA}" ]; then
53 - # This is a proper release
54 - SRC_URI="
55 - https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip
56 - https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png
57 - https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg
58 - "
59 - MY_P="stone_soup-${PV}"
60 -else
61 - # This is a _pre release
62 - SRC_URI="
63 - https://github.com/crawl/crawl/archive/${COMMITSHA}.tar.gz -> ${P}.tar.gz
64 - https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png
65 - https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg
66 - "
67 - MY_P="crawl-${COMMITSHA}/crawl-ref"
68 -fi
69 -
70 -# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h
71 -# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs
72 -# Public Domain|CC0: most of tiles
73 -# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/
74 -LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0 MIT"
75 -KEYWORDS="~amd64 ~x86"
76 -IUSE="debug ncurses sound test +tiles"
77 -RESTRICT="!test? ( test )"
78 -
79 -S=${WORKDIR}/${MY_P}/source
80 -RDEPEND="
81 - ${LUA_DEPS}
82 - dev-db/sqlite:3
83 - sys-libs/zlib
84 - !ncurses? ( !tiles? ( sys-libs/ncurses:0 ) )
85 - ncurses? ( sys-libs/ncurses:0 )
86 - tiles? (
87 - media-fonts/dejavu
88 - media-libs/freetype:2
89 - media-libs/libpng:0
90 - sound? (
91 - media-libs/libsdl2[X,opengl,sound,video]
92 - media-libs/sdl2-mixer
93 - )
94 - !sound? ( media-libs/libsdl2[X,opengl,video] )
95 - media-libs/sdl2-image[png]
96 - virtual/glu
97 - virtual/opengl
98 - )"
99 -DEPEND="${RDEPEND}
100 - app-arch/unzip
101 - dev-lang/perl
102 - ${PYTHON_DEPS}
103 - $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]')
104 - sys-devel/flex
105 - test? ( dev-cpp/catch:0 )
106 - tiles? (
107 - media-gfx/pngcrush
108 - sys-libs/ncurses:0
109 - )
110 - virtual/pkgconfig
111 - virtual/yacc
112 - "
113 -
114 -PATCHES=(
115 - "${FILESDIR}"/make.patch
116 - "${FILESDIR}"/rltiles-make.patch
117 -)
118 -
119 -python_check_deps() {
120 - has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
121 -}
122 -
123 -pkg_setup() {
124 -
125 - python-any-r1_pkg_setup
126 -
127 - if use !ncurses && use !tiles ; then
128 - ewarn "Neither ncurses nor tiles frontend"
129 - ewarn "selected, choosing ncurses only."
130 - ewarn "Note that you can also enable both."
131 - fi
132 -
133 - if use sound && use !tiles ; then
134 - ewarn "Sound support is only available with tiles."
135 - fi
136 -}
137 -
138 -src_prepare() {
139 - default
140 - python_fix_shebang "${S}/util/species-gen.py"
141 -
142 - sed -i -e "s/GAME = crawl$/GAME = crawl-${SLOT}/" "${S}/Makefile" \
143 - || die "Couldn't append slot to executable name"
144 -
145 - # File required for a _pre build
146 - if ! [ -f "${S}/util/release_ver" ]; then
147 - echo "${SLOT}" >"${S}/util/release_ver" || die "Couldn't write release_ver"
148 - fi
149 -
150 - # Replace bundled catch2 package with system implementation
151 - # https://bugs.gentoo.org/829950
152 - if use test; then
153 - cp /usr/include/catch2/catch.hpp "${S}/catch2-tests" || die "Couldn't substitute system catch2"
154 - fi
155 -}
156 -
157 -src_compile() {
158 -
159 - # Insurance that we're not using bundled lib sources
160 - rm -rf contrib || die "Couldn't delete contrib directory"
161 -
162 - myemakeargs=(
163 - $(usex debug "FULLDEBUG=y DEBUG=y" "")
164 - BUILD_LUA=
165 - AR="$(tc-getAR)"
166 - CFOPTIMIZE=''
167 - CFOTHERS="${CXXFLAGS}"
168 - CONTRIBS=
169 - DATADIR="/usr/share/${PN}-${SLOT}"
170 - FORCE_CC="$(tc-getCC)"
171 - FORCE_CXX="$(tc-getCXX)"
172 - LDFLAGS="${LDFLAGS}"
173 - MAKEOPTS="${MAKEOPTS}"
174 - PKGCONFIG="$(tc-getPKG_CONFIG)"
175 - RANLIB="$(tc-getRANLIB)"
176 - SAVEDIR="~/.crawl-${SLOT}"
177 - SOUND=$(usex sound "y" "")
178 - STRIP=touch
179 - USE_LUAJIT=
180 - V=1
181 - prefix="/usr"
182 - )
183 -
184 - if use ncurses || (use !ncurses && use !tiles) ; then
185 - emake "${myemakeargs[@]}"
186 - # move it in case we build both variants
187 - use tiles && { mv "crawl-${SLOT}" "${WORKDIR}"/crawl-ncurses-${SLOT} || die ;}
188 - fi
189 -
190 - if use tiles ; then
191 - emake "${myemakeargs[@]}" clean
192 - emake "${myemakeargs[@]}" "TILES=y"
193 - fi
194 -}
195 -
196 -src_test() {
197 - emake "${myemakeargs[@]}" \
198 - $(usex tiles "TILES=y" "") \
199 - catch2-tests
200 -}
201 -
202 -src_install() {
203 - emake "${myemakeargs[@]}" \
204 - $(usex tiles "TILES=y" "") \
205 - DESTDIR="${D}" \
206 - prefix_fp="" \
207 - bin_prefix="${D}/usr/bin" \
208 - install
209 -
210 - [[ -e "${WORKDIR}/crawl-ncurses-${SLOT}" ]] && dobin "${WORKDIR}/crawl-ncurses-${SLOT}"
211 -
212 - # don't relocate docs, needed at runtime
213 - rm -rf "${D}/usr/share/${PN}-${SLOT}"/docs/license
214 -
215 - mv "${WORKDIR}/${MY_P}"/docs/crawl.6 "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" \
216 - || die "Couldn't append slot to man page name"
217 - doman "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6"
218 -
219 - # icons and menu for graphical build
220 - if use tiles ; then
221 - doicon -s 48 "${DISTDIR}"/${PN}-${SLOT}.png
222 - doicon -s scalable "${DISTDIR}"/${PN}-${SLOT}.svg
223 - make_desktop_entry "crawl-${SLOT}" "crawl-${SLOT}" "crawl-${SLOT}"
224 - fi
225 -}
226 -
227 -pkg_postinst() {
228 - xdg_icon_cache_update
229 -
230 - elog "crawl is a slotted install that supports having"
231 - elog "multiple versions installed. The binary has the"
232 - elog "slot appended, e.g. 'crawl-"${SLOT}"'."
233 -
234 - if use tiles && use ncurses ; then
235 - elog
236 - elog "Since you have enabled both tiles and ncurses frontends"
237 - elog "the ncurses binary is called 'crawl-ncurses-"${SLOT}"' and the"
238 - elog "tiles binary is called 'crawl-"${SLOT}"'."
239 - fi
240 -}
241 -
242 -pkg_postrm() {
243 - xdg_icon_cache_update
244 -}