diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2004-06-03 13:43:57 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2004-06-03 13:43:57 +0000 |
commit | 7bbd4660b0461811e3b565eadc38536346e187eb (patch) | |
tree | 1d2ccd1d037fc3847e82f3dcaec3ba46f578f4d6 /games-action | |
parent | arm KEYWORDS (diff) | |
download | historical-7bbd4660b0461811e3b565eadc38536346e187eb.tar.gz historical-7bbd4660b0461811e3b565eadc38536346e187eb.tar.bz2 historical-7bbd4660b0461811e3b565eadc38536346e187eb.zip |
Initial import. Ebuild submitted by Alexandru Toma <flash3001@yahoo.com>. Closing bug #52682.
Diffstat (limited to 'games-action')
-rw-r--r-- | games-action/battalion/ChangeLog | 10 | ||||
-rw-r--r-- | games-action/battalion/Manifest | 4 | ||||
-rw-r--r-- | games-action/battalion/battalion-1.4b.ebuild | 79 | ||||
-rw-r--r-- | games-action/battalion/files/digest-battalion-1.4b | 1 | ||||
-rw-r--r-- | games-action/battalion/metadata.xml | 5 |
5 files changed, 99 insertions, 0 deletions
diff --git a/games-action/battalion/ChangeLog b/games-action/battalion/ChangeLog new file mode 100644 index 000000000000..e80c1ce7bf0d --- /dev/null +++ b/games-action/battalion/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-action/battalion +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/battalion/ChangeLog,v 1.1 2004/06/03 13:43:56 wolf31o2 Exp $ + +*battalion-1.4b (03 Jun 2004) + + 03 Jun 2004; Chris Gianelloni <wolf31o2@gentoo.org> +battalion-1.4b.ebuild: + Initial import. Ebuild submitted by Alexandru Toma <flash3001@yahoo.com>. + Closing bug #52682. + diff --git a/games-action/battalion/Manifest b/games-action/battalion/Manifest new file mode 100644 index 000000000000..80328e4af930 --- /dev/null +++ b/games-action/battalion/Manifest @@ -0,0 +1,4 @@ +MD5 7cff7284e5d73e331f278ab11bc27174 battalion-1.4b.ebuild 1791 +MD5 c2e93e79a939c66f93bc71a133386ab7 ChangeLog 436 +MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 +MD5 b52bd3a03b360ec5ae1bb934a5bcc61c files/digest-battalion-1.4b 66 diff --git a/games-action/battalion/battalion-1.4b.ebuild b/games-action/battalion/battalion-1.4b.ebuild new file mode 100644 index 000000000000..df01ea1cc9fa --- /dev/null +++ b/games-action/battalion/battalion-1.4b.ebuild @@ -0,0 +1,79 @@ +# 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.1 2004/06/03 13:43:56 wolf31o2 Exp $ + +inherit games + +DESCRIPTION="Be a rampaging monster and destroy the city." +HOMEPAGE="http://evlweb.eecs.uic.edu/aej/AndyBattalion.html" +SRC_URI="http://evlweb.eecs.uic.edu/aej/BATTALION/${PN}${PV}.tar.bz2" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="virtual/x11 + virtual/opengl" + +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +S="${WORKDIR}/${PN}${PV}" +dir="${GAMES_DATADIR}/${PN}" + +src_unpack() { + unpack ${A} + cd ${S} + + # Modify data paths + sed -i \ + -e "s:SOUNDS/:${dir}/SOUNDS/:" \ + -e "s:MUSIC/:${dir}/MUSIC/:" \ + audio.c || die "sed audio.c failed" + sed -i \ + -e "s:DATA/:${dir}/DATA/:" \ + -e "s:/usr/tmp:${GAMES_STATEDIR}:" \ + battalion.c || die "sed battalion.c failed" + sed -i \ + -e "s:TEXTURES/:${dir}/TEXTURES/:" \ + graphics.c || die "sed graphics.c failed" + + # Modify Makefile and add CFLAGS + 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 + insinto ${dir}/${f} + doins ${f}/* + done + + dodoc README + dogamesbin battalion + + insinto ${GAMES_STATEDIR} + touch ${D}${GAMES_STATEDIR}/battalion_hiscore + fperms 660 ${GAMES_STATEDIR}/battalion_hiscore + + prepgamesdirs +} + +pkg_postinst() { + einfo "Sound and music are not enabled by default." + einfo "Use the S and M keys to enable them in-game, or start the game with" + einfo "the -s and -m switches: battalion -s -m" +} diff --git a/games-action/battalion/files/digest-battalion-1.4b b/games-action/battalion/files/digest-battalion-1.4b new file mode 100644 index 000000000000..48e1a5b6faac --- /dev/null +++ b/games-action/battalion/files/digest-battalion-1.4b @@ -0,0 +1 @@ +MD5 c72d74b78d7a3298525be3da1c02ecb1 battalion1.4b.tar.bz2 942342 diff --git a/games-action/battalion/metadata.xml b/games-action/battalion/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-action/battalion/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> |