summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-06-03 23:17:46 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-06-03 23:17:46 +0000
commit86b8c63cfbdb11fa415d69f6a25f6d26bb46b71a (patch)
tree8433a839ff44bb32dbaa3868dd2a04025c76caf9 /games-action/battalion/battalion-1.4b.ebuild
parentStable on mips. (diff)
downloadhistorical-86b8c63cfbdb11fa415d69f6a25f6d26bb46b71a.tar.gz
historical-86b8c63cfbdb11fa415d69f6a25f6d26bb46b71a.tar.bz2
historical-86b8c63cfbdb11fa415d69f6a25f6d26bb46b71a.zip
use generic src_compile; rm in unpack; use cp instead of doins
Diffstat (limited to 'games-action/battalion/battalion-1.4b.ebuild')
-rw-r--r--games-action/battalion/battalion-1.4b.ebuild25
1 files changed, 6 insertions, 19 deletions
diff --git a/games-action/battalion/battalion-1.4b.ebuild b/games-action/battalion/battalion-1.4b.ebuild
index 55953004a85d..5445b5679ff0 100644
--- a/games-action/battalion/battalion-1.4b.ebuild
+++ b/games-action/battalion/battalion-1.4b.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# 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.3 2004/06/03 23:10:05 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/battalion/battalion-1.4b.ebuild,v 1.4 2004/06/03 23:17:46 mr_bones_ Exp $
inherit games
@@ -43,28 +43,15 @@ src_unpack() {
sed -i \
-e "s:-O2:${CFLAGS}:" \
Makefile || die "sed Makefile failed"
-}
-
-src_compile() {
- emake || die "emake failed"
-}
-
-src_install() {
- local f
-
# Only .raw sound files are used on Linux. The .au files are not needed.
rm {SOUNDS,MUSIC}/*.au
+}
- # Install game data
- for f in DATA MUSIC SOUNDS TEXTURES
- do
- dodir ${dir}/${f}
- insinto ${dir}/${f}
- doins ${f}/*
- done
-
- dodoc README
+src_install() {
dogamesbin battalion || die "dogamesbin failed"
+ dodir "${dir}"
+ cp -r DATA MUSIC SOUNDS TEXTURES "${D}${dir}" || die "cp failed"
+ dodoc README
dodir "${GAMES_STATEDIR}"
touch "${D}${GAMES_STATEDIR}/battalion_hiscore"