blob: 580d38b150b0bd7d76e9190b69b622cf00f73592 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils games
MY_P="ChickensForLinux-Linux-${PV}"
DESCRIPTION="Target chickens with rockets and shotguns. Funny"
HOMEPAGE="http://www.chickensforlinux.com/"
SRC_URI="http://www.chickensforlinux.com/${MY_P}.tar.gz"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
RESTRICT="mirror bindist"
DEPEND="<media-libs/allegro-5"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}
src_prepare() {
sed -i \
-e "s:HighScores:${GAMES_STATEDIR}/${PN}/HighScores:" \
-e "s:....\(.\)\(_\)\(.*.4x0\)\(.\):M\4\2\x42\x6Fn\1s\2:" \
highscore.cpp HighScores || die
sed -i \
-e "s:options.cfg:${GAMES_SYSCONFDIR}/${PN}/options.cfg:" \
-e "s:\"sound/:\"${GAMES_DATADIR}/${PN}/sound/:" \
-e "s:\"dat/:\"${GAMES_DATADIR}/${PN}/dat/:" \
main.cpp README || die
sed -i \
-e '/^CPPFLAGS/d' \
-e 's:g++:\\$(CXX) \\$(CXXFLAGS) \\$(LDFLAGS):' \
configure || die
}
src_configure() {
bash ./configure || die
}
src_install() {
dogamesbin ${PN}
insinto "${GAMES_DATADIR}"/${PN}
doins -r dat sound
dodoc AUTHOR README
insinto "${GAMES_STATEDIR}"/${PN}
doins HighScores
insinto "${GAMES_SYSCONFDIR}"/${PN}
doins options.cfg
fperms g+w "${GAMES_STATEDIR}"/${PN}/HighScores
make_desktop_entry ${PN} Chickens
prepgamesdirs
}
|