You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.5 KiB
58 lines
1.5 KiB
13 years ago
|
# Copyright 1999-2011 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/games-action/chickens/chickens-0.2.4.ebuild,v 1.17 2011/08/07 17:07:41 armin76 Exp $
|
||
|
|
||
|
EAPI=2
|
||
|
inherit eutils games
|
||
|
|
||
|
MY_P="ChickensForLinux-Linux-${PV}"
|
||
|
DESCRIPTION="Target chickens with rockets and shotguns. Funny"
|
||
|
HOMEPAGE="http://www.chickensforlinux.com"
|
||
|
SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
|
||
|
|
||
|
LICENSE="as-is"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="amd64 ppc x86"
|
||
|
IUSE=""
|
||
|
|
||
|
DEPEND="<media-libs/allegro-5"
|
||
|
|
||
|
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 failed"
|
||
|
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 failed"
|
||
|
sed -i \
|
||
|
-e '/^CPPFLAGS/d' \
|
||
|
-e 's:g++:\\$(CXX) \\$(CXXFLAGS) \\$(LDFLAGS):' \
|
||
|
configure \
|
||
|
|| die "sed failed"
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
bash ./configure || die "configure failed"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dogamesbin ${PN} || die "dogamesbin failed"
|
||
|
insinto "${GAMES_DATADIR}"/${PN}
|
||
|
doins -r dat sound || die "doins failed"
|
||
|
dodoc AUTHOR README
|
||
|
insinto "${GAMES_STATEDIR}"/${PN}
|
||
|
doins HighScores || die "doins failed"
|
||
|
insinto "${GAMES_SYSCONFDIR}"/${PN}
|
||
|
doins options.cfg || die "doins failed"
|
||
|
fperms g+w "${GAMES_STATEDIR}"/${PN}/HighScores
|
||
|
make_desktop_entry ${PN} Chickens
|
||
|
prepgamesdirs
|
||
|
}
|