/[gentoo-x86]/games-arcade/nibbles/nibbles-0.0.4.ebuild
Gentoo

Contents of /games-arcade/nibbles/nibbles-0.0.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Fri Feb 6 13:44:19 2015 UTC (5 years, 4 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +2 -2 lines
Stable for amd64, wrt bug #539004

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="amd64", signed Manifest commit with key 7194459F)

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/nibbles/nibbles-0.0.4.ebuild,v 1.16 2015/02/05 22:41:02 mr_bones_ Exp $
4
5 EAPI=5
6 inherit eutils games
7
8 MY_P=${PN}-v${PV}
9 DESCRIPTION="An ncurses-based Nibbles clone"
10 HOMEPAGE="http://www.earth.li/projectpurple/progs/nibbles.html"
11 SRC_URI="http://www.earth.li/projectpurple/files/${MY_P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~x86-linux ~ppc-macos"
16 IUSE=""
17
18 DEPEND="sys-libs/ncurses"
19 RDEPEND=${DEPEND}
20
21 S=${WORKDIR}/${MY_P}
22
23 src_prepare() {
24 sed -i \
25 -e "s#/usr/local/games/nibbles.levels#${GAMES_DATADIR}/${PN}#" \
26 nibbles.h || die
27
28 sed -i \
29 -e "s#/var/lib/games/nibbles.score#${GAMES_STATEDIR}/nibbles.scores#" \
30 scoring.h || die
31
32 epatch "${FILESDIR}"/${P}-as-needed.patch
33 }
34
35 src_install() {
36 dogamesbin nibbles
37
38 insinto "${GAMES_DATADIR}/${PN}"
39 doins nibbles.levels/*
40
41 dodir "${GAMES_STATEDIR}"
42 touch "${D}${GAMES_STATEDIR}/nibbles.scores"
43
44 dodoc HISTORY CREDITS TODO README
45
46 prepgamesdirs
47
48 fperms 664 "${GAMES_STATEDIR}/nibbles.scores"
49 }

  ViewVC Help
Powered by ViewVC 1.1.20