summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-08-28 23:17:53 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-08-28 23:17:53 +0000
commit5ce5df944a1fb45ce22f47c2e6bcfe9b3b61f1f7 (patch)
tree7f08c52629cc09a8d81515d41d4b532051b8af45
parentVersion bump. Supports xorg-server 1.13 now. (diff)
downloadgentoo-2-5ce5df944a1fb45ce22f47c2e6bcfe9b3b61f1f7.tar.gz
gentoo-2-5ce5df944a1fb45ce22f47c2e6bcfe9b3b61f1f7.tar.bz2
gentoo-2-5ce5df944a1fb45ce22f47c2e6bcfe9b3b61f1f7.zip
initial import wrt #374852 reviewed by Michael Sterrett
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
-rw-r--r--games-roguelike/stone-soup/ChangeLog10
-rw-r--r--games-roguelike/stone-soup/Manifest7
-rw-r--r--games-roguelike/stone-soup/files/stone-soup-0.10.3-build.patch134
-rw-r--r--games-roguelike/stone-soup/metadata.xml38
-rw-r--r--games-roguelike/stone-soup/stone-soup-0.10.3.ebuild119
5 files changed, 308 insertions, 0 deletions
diff --git a/games-roguelike/stone-soup/ChangeLog b/games-roguelike/stone-soup/ChangeLog
new file mode 100644
index 000000000000..e13e90dda4b3
--- /dev/null
+++ b/games-roguelike/stone-soup/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-roguelike/stone-soup
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/ChangeLog,v 1.1 2012/08/28 23:17:53 hasufell Exp $
+
+*stone-soup-0.10.3 (28 Aug 2012)
+
+ 28 Aug 2012; Julian Ospald <hasufell@gentoo.org> +stone-soup-0.10.3.ebuild,
+ +files/stone-soup-0.10.3-build.patch, +metadata.xml:
+ initial import wrt #374852 reviewed by Michael Sterrett
+
diff --git a/games-roguelike/stone-soup/Manifest b/games-roguelike/stone-soup/Manifest
new file mode 100644
index 000000000000..08a2663bb3d3
--- /dev/null
+++ b/games-roguelike/stone-soup/Manifest
@@ -0,0 +1,7 @@
+AUX stone-soup-0.10.3-build.patch 3405 SHA256 ee0019200324498d32630884c9d31b207c67078d5af6e94c8cb0de7ea66ebf6c SHA512 547a1318b24c4a4f01684afacd73a680d4b983aab9a80205a35ae33e3e831427fb1273e6dc0b7936c5f594c924563d34c40d5f726976326759f8ccd20ef71a5e WHIRLPOOL 3cb6a2cc3557ea6efd6fb261ec91861b0637abf0bdc37a2192793d857ea2adbbc992073783d19be04008cb033e928b61aa8e74fc6cf6b02a6369636e3d5c8499
+DIST stone-soup.png 1351 SHA256 486da51db277817f6fa59c32b131fa4d50cace7d8c9a84995d22f13a92e384e1 SHA512 4695204c8b936f7aac1ba15b02a6115a955fb2c56aa9a0b968ff007bc9a1a59b608110d60cce5625a9b92cd2c869bbea7e15433a53c1a338622809477a5846bc WHIRLPOOL 621b93f192d9335f57b18a72489450511be993f79ac5ea26529d3424adcddf1c64cb2c996fa1265cbd341a31dabe550253d0302c941fcd751197aff7840acee3
+DIST stone-soup.svg 68546 SHA256 f2b476f57f6e8a9b56bc20ec2da0accac9376fea1ff3e4dbe59e7f2f231eb071 SHA512 dca555271faf704eb8ecdf5ee8a763df42cdeba94e9c163608c438cfc73c6fbf53416547050cad57f477ade191842e701785b65b7a9f18e27ceab05df8f2f75f WHIRLPOOL 49b7e0ca45319b2f016203e02b1e08207e9f0c18501b17f5922f1983fbb6bfabc12a9ca3199697f78561739e253f200bfbe984082bb99e1c8e289e5c41004bed
+DIST stone_soup-0.10.3-nodeps.tar.xz 6486324 SHA256 c61801030486bb7020992d95573fb9378e80355c400b82cfa0f476dbd823c4a2 SHA512 57f93c0a5c541aadd426ac918b6db4ec38e5e098f2aa33d70e0b5980f8d753f54c9e4da23d47311b1acf93443e3de4b8e480ab9762c1e922edcf27de0a8ead7c WHIRLPOOL 9070a2ba8825a074578e2179a226ab259e51905d370f8cf66fab9e8485de136aabc84d7ef0fe9677b7c3905660843537524f04ee050a566f9ddccf10fcd6f5b5
+EBUILD stone-soup-0.10.3.ebuild 2762 SHA256 0c589faf40a2dbbf19616aaad55790578756e990cb7fcbe106f98e23e24d42b5 SHA512 564cf672a2d09898b2b7258a23c8cb617ed735e96f45eaa7d63a449b0d68691dadd382b2196d0bda509f923ced68f86f061cb7e2af8a63fa6d960d9de696af37 WHIRLPOOL 752132d006192f22530db6849dcdbde9551cfe36af1d3e072db8ad4698b6caade89a53dafce2f52cb806bef098dc4a8bf1522488b4fc9e5ac324d7e789bd8084
+MISC ChangeLog 353 SHA256 aeafc32bdcd3c196c7d982ac9f0677d00f096a8ffa67e11327c9a022270616ce SHA512 9441352f75e9cc6941a745371aec9ad098cc88c35e1789dd638a12b37d6e49448afd4177ba701ef44e54e9fc40a641eaa1fceb86af46e027de1c2adf313e74d2 WHIRLPOOL e4036281c9215cab3c268b239562725edf42850fa0dfb1e4bf96a37352e99e0ddca9a0f1fc438a766e662489df260a7e689d7d3b1299c3ca0166250db606bc93
+MISC metadata.xml 1452 SHA256 1c622ae995da8eefcec3e181ed7b400f211d7ab959bbd1b79c304319f9607026 SHA512 4c793107dd763b4c3849b0210e568899f5962403b2d1e4aa609c387c35800463d6c7326e64b168d41ae634258c28b271ac4d6fefcfc01bf9bb84a7cdce9e56f1 WHIRLPOOL ed181b375934935aff218204ab004c75f35deb427541320f404b318cba893cd4937e4d7b9f0c465140ed0371b0a067989684dc99dc94b7384310008f163daba5
diff --git a/games-roguelike/stone-soup/files/stone-soup-0.10.3-build.patch b/games-roguelike/stone-soup/files/stone-soup-0.10.3-build.patch
new file mode 100644
index 000000000000..398d823a12cd
--- /dev/null
+++ b/games-roguelike/stone-soup/files/stone-soup-0.10.3-build.patch
@@ -0,0 +1,134 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sat Aug 25 18:31:45 UTC 2012
+Subject: build system
+
+respect flags and compiler
+
+--- Makefile
++++ Makefile
+@@ -111,7 +111,7 @@
+
+ else
+
+-CFOPTIMIZE := -O2
++CFOPTIMIZE = $(CXXFLAGS)
+
+ endif # USE_ICC
+
+@@ -119,21 +119,19 @@
+ CFOPTIMIZE += -flto=jobserver -fwhole-program
+ endif
+
+-CFOTHERS := -pipe $(EXTERNAL_FLAGS)
++CFOTHERS := $(EXTERNAL_FLAGS)
+ CFWARN := -Wall -Wformat-security
+ CFWARN_L := -Wundef
+
+ DEFINES := $(EXTERNAL_DEFINES)
+
+-LDFLAGS := $(EXTERNAL_LDFLAGS)
+-
+ #
+ # The GCC and GXX variables are set later.
+ #
+-AR = ar
+-RANLIB = ranlib
+-CC = $(GCC)
+-CXX = $(GXX)
++AR ?= ar
++RANLIB ?= ranlib
++CC ?= $(GCC)
++CXX ?= $(GXX)
+ RM = rm -f
+ COPY = cp
+ COPY_R = cp -r
+@@ -144,7 +142,7 @@
+ PNGCRUSH = $(COPY)
+ PNGCRUSH_LABEL = COPY
+ ADVPNG = advpng -z -4
+-PKGCONFIG = pkg-config
++PKGCONFIG ?= pkg-config
+ DOXYGEN = doxygen
+ DOXYGEN_SIMPLE_CONF = crawl_simple.doxy
+ DOXYGEN_ALL_CONF = crawl_all.doxy
+@@ -1143,7 +1141,6 @@
+ endif
+ [ -d $(prefix_fp)/$(bin_prefix) ] || mkdir -p $(prefix_fp)/$(bin_prefix)
+ $(COPY) $(GAME) $(prefix_fp)/$(bin_prefix)/
+- $(STRIP) $(prefix_fp)/$(bin_prefix)/$(GAME)
+ mkdir -p $(datadir_fp)/dat/des
+ mkdir -p $(datadir_fp)/dat/dlua
+ mkdir -p $(datadir_fp)/dat/lua
+@@ -1339,7 +1336,7 @@
+
+ .PHONY: build-rltiles
+ build-rltiles: .contrib-libs $(RLTILES)/dc-unrand.txt
+- +$(MAKE) -C $(RLTILES) all ARCH=$(ARCH) TILES=$(TILES)$(WEBTILES)
++ +$(MAKE) -C $(RLTILES) all ARCH=$(ARCH) DEBUG=$(DEBUG) TILES=$(TILES)$(WEBTILES)
+
+ $(TILEDEFSRCS) $(TILEDEFHDRS) $(ORIGTILEFILES): build-rltiles
+
+--- rltiles/Makefile
++++ rltiles/Makefile
+@@ -1,7 +1,7 @@
+ uname_S := $(shell uname -s)
+
+ ifneq (,$(findstring MINGW,$(uname_S)))
+-LDFLAGS += -lmingw32
++LIBS += -lmingw32
+ endif
+
+ # Note: since generation of tiles is done on the host, we don't care about
+@@ -10,7 +10,7 @@
+ # Also, cross-compilation with no system libraries for host rather than target
+ # is not supported. If host=target, contribs are enough.
+
+-CFLAGS := -O2 -g -Wall -Wextra -Wno-parentheses -Wno-unused-parameter
++CXXFLAGS += -Wall -Wextra -Wno-parentheses -Wno-unused-parameter
+
+ ifdef TILES
+ ifndef CONTRIB_SDL
+@@ -29,24 +29,24 @@
+ PNG_LIB := ../contrib/install/$(ARCH)/lib/libpng.a ../contrib/install/$(ARCH)/lib/libz.a
+ endif
+
+- CFLAGS += $(SDL_CFLAGS) $(PNG_INCLUDE)
+- LDFLAGS += $(SDL_LDFLAGS) $(PNG_LIB)
++ CXXFLAGS += $(SDL_CFLAGS) $(PNG_INCLUDE)
++ LIBS += $(SDL_LDFLAGS) $(PNG_LIB)
+
+- CFLAGS += -DUSE_TILE
++ CXXFLAGS += -DUSE_TILE
+ endif
+
+ ifdef DEBUG
+-CFLAGS += -O0 -DDEBUG -ggdb
++CXXFLAGS += -DDEBUG
+ endif
+
+ ifneq (,$(findstring MINGW,$(uname_S)))
+-LDFLAGS += -lgdi32 -lwinmm
++LIBS += -lgdi32 -lwinmm
+ endif
+ ifeq ($(uname_S),Darwin)
+-LDFLAGS += -framework AppKit -framework AudioUnit -framework Carbon -framework IOKit -framework OpenGL
++LIBS += -framework AppKit -framework AudioUnit -framework Carbon -framework IOKit -framework OpenGL
+ endif
+ ifeq ($(uname_S),Linux)
+-LDFLAGS += -ldl -lpthread
++LIBS += -ldl -lpthread
+ endif
+
+ # Attempt to use a full compiler name, to make
+@@ -129,9 +129,9 @@
+ distclean: clean
+
+ %.o: %.cc .cflags
+- $(QUIET_HOSTCXX)$(HOSTCXX) $(CFLAGS) -Wp,-MD,$*.d,-MT,$@ -c $< -o $@
++ $(CXX) $(CXXFLAGS) -Wp,-MD,$*.d,-MT,$@ -c $< -o $@
+
+ $(TILEGEN): $(OBJECTS)
+- $(QUIET_HOSTLINK)$(HOSTCXX) $(OBJECTS) -o $@ $(LDFLAGS)
++ $(CXX) $(CXXFLAGS) $(OBJECTS) -o $@ $(LDFLAGS) $(LIBS)
+
+ .PHONY: all clean distclean
diff --git a/games-roguelike/stone-soup/metadata.xml b/games-roguelike/stone-soup/metadata.xml
new file mode 100644
index 000000000000..20e0218170be
--- /dev/null
+++ b/games-roguelike/stone-soup/metadata.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ </maintainer>
+ <upstream>
+ <changelog>http://crawl.develz.org/main/0.10.3.txt</changelog>
+ <doc lang="en">http://crawl.develz.org/wordpress/documentation</doc>
+ <bugs-to>https://crawl.develz.org/mantis/main_page.php</bugs-to>
+ </upstream>
+ <use>
+ <flag name='tiles'>Enable for graphical (tiled) build. Uses ncurses
+ if disabled.
+ </flag>
+ </use>
+ <longdescription lang="en">
+ Dungeon Crawl Stone Soup is a free roguelike game of exploration
+ and treasure-hunting in dungeons filled with dangerous and
+ unfriendly monsters in a quest for the mystifyingly fabulous Orb
+ of Zot.
+
+ Dungeon Crawl Stone Soup has diverse species and many different
+ character backgrounds to choose from, deep tactical game-play,
+ sophisticated magic, religion and skill systems, and a grand
+ variety of monsters to fight and run from, making each game
+ unique and challenging.
+
+ Dungeon Crawl Stone Soup can be played offline, or online on a
+ public telnet/ssh server thanks to the good folks at
+ crawl.akrasiac.org (CAO) and crawl.develz.org (CDO). These public
+ servers allow you to meet other players’ ghosts, watch other people
+ playing, and, in general, have a blast!
+ </longdescription>
+</pkgmetadata>
+
diff --git a/games-roguelike/stone-soup/stone-soup-0.10.3.ebuild b/games-roguelike/stone-soup/stone-soup-0.10.3.ebuild
new file mode 100644
index 000000000000..b8b69dcc04d2
--- /dev/null
+++ b/games-roguelike/stone-soup/stone-soup-0.10.3.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/stone-soup-0.10.3.ebuild,v 1.1 2012/08/28 23:17:53 hasufell Exp $
+
+## TODO
+# add sound support (no build switch, no sound files)
+
+EAPI=4
+VIRTUALX_REQUIRED="manual"
+inherit eutils gnome2-utils virtualx games
+
+MY_P="stone_soup-${PV}"
+DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons"
+HOMEPAGE="http://crawl.develz.org/wordpress/"
+SRC_URI="mirror://sourceforge/crawl-ref/Stone%20Soup/${PV}/${MY_P}-nodeps.tar.xz
+ http://dev.gentoo.org/~hasufell/distfiles/${PN}.png
+ http://dev.gentoo.org/~hasufell/distfiles/${PN}.svg"
+
+# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h
+# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs
+# Public Domain|CC0: most of tiles
+# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/
+LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0-Universal MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug +lua +tiles"
+# test is broken
+# see https://crawl.develz.org/mantis/view.php?id=6121
+#RESTRICT="!debug? ( test )"
+RESTRICT="test"
+
+RDEPEND="
+ dev-db/sqlite:3
+ sys-libs/zlib
+ tiles? (
+ media-libs/freetype:2
+ media-libs/libpng:0
+ media-libs/libsdl[X,opengl,video]
+ media-libs/sdl-image[png]
+ )
+ !tiles? ( sys-libs/ncurses )
+ lua? ( >=dev-lang/lua-5.1.0 )"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ sys-devel/flex
+ virtual/yacc
+ tiles? (
+ sys-libs/ncurses
+ virtual/pkgconfig
+ test? ( ${VIRTUALX_DEPEND} )
+ )"
+
+S=${WORKDIR}/${MY_P}/source
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+
+# if use test ; then
+# cp -av "${WORKDIR}/${MY_P}" "${WORKDIR}/${MY_P}_test" \
+# || die "setting up test-dir failed"
+# fi
+}
+
+src_compile() {
+ S_TEST=${WORKDIR}/${MY_P}_test/source
+
+ # leave DATADIR at the top
+ myemakeargs=(
+ DATADIR="${GAMES_DATADIR}/${PN}"
+ V=1
+ prefix="${GAMES_PREFIX}"
+ SAVEDIR="~/.crawl"
+ $(usex debug "FULLDEBUG=y DEBUG=y" "")
+ $(usex lua "" "NO_LUA_BINDINGS=y")
+ $(usex tiles "TILES=y" "")
+ )
+
+ emake ${myemakeargs[@]}
+
+ # for test to work we need to compile with unset DATADIR
+# if use test ; then
+# emake ${myemakeargs[@]:1} -C "${S_TEST}"
+# fi
+}
+
+src_install() {
+ emake ${myemakeargs[@]} DESTDIR="${D}" install
+
+ # don't relocate docs, needed at runtime
+ rm -rf "${D}${GAMES_DATADIR}"/${PN}/docs/license
+ dodoc "${WORKDIR}"/${MY_P}/README.{txt,pdf}
+
+ # icons and menu for graphical build
+ if use tiles ; then
+ doicon -s 48 "${DISTDIR}"/${PN}.png
+ doicon -s scalable "${DISTDIR}"/${PN}.svg
+ make_desktop_entry crawl
+ fi
+
+ prepgamesdirs
+}
+
+src_test() {
+ $(usex tiles "X" "")emake ${myemakeargs[@]:1} -C "${S_TEST}" test
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}