/[gentoo-x86]/games-roguelike/wrogue/wrogue-0.8.0b.ebuild
Gentoo

Contents of /games-roguelike/wrogue/wrogue-0.8.0b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Oct 5 20:37:35 2012 UTC (2 years, 2 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +4 -4 lines
upstream went away (bug #420837)

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-roguelike/wrogue/wrogue-0.8.0b.ebuild,v 1.3 2010/10/14 10:15:09 tupone Exp $
4
5 EAPI=2
6 inherit eutils games
7
8 DESCRIPTION="Gothic science fantasy roguelike game"
9 HOMEPAGE="https://freecode.com/projects/wrogue"
10 SRC_URI="mirror://gentoo/${P}.zip"
11
12 LICENSE="GPL-3"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE=""
16
17 RDEPEND="media-libs/libsdl[video]"
18 DEPEND="${RDEPEND}
19 app-arch/unzip"
20
21 src_prepare() {
22 sed -i \
23 -e "/AppData\[0\]/ s:AppData.*:strcpy(AppData, \"${GAMES_DATADIR}/${PN}/\");:" \
24 src/lib/appdir.c \
25 || die "sed failed"
26 epatch "${FILESDIR}"/${P}-ldflags.patch
27 }
28
29 src_compile() {
30 local myCPPFLAGS="-std=c99 -Iinclude -Ilib -Iui -Igenerate"
31 local myCFLAGS="$(sdl-config --cflags) ${CFLAGS}"
32 emake -C src -f linux.mak STRIP_BINARY=NO \
33 CFLAGS="${myCPPFLAGS} ${myCFLAGS}" release || die "emake failed"
34 }
35
36 src_install() {
37 dogamesbin ${PN} || die "dogamesbin failed"
38 insinto "${GAMES_DATADIR}/${PN}"
39 doins -r data || die "doins failed"
40 dodoc changes.txt
41
42 newicon data/ui/icon.bmp ${PN}.bmp
43 make_desktop_entry ${PN} "Warp Rogue" /usr/share/pixmaps/${PN}.bmp
44
45 prepgamesdirs
46 }

  ViewVC Help
Powered by ViewVC 1.1.20