summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-03-30 22:36:12 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2015-03-30 22:36:12 +0000
commit61b42330684fc9019f2dbfafac68e5643d401d15 (patch)
tree384731583cc1c778a7e4320f77a48b7d21c3b000 /games-action/battalion/battalion-1.4b.ebuild
parentEAPI=5 (diff)
downloadhistorical-61b42330684fc9019f2dbfafac68e5643d401d15.tar.gz
historical-61b42330684fc9019f2dbfafac68e5643d401d15.tar.bz2
historical-61b42330684fc9019f2dbfafac68e5643d401d15.zip
EAPI=5
Package-Manager: portage-2.2.14/cvs/Linux x86_64
Diffstat (limited to 'games-action/battalion/battalion-1.4b.ebuild')
-rw-r--r--games-action/battalion/battalion-1.4b.ebuild27
1 files changed, 15 insertions, 12 deletions
diff --git a/games-action/battalion/battalion-1.4b.ebuild b/games-action/battalion/battalion-1.4b.ebuild
index 6dab47d753da..285492ed77ab 100644
--- a/games-action/battalion/battalion-1.4b.ebuild
+++ b/games-action/battalion/battalion-1.4b.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/battalion/battalion-1.4b.ebuild,v 1.17 2014/08/10 21:21:43 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/battalion/battalion-1.4b.ebuild,v 1.18 2015/03/30 22:36:05 mr_bones_ Exp $
-EAPI=2
-inherit games
+EAPI=5
+inherit eutils games
DESCRIPTION="Be a rampaging monster and destroy the city"
HOMEPAGE="http://evlweb.eecs.uic.edu/aej/AndyBattalion.html"
@@ -15,41 +15,44 @@ KEYWORDS="ppc x86"
IUSE=""
DEPEND="virtual/opengl
- virtual/glu"
+ virtual/glu
+ x11-libs/libX11"
+RDEPEND=${DEPEND}
S=${WORKDIR}/${PN}${PV}
src_prepare() {
+ epatch "${FILESDIR}"/${P}-warning.patch
# Modify data paths
sed -i \
-e "s:SOUNDS/:${GAMES_DATADIR}/${PN}/SOUNDS/:" \
-e "s:MUSIC/:${GAMES_DATADIR}/${PN}/MUSIC/:" \
- audio.c || die "sed audio.c failed"
+ audio.c || die
sed -i \
-e "s:DATA/:${GAMES_DATADIR}/${PN}/DATA/:" \
-e "s:/usr/tmp:${GAMES_STATEDIR}:" \
- battalion.c || die "sed battalion.c failed"
+ battalion.c || die
sed -i \
-e "s:TEXTURES/:${GAMES_DATADIR}/${PN}/TEXTURES/:" \
- graphics.c || die "sed graphics.c failed"
+ graphics.c || die
# Modify Makefile and add CFLAGS
sed -i \
-e "s:-O2:${CFLAGS}:" \
-e "/^CC/d" \
- Makefile || die "sed Makefile failed"
+ Makefile || die
# Only .raw sound files are used on Linux. The .au files are not needed.
rm -f {SOUNDS,MUSIC}/*.au
}
src_compile() {
- emake LIBFLAGS="${LDFLAGS}" || die "died running emake"
+ emake LIBFLAGS="${LDFLAGS}"
}
src_install() {
- dogamesbin battalion || die "dogamesbin failed"
+ dogamesbin battalion
insinto "${GAMES_DATADIR}"/${PN}
- doins -r DATA MUSIC SOUNDS TEXTURES || die "doins failed"
+ doins -r DATA MUSIC SOUNDS TEXTURES
dodoc README
dodir "${GAMES_STATEDIR}"