# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=4
+EAPI=5
inherit eutils games
MY_P="ChickensForLinux-Linux-${PV}"
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"
+ 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 failed"
+ main.cpp README || die
sed -i \
-e '/^CPPFLAGS/d' \
-e 's:g++:\\$(CXX) \\$(CXXFLAGS) \\$(LDFLAGS):' \
- configure \
- || die "sed failed"
+ configure || die
}
src_configure() {
- bash ./configure || die "configure failed"
+ bash ./configure || die
}
src_install() {