diff options
-rw-r--r-- | games-roguelike/stone-soup/ChangeLog | 8 | ||||
-rw-r--r-- | games-roguelike/stone-soup/Manifest | 27 | ||||
-rw-r--r-- | games-roguelike/stone-soup/files/stone-soup-0.14.1-build.patch | 99 | ||||
-rw-r--r-- | games-roguelike/stone-soup/stone-soup-0.14.1.ebuild | 145 |
4 files changed, 277 insertions, 2 deletions
diff --git a/games-roguelike/stone-soup/ChangeLog b/games-roguelike/stone-soup/ChangeLog index bdc307f7bc57..ab829bc84706 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-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/ChangeLog,v 1.29 2014/04/23 06:15:37 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/ChangeLog,v 1.30 2014/04/29 20:44:41 hasufell Exp $ + +*stone-soup-0.14.1 (29 Apr 2014) + + 29 Apr 2014; Julian Ospald <hasufell@gentoo.org> +stone-soup-0.14.1.ebuild, + +files/stone-soup-0.14.1-build.patch: + version bump 23 Apr 2014; Michael Sterrett <mr_bones_@gentoo.org> +files/stone-soup-0.14.0-build.patch: diff --git a/games-roguelike/stone-soup/Manifest b/games-roguelike/stone-soup/Manifest index 8426aa408782..e845be598417 100644 --- a/games-roguelike/stone-soup/Manifest +++ b/games-roguelike/stone-soup/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX stone-soup-0.11.2-build.patch 3337 SHA256 7553e5133b0afc49c9ed59c270763c02c939de15e11d7bd571f93e8705d7a241 SHA512 c433cdaf55a9f128573f170540fa69b1f2f8720b6338d58d61dc341f65fbf350bb319c2091bfacf591a855c1f9d031f99b946cf3c634a6e3f81ea57a7bb23a2f WHIRLPOOL 66f02948720dc4129c77067029b28da517981e78d27e2b1e5da9863b12e657d41b3cdc99e2ace854133b93d0290abba64ff863c898a5a141ba98a3ecec6d32d9 AUX stone-soup-0.12.2-build.patch 2576 SHA256 befc3345c2a0ae4fdee5e3a0ac61e78b1d5b9552cd2f4d9e495457e70183c8b5 SHA512 a4d4e5d68d129f15c3f2214d2cc33fe1f5436dfd3be1f4621383f7589ca6d33314c0c891c1ab9575b013fe0d23bf3876c35b2ba9310fd4059caa500bc6e8ff60 WHIRLPOOL 2426d084e79112b6e815f3916cd0b83b4c559afc397573cbe390ce6ace1df8c3ced791ef8e47ef25e3e5f5fbb6021125c88deee1a5244390f46765df4a27e55f AUX stone-soup-0.12.3-build.patch 2576 SHA256 befc3345c2a0ae4fdee5e3a0ac61e78b1d5b9552cd2f4d9e495457e70183c8b5 SHA512 a4d4e5d68d129f15c3f2214d2cc33fe1f5436dfd3be1f4621383f7589ca6d33314c0c891c1ab9575b013fe0d23bf3876c35b2ba9310fd4059caa500bc6e8ff60 WHIRLPOOL 2426d084e79112b6e815f3916cd0b83b4c559afc397573cbe390ce6ace1df8c3ced791ef8e47ef25e3e5f5fbb6021125c88deee1a5244390f46765df4a27e55f @@ -5,6 +8,7 @@ AUX stone-soup-0.13.0-build.patch 2660 SHA256 e1bb697055c3cce3d3d58d13fbb731b3ad AUX stone-soup-0.13.1-build.patch 2660 SHA256 e1bb697055c3cce3d3d58d13fbb731b3ad215c11acd1b87ff238f55609db6442 SHA512 ec13535360e8224a8354f8ed335a1e1d862d75faca8622ae1536d0a6fdbac750d75f87289b4e5d2eb8031f6b6663b04fd0ab6b0b30249b81d45a2c0004668047 WHIRLPOOL 90575542e59cbc4b568b2d85c2bebb04661018cffb74346b03eaeaecd81456365007536851baffc42f416c1ed97640529391a98f7089d1049df4bdfeafa7f3ae AUX stone-soup-0.13.2-build.patch 2660 SHA256 e1bb697055c3cce3d3d58d13fbb731b3ad215c11acd1b87ff238f55609db6442 SHA512 ec13535360e8224a8354f8ed335a1e1d862d75faca8622ae1536d0a6fdbac750d75f87289b4e5d2eb8031f6b6663b04fd0ab6b0b30249b81d45a2c0004668047 WHIRLPOOL 90575542e59cbc4b568b2d85c2bebb04661018cffb74346b03eaeaecd81456365007536851baffc42f416c1ed97640529391a98f7089d1049df4bdfeafa7f3ae AUX stone-soup-0.14.0-build.patch 2660 SHA256 e1bb697055c3cce3d3d58d13fbb731b3ad215c11acd1b87ff238f55609db6442 SHA512 ec13535360e8224a8354f8ed335a1e1d862d75faca8622ae1536d0a6fdbac750d75f87289b4e5d2eb8031f6b6663b04fd0ab6b0b30249b81d45a2c0004668047 WHIRLPOOL 90575542e59cbc4b568b2d85c2bebb04661018cffb74346b03eaeaecd81456365007536851baffc42f416c1ed97640529391a98f7089d1049df4bdfeafa7f3ae +AUX stone-soup-0.14.1-build.patch 2660 SHA256 e1bb697055c3cce3d3d58d13fbb731b3ad215c11acd1b87ff238f55609db6442 SHA512 ec13535360e8224a8354f8ed335a1e1d862d75faca8622ae1536d0a6fdbac750d75f87289b4e5d2eb8031f6b6663b04fd0ab6b0b30249b81d45a2c0004668047 WHIRLPOOL 90575542e59cbc4b568b2d85c2bebb04661018cffb74346b03eaeaecd81456365007536851baffc42f416c1ed97640529391a98f7089d1049df4bdfeafa7f3ae 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.2-nodeps.tar.xz 7518884 SHA256 ae399a9ef1861918b5cef3224893618167b709d5d72321cc328859e111f8e259 SHA512 28d4fe005727fdc8662581921c33edb325bb561f7be2823bd036bfd84422128a0c85ac774785277f326c92de6ec3743751b86a5f74f12559b77f1fb02f1e1614 WHIRLPOOL 5c65c7efddba01265e9223d90ea539b42750e1d49fc76e7ada94b484244b5fb1301da3b3a883b89e3ebeff92279f92d69999cae69f6cf9de19f4a7d19aeae277 @@ -14,6 +18,7 @@ DIST stone_soup-0.13.0-nodeps.tar.xz 9456072 SHA256 e2f0d9f1995b286faaa079450939 DIST stone_soup-0.13.1-nodeps.tar.xz 9456356 SHA256 9e32ca7e48bc3e12ce6bc8d963b01a0bce3f5826c6ca1d60947867f5602921e8 SHA512 1fbb69cf79d5e44e3a2f7a7a16b6284d9ffcaaec0033627c1f0f485fb6012fde8b5bb81557d8ba96cd19d5cd53d989bc71cdb8fd8397ba4c518d596e5e845e8b WHIRLPOOL b956dc51a2d26175adf62076a9d62faa7977b496a3337db488c5ab6849986f719c201befe8e08cb74abc20af3bebb39fa9a223979522ab9ed31be4958ded4bb0 DIST stone_soup-0.13.2-nodeps.tar.xz 9512924 SHA256 279ff5f27fdff6f970f97cb2aaebe8915c0b407f781d48275de87571cb356eea SHA512 9f35aec7e4fca61c1a464e7b97974b49cb8b90d84897bd246505ce4db2e0ebf2f758038963364702db4ea87de323d897b6114ae94a89a8ef1753115077bff61a WHIRLPOOL 62b8ac3432126d48dd3693c11535eba55406aec48c7710ecd88f3475fadf1fb075b0aa229193fc8e3d4da6e6bf3d2bedf050911e2031093b3accf7d09e92fe3e DIST stone_soup-0.14.0-nodeps.tar.xz 8905556 SHA256 0ce09e2d6a1908016c34717008334bad4378240fb507cae68dd9bdcc3ae3dfa2 SHA512 69c2c0d1a8c65943b24164b6a73e2532739a2e97254aff2dd5769bfd52ba5dad7ec07a91e1735e7e0ad746f1a322856fef6d7ecf45143226f2ea6f08223c4643 WHIRLPOOL 7cc2185f0cd4918fbe391403f5cdd096196427e08c5cb3bc837c1651ac90d8780b6ba5331ccc5e3964e6b681df391c09e5dcb4e664ab56495fed15f7efdb89af +DIST stone_soup-0.14.1-nodeps.tar.xz 8903416 SHA256 91726d0224b93ba26b5d4bd3762bc5aabe1f02974ea6c937be89dc6c6ab7a4dd SHA512 9b304c9e993b000316aa2e3975c3802caa76a0d8687f20f03560f6cf39d2bc7cbf78fce30d12ccfa671e4679adc0e2a29f98c647fd2d9997b7a045af3956db88 WHIRLPOOL 498ee49cf693de3cabf1a9441b23582acfa63be84215434943b455fd16c84243d5a5871224f11b0cc358325281732335e2f8b9f102db31cf2338b93d80075d27 EBUILD stone-soup-0.11.2.ebuild 3278 SHA256 4b745583b0b4d9ea131c4d73ccaf6893a455270e24d9bf302d9389b82a4a3089 SHA512 75523b3c13c5415aaef98d0f27b37d215a2f99324a112585bbc9c022b40535a6b7e4af9b76dbf49e68196ca6344daa83808880a1114240e2ed17a588000d884a WHIRLPOOL f9f07d0bf2526f94bb83ab9897fff48e8a735df46e36ac4be9a96c583340c48f13487114b07e7a954e6792da5b39a0a3b8dd8da03ab2392bed05253fd225d8c6 EBUILD stone-soup-0.12.2.ebuild 3630 SHA256 e9d8a2a0516b3c04ad00cdb89d389dd8cea108fe4768ed10a259600d100bece8 SHA512 5377446d1918f2af78ae42c58ad977db7caf6bae080e91844369431980611534304e38ef92633bc4066905fef8bcfc7cccd026d29de6457ed1e289f3dad81c5e WHIRLPOOL 716f9d08444d288895a43d86e60a106a5a8c22680da19cad9a2cc2e1c16a26d89c4f405a06f8b35d5ef3e36dce587950418d9401cfc9966a8072d5274d3c8ea1 EBUILD stone-soup-0.12.3.ebuild 3517 SHA256 9b21bd71d14f1a38574d7d6f19ec3db6d7d75b1c9e89e034cdd5222b559bb5ee SHA512 fc0f7092318b64c3b1750eb825967515f309d98e33a68ad64b390a47ba18948d9ca88926109f86ad6256cce593476406af6e7b1fd92c886a6be1d0445b1c5abc WHIRLPOOL c0594ff8456048910f82d0256c6e1e1408cb7637a5611e7016292895e47a97f0974b792f8e60257fde6a75011dc0efa6d6995493b562b01159da3d3a2d45fbcb @@ -21,5 +26,25 @@ EBUILD stone-soup-0.13.0.ebuild 3535 SHA256 bc2304243f9fd226ca94d43c146e06db9aaa EBUILD stone-soup-0.13.1.ebuild 3538 SHA256 a576194c5d90b0e5cbd99842f7618f60c9805983b61fca26374a07cd020d862f SHA512 5532e74c328de10d7198ebb8f189788b202253e55db42660fd26f5e4927f6d397ea5be6e662f262a96ca5d4a05a88f76bf635c531c8106df7777fa362ebec60e WHIRLPOOL a05cebf5219b20881d01cb3cc44b0b8bb7ea6980d2d9672fe6138791dcff27fa5595bfd22aa9499522cc546fff6c1d3aaa1f902098bbf2ecb498a920c53f835d EBUILD stone-soup-0.13.2.ebuild 3542 SHA256 2f818e167009cd52145fccfe5fb88146a87da32c8422478452f1baa4029a4d61 SHA512 5a5ae35bca55c6c45a693e654d95b17413899afba1be336c4b3cbc9740e4059e9dc6ff2814b9012e25ef5a1b0d34a36299e8787801539dd77a2d5ce943630c5b WHIRLPOOL ce460be4669f23cfaf2f3e7af11cad20872c9c5d387896910accd2a5c35dc01360756c8737f82b966538e4b663f114325a79f7393d26f085b1b96917fc9677ac EBUILD stone-soup-0.14.0.ebuild 3542 SHA256 0f5f8c18f46a2f13b2c6a1199a923ee2b8d4a5c96de7a8ddffc1e317c7a36129 SHA512 583867ad960feac47672955d4a135342d66aff1f9f6dd13a77b00f882c4c9301ef5d25c70136f2164e40e91632c370b4e70b72fd040c4e55747fbe979b9d6a22 WHIRLPOOL 083185ef1b55744c4a77f6733f7c4a12b3190d595473e5b9a66f736977b628608e8936b47d5cb7c18f81a29d42a538b017f865ade3b2b33706761dd7b4d3d70e -MISC ChangeLog 4650 SHA256 b793f55b273f826c3a29f8f71295e78968ef707561a692bd45fb4f1f11321de6 SHA512 e3337f2957b6df1a045ea46046e0503b8d2f9f4d6c5a5f2b0c4003af3a1cf132aeb0e2d38e7149a1c047e58bfd67f4d87e457299d2bc59a6333261e5d0e84971 WHIRLPOOL 2980db4d67a0a5e0eb91321b1d2ec44a02f350a0baac411b4fe490930cd8852338e136b8035663981e4bf0d3a3012b0dc8905625a67beadd657daca29db08a63 +EBUILD stone-soup-0.14.1.ebuild 3542 SHA256 3c9fa08a15ded71b40d5bc6ecc5c0de314ee814902bc514ca5b489cc37fab9ae SHA512 69fe6194347b64aaad8a1edac1b5521d3359b00a2361eacd5e679fc8fe8d03ec6b2674139adf5e933d18dbc261993f329f97da58611835c0a2876c4ac3a59d3c WHIRLPOOL 9471a38c07add327d4e333296f45c2588990f6ff3f8326dfaa7ef58a086a08697a8468d552795ea819447e93f57e6d1f1790b2be4a826761908af0a4a784a0ed +MISC ChangeLog 4817 SHA256 06a6f3868066b516a7464734e04d0810ae7c193562bcebbc3c9a6c80ea0b47e3 SHA512 6f7289f72eff05874476019f14561a87f46fb26728d2e1aa9e60d45b027bfed745518b063fd14600d1bb33516dadf9fa8f4d1777efa8664714248c63ed875d67 WHIRLPOOL 6b4fb929819d0b9b54fafeaaa8e41a8e5a42edfaa89a21beef659d8efa3284610fad951d22ed329a49e12848d737e768599e685bbd3a850df550d939ca9c6dbb MISC metadata.xml 1503 SHA256 2d765e18464f1454dd60719d89dbbbb7dffd6c36d5e50457a9766fd30ae7be1e SHA512 6b128a5b573a67e6333cd64813489abc4b451ef1fdf7df97ff2aaf4e7b8f3cdf0d7d5afdd6e930372b4af773d6e365e8d2b7552e765e3b1a8fbe081088c4accd WHIRLPOOL 5d4fdb548f52e4fde8643e7bdab7288ec4220f7b6ea30191fef82ae4a4d131929ca73bf0057f6e796dcbedce11b83a829521c8c4f932aafdd20e9d9f1d6cb703 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iQJ8BAEBCABmBQJTYA87XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzMDlCNDQ4NjEyNDI4NjA5REVEMDI3MzIy +MjBDRDFDNUJERUVEMDIwAAoJECIM0cW97tAgOXMP/2rQyJVvizgqoLRLF9x7g+xh +daCFcI+ZGAK8p3dDO2BNpxIKL6U/zudwIABBy4C2Awyvp6nkovCr+QVZYY009WgK +tyeqxtlQol7koqiqxkOj40Zyohzxfb+/dyyJw4EC9YmBPIT1uH5H45jz+vhEBWd1 +t6ZX+j/gwp5iUA6pcvENYOtV3nlHJTLuTxLFjTo01fQPqQghNbhmEtgR/mQ6zwwU +v/Z2pJUTHV18jxIAx+CfeavP1tiWKXTziEk28zfQEGyqFMdyM1SukeLce9MwiSQ7 +a5SiU7MK1mtfsvtBfmNJUuzCtUBh0SsPk09TBqdZgF9P8QljBMrtgT6prOz/DHRW +8OF4MBekMRh3j2R/yKVPUa6GVLn5t7HmVIS72hexddRiXcwbdoM9wJw54Yk9VLPI +WnqwwxYjXxv1bvlVsEBMXAmUouW4HtWNrMpT9SnT8zeDuHw2n0Kt+BrvbKmp+oz0 +RrsmWGt0j8RDTOdV9K3mRlUkp8BNVXh2v5CLvjm4jjKSeTIkxelCrLPGW+5QFYLg +q/bpYHIiNJP7aCRzhVkM9t4/0S4m63WFtdY8KieVY68s/WLmCCpZFhREq/soxtsw +YvtJ33LG65TLsXtzTrrdT3QqMP1wHTLri/4kQse0IPNIOa1vosrE6+V7HC4TylGU +Z2ZeFZtDH+kbHIS0b19m +=sNaq +-----END PGP SIGNATURE----- diff --git a/games-roguelike/stone-soup/files/stone-soup-0.14.1-build.patch b/games-roguelike/stone-soup/files/stone-soup-0.14.1-build.patch new file mode 100644 index 000000000000..5409c493780d --- /dev/null +++ b/games-roguelike/stone-soup/files/stone-soup-0.14.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 + +--- a/source/Makefile ++++ b/source/Makefile +@@ -101,7 +101,7 @@ include Makefile.obj + # + + +-CFOTHERS := -pipe $(EXTERNAL_FLAGS) ++CFOTHERS := $(EXTERNAL_FLAGS) + CFWARN := -Wall -Wformat-security + CFWARN_L := -Wundef + +@@ -747,7 +747,6 @@ ifdef FULLDEBUG + DEFINES += -DFULLDEBUG + endif + ifdef DEBUG +-CFOTHERS := -ggdb $(CFOTHERS) + DEFINES += -DDEBUG + endif + ifndef NOWIZARD +@@ -1513,7 +1512,7 @@ ifdef ANDROID + # 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 +--- a/source/rltiles/Makefile ++++ b/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 @@ endif + # 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 @@ ifdef TILES + 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 @@ clean: + + 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.14.1.ebuild b/games-roguelike/stone-soup/stone-soup-0.14.1.ebuild new file mode 100644 index 000000000000..52cd3bdc44cb --- /dev/null +++ b/games-roguelike/stone-soup/stone-soup-0.14.1.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2014 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.14.1.ebuild,v 1.1 2014/04/29 20:44:41 hasufell Exp $ + +## TODO +# add sound support (no build switch, no sound files) + +# check if luajit works + +# 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-fonts/dejavu + 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 +} + +pkg_postrm() { + gnome2_icon_cache_update +} |