]> Pileus Git - ~andy/sunrise/commitdiff
games-roguelike/powder: New ebuild for bug 256768 thanks to hwoarang, chithead, scara...
authorZasenko Sergey (und3f) <d3fin3@gmail.com>
Fri, 30 Jan 2009 10:57:13 +0000 (10:57 +0000)
committerZasenko Sergey (und3f) <d3fin3@gmail.com>
Fri, 30 Jan 2009 10:57:13 +0000 (10:57 +0000)
svn path=/sunrise/; revision=7815

games-roguelike/powder/ChangeLog [new file with mode: 0644]
games-roguelike/powder/Manifest [new file with mode: 0644]
games-roguelike/powder/files/powder-110-make.patch [new file with mode: 0644]
games-roguelike/powder/metadata.xml [new file with mode: 0644]
games-roguelike/powder/powder-110.ebuild [new file with mode: 0644]

diff --git a/games-roguelike/powder/ChangeLog b/games-roguelike/powder/ChangeLog
new file mode 100644 (file)
index 0000000..eacde12
--- /dev/null
@@ -0,0 +1,9 @@
+# ChangeLog for games-roguelike/powder
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  30 Jan 2009; Zasenko Sergey (und3f) <d3fin3@gmail.com> +powder-110.ebuild,
+  +files/powder-110-make.patch, +metadata.xml:
+  New ebuild for bug 256768 thanks to hwoarang, chithead, scarabeus, Tommy[D],
+  lazy_bum, nirbheek
+
diff --git a/games-roguelike/powder/Manifest b/games-roguelike/powder/Manifest
new file mode 100644 (file)
index 0000000..83a95a0
--- /dev/null
@@ -0,0 +1,6 @@
+AUX powder-110-make.patch 3434 RMD160 93860f27362f3231c6b041cee91c17dd16744046 SHA1 d562ab53bd8f346cec2f852c96012848329efd3b SHA256 6d646ae208f8fbd7ed43b1f3f56cfcb6bbab78781ac0f771126d15aeca0d55b3
+DIST powder110_src.tar.gz 1307039 RMD160 1840a6c4cc6423fb7eeba74ec89b61dd82f15fc6 SHA1 e1b1671a08b151c87abf093c7def57012d27d2a3 SHA256 ef89b903d090a27a97a250ee0412f296caffefddb63e8be59af7dc2627bde5ef
+EBUILD powder-110.ebuild 800 RMD160 7242dbae577d489a3361123ebe299e1e4d14cffa SHA1 5c950deabf72fb40e52661e01fe7f07ba80c0bc0 SHA256 36c80969b2e474dae7043fb1adf67f2e9735dd043e2e1fbaebcd128abd2d7fcf
+MISC .powder-110.ebuild.swp 12288 RMD160 7fe5aa217fa07b6e58de19580f8f74219b6dbd14 SHA1 e6b07947409eb36d88f43c475facb2eca0ba7cc9 SHA256 eb8b9dbae8a6c474063f87621cac2c67308656a57f8bf4eab95fbfb58bb79f0f
+MISC ChangeLog 348 RMD160 b8a59347e61ebf7b273c2b2d5be9fca8828a644a SHA1 eda27456625b5739528ce4a9cb32249f489a8a49 SHA256 88c0743e550a5a9be59abac8dae0ba4b690e11548181644176b5771924b0d4dc
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/games-roguelike/powder/files/powder-110-make.patch b/games-roguelike/powder/files/powder-110-make.patch
new file mode 100644 (file)
index 0000000..9f6dda7
--- /dev/null
@@ -0,0 +1,107 @@
+--- powder110_src/make/makerules.origin        2009-01-29 00:32:32.141421840 +0200
++++ powder110_src/make/makerules       2009-01-29 00:27:37.128428046 +0200
+@@ -1,11 +1,11 @@
+ .cpp.o:
+-      g++ -O3 -I . -DLINUX -c $< -o $@ $(CXXFLAGS)
++      $(CXX) -I . -DLINUX -c $< -o $@ $(CXXFLAGS)
+ all: $(TARGET)
+ $(TARGET): $(OFILES)
+-      g++ -O3 -o $(TARGET) $(OFILES) $(CXXFLAGS)
++      $(CXX) -o $(TARGET) $(OFILES) $(CXXFLAGS)
+ clean:
+-      rm -f *.o
+-      rm -f $(TARGET)
++      $(RM) *.o
++      $(RM) $(TARGET)
+--- powder110_src/make/makerules.LINUX.origin  2009-01-28 21:59:57.499759608 +0200
++++ powder110_src/make/makerules.LINUX 2009-01-29 00:27:34.747275321 +0200
+@@ -1,5 +1,5 @@
+ .cpp.o:
+-      g++ -O3 -DLINUX -I ../../port/sdl `sdl-config --cflags` -c $< -o $@ $(CXXFLAGS)
++      $(CXX) -DLINUX -I ../../port/sdl `sdl-config --cflags` -c $< -o $@ $(CXXFLAGS)
+ all: $(TARGET)
+@@ -8,10 +8,10 @@
+       # http://www.trilithium.com/johan/2005/06/static-libstdc/
+       # and is to try and ensure we end up with a static link
+       # of stdc++.
+-      rm -f libstdc++.a
++      $(RM) libstdc++.a
+       ln -s `g++ -print-file-name=libstdc++.a`
+-      g++ -O3 -static-libgcc -L. -o $(TARGET) $(OFILES) `sdl-config --libs` $(CXXFLAGS)
++      $(CXX) -static-libgcc -L. -o $(TARGET) $(OFILES) `sdl-config --libs` $(CXXFLAGS)
+ clean:
+-      rm -f *.o
+-      rm -f $(TARGET)
++      $(RM) *.o
++      $(RM) $(TARGET)
+--- powder110_src/port/linux/Makefile.orig     2008-01-14 04:28:15.000000000 +0200
++++ powder110_src/port/linux/Makefile  2009-01-29 02:19:52.018078431 +0200
+@@ -38,19 +38,54 @@
+        ../../gfx/all_bitmaps.o \
+        ../../rooms/allrooms.o
+-include ../../make/makerules.LINUX
++PREMAKE_TRG = ../../support/map2c/map2c \
++                        ../../support/tile2c/tile2c \
++                        ../../support/bmp2c/bmp2c \
++                        ../../support/encyclopedia2c/encyclopedia2c \
++                        ../../support/enummaker/enummaker\
++                        ../../support/txt2c/txt2c
+-clean:
+-      cd ../.. ; rm -f *.o
+-      cd ../../gfx ; rm -f *.o
+-      rm -f *.o
+-      cd ../sdl ; rm -f *.o
+-      rm -f $(TARGET)
++all: $(TARGET)
++
++
++$(PREMAKE_TRG): 
++      $(MAKE) -C `dirname $@`
+-premake:
++premake: $(PREMAKE_TRG)
+       cd ../../rooms ; ./buildrooms.bash
+       cd ../../gfx ; ./rebuild.sh
+       cd ../.. ; support/enummaker/enummaker source.txt
+       cd ../.. ; support/txt2c/txt2c LICENSE.TXT license.cpp
+       cd ../.. ; support/txt2c/txt2c CREDITS.TXT credits.cpp
+       cd ../.. ; support/encyclopedia2c/encyclopedia2c encyclopedia.txt
++
++$(OFILES): premake
++      $(CXX) -DLINUX -I ../../port/sdl `sdl-config --cflags` -c $(patsubst %.o,%.cpp,$@) -o $@ $(CXXFLAGS)
++
++$(TARGET): $(OFILES)
++      $(CXX) -o $@ $(OFILES) `sdl-config --libs` $(CXXFLAGS)
++
++$(TARGET)-static: $(OFILES)
++      # This extra step is from:
++      # http://www.trilithium.com/johan/2005/06/static-libstdc/
++      # 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 $@ $(OFILES) `sdl-config --libs` $(CXXFLAGS)
++
++clean:
++      $(RM) *.o $(TARGET) libstdc++.a
++      cd ../../; $(RM) credits.cpp encyclopedia.cpp encyclopedia.h glbdef.cpp glbdef.h license.cpp
++      cd ../../gfx; $(RM) 
++      cd ../../gfx; $(RM) icon_sdl.bmp.c slug_and_blood.bmp.c slug_and_blood_hires.bmp.c classic/*.c adambolt/*.c nethack/*.c ascii/*.c akoimeexx/*.c
++      cd ../../rooms/; $(RM) *.cpp allrooms.h allrooms.o 
++      $(RM) 
++      $(RM) ../../*.o
++      $(RM) ../../gfx/*.o
++      $(RM) ../sdl/*.o
++      @for trgt in $$( echo "$(PREMAKE_TRG)" | tr -s ' ' '\n' ); do \
++              $(MAKE) clean -C `dirname $$trgt` ; \
++      done;
++
++.PHONY: all clean premake
diff --git a/games-roguelike/powder/metadata.xml b/games-roguelike/powder/metadata.xml
new file mode 100644 (file)
index 0000000..7e32869
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/games-roguelike/powder/powder-110.ebuild b/games-roguelike/powder/powder-110.ebuild
new file mode 100644 (file)
index 0000000..632937c
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit 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/${PN}/release/${MY_P}.tar.gz"
+
+LICENSE="powder_license"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${MY_P}
+
+src_unpack() {
+       unpack ${A}
+       epatch "${FILESDIR}/${P}-make.patch"
+}
+
+src_compile() {
+       cd "${S}"/port/linux
+       CXXFLAGS="${CXXFLAGS} -DCHANGE_WORK_DIRECTORY" emake || die
+}
+
+src_install() {
+       dogamesbin port/linux/${PN} || die "dogamesbin failed"
+       dodoc README.TXT CREDITS.TXT || die "dodoc failed"
+       prepgamesdirs
+}
+