/[gentoo-x86]/games-arcade/tuxdash/tuxdash-0.8.ebuild
Gentoo

Contents of /games-arcade/tuxdash/tuxdash-0.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Oct 12 04:28:01 2010 UTC (4 years, 8 months ago) by mr_bones_
Branch: MAIN
Changes since 1.7: +3 -3 lines
tidy
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-arcade/tuxdash/tuxdash-0.8.ebuild,v 1.7 2010/09/30 04:29:54 tupone Exp $
4
5 EAPI=2
6 inherit eutils games
7
8 DESCRIPTION="A simple BoulderDash clone"
9 HOMEPAGE="http://www.tuxdash.de/index.php?language=EN"
10 SRC_URI="http://www.tuxdash.de/ressources/downloads/${PN}_src_${PV}.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
15 IUSE=""
16
17 DEPEND="media-libs/libsdl[video]
18 media-libs/sdl-ttf"
19
20 src_prepare() {
21 rm -f GPL TuxDash
22 sed -i \
23 -e '/^Fullscreen/ s/0/1/' \
24 -e "/^theme/ s:themes:${GAMES_DATADIR}/${PN}/themes:" \
25 config || die "sed failed"
26 sed -i \
27 -e '/PWD/d' \
28 -e '/CurrentDirectory;/d' \
29 -e "s:CurrentDirectory:\"${GAMES_DATADIR}/${PN}\":" \
30 src/main.cpp || die "sed failed"
31 sed -i \
32 -e 's/-Wall/$(E_CXXFLAGS)/' \
33 -e 's/TuxDash/tuxdash/g' \
34 src/Makefile || die "sed failed"
35 epatch "${FILESDIR}"/${P}-ldflags.patch
36 find . -type f -print0 | xargs -0 chmod a-x
37 }
38
39 src_compile() {
40 emake E_CXXFLAGS="${CXXFLAGS}" -C src || die "emake failed"
41 }
42
43 src_install() {
44 dogamesbin tuxdash || die "dogamesbin failed"
45 dodir "${GAMES_DATADIR}/${PN}"
46 cp -r themes maps fonts savegames config "${D}/${GAMES_DATADIR}/${PN}" \
47 || die "cp failed"
48 dodoc README*
49 prepgamesdirs
50 }

  ViewVC Help
Powered by ViewVC 1.1.20