1 |
commit: 466c72428cd595b9d9b35f16bdaa307c13592256 |
2 |
Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 3 00:01:56 2018 +0000 |
4 |
Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 3 00:01:56 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=466c7242 |
7 |
|
8 |
games-roguelike/stone-soup: Bump to 0.21.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/659200 |
11 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
12 |
|
13 |
games-roguelike/stone-soup/Manifest | 1 + |
14 |
.../stone-soup/stone-soup-0.21.1.ebuild | 143 +++++++++++++++++++++ |
15 |
2 files changed, 144 insertions(+) |
16 |
|
17 |
diff --git a/games-roguelike/stone-soup/Manifest b/games-roguelike/stone-soup/Manifest |
18 |
index 2df6df8fb5b..2f7f184949e 100644 |
19 |
--- a/games-roguelike/stone-soup/Manifest |
20 |
+++ b/games-roguelike/stone-soup/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST stone-soup.png 1351 BLAKE2B cc31abd59701aa6f0fb0bdcd90630ceebf7b3cb8b60f0e2817f8800c5bc4b3a5b9fef63c90a97b6248f306e7e3da0df3863a2195b8771863344d2443e7956d59 SHA512 4695204c8b936f7aac1ba15b02a6115a955fb2c56aa9a0b968ff007bc9a1a59b608110d60cce5625a9b92cd2c869bbea7e15433a53c1a338622809477a5846bc |
23 |
DIST stone-soup.svg 68546 BLAKE2B 7c66286c9e8a3516e8483b3edb628a59fce29d8d248c3fd5b06e308782bbc651814f21ec958b30c36074a2576ced4bb10f291b5236da6f6e865ce1d7cefdf96d SHA512 dca555271faf704eb8ecdf5ee8a763df42cdeba94e9c163608c438cfc73c6fbf53416547050cad57f477ade191842e701785b65b7a9f18e27ceab05df8f2f75f |
24 |
DIST stone_soup-0.20.1.tar.xz 28372712 BLAKE2B c12a76afcaf1691a74f23bc2b2927ac2573cb83c602a50aab1567b9e2077c6f12f0847c8c27f17c45941660ab0fac1c28b2531c176c1fc0d4e946b84456d4e75 SHA512 420ccc3c66977da8ae15f9c0465b01a6260ad5db450efced3041455674922e714d9aaed226e1bc32fa3c22bca1ec06bd91979a9378c6ab08fbe1d2bfc3f0da4a |
25 |
+DIST stone_soup-0.21.1.tar.xz 29091300 BLAKE2B 0ce29554483eb244eb74ef08c3e2a7d253037cec141e90fba0bf5f59eebb30dad0668c997eba0d6ea12a354d515fe770cc7fcf6a2afb8c968a09cb9a337bcde4 SHA512 1fa50e5b434391b6f3abad62931318f28dd2af3d3148a72c1f2ff80142f3ce9128b8fe6e5b8fbcc502a3d7e79b777bd9f345f8cca06d7e3dbe7575a42f8bd9e7 |
26 |
|
27 |
diff --git a/games-roguelike/stone-soup/stone-soup-0.21.1.ebuild b/games-roguelike/stone-soup/stone-soup-0.21.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..14ea7d7dbe8 |
30 |
--- /dev/null |
31 |
+++ b/games-roguelike/stone-soup/stone-soup-0.21.1.ebuild |
32 |
@@ -0,0 +1,143 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+## TODO |
37 |
+# add sound support (no sound files) |
38 |
+ |
39 |
+EAPI=6 |
40 |
+VIRTUALX_REQUIRED="manual" |
41 |
+inherit eutils gnome2-utils toolchain-funcs eapi7-ver |
42 |
+ |
43 |
+MY_P="stone_soup-${PV}" |
44 |
+DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons" |
45 |
+HOMEPAGE="http://crawl.develz.org/wordpress/" |
46 |
+SRC_URI=" |
47 |
+ https://crawl.develz.org/release/$(ver_cut 1-2)/${PN/-/_}-${PV}.tar.xz |
48 |
+ https://dev.gentoo.org/~hasufell/distfiles/${PN}.png |
49 |
+ https://dev.gentoo.org/~hasufell/distfiles/${PN}.svg |
50 |
+" |
51 |
+ |
52 |
+# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h |
53 |
+# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs |
54 |
+# Public Domain|CC0: most of tiles |
55 |
+# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/ |
56 |
+LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0 MIT" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64 ~x86" |
59 |
+IUSE="debug luajit ncurses test +tiles" |
60 |
+# test is broken |
61 |
+# see https://crawl.develz.org/mantis/view.php?id=6121 |
62 |
+RESTRICT="test" |
63 |
+ |
64 |
+RDEPEND=" |
65 |
+ dev-db/sqlite:3 |
66 |
+ luajit? ( >=dev-lang/luajit-2.0.0 ) |
67 |
+ sys-libs/zlib |
68 |
+ !ncurses? ( !tiles? ( sys-libs/ncurses:0 ) ) |
69 |
+ ncurses? ( sys-libs/ncurses:0 ) |
70 |
+ tiles? ( |
71 |
+ media-fonts/dejavu |
72 |
+ media-libs/freetype:2 |
73 |
+ media-libs/libpng:0 |
74 |
+ media-libs/libsdl2[X,opengl,video] |
75 |
+ media-libs/sdl2-image[png] |
76 |
+ virtual/glu |
77 |
+ virtual/opengl |
78 |
+ )" |
79 |
+DEPEND="${RDEPEND} |
80 |
+ dev-lang/perl |
81 |
+ sys-devel/flex |
82 |
+ virtual/pkgconfig |
83 |
+ virtual/yacc |
84 |
+ tiles? ( |
85 |
+ sys-libs/ncurses:0 |
86 |
+ )" |
87 |
+ |
88 |
+S=${WORKDIR}/${MY_P}/source |
89 |
+S_TEST=${WORKDIR}/${MY_P}_test/source |
90 |
+PATCHES=( |
91 |
+ "${FILESDIR}"/${PN}-0.20.1-rltiles-ldflags-libs.patch |
92 |
+) |
93 |
+ |
94 |
+pkg_setup() { |
95 |
+ if use !ncurses && use !tiles ; then |
96 |
+ ewarn "Neither ncurses nor tiles frontend" |
97 |
+ ewarn "selected, choosing ncurses only." |
98 |
+ ewarn "Note that you can also enable both." |
99 |
+ fi |
100 |
+} |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ default |
104 |
+ |
105 |
+ rm -r contrib/{fonts,freetype,libpng,pcre,sdl2,sdl2-image,sdl2-mixer,sqlite,zlib} || die |
106 |
+} |
107 |
+ |
108 |
+src_compile() { |
109 |
+ export HOSTCXX=$(tc-getBUILD_CXX) |
110 |
+ |
111 |
+ # leave DATADIR at the top |
112 |
+ myemakeargs=( |
113 |
+ $(usex debug "FULLDEBUG=y DEBUG=y" "") |
114 |
+ $(usex luajit "" "BUILD_LUA=yes") # luajit is not bundled |
115 |
+ AR="$(tc-getAR)" |
116 |
+ CFOPTIMIZE='' |
117 |
+ CFOTHERS="${CXXFLAGS}" |
118 |
+ DATADIR="/usr/share/${PN}" |
119 |
+ GCC="$(tc-getCC)" |
120 |
+ GXX="$(tc-getCXX)" |
121 |
+ LDFLAGS="${LDFLAGS}" |
122 |
+ MAKEOPTS="${MAKEOPTS}" |
123 |
+ PKGCONFIG="$(tc-getPKG_CONFIG)" |
124 |
+ RANLIB="$(tc-getRANLIB)" |
125 |
+ SAVEDIR="~/.crawl" |
126 |
+ STRIP=touch |
127 |
+ USE_LUAJIT=$(usex luajit "yes" "") |
128 |
+ V=1 |
129 |
+ prefix="/usr" |
130 |
+ ) |
131 |
+ |
132 |
+ if use ncurses || (use !ncurses && use !tiles) ; then |
133 |
+ emake "${myemakeargs[@]}" |
134 |
+ # move it in case we build both variants |
135 |
+ use tiles && { mv crawl "${WORKDIR}"/crawl-ncurses || die ;} |
136 |
+ fi |
137 |
+ |
138 |
+ if use tiles ; then |
139 |
+ emake clean |
140 |
+ emake "${myemakeargs[@]}" "TILES=y" |
141 |
+ fi |
142 |
+} |
143 |
+ |
144 |
+src_install() { |
145 |
+ emake "${myemakeargs[@]}" $(usex tiles "TILES=y" "") DESTDIR="${D}" prefix_fp="" bin_prefix="${D}/usr/bin" install |
146 |
+ [[ -e "${WORKDIR}"/crawl-ncurses ]] && dobin "${WORKDIR}"/crawl-ncurses |
147 |
+ |
148 |
+ # don't relocate docs, needed at runtime |
149 |
+ rm -rf "${D}/usr/share/${PN}"/docs/license |
150 |
+ |
151 |
+ # icons and menu for graphical build |
152 |
+ if use tiles ; then |
153 |
+ doicon -s 48 "${DISTDIR}"/${PN}.png |
154 |
+ doicon -s scalable "${DISTDIR}"/${PN}.svg |
155 |
+ make_desktop_entry crawl |
156 |
+ fi |
157 |
+} |
158 |
+ |
159 |
+pkg_preinst() { |
160 |
+ gnome2_icon_savelist |
161 |
+} |
162 |
+ |
163 |
+pkg_postinst() { |
164 |
+ gnome2_icon_cache_update |
165 |
+ |
166 |
+ if use tiles && use ncurses ; then |
167 |
+ elog "Since you have enabled both tiles and ncurses frontends" |
168 |
+ elog "the ncurses binary is called 'crawl-ncurses' and the" |
169 |
+ elog "tiles binary is called 'crawl'." |
170 |
+ fi |
171 |
+} |
172 |
+ |
173 |
+pkg_postrm() { |
174 |
+ gnome2_icon_cache_update |
175 |
+} |