20 |
20 |
VIRTUALX_REQUIRED="manual"
|
21 |
21 |
inherit desktop python-any-r1 lua-single xdg-utils toolchain-funcs
|
22 |
22 |
|
23 |
|
MY_P="stone_soup-${PV}"
|
24 |
23 |
DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons"
|
25 |
24 |
HOMEPAGE="https://crawl.develz.org"
|
26 |
|
SLOT="0.27"
|
27 |
|
SRC_URI="
|
28 |
|
https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip
|
29 |
|
https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png
|
30 |
|
https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg
|
31 |
|
"
|
|
25 |
SLOT="0.28"
|
|
26 |
|
|
27 |
# Leave empty string if not a _pre release
|
|
28 |
COMMITSHA=""
|
|
29 |
if [ -z "${COMMITSHA}" ]; then
|
|
30 |
# This is a proper release
|
|
31 |
SRC_URI="
|
|
32 |
https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip
|
|
33 |
https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png
|
|
34 |
https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg
|
|
35 |
"
|
|
36 |
MY_P="stone_soup-${PV}"
|
|
37 |
else
|
|
38 |
# This is a _pre release
|
|
39 |
SRC_URI="
|
|
40 |
https://github.com/crawl/crawl/archive/${COMMITSHA}.tar.gz -> ${P}.tar.gz
|
|
41 |
https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png
|
|
42 |
https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg
|
|
43 |
"
|
|
44 |
MY_P="crawl-${COMMITSHA}/crawl-ref"
|
|
45 |
fi
|
32 |
46 |
|
33 |
47 |
# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h
|
34 |
48 |
# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs
|
... | ... | |
40 |
54 |
RESTRICT="!test? ( test )"
|
41 |
55 |
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
42 |
56 |
|
|
57 |
S=${WORKDIR}/${MY_P}/source
|
43 |
58 |
RDEPEND="
|
44 |
59 |
${LUA_DEPS}
|
45 |
60 |
dev-db/sqlite:3
|
... | ... | |
83 |
98 |
app-alternatives/yacc
|
84 |
99 |
"
|
85 |
100 |
|
86 |
|
S=${WORKDIR}/${MY_P}/source
|
87 |
101 |
PATCHES=(
|
88 |
102 |
"${FILESDIR}"/make.patch
|
89 |
103 |
"${FILESDIR}"/rltiles-make.patch
|
... | ... | |
119 |
133 |
sed -i -e "s/GAME = crawl$/GAME = crawl-${SLOT}/" "${S}/Makefile" \
|
120 |
134 |
|| die "Couldn't append slot to executable name"
|
121 |
135 |
|
|
136 |
# File required for a _pre build
|
|
137 |
if ! [ -f "${S}/util/release_ver" ]; then
|
|
138 |
echo "${SLOT}" >"${S}/util/release_ver" || die "Couldn't write release_ver"
|
|
139 |
fi
|
|
140 |
|
122 |
141 |
# Replace bundled catch2 package with system implementation
|
123 |
142 |
# https://bugs.gentoo.org/829950
|
124 |
143 |
if use test; then
|