/[gentoo-x86]/games-roguelike/scourge/scourge-0.6.ebuild
Gentoo

Contents of /games-roguelike/scourge/scourge-0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jun 22 04:40:39 2005 UTC (13 years, 3 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
clean old versions
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-roguelike/scourge/scourge-0.6.ebuild,v 1.3 2005/01/28 16:07:52 wolf31o2 Exp $
4
5 inherit games
6
7 DESCRIPTION="A rogue-like adventure game to eliminate pests"
8 HOMEPAGE="http://scourge.sf.net"
9 SRC_URI="mirror://sourceforge/scourge/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="x86 ~ppc amd64"
14 IUSE=""
15
16 DEPEND="virtual/x11
17 virtual/glu
18 virtual/opengl
19 >=media-libs/freetype-2
20 >=media-libs/libsdl-1.2"
21
22 src_unpack() {
23 unpack ${A}
24 cd "${S}/src"
25 sed -i \
26 -e "s:\"data/:\"${GAMES_DATADIR}/${PN}/data/:g" \
27 shapepalette.cpp text.cpp \
28 || die "sed failed"
29 find "${S}" -name .DS_Store -exec rm -f \{\} \;
30 find "${S}/data" -type f -exec chmod a-x \{\} \;
31 }
32
33 src_compile() {
34 egamesconf \
35 --with-data-dir="${GAMES_DATADIR}/${PN}/data" \
36 || die
37
38 emake || die "emake failed"
39 }
40
41 src_install() {
42 dogamesbin src/scourge || die "dogamesbin failed"
43 dodir "${GAMES_DATADIR}/${PN}"
44 cp -r data/ "${D}${GAMES_DATADIR}/${PN}" || die "cp failed"
45 dodoc AUTHORS README || die "dodoc failed"
46 prepgamesdirs
47 }

  ViewVC Help
Powered by ViewVC 1.1.20