summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-05-05 16:06:45 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-05-05 16:06:45 +0000
commitd3b56c526fd1445f912a70aa1f45c05745dfae35 (patch)
tree7d59578c5a5bf333eacbe3cf61df7cf59e91dba8 /games-roguelike
parentVersion bump (diff)
downloadhistorical-d3b56c526fd1445f912a70aa1f45c05745dfae35.tar.gz
historical-d3b56c526fd1445f912a70aa1f45c05745dfae35.tar.bz2
historical-d3b56c526fd1445f912a70aa1f45c05745dfae35.zip
version bump
Package-Manager: portage-2.2.0_alpha174/cvs/Linux x86_64 Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-roguelike')
-rw-r--r--games-roguelike/stone-soup/ChangeLog8
-rw-r--r--games-roguelike/stone-soup/Manifest25
-rw-r--r--games-roguelike/stone-soup/files/stone-soup-0.12.1-build.patch99
-rw-r--r--games-roguelike/stone-soup/stone-soup-0.12.1.ebuild147
4 files changed, 264 insertions, 15 deletions
diff --git a/games-roguelike/stone-soup/ChangeLog b/games-roguelike/stone-soup/ChangeLog
index 42295fb02b71..09f0badf1afa 100644
--- a/games-roguelike/stone-soup/ChangeLog
+++ b/games-roguelike/stone-soup/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-roguelike/stone-soup
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/ChangeLog,v 1.11 2013/02/07 22:11:48 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/ChangeLog,v 1.12 2013/05/05 16:06:40 hasufell Exp $
+
+*stone-soup-0.12.1 (05 May 2013)
+
+ 05 May 2013; Julian Ospald <hasufell@gentoo.org> +stone-soup-0.12.1.ebuild,
+ +files/stone-soup-0.12.1-build.patch:
+ version bump
07 Feb 2013; Ulrich Müller <ulm@gentoo.org> stone-soup-0.11.0.ebuild,
stone-soup-0.11.1-r1.ebuild, stone-soup-0.11.2.ebuild:
diff --git a/games-roguelike/stone-soup/Manifest b/games-roguelike/stone-soup/Manifest
index df0b7a1738d4..b2c1bb68cc98 100644
--- a/games-roguelike/stone-soup/Manifest
+++ b/games-roguelike/stone-soup/Manifest
@@ -4,30 +4,27 @@ Hash: SHA256
AUX stone-soup-0.11.0-build.patch 3337 SHA256 7553e5133b0afc49c9ed59c270763c02c939de15e11d7bd571f93e8705d7a241 SHA512 c433cdaf55a9f128573f170540fa69b1f2f8720b6338d58d61dc341f65fbf350bb319c2091bfacf591a855c1f9d031f99b946cf3c634a6e3f81ea57a7bb23a2f WHIRLPOOL 66f02948720dc4129c77067029b28da517981e78d27e2b1e5da9863b12e657d41b3cdc99e2ace854133b93d0290abba64ff863c898a5a141ba98a3ecec6d32d9
AUX stone-soup-0.11.1-build.patch 3337 SHA256 7553e5133b0afc49c9ed59c270763c02c939de15e11d7bd571f93e8705d7a241 SHA512 c433cdaf55a9f128573f170540fa69b1f2f8720b6338d58d61dc341f65fbf350bb319c2091bfacf591a855c1f9d031f99b946cf3c634a6e3f81ea57a7bb23a2f WHIRLPOOL 66f02948720dc4129c77067029b28da517981e78d27e2b1e5da9863b12e657d41b3cdc99e2ace854133b93d0290abba64ff863c898a5a141ba98a3ecec6d32d9
AUX stone-soup-0.11.2-build.patch 3337 SHA256 7553e5133b0afc49c9ed59c270763c02c939de15e11d7bd571f93e8705d7a241 SHA512 c433cdaf55a9f128573f170540fa69b1f2f8720b6338d58d61dc341f65fbf350bb319c2091bfacf591a855c1f9d031f99b946cf3c634a6e3f81ea57a7bb23a2f WHIRLPOOL 66f02948720dc4129c77067029b28da517981e78d27e2b1e5da9863b12e657d41b3cdc99e2ace854133b93d0290abba64ff863c898a5a141ba98a3ecec6d32d9
+AUX stone-soup-0.12.1-build.patch 2590 SHA256 a5bcdbbf001d218a6dc2518797a5e90821b0c78dbcc5479dbd3005e29c0cc735 SHA512 ffde5f3528348119265da0bacac70b22a0b52e778fc2982deaff3f6809c3bd5cf155ebe48a3809ebcab2dded8563a86d9b167312fbaf6021bc83df905a483155 WHIRLPOOL 4eccb446c79ce6c4e1d48772a563bf794a6ed6314fd905c87c7178414bc62c751c6f1a1df1942e1e01cd8c531aaf632acc86d487cb977e7f39792b0779f4813a
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.11.0-nodeps.tar.xz 7516360 SHA256 2a39307c9f88608ee2a33d3b831c51d9190c91ccdedadececda5edae6dd69002 SHA512 3fb5ef82aea5c7445c39f9f993436bf228552ab5e87a9752c3a275a9ae4c69519c37318dc5fcc6fae9237ceadbe02b67496dfb8c2d82fefb4434d94df61950db WHIRLPOOL e9e2b9131a7700528bec3e8fb3327a4a72dcd8941f76f2499713c9e1cef6f33b0281a9121c128854fa71470e9c77b3b90a1d076a2986d805855ebb36cd7baa85
DIST stone_soup-0.11.1-nodeps.tar.xz 7519768 SHA256 377d738cff21165763b252a57cd84049361d44db6d8d10f08f789cc9e7bb82b6 SHA512 0ceff12dcc3d4a17ea56d18b451cac4fa7805fa795551ca251ea8f3c60f25696083e602f337971f8f19ddbd2a5b7b0fc420e3ed11fc2b731de1ae0eeba1281c2 WHIRLPOOL a86d94118c131ab057258e8e9fcf8fe3d4b9024a9c4b4fabcdf0ec2cf8d26f5ddd83a1cb3d6ada90d146201bd816e74570c6d3eb55e09f371e214a7e7eea39b3
DIST stone_soup-0.11.2-nodeps.tar.xz 7518884 SHA256 ae399a9ef1861918b5cef3224893618167b709d5d72321cc328859e111f8e259 SHA512 28d4fe005727fdc8662581921c33edb325bb561f7be2823bd036bfd84422128a0c85ac774785277f326c92de6ec3743751b86a5f74f12559b77f1fb02f1e1614 WHIRLPOOL 5c65c7efddba01265e9223d90ea539b42750e1d49fc76e7ada94b484244b5fb1301da3b3a883b89e3ebeff92279f92d69999cae69f6cf9de19f4a7d19aeae277
+DIST stone_soup-0.12.1-nodeps.tar.xz 8658732 SHA256 9fc81429a42f4e06bb4e2f6175c77ead8400771e985da7567368e544580dc10e SHA512 f1fff992f0354eb16a5c497d629144389d17bc750911cf5157016cda6bf7ea6d34ec6ccc279b6ec7aea313bea82261bb33d5762ef1f2b5e548e502ce8411b10d WHIRLPOOL 67806a74e8a3972ee3cfc64cd4e2df9e0c2b28411636f5ba46474dcd4d843c8e985ce6b8b9252763950d026c31bbf4420f8bf1e5e59544f6db5d5e33d95be9a9
EBUILD stone-soup-0.11.0.ebuild 2941 SHA256 31447ccb68485d3a28a32cbcfc5bc59105604f9e0b82c93162c01d56d0a66324 SHA512 cd2ef3fd37058af7476974301c8264992d0e3ee2c9eac486ebed5a6f6b27dcbb4c48b82d0aad86c92a32147fd2676ae7a201e7831e58788a6db7b833add9dd6d WHIRLPOOL 2925c70109d3b1f117b14db533af936f6da27e7de18c91cdf9a3ef881a390d5c7ada159ea76414da6e07c73ebe3278124087de43d5e01a13f79bb0d0e110b822
EBUILD stone-soup-0.11.1-r1.ebuild 3283 SHA256 c2eee7c88d6f722047536bbb60502c7bcbafe25b3e98bbd11e98f05113be016e SHA512 73df02ca523a25c9d5425a4f69c3c3dce8fb3c31937fd81dfd9b1a3270b23ae4d45a4ab616fe80b1817af9b805d6c96e289b992f6401654672464cfd7de5a065 WHIRLPOOL eec5147617b54fa816be6a190aeec138b9acc056a28d1c1acd7dc9879a0b79b98d0006738e747d08bbbc9dcb613e748146f19a4c190dde68aa81ca29ce821dc2
EBUILD stone-soup-0.11.2.ebuild 3280 SHA256 dc243662488bf4fccbf8b0c1f1d6637a5d2f28d3155b943286d5d91eeeb92c81 SHA512 3a2bbf3f1d7def69a58b1c35fbfdf77e799df72c9b3f727f4b8ae6e7ae605880814ae5d68ecde482f2bd15613ccd0226f0429a804eb7c5a4e6af160598613db9 WHIRLPOOL 1989c79b136fde4b9e7eb0819346bd566da4843b8655c26926039372b7fc5759df8e485236b0d62000275634c400722cf822e0085cdfb2f49d8ef5fbaedc9cc2
-MISC ChangeLog 2055 SHA256 e1801d8b723ffde49f00ff2560e1f9b885c3e9af3967b698f43a3559a881805d SHA512 743c6bb3c99063fe437eba2fa1e9b1a0cc3002507ecb19c4f1e2c49d62b543930cc50d48924aa5287c5bba8e662b1ccfc7cdda7ab5641fd63abfcb892759432e WHIRLPOOL b6b7f0fb6201221b12d22e85171df2990bb40f497760d333f2a19ac6b31008300c216f393fe5ea3a2915c122508db3438957d68cecc2e49f928c9f3d5f20a546
+EBUILD stone-soup-0.12.1.ebuild 3616 SHA256 f980159f71bf090615cff5904fc62c56e7e1de62c26a19f10eb902ade328821e SHA512 60d85bdf40031ed348c08269aff50415664fa2b46fda0815cb4744034cffcc92c971952949a3dfda050f79c8cec8756f38a2ed6d0a3507c806040e8783728339 WHIRLPOOL 905b4d5c9610282d3c3021403d9058c0c9a6afe2a05c595d7662ccd100a966f87c45fa8803f668f118f317ea7d512a13675656a57b8d6d64983362030bd7a3f1
+MISC ChangeLog 2228 SHA256 05b975fdb40e0d65ccc5982e3e82f197d2def2ea24ffb27dd606af6ee128a4c2 SHA512 5ebbd570ac2f2903dd200e5e00fc17964db95fdf65f123893b9db65ac024b3acb83df387ee7e5e27bcd3dee5577dce81a2b27c6d250dc20bc89497e73a19178d WHIRLPOOL d0d5e2f7042dfc6fd28f52184736d86dda58734ae9d845d92fefb8d04984c3a020dc4e6bf100d8e7a308b0de8abb2c4e67c4997aa0f37e0d4738c9c91b02041e
MISC metadata.xml 1503 SHA256 aa2c7c89f65bb62311e407b2786549b917a89c3c65182dea9b47d5a8dbc1a295 SHA512 6808e1b61bbe2b4fa78699432781665919ebe01672e57838f75eca24dc79ae4126d6076daf6b2e6870886d3214a9efe4963520a0c7ae15b3b47dec32a03ad5bb WHIRLPOOL 5b71d200df668c137771b1c5d415c97cb37716633c3a346d124c56e1ac1311b1686444b2b57e6d78e2f633f561fbc1468941a1fff926d074d8d2dc33b6212031
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBCAAGBQJRFCeSAAoJEDxpGckxwJCBfkkQAIwatTM2MOsSIUKr9pcx5yC1
-vZVK4LTPhvcfnLDAcYYOSlGHxiDANC+FSUfSD888B3cDzpswJZaEqF4rxx/cSfHb
-rOohlHYB/eyf24I5Snq3CbxVoponKMyw5svBpOqLYkIUzHgwENryYWE8r/I8Ar2U
-bsRjCCaC7d2EBMusqUiNt6RFVQQHXpSp9uJ0RRu/NzcW93KOGpr6g3VBGdjrSKJL
-g3hcC8YKRJnoAuKc+2gEJnUwl95ytILDXjMCsIX5lzho8AS3gwLx2bYlgZ8crIvw
-FQWU3heEHc716HGCeRgrBLRZ4pQDXB7J+7uacsumsdrqLbrthv1iufmszP6sHAsl
-K1F4r16Mey3snI5mgHxt91duyIB7xFWVnXL0qmrqRvkSoZb6FM6C896uTIWkINyZ
-YYxWZTrqacl+6be9vqUte62zY14nOeuvUVsxz7Q8cVjIMAXiEPtPaql5z1+zDGKo
-UFYYSKp5zOHyvOz65LZSjPtlCEsRbeEGdgjI7Bt1oyJD+f17TSjY1iliJd4Umr/G
-1HDFkuw6z8Z/91Nj5W3FQs6MmOXGX0431ZrlpP691yvmJe4vXmRBFWBLZ2t94YzR
-XVAoPlyFBpK463Cf7/2wF38oglEGqI4qbnlBrf7tDzGJDMEYSqKOHd3gCPF3njub
-kaHHfqISGVBMLzkmOOMB
-=L3xY
+iQEcBAEBCAAGBQJRhoOUAAoJEFpvPKfnPDWzo5sH/j2QaMAjwD0QO9Xgc/fmaMHD
+BE8TATK8vPW0OpzEVggSfpa/MPBBuI1KeUlx1ZFN3Pdfvqv+N8OojjS1FnuuNen8
+rLBC3QZ1QdjijoJOJQTzjTYxcuaHaRVqTB8bL6BH/pPePY/HHZ+8grBTDXPDE6As
+xFdkt16g5Y1h+Xvtej2ZgQQ4qQuAKYSBmepgIC7OVbpfo4QtnXNBrybeFKymdTsW
+Er/fNv4l0/QVU9Deqz3/bvTG7s50KNobMhitd6nO+5Yv7yBMi+75r/sQko+u6tSt
+jRCB/io89zZsZmOWcHpFHEsSHlbGWy5wiG/VPYMS581Omhd+a+OSzMzPXcTjAkw=
+=j2xv
-----END PGP SIGNATURE-----
diff --git a/games-roguelike/stone-soup/files/stone-soup-0.12.1-build.patch b/games-roguelike/stone-soup/files/stone-soup-0.12.1-build.patch
new file mode 100644
index 000000000000..018ec6321c52
--- /dev/null
+++ b/games-roguelike/stone-soup/files/stone-soup-0.12.1-build.patch
@@ -0,0 +1,99 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Fri Oct 5 13:55:07 UTC 2012
+Subject: build system
+
+ respect flags and compiler
+
+--- source/Makefile
++++ source/Makefile
+@@ -119,7 +119,7 @@
+
+ endif # USE_ICC
+
+-CFOTHERS := -pipe $(EXTERNAL_FLAGS)
++CFOTHERS := $(EXTERNAL_FLAGS)
+ CFWARN := -Wall -Wformat-security
+ CFWARN_L := -Wundef
+
+@@ -730,7 +718,6 @@
+ DEFINES += -DFULLDEBUG
+ endif
+ ifdef DEBUG
+-CFOTHERS := -ggdb $(CFOTHERS)
+ DEFINES += -DDEBUG
+ endif
+ ifndef NOWIZARD
+@@ -1485,7 +1472,7 @@
+ # prove that tiles were generated properly
+ grep tile_info rltiles/*.cc| head
+ else
+- +$(MAKE) -C $(RLTILES) all ARCH=$(ARCH) TILES=$(TILES)$(WEBTILES)
++ +$(MAKE) -C $(RLTILES) all V=$(V) ARCH=$(ARCH) DEBUG=$(DEBUG) TILES=$(TILES)$(WEBTILES)
+ endif
+
+ $(TILEDEFSRCS) $(TILEDEFHDRS) $(ORIGTILEFILES): build-rltiles
+--- source/rltiles/Makefile
++++ source/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 ANDROID
+ CXXFLAGS :=
+@@ -35,24 +35,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
+ endif
+ ifeq ($(uname_S),Linux)
+-LDFLAGS += -ldl -lpthread
++LIBS += -ldl -lpthread
+ endif
+
+ # Attempt to use a full compiler name, to make
+@@ -137,10 +137,10 @@
+
+ distclean: clean
+
+-%.o: %.cc .cflags
+- $(QUIET_HOSTCXX)$(HOSTCXX) $(CFLAGS) -MMD -c $< -o $@
++%.o: %.cc
++ $(QUIET_HOSTLINK)$(HOSTCXX) $(CXXFLAGS) -c $< -o $@
+
+ $(TILEGEN): $(OBJECTS)
+- $(QUIET_HOSTLINK)$(HOSTCXX) $(OBJECTS) -o $@ $(LDFLAGS)
++ $(QUIET_HOSTLINK)$(HOSTCXX) $(CXXFLAGS) $(OBJECTS) -o $@ $(LDFLAGS) $(LIBS)
+
+ .PHONY: all clean distclean
diff --git a/games-roguelike/stone-soup/stone-soup-0.12.1.ebuild b/games-roguelike/stone-soup/stone-soup-0.12.1.ebuild
new file mode 100644
index 000000000000..24993553acd8
--- /dev/null
+++ b/games-roguelike/stone-soup/stone-soup-0.12.1.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2013 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.12.1.ebuild,v 1.1 2013/05/05 16:06:40 hasufell Exp $
+
+## TODO
+# add sound support (no build switch, no sound files)
+
+# cross compiling is severly broken
+
+EAPI=5
+VIRTUALX_REQUIRED="manual"
+inherit eutils gnome2-utils virtualx toolchain-funcs 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 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug ncurses test +tiles"
+REQUIRED_USE="|| ( ncurses tiles )"
+# test is broken
+# see https://crawl.develz.org/mantis/view.php?id=6121
+#RESTRICT="!debug? ( test )"
+RESTRICT="test"
+
+RDEPEND="
+ dev-db/sqlite:3
+ >=dev-lang/lua-5.1.0[deprecated]
+ sys-libs/zlib
+ ncurses? ( sys-libs/ncurses )
+ tiles? (
+ media-libs/freetype:2
+ media-libs/libpng:0
+ media-libs/libsdl[X,opengl,video]
+ media-libs/sdl-image[png]
+ virtual/glu
+ virtual/opengl
+ )"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ sys-devel/flex
+ virtual/pkgconfig
+ virtual/yacc
+ tiles? (
+ sys-libs/ncurses
+ test? ( ${VIRTUALX_DEPEND} )
+ )"
+
+S=${WORKDIR}/${MY_P}/source
+S_TEST=${WORKDIR}/${MY_P}_test/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() {
+ export HOSTCXX=$(tc-getBUILD_CXX)
+
+ # leave DATADIR at the top
+ myemakeargs=(
+ DATADIR="${GAMES_DATADIR}/${PN}"
+ V=1
+ prefix="${GAMES_PREFIX}"
+ SAVEDIR="~/.crawl"
+ $(usex debug "FULLDEBUG=y DEBUG=y" "")
+ CFOPTIMIZE="${CXXFLAGS}"
+ LDFLAGS="${LDFLAGS}"
+ MAKEOPTS="${MAKEOPTS}"
+ AR="$(tc-getAR)"
+ RANLIB="$(tc-getRANLIB)"
+ CC="$(tc-getCC)"
+ CXX="$(tc-getCXX)"
+ PKGCONFIG="$(tc-getPKG_CONFIG)"
+ STRIP=touch
+ )
+
+ if use ncurses ; then
+ emake "${myemakeargs[@]}"
+ # move it in case we build both variants
+ use tiles && { mv crawl "${WORKDIR}"/crawl-ncurses || die ;}
+ fi
+
+ if use tiles ; then
+ emake clean
+ emake "${myemakeargs[@]}" "TILES=y"
+ fi
+
+ # 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[@]}" $(usex tiles "TILES=y" "") DESTDIR="${D}" install
+ [[ -e "${WORKDIR}"/crawl-ncurses ]] && dogamesbin "${WORKDIR}"/crawl-ncurses
+
+ # 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
+
+ echo
+ elog "Your old config folder under '~/.crawl' is not compatible"
+ elog "with the new version. Remove it."
+ echo
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}