/[gentoo-x86]/games-puzzle/arrows/arrows-0.6.ebuild
Gentoo

Contents of /games-puzzle/arrows/arrows-0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri Feb 13 19:53:33 2015 UTC (4 years, 11 months ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +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-puzzle/arrows/arrows-0.6.ebuild,v 1.10 2012/05/04 04:45:28 jdhore Exp $
4
5 EAPI=5
6 inherit games
7
8 DESCRIPTION="simple maze-like game where you navigate around and destroy arrows"
9 HOMEPAGE="http://noreason.ca/?file=software"
10 SRC_URI="http://noreason.ca/data/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ~ppc x86"
15 IUSE=""
16
17 RDEPEND=">=x11-libs/gtk+-2.4:2"
18 DEPEND="${RDEPEND}
19 virtual/pkgconfig"
20
21 src_prepare() {
22 # Modify path to data
23 sed -i \
24 -e "s:arrfl:${GAMES_DATADIR}/${PN}/arrfl:" \
25 -e 's:nm\[9:nm[35:' \
26 -e 's:nm\[6:nm[30:' \
27 -e 's:nm\[7:nm[31:' \
28 game.c \
29 || die 'sed failed'
30 sed -i \
31 -e '/^CC /d' \
32 -e '/CCLIBS/s:$: $(LDFLAGS):' \
33 Makefile \
34 || die 'sed failed'
35 }
36
37 src_compile() {
38 make clean || die "make clean failed"
39 emake CCOPTS="${CFLAGS}"
40 }
41
42 src_install() {
43 dogamesbin arrows
44 insinto "${GAMES_DATADIR}/${PN}"
45 doins arrfl*
46 dodoc README
47 prepgamesdirs
48 }

  ViewVC Help
Powered by ViewVC 1.1.20