Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-roguelike/stone-soup: stone-soup-0.11.1-r1.ebuild metadata.xml ChangeLog
Date: Thu, 29 Nov 2012 13:42:35
Message-Id: 20121129134159.4172020C65@flycatcher.gentoo.org
1 hasufell 12/11/29 13:41:59
2
3 Modified: metadata.xml ChangeLog
4 Added: stone-soup-0.11.1-r1.ebuild
5 Log:
6 add ncurses useflag, allowing to build both variants at the same time
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.2 games-roguelike/stone-soup/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/metadata.xml?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/metadata.xml?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/metadata.xml?r1=1.1&r2=1.2
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/metadata.xml,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- metadata.xml 28 Aug 2012 23:17:53 -0000 1.1
24 +++ metadata.xml 29 Nov 2012 13:41:59 -0000 1.2
25 @@ -12,8 +12,9 @@
26 <bugs-to>https://crawl.develz.org/mantis/main_page.php</bugs-to>
27 </upstream>
28 <use>
29 - <flag name='tiles'>Enable for graphical (tiled) build. Uses ncurses
30 - if disabled.
31 + <flag name='tiles'>Enable for graphical (tiled) build.
32 + </flag>
33 + <flag name='ncurses'>Enable for console based build (uses ncurses).
34 </flag>
35 </use>
36 <longdescription lang="en">
37
38
39
40 1.5 games-roguelike/stone-soup/ChangeLog
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/ChangeLog?rev=1.5&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/ChangeLog?rev=1.5&content-type=text/plain
44 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/ChangeLog?r1=1.4&r2=1.5
45
46 Index: ChangeLog
47 ===================================================================
48 RCS file: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/ChangeLog,v
49 retrieving revision 1.4
50 retrieving revision 1.5
51 diff -u -r1.4 -r1.5
52 --- ChangeLog 22 Nov 2012 17:25:29 -0000 1.4
53 +++ ChangeLog 29 Nov 2012 13:41:59 -0000 1.5
54 @@ -1,6 +1,12 @@
55 # ChangeLog for games-roguelike/stone-soup
56 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
57 -# $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/ChangeLog,v 1.4 2012/11/22 17:25:29 hasufell Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/ChangeLog,v 1.5 2012/11/29 13:41:59 hasufell Exp $
59 +
60 +*stone-soup-0.11.1-r1 (29 Nov 2012)
61 +
62 + 29 Nov 2012; Julian Ospald <hasufell@g.o>
63 + +stone-soup-0.11.1-r1.ebuild, metadata.xml:
64 + add ncurses useflag, allowing to build both variants at the same time
65
66 *stone-soup-0.11.1 (22 Nov 2012)
67
68
69
70
71 1.1 games-roguelike/stone-soup/stone-soup-0.11.1-r1.ebuild
72
73 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/stone-soup-0.11.1-r1.ebuild?rev=1.1&view=markup
74 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/stone-soup/stone-soup-0.11.1-r1.ebuild?rev=1.1&content-type=text/plain
75
76 Index: stone-soup-0.11.1-r1.ebuild
77 ===================================================================
78 # Copyright 1999-2012 Gentoo Foundation
79 # Distributed under the terms of the GNU General Public License v2
80 # $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/stone-soup-0.11.1-r1.ebuild,v 1.1 2012/11/29 13:41:59 hasufell Exp $
81
82 ## TODO
83 # add sound support (no build switch, no sound files)
84
85 EAPI=5
86 VIRTUALX_REQUIRED="manual"
87 inherit eutils gnome2-utils virtualx games
88
89 MY_P="stone_soup-${PV}"
90 DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons"
91 HOMEPAGE="http://crawl.develz.org/wordpress/"
92 SRC_URI="mirror://sourceforge/crawl-ref/Stone%20Soup/${PV}/${MY_P}-nodeps.tar.xz
93 http://dev.gentoo.org/~hasufell/distfiles/${PN}.png
94 http://dev.gentoo.org/~hasufell/distfiles/${PN}.svg"
95
96 # 3-clause BSD: mt19937ar.cc, MSVC/stdint.h
97 # 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs
98 # Public Domain|CC0: most of tiles
99 # MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/
100 LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0-Universal MIT"
101 SLOT="0"
102 KEYWORDS="~amd64 ~x86"
103 IUSE="debug +lua ncurses test +tiles"
104 # test is broken
105 # see https://crawl.develz.org/mantis/view.php?id=6121
106 #RESTRICT="!debug? ( test )"
107 RESTRICT="test"
108
109 RDEPEND="
110 dev-db/sqlite:3
111 sys-libs/zlib
112 tiles? (
113 media-libs/freetype:2
114 media-libs/libpng:0
115 media-libs/libsdl[X,opengl,video]
116 media-libs/sdl-image[png]
117 )
118 ncurses? ( sys-libs/ncurses )
119 lua? ( >=dev-lang/lua-5.1.0 )"
120 DEPEND="${RDEPEND}
121 dev-lang/perl
122 sys-devel/flex
123 virtual/yacc
124 tiles? (
125 sys-libs/ncurses
126 virtual/pkgconfig
127 test? ( ${VIRTUALX_DEPEND} )
128 )"
129
130 REQUIRED_USE="|| ( ncurses tiles )"
131
132 S=${WORKDIR}/${MY_P}/source
133
134 src_prepare() {
135 epatch "${FILESDIR}"/${P}-build.patch
136
137 # if use test ; then
138 # cp -av "${WORKDIR}/${MY_P}" "${WORKDIR}/${MY_P}_test" \
139 # || die "setting up test-dir failed"
140 # fi
141 }
142
143 src_compile() {
144 S_TEST=${WORKDIR}/${MY_P}_test/source
145
146 # leave DATADIR at the top
147 myemakeargs=(
148 DATADIR="${GAMES_DATADIR}/${PN}"
149 V=1
150 prefix="${GAMES_PREFIX}"
151 SAVEDIR="~/.crawl"
152 $(usex debug "FULLDEBUG=y DEBUG=y" "")
153 $(usex lua "" "NO_LUA_BINDINGS=y")
154 )
155
156 if use ncurses ; then
157 emake ${myemakeargs[@]}
158 # move it in case we build both variants
159 use tiles && { mv crawl "${WORKDIR}"/crawl-ncurses || die ;}
160 fi
161
162 if use tiles ; then
163 emake clean
164 emake ${myemakeargs[@]} "TILES=y"
165 fi
166
167 # for test to work we need to compile with unset DATADIR
168 # if use test ; then
169 # emake ${myemakeargs[@]:1} -C "${S_TEST}"
170 # fi
171 }
172
173 src_install() {
174 emake ${myemakeargs[@]} $(usex tiles "TILES=y" "") DESTDIR="${D}" install
175 [[ -e "${WORKDIR}"/crawl-ncurses ]] && dogamesbin "${WORKDIR}"/crawl-ncurses
176
177 # don't relocate docs, needed at runtime
178 rm -rf "${D}${GAMES_DATADIR}"/${PN}/docs/license
179 dodoc "${WORKDIR}"/${MY_P}/README.{txt,pdf}
180
181 # icons and menu for graphical build
182 if use tiles ; then
183 doicon -s 48 "${DISTDIR}"/${PN}.png
184 doicon -s scalable "${DISTDIR}"/${PN}.svg
185 make_desktop_entry crawl
186 fi
187
188 prepgamesdirs
189 }
190
191 src_test() {
192 $(usex tiles "X" "")emake ${myemakeargs[@]:1} -C "${S_TEST}" test
193 }
194
195 pkg_preinst() {
196 games_pkg_preinst
197 gnome2_icon_savelist
198 }
199
200 pkg_postinst() {
201 games_pkg_postinst
202 gnome2_icon_cache_update
203
204 echo
205 elog "Your old config folder under '~/.crawl' is not compatible"
206 elog "with the new version. Remove it."
207 echo
208 }
209
210 pkg_postrm() {
211 gnome2_icon_cache_update
212 }