summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-roguelike')
-rw-r--r--games-roguelike/powder/ChangeLog8
-rw-r--r--games-roguelike/powder/files/powder-114-make.patch47
-rw-r--r--games-roguelike/powder/powder-114.ebuild40
3 files changed, 94 insertions, 1 deletions
diff --git a/games-roguelike/powder/ChangeLog b/games-roguelike/powder/ChangeLog
index 5c3d8e4336b9..ace55f54ed60 100644
--- a/games-roguelike/powder/ChangeLog
+++ b/games-roguelike/powder/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-roguelike/powder
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/powder/ChangeLog,v 1.2 2010/05/04 00:57:02 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/powder/ChangeLog,v 1.3 2010/06/03 16:41:44 mr_bones_ Exp $
+
+*powder-114 (03 Jun 2010)
+
+ 03 Jun 2010; Michael Sterrett <mr_bones_@gentoo.org> +powder-114.ebuild,
+ +files/powder-114-make.patch:
+ version bump
04 May 2010; Michael Sterrett <mr_bones_@gentoo.org> powder-113.ebuild,
files/powder-113-make.patch:
diff --git a/games-roguelike/powder/files/powder-114-make.patch b/games-roguelike/powder/files/powder-114-make.patch
new file mode 100644
index 000000000000..fa39312b6b92
--- /dev/null
+++ b/games-roguelike/powder/files/powder-114-make.patch
@@ -0,0 +1,47 @@
+diff -ru powder113_src.orig/make/makerules powder113_src/make/makerules
+--- powder113_src.orig/make/makerules 2009-02-05 20:11:41.000000000 -0500
++++ powder113_src/make/makerules 2010-05-03 20:38:32.579540189 -0400
+@@ -8,7 +8,7 @@
+ all: $(TARGET)
+
+ $(TARGET): $(OFILES)
+- $(CXX) -o $(TARGET) $(OFILES) $(CXXFLAGS)
++ $(CXX) -o $(TARGET) $(OFILES) $(CXXFLAGS) $(LDFLAGS)
+
+ clean:
+ $(RM) $(OFILES)
+diff -ru powder113_src.orig/make/makerules.LINUX powder113_src/make/makerules.LINUX
+--- powder113_src.orig/make/makerules.LINUX 2009-01-18 19:54:09.000000000 -0500
++++ powder113_src/make/makerules.LINUX 2010-05-03 20:39:11.022462202 -0400
+@@ -13,8 +13,8 @@
+ # and is to try and ensure we end up with a static link
+ # of stdc++.
+ $(RM) libstdc++.a
+- ln -s `g++ -print-file-name=libstdc++.a`
+- $(CXX) -static-libgcc -L. -o $(TARGET) $(OFILES) `sdl-config --libs` $(CXXFLAGS)
++ ln -s `$(CXX) -print-file-name=libstdc++.a`
++ $(CXX) -static-libgcc -L. -o $(TARGET) $(OFILES) `sdl-config --libs` $(CXXFLAGS) $(LDFLAGS)
+
+ clean:
+ $(RM) $(OFILES)
+diff -ru powder113_src.orig/port/linux/Makefile powder113_src/port/linux/Makefile
+--- powder113_src.orig/port/linux/Makefile 2009-05-13 19:32:42.000000000 -0400
++++ powder113_src/port/linux/Makefile 2010-05-03 20:40:57.629463531 -0400
+@@ -48,7 +48,7 @@
+ all: $(TARGET)
+
+ powder: premake $(OFILES)
+- $(CXX) -o $(TARGET) $(OFILES) `sdl-config --libs` $(CXXFLAGS)
++ $(CXX) -o $(TARGET) $(OFILES) `sdl-config --libs` $(CXXFLAGS) $(LDFLAGS)
+
+ .cpp.o:
+ $(CXX) -DLINUX -I ../../port/sdl `sdl-config --cflags` -c $< -o $@ $(CXXFLAGS)
+@@ -60,7 +60,7 @@
+ # of stdc++.
+ $(RM) libstdc++.a
+ ln -s `g++ -print-file-name=libstdc++.a`
+- $(CXX) -static-libgcc -L. -o $(TARGET) $(OFILES) `sdl-config --libs` $(CXXFLAGS)
++ $(CXX) -static-libgcc -L. -o $(TARGET) $(OFILES) `sdl-config --libs` $(CXXFLAGS) $(LDFLAGS)
+
+ clean:
+ $(RM) $(OFILES)
diff --git a/games-roguelike/powder/powder-114.ebuild b/games-roguelike/powder/powder-114.ebuild
new file mode 100644
index 000000000000..e3b36ed44821
--- /dev/null
+++ b/games-roguelike/powder/powder-114.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/powder/powder-114.ebuild,v 1.1 2010/06/03 16:41:44 mr_bones_ Exp $
+
+EAPI=2
+inherit flag-o-matic eutils games
+
+MY_P=${P/-/}_src
+
+DESCRIPTION="A game in the genre of Rogue, Nethack, and Diablo. Emphasis is on tactical play."
+HOMEPAGE="http://www.zincland.com/powder/"
+SRC_URI="http://www.zincland.com/powder/release/${MY_P}.tar.gz"
+
+LICENSE="CCPL-Sampling-Plus-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[video]"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}"/${P}-make.patch )
+
+src_compile() {
+ append-cxxflags -DCHANGE_WORK_DIRECTORY
+ emake -j1 -C port/linux || die
+}
+
+src_install() {
+ dogamesbin port/linux/${PN} || die
+ dodoc README.TXT CREDITS.TXT
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ elog "While the highscore is kept, save games are never preserved between"
+ elog "versions. Please wait until your current character dies before upgrading."
+ games_pkg_postinst
+}