1 |
hasufell 14/10/27 19:59:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: stone-soup-0.15.2.ebuild |
5 |
Log: |
6 |
version bump, possibly fix bug #527034 |
7 |
|
8 |
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key BDEED020) |
9 |
|
10 |
Revision Changes Path |
11 |
1.42 games-roguelike/stone-soup/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/ChangeLog?rev=1.42&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/ChangeLog?rev=1.42&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/ChangeLog?r1=1.41&r2=1.42 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/ChangeLog,v |
20 |
retrieving revision 1.41 |
21 |
retrieving revision 1.42 |
22 |
diff -u -r1.41 -r1.42 |
23 |
--- ChangeLog 27 Oct 2014 02:58:21 -0000 1.41 |
24 |
+++ ChangeLog 27 Oct 2014 19:59:02 -0000 1.42 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for games-roguelike/stone-soup |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/ChangeLog,v 1.41 2014/10/27 02:58:21 patrick Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/ChangeLog,v 1.42 2014/10/27 19:59:02 hasufell Exp $ |
30 |
+ |
31 |
+*stone-soup-0.15.2 (27 Oct 2014) |
32 |
+ |
33 |
+ 27 Oct 2014; Julian Ospald <hasufell@g.o> +stone-soup-0.15.2.ebuild, |
34 |
+ +files/stone-soup-0.15.2-Use-pkg-config-for-linking-to-ncurses.patch, |
35 |
+ +files/stone-soup-0.15.2-respect-flags-and-compiler.patch: |
36 |
+ version bump, possibly fix bug #527034 |
37 |
|
38 |
27 Oct 2014; Patrick Lauer <patrick@g.o> stone-soup-0.13.2.ebuild, |
39 |
stone-soup-0.14.1.ebuild, stone-soup-0.14.2.ebuild, |
40 |
|
41 |
|
42 |
|
43 |
1.1 games-roguelike/stone-soup/stone-soup-0.15.2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/stone-soup-0.15.2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/stone-soup-0.15.2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: stone-soup-0.15.2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/stone-soup-0.15.2.ebuild,v 1.1 2014/10/27 19:59:02 hasufell Exp $ |
53 |
|
54 |
## TODO |
55 |
# add sound support (no build switch, no sound files) |
56 |
|
57 |
# cross compiling is severly broken |
58 |
|
59 |
EAPI=5 |
60 |
VIRTUALX_REQUIRED="manual" |
61 |
inherit eutils gnome2-utils virtualx toolchain-funcs games |
62 |
|
63 |
MY_P="stone_soup-${PV}" |
64 |
DESCRIPTION="Dungeon Crawl Stone Soup is a role-playing roguelike game of exploration and treasure-hunting in dungeons" |
65 |
HOMEPAGE="http://crawl.develz.org/wordpress/" |
66 |
SRC_URI="mirror://sourceforge/crawl-ref/Stone%20Soup/${PV}/${MY_P}.tar.xz |
67 |
http://dev.gentoo.org/~hasufell/distfiles/${PN}.png |
68 |
http://dev.gentoo.org/~hasufell/distfiles/${PN}.svg" |
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 |
SLOT="0" |
76 |
KEYWORDS="~amd64 ~x86" |
77 |
IUSE="debug luajit ncurses test +tiles" |
78 |
# test is broken |
79 |
# see https://crawl.develz.org/mantis/view.php?id=6121 |
80 |
#RESTRICT="!debug? ( test )" |
81 |
RESTRICT="test" |
82 |
|
83 |
RDEPEND=" |
84 |
dev-db/sqlite:3 |
85 |
luajit? ( >=dev-lang/luajit-2.0.0 ) |
86 |
sys-libs/zlib |
87 |
!ncurses? ( !tiles? ( sys-libs/ncurses ) ) |
88 |
ncurses? ( sys-libs/ncurses ) |
89 |
tiles? ( |
90 |
media-fonts/dejavu |
91 |
media-libs/freetype:2 |
92 |
media-libs/libpng:0 |
93 |
media-libs/libsdl[X,opengl,video] |
94 |
media-libs/sdl-image[png] |
95 |
virtual/glu |
96 |
virtual/opengl |
97 |
)" |
98 |
DEPEND="${RDEPEND} |
99 |
dev-lang/perl |
100 |
sys-devel/flex |
101 |
virtual/pkgconfig |
102 |
virtual/yacc |
103 |
tiles? ( |
104 |
sys-libs/ncurses |
105 |
test? ( ${VIRTUALX_DEPEND} ) |
106 |
)" |
107 |
|
108 |
S=${WORKDIR}/${MY_P}/source |
109 |
S_TEST=${WORKDIR}/${MY_P}_test/source |
110 |
|
111 |
pkg_setup() { |
112 |
games_pkg_setup |
113 |
if use !ncurses && use !tiles ; then |
114 |
ewarn "Neither ncurses nor tiles frontend" |
115 |
ewarn "selected, choosing ncurses only." |
116 |
ewarn "Note that you can also enable both." |
117 |
fi |
118 |
} |
119 |
|
120 |
src_prepare() { |
121 |
epatch "${FILESDIR}"/${P}-respect-flags-and-compiler.patch \ |
122 |
"${FILESDIR}"/${P}-Use-pkg-config-for-linking-to-ncurses.patch |
123 |
|
124 |
rm -r contrib/{fonts,freetype,libpng,pcre,sdl,sdl-image,sqlite,zlib} || die |
125 |
|
126 |
# if use test ; then |
127 |
# cp -av "${WORKDIR}/${MY_P}" "${WORKDIR}/${MY_P}_test" \ |
128 |
# || die "setting up test-dir failed" |
129 |
# fi |
130 |
} |
131 |
|
132 |
src_compile() { |
133 |
export HOSTCXX=$(tc-getBUILD_CXX) |
134 |
|
135 |
# leave DATADIR at the top |
136 |
myemakeargs=( |
137 |
$(usex luajit "" "BUILD_LUA=yes") # luajit is not bundled |
138 |
USE_LUAJIT=$(usex luajit "yes" "") |
139 |
DATADIR="${GAMES_DATADIR}/${PN}" |
140 |
V=1 |
141 |
prefix="${GAMES_PREFIX}" |
142 |
SAVEDIR="~/.crawl" |
143 |
$(usex debug "FULLDEBUG=y DEBUG=y" "") |
144 |
CFOPTIMIZE="${CXXFLAGS}" |
145 |
LDFLAGS="${LDFLAGS}" |
146 |
MAKEOPTS="${MAKEOPTS}" |
147 |
AR="$(tc-getAR)" |
148 |
RANLIB="$(tc-getRANLIB)" |
149 |
CC="$(tc-getCC)" |
150 |
CXX="$(tc-getCXX)" |
151 |
PKGCONFIG="$(tc-getPKG_CONFIG)" |
152 |
STRIP=touch |
153 |
) |
154 |
|
155 |
if use ncurses || (use !ncurses && use !tiles) ; then |
156 |
emake "${myemakeargs[@]}" |
157 |
# move it in case we build both variants |
158 |
use tiles && { mv crawl "${WORKDIR}"/crawl-ncurses || die ;} |
159 |
fi |
160 |
|
161 |
if use tiles ; then |
162 |
emake clean |
163 |
emake "${myemakeargs[@]}" "TILES=y" |
164 |
fi |
165 |
|
166 |
# for test to work we need to compile with unset DATADIR |
167 |
# if use test ; then |
168 |
# emake ${myemakeargs[@]:1} -C "${S_TEST}" |
169 |
# fi |
170 |
} |
171 |
|
172 |
src_install() { |
173 |
emake "${myemakeargs[@]}" $(usex tiles "TILES=y" "") DESTDIR="${D}" prefix_fp="" bin_prefix="${D}${GAMES_BINDIR}" install |
174 |
[[ -e "${WORKDIR}"/crawl-ncurses ]] && dogamesbin "${WORKDIR}"/crawl-ncurses |
175 |
|
176 |
# don't relocate docs, needed at runtime |
177 |
rm -rf "${D}${GAMES_DATADIR}"/${PN}/docs/license |
178 |
dodoc "${WORKDIR}"/${MY_P}/README.{txt,pdf} |
179 |
|
180 |
# icons and menu for graphical build |
181 |
if use tiles ; then |
182 |
doicon -s 48 "${DISTDIR}"/${PN}.png |
183 |
doicon -s scalable "${DISTDIR}"/${PN}.svg |
184 |
make_desktop_entry crawl |
185 |
fi |
186 |
|
187 |
prepgamesdirs |
188 |
} |
189 |
|
190 |
src_test() { |
191 |
$(usex tiles "X" "")emake "${myemakeargs[@]:1}" -C "${S_TEST}" test |
192 |
} |
193 |
|
194 |
pkg_preinst() { |
195 |
games_pkg_preinst |
196 |
gnome2_icon_savelist |
197 |
} |
198 |
|
199 |
pkg_postinst() { |
200 |
games_pkg_postinst |
201 |
gnome2_icon_cache_update |
202 |
|
203 |
if use tiles && use ncurses ; then |
204 |
elog "Since you have enabled both tiles and ncurses frontends" |
205 |
elog "the ncurses binary is called 'crawl-ncurses' and the" |
206 |
elog "tiles binary is called 'crawl'." |
207 |
fi |
208 |
} |
209 |
|
210 |
pkg_postrm() { |
211 |
gnome2_icon_cache_update |
212 |
} |