summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2008-11-26 02:12:51 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2008-11-26 02:12:51 +0000
commit54a5aea4a97ae94f440b2861f4cabd545d1703e2 (patch)
tree4391be9453022a9c2f5a5dbfca8b4b4cd5d558c6 /games-arcade/rocksndiamonds
parentRemove Old. (diff)
downloadgentoo-2-54a5aea4a97ae94f440b2861f4cabd545d1703e2.tar.gz
gentoo-2-54a5aea4a97ae94f440b2861f4cabd545d1703e2.tar.bz2
gentoo-2-54a5aea4a97ae94f440b2861f4cabd545d1703e2.zip
version bump
(Portage version: 2.1.4.5)
Diffstat (limited to 'games-arcade/rocksndiamonds')
-rw-r--r--games-arcade/rocksndiamonds/ChangeLog9
-rw-r--r--games-arcade/rocksndiamonds/files/rocksndiamonds-3.2.6.0-parallel-build.patch13
-rw-r--r--games-arcade/rocksndiamonds/rocksndiamonds-3.2.6.0.ebuild99
3 files changed, 120 insertions, 1 deletions
diff --git a/games-arcade/rocksndiamonds/ChangeLog b/games-arcade/rocksndiamonds/ChangeLog
index 85951eb1a546..1ff355291f39 100644
--- a/games-arcade/rocksndiamonds/ChangeLog
+++ b/games-arcade/rocksndiamonds/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-arcade/rocksndiamonds
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/rocksndiamonds/ChangeLog,v 1.30 2008/06/25 18:55:13 nixnut Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/rocksndiamonds/ChangeLog,v 1.31 2008/11/26 02:12:40 mr_bones_ Exp $
+
+*rocksndiamonds-3.2.6.0 (26 Nov 2008)
+
+ 26 Nov 2008; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/rocksndiamonds-3.2.6.0-parallel-build.patch,
+ +rocksndiamonds-3.2.6.0.ebuild:
+ version bump
25 Jun 2008; nixnut <nixnut@gentoo.org> rocksndiamonds-3.2.4.ebuild:
Stable on ppc wrt bug 229119
diff --git a/games-arcade/rocksndiamonds/files/rocksndiamonds-3.2.6.0-parallel-build.patch b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.2.6.0-parallel-build.patch
new file mode 100644
index 000000000000..8e3a565c7d36
--- /dev/null
+++ b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.2.6.0-parallel-build.patch
@@ -0,0 +1,13 @@
+http://bugs.gentoo.org/126080
+
+--- src/Makefile
++++ src/Makefile
+@@ -220,7 +220,7 @@
+ # build targets
+ # -----------------------------------------------------------------------------
+
+-all: libgame_dir game_em_dir $(PROGNAME)
++all: $(PROGNAME)
+
+ $(PROGNAME): $(RNDLIBS) $(TIMESTAMP_FILE) $(OBJS) $(ICON)
+ $(CC) $(PROFILING) $(OBJS) $(ICON) $(RNDLIBS) $(LDFLAGS) -o $(PROGNAME)
diff --git a/games-arcade/rocksndiamonds/rocksndiamonds-3.2.6.0.ebuild b/games-arcade/rocksndiamonds/rocksndiamonds-3.2.6.0.ebuild
new file mode 100644
index 000000000000..526b7ab49848
--- /dev/null
+++ b/games-arcade/rocksndiamonds/rocksndiamonds-3.2.6.0.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/rocksndiamonds/rocksndiamonds-3.2.6.0.ebuild,v 1.1 2008/11/26 02:12:40 mr_bones_ Exp $
+
+inherit flag-o-matic eutils games
+
+DESCRIPTION="A Boulderdash clone"
+HOMEPAGE="http://www.artsoft.org/rocksndiamonds/"
+SRC_URI="http://www.artsoft.org/RELEASES/unix/rocksndiamonds/${P}.tar.gz
+ http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Contributions-1.2.0.zip
+ http://www.artsoft.org/RELEASES/rocksndiamonds/levels/BD2K3-1.0.0.zip
+ http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Boulder_Dash_Dream-1.0.0.zip
+ http://www.artsoft.org/RELEASES/rocksndiamonds/levels/rnd-contrib-1.0.0.tar.gz
+ http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-emc-1.0.tar.gz
+ http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-sp-1.0.tar.gz
+ http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-dx-1.0.tar.gz
+ http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Snake_Bite-1.0.0.zip
+ http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Sokoban-1.0.0.zip
+ http://www.jb-line.de/rnd_jue-v7.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="X sdl"
+
+DEPEND="app-arch/unzip
+ X? ( x11-libs/libX11 )
+ !sdl? ( x11-libs/libX11 )
+ sdl? (
+ >=media-libs/libsdl-1.2.3
+ >=media-libs/sdl-mixer-1.2.4
+ media-libs/sdl-net
+ >=media-libs/sdl-image-1.2.2
+ media-libs/smpeg
+ )"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd "${S}"
+ unpack \
+ rockslevels-emc-1.0.tar.gz \
+ rockslevels-sp-1.0.tar.gz \
+ rockslevels-dx-1.0.tar.gz
+
+ # make it parallel-friendly.
+ epatch "${FILESDIR}"/${P}-parallel-build.patch
+ sed -i \
+ -e 's:\$(MAKE_CMD):$(MAKE) -C $(SRC_DIR):' \
+ -e '/^MAKE/d' \
+ Makefile \
+ || die "sed failed"
+
+ cd levels
+ unpack \
+ rnd_jue-v7.zip \
+ BD2K3-1.0.0.zip \
+ rnd-contrib-1.0.0.tar.gz \
+ Snake_Bite-1.0.0.zip \
+ Contributions-1.2.0.zip \
+ Boulder_Dash_Dream-1.0.0.zip \
+ Sokoban-1.0.0.zip
+}
+
+src_compile() {
+ replace-cpu-flags k6 k6-1 k6-2 i586
+
+ local makeopts="RO_GAME_DIR=${GAMES_DATADIR}/${PN} RW_GAME_DIR=${GAMES_STATEDIR}/${PN}"
+ if use X || { ! use X && ! use sdl; } ; then
+ make clean || die
+ emake ${makeopts} OPTIONS="${CFLAGS}" x11 || die
+ mv rocksndiamonds{,.x11}
+ fi
+ if use sdl ; then
+ make clean || die
+ emake ${makeopts} OPTIONS="${CFLAGS}" sdl || die
+ mv rocksndiamonds{,.sdl}
+ fi
+}
+
+src_install() {
+ if use X || { ! use X && ! use sdl; } ; then
+ dogamesbin rocksndiamonds.x11 || die "dogamesbin failed"
+ fi
+ if use sdl ; then
+ dogamesbin rocksndiamonds.sdl || die "dogamesbin failed"
+ dosym rocksndiamonds.sdl "${GAMES_BINDIR}/rocksndiamonds"
+ else
+ dosym rocksndiamonds.x11 "${GAMES_BINDIR}/rocksndiamonds"
+ fi
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r graphics levels music sounds || die "doins failed"
+
+ newman rocksndiamonds.{1,6}
+ dodoc CHANGES CREDITS HARDWARE README TODO docs/elements/*.txt
+ newicon graphics/gfx_classic/rocks_icon_32x32.pcx ${PN}.pcx
+ make_desktop_entry rocksndiamonds "Rocks 'N' Diamonds" /usr/share/pixmaps/${PN}.pcx
+
+ prepgamesdirs
+}