summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-04-14 19:10:47 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-04-14 19:10:47 +0000
commit32f7a4cfc0c5c2693138f6fefabc6d5c90551f4e (patch)
tree29f1293a0ccfbdaf04c69bc6b59afda2cc23d5ae /games-arcade/rockdodger
parent1.11.15 stable on all archs (security update) (diff)
downloadhistorical-32f7a4cfc0c5c2693138f6fefabc6d5c90551f4e.tar.gz
historical-32f7a4cfc0c5c2693138f6fefabc6d5c90551f4e.tar.bz2
historical-32f7a4cfc0c5c2693138f6fefabc6d5c90551f4e.zip
initial commit; ebuild by Alexandru Toma via bug #47431
Diffstat (limited to 'games-arcade/rockdodger')
-rw-r--r--games-arcade/rockdodger/ChangeLog10
-rw-r--r--games-arcade/rockdodger/Manifest4
-rw-r--r--games-arcade/rockdodger/files/digest-rockdodger-0.6.0a1
-rw-r--r--games-arcade/rockdodger/metadata.xml5
-rw-r--r--games-arcade/rockdodger/rockdodger-0.6.0a.ebuild54
5 files changed, 74 insertions, 0 deletions
diff --git a/games-arcade/rockdodger/ChangeLog b/games-arcade/rockdodger/ChangeLog
new file mode 100644
index 000000000000..2506165e279c
--- /dev/null
+++ b/games-arcade/rockdodger/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-arcade/rockdodger
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/rockdodger/ChangeLog,v 1.1 2004/04/14 19:10:47 mr_bones_ Exp $
+
+*rockdodger-0.6.0a (14 Apr 2004)
+
+ 14 Apr 2004; Michael Sterrett <mr_bones_@gentoo.org> metadata.xml,
+ rockdodger-0.6.0a.ebuild:
+ initial commit; ebuild by Alexandru Toma via bug #47431
+
diff --git a/games-arcade/rockdodger/Manifest b/games-arcade/rockdodger/Manifest
new file mode 100644
index 000000000000..20a95b8c6200
--- /dev/null
+++ b/games-arcade/rockdodger/Manifest
@@ -0,0 +1,4 @@
+MD5 ef50ef229ce1b61e420fd8d5f2255688 rockdodger-0.6.0a.ebuild 1506
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+MD5 b7e5f6384b10a8b6eac9d43a2e08e308 ChangeLog 421
+MD5 050672dcfe88d3c6f8d27c3e7ce26025 files/digest-rockdodger-0.6.0a 69
diff --git a/games-arcade/rockdodger/files/digest-rockdodger-0.6.0a b/games-arcade/rockdodger/files/digest-rockdodger-0.6.0a
new file mode 100644
index 000000000000..188c9fc3fe7d
--- /dev/null
+++ b/games-arcade/rockdodger/files/digest-rockdodger-0.6.0a
@@ -0,0 +1 @@
+MD5 dbeeabe6bbb57321ba221345d6390170 rockdodger-0.6.0a.tar.gz 410223
diff --git a/games-arcade/rockdodger/metadata.xml b/games-arcade/rockdodger/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/rockdodger/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>
diff --git a/games-arcade/rockdodger/rockdodger-0.6.0a.ebuild b/games-arcade/rockdodger/rockdodger-0.6.0a.ebuild
new file mode 100644
index 000000000000..fd2a61c30ef4
--- /dev/null
+++ b/games-arcade/rockdodger/rockdodger-0.6.0a.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/rockdodger/rockdodger-0.6.0a.ebuild,v 1.1 2004/04/14 19:10:47 mr_bones_ Exp $
+
+inherit games
+
+DESCRIPTION="Dodge the rocks for as long as possible until you die. Kill greeblies to make the universe safe for non-greeblie life once again."
+HOMEPAGE="http://spacerocks.sourceforge.net/"
+SRC_URI="mirror://sourceforge/spacerocks/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+RDEPEND=">=media-libs/libsdl-1.2.2
+ >=media-libs/sdl-image-1.2
+ >=media-libs/sdl-mixer-1.2"
+
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ GAME_DEST_DIR="${GAMES_DATADIR}/${PN}"
+ unpack ${A}
+ cd ${S}
+
+ # Modify highscores & data directory and add our CFLAGS to the Makefile
+ sed -i \
+ -e "s:\./data:${GAME_DEST_DIR}:" \
+ -e "s:/usr/share/rockdodger/\.highscore:${GAMES_STATEDIR}/rockdodger.scores:" \
+ -e 's:umask(0111):umask(0117):' main.c \
+ || die " sed main.c failed"
+ sed -i \
+ -e "s:-g:${CFLAGS}:" Makefile \
+ || die "sed Makefile failed"
+
+ # The 512 chunksize makes the music skip
+ sed -i \
+ -e "s:512:1024:" sound.c \
+ || die "sed sound.c failed"
+}
+
+src_install() {
+ dogamesbin rockdodger || die "dogamesbin failed"
+ insinto "${GAME_DEST_DIR}"
+ doins data/* || die "doins failed"
+
+ dodir "${GAMES_STATEDIR}"
+ touch "${D}/${GAMES_STATEDIR}/rockdodger.scores"
+ fperms 660 "${GAMES_STATEDIR}/rockdodger.scores"
+
+ prepgamesdirs
+}