/[gentoo-x86]/games-arcade/xgalaga/xgalaga-2.1.1.0.ebuild
Gentoo

Contents of /games-arcade/xgalaga/xgalaga-2.1.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Jan 5 20:31:56 2015 UTC (5 years, 6 months ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +6 -6 lines
EAPI 5

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0145142D)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-arcade/xgalaga/xgalaga-2.1.1.0.ebuild,v 1.6 2010/01/06 14:01:20 josejx Exp $
4
5 EAPI=5
6 inherit eutils games
7
8 DESCRIPTION="A clone of the classic game Galaga for the X Window System"
9 HOMEPAGE="http://sourceforge.net/projects/xgalaga"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 ppc sparc x86"
15 IUSE=""
16
17 RDEPEND="x11-libs/libX11
18 x11-libs/libXmu
19 x11-libs/libXpm
20 x11-libs/libXext
21 x11-libs/libXt"
22 DEPEND="${RDEPEND}
23 x11-proto/xproto"
24
25 src_prepare() {
26 sed -i \
27 -e "/LEVELDIR\|SOUNDDIR/ s:prefix:datadir/${PN}:" \
28 -e "/\/scores/ s:prefix:localstatedir/${PN}:" \
29 configure \
30 || die "sed configure failed"
31 sed -i \
32 -e "/SOUNDDEFS/ s:(SOUNDSRVDIR):(SOUNDSRVDIR)/bin:" \
33 -e 's:make ;:$(MAKE) ;:' \
34 Makefile.in \
35 || die "sed Makefile.in failed"
36 }
37
38 src_install() {
39 dogamesbin xgalaga xgal.sndsrv.oss xgalaga-hyperspace
40 dodoc README README.SOUND CHANGES
41 newman xgalaga.6x xgalaga.6
42
43 insinto "${GAMES_DATADIR}/${PN}/sounds"
44 doins sounds/*.raw
45
46 insinto "${GAMES_DATADIR}/${PN}/levels"
47 doins levels/*.xgl
48
49 make_desktop_entry ${PN} XGalaga
50
51 dodir "${GAMES_STATEDIR}/${PN}"
52 touch "${D}${GAMES_STATEDIR}/${PN}/scores"
53 fperms 660 "${GAMES_STATEDIR}/${PN}/scores"
54 prepgamesdirs
55 }

  ViewVC Help
Powered by ViewVC 1.1.20