summaryrefslogtreecommitdiff
path: root/games-rpg
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-rpg
reinit the tree, so we can have metadata
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/adonthell/Manifest10
-rw-r--r--games-rpg/adonthell/adonthell-0.3.5-r1.ebuild69
-rw-r--r--games-rpg/adonthell/adonthell-0.3.5-r2.ebuild71
-rw-r--r--games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch92
-rw-r--r--games-rpg/adonthell/files/adonthell-0.3.5-format.patch11
-rw-r--r--games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch13
-rw-r--r--games-rpg/adonthell/files/adonthell-0.3.5-glibc-2.10.patch22
-rw-r--r--games-rpg/adonthell/metadata.xml8
-rw-r--r--games-rpg/arx-fatalis-data/Manifest8
-rw-r--r--games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r2.ebuild94
-rw-r--r--games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r3.ebuild94
-rw-r--r--games-rpg/arx-fatalis-data/metadata.xml20
-rw-r--r--games-rpg/arx-fatalis-demo/Manifest5
-rw-r--r--games-rpg/arx-fatalis-demo/arx-fatalis-demo-0.ebuild53
-rw-r--r--games-rpg/arx-fatalis-demo/metadata.xml17
-rw-r--r--games-rpg/arx-libertatis/Manifest7
-rw-r--r--games-rpg/arx-libertatis/arx-libertatis-1.1.2.ebuild101
-rw-r--r--games-rpg/arx-libertatis/files/arx-data-copy108
-rw-r--r--games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-cmake-3.5.patch34
-rw-r--r--games-rpg/arx-libertatis/metadata.xml59
-rw-r--r--games-rpg/avadon/Manifest5
-rw-r--r--games-rpg/avadon/avadon-1.0.4.ebuild55
-rw-r--r--games-rpg/avadon/metadata.xml8
-rw-r--r--games-rpg/baldurs-gate-ee/Manifest3
-rw-r--r--games-rpg/baldurs-gate-ee/baldurs-gate-ee-2.3.67.3.ebuild56
-rw-r--r--games-rpg/baldurs-gate-ee/metadata.xml21
-rw-r--r--games-rpg/bass/Manifest7
-rw-r--r--games-rpg/bass/bass-1.2-r1.ebuild32
-rw-r--r--games-rpg/bass/files/scummvmGetLang.sh19
-rw-r--r--games-rpg/bass/metadata.xml11
-rw-r--r--games-rpg/bastion/Manifest5
-rw-r--r--games-rpg/bastion/bastion-20120620-r1.ebuild87
-rw-r--r--games-rpg/bastion/metadata.xml8
-rw-r--r--games-rpg/coe2/Manifest5
-rw-r--r--games-rpg/coe2/coe2-2007-r1.ebuild55
-rw-r--r--games-rpg/coe2/metadata.xml23
-rw-r--r--games-rpg/comi/Manifest3
-rw-r--r--games-rpg/comi/comi-1.ebuild67
-rw-r--r--games-rpg/comi/metadata.xml8
-rw-r--r--games-rpg/daimonin-client/Manifest9
-rw-r--r--games-rpg/daimonin-client/daimonin-client-0.10.5-r1.ebuild70
-rw-r--r--games-rpg/daimonin-client/daimonin-client-0.10.5.ebuild65
-rw-r--r--games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch28
-rw-r--r--games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch40
-rw-r--r--games-rpg/daimonin-client/metadata.xml14
-rw-r--r--games-rpg/dear-esther/Manifest5
-rw-r--r--games-rpg/dear-esther/dear-esther-20130608.ebuild72
-rw-r--r--games-rpg/dear-esther/metadata.xml8
-rw-r--r--games-rpg/draci-historie/Manifest8
-rw-r--r--games-rpg/draci-historie/draci-historie-2012.ebuild76
-rw-r--r--games-rpg/draci-historie/metadata.xml8
-rw-r--r--games-rpg/dragonhunt/Manifest6
-rw-r--r--games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild88
-rw-r--r--games-rpg/dragonhunt/dragonhunt-3.56-r2.ebuild86
-rw-r--r--games-rpg/dragonhunt/metadata.xml8
-rw-r--r--games-rpg/drascula/Manifest8
-rw-r--r--games-rpg/drascula/drascula-1.0-r2.ebuild63
-rw-r--r--games-rpg/drascula/metadata.xml15
-rw-r--r--games-rpg/dreamweb/Manifest12
-rw-r--r--games-rpg/dreamweb/dreamweb-1.1.ebuild109
-rw-r--r--games-rpg/dreamweb/metadata.xml14
-rw-r--r--games-rpg/dungeon-defenders/Manifest5
-rw-r--r--games-rpg/dungeon-defenders/dungeon-defenders-20130305.ebuild101
-rw-r--r--games-rpg/dungeon-defenders/metadata.xml13
-rw-r--r--games-rpg/egoboo/Manifest7
-rw-r--r--games-rpg/egoboo/egoboo-2.8.1-r1.ebuild59
-rw-r--r--games-rpg/egoboo/egoboo-2.8.1.ebuild56
-rw-r--r--games-rpg/egoboo/files/egoboo-2.8.1-gentoo.patch56
-rw-r--r--games-rpg/egoboo/metadata.xml11
-rw-r--r--games-rpg/eschalon-book-1-demo/Manifest6
-rw-r--r--games-rpg/eschalon-book-1-demo/eschalon-book-1-demo-106-r1.ebuild37
-rw-r--r--games-rpg/eschalon-book-1-demo/eschalon-book-1-demo-106.ebuild37
-rw-r--r--games-rpg/eschalon-book-1-demo/metadata.xml8
-rw-r--r--games-rpg/eternal-lands-bloodsucker/Manifest7
-rw-r--r--games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0.ebuild36
-rw-r--r--games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0_p20110618.ebuild36
-rw-r--r--games-rpg/eternal-lands-bloodsucker/metadata.xml13
-rw-r--r--games-rpg/eternal-lands-data/Manifest10
-rw-r--r--games-rpg/eternal-lands-data/eternal-lands-data-1.9.2-r1.ebuild100
-rw-r--r--games-rpg/eternal-lands-data/eternal-lands-data-1.9.3-r1.ebuild103
-rw-r--r--games-rpg/eternal-lands-data/eternal-lands-data-1.9.3.ebuild100
-rw-r--r--games-rpg/eternal-lands-data/metadata.xml19
-rw-r--r--games-rpg/eternal-lands/Manifest15
-rw-r--r--games-rpg/eternal-lands/eternal-lands-1.9.2-r1.ebuild153
-rw-r--r--games-rpg/eternal-lands/eternal-lands-1.9.2.ebuild149
-rw-r--r--games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild121
-rw-r--r--games-rpg/eternal-lands/eternal-lands-1.9.3.ebuild153
-rw-r--r--games-rpg/eternal-lands/files/eternal-lands-1.9.1-libpng.patch23
-rw-r--r--games-rpg/eternal-lands/files/eternal-lands-1.9.2-glext.patch11
-rw-r--r--games-rpg/eternal-lands/files/eternal-lands-1.9.3-build.patch314
-rw-r--r--games-rpg/eternal-lands/files/eternal-lands-1.9.3-glbuild.patch25
-rw-r--r--games-rpg/eternal-lands/files/eternal-lands-1.9.3-minizip.patch75
-rw-r--r--games-rpg/eternal-lands/metadata.xml14
-rw-r--r--games-rpg/freedink-data/Manifest5
-rw-r--r--games-rpg/freedink-data/freedink-data-1.08.20140901.ebuild29
-rw-r--r--games-rpg/freedink-data/metadata.xml8
-rw-r--r--games-rpg/freedink/Manifest5
-rw-r--r--games-rpg/freedink/freedink-108.4.ebuild57
-rw-r--r--games-rpg/freedink/metadata.xml8
-rw-r--r--games-rpg/freedroid/Manifest7
-rw-r--r--games-rpg/freedroid/files/freedroid-1.0.2-format.patch29
-rw-r--r--games-rpg/freedroid/freedroid-1.0.2-r1.ebuild36
-rw-r--r--games-rpg/freedroid/freedroid-1.0.2.ebuild36
-rw-r--r--games-rpg/freedroid/metadata.xml11
-rw-r--r--games-rpg/freedroidrpg/Manifest6
-rw-r--r--games-rpg/freedroidrpg/freedroidrpg-0.16-r1.ebuild86
-rw-r--r--games-rpg/freedroidrpg/freedroidrpg-0.16.ebuild87
-rw-r--r--games-rpg/freedroidrpg/metadata.xml54
-rw-r--r--games-rpg/grimrock/Manifest5
-rw-r--r--games-rpg/grimrock/grimrock-20130515.ebuild122
-rw-r--r--games-rpg/grimrock/metadata.xml11
-rw-r--r--games-rpg/gwiz/Manifest7
-rw-r--r--games-rpg/gwiz/files/gwiz-0.8-buffer.patch23
-rw-r--r--games-rpg/gwiz/gwiz-0.8-r1.ebuild36
-rw-r--r--games-rpg/gwiz/gwiz-0.8.ebuild31
-rw-r--r--games-rpg/gwiz/metadata.xml8
-rw-r--r--games-rpg/kqlives/Manifest7
-rw-r--r--games-rpg/kqlives/files/kqlives.xpm48
-rw-r--r--games-rpg/kqlives/kqlives-0.99-r1.ebuild47
-rw-r--r--games-rpg/kqlives/kqlives-0.99.ebuild48
-rw-r--r--games-rpg/kqlives/metadata.xml14
-rw-r--r--games-rpg/lure/Manifest11
-rw-r--r--games-rpg/lure/lure-1.1-r1.ebuild110
-rw-r--r--games-rpg/lure/lure-1.1.ebuild108
-rw-r--r--games-rpg/lure/metadata.xml11
-rw-r--r--games-rpg/manaplus/Manifest8
-rw-r--r--games-rpg/manaplus/manaplus-1.7.9.2.ebuild99
-rw-r--r--games-rpg/manaplus/manaplus-1.7.9.30.ebuild99
-rw-r--r--games-rpg/manaplus/manaplus-9999.ebuild99
-rw-r--r--games-rpg/manaplus/metadata.xml13
-rw-r--r--games-rpg/metadata.xml32
-rw-r--r--games-rpg/nwmouse/Manifest5
-rw-r--r--games-rpg/nwmouse/metadata.xml8
-rw-r--r--games-rpg/nwmouse/nwmouse-20090906.183839.ebuild54
-rw-r--r--games-rpg/nwmovies/Manifest5
-rw-r--r--games-rpg/nwmovies/metadata.xml12
-rw-r--r--games-rpg/nwmovies/nwmovies-20090223.080954.ebuild54
-rw-r--r--games-rpg/nwn-cep/Manifest8
-rw-r--r--games-rpg/nwn-cep/metadata.xml13
-rw-r--r--games-rpg/nwn-cep/nwn-cep-1.68-r1.ebuild41
-rw-r--r--games-rpg/nwn-cep/nwn-cep-2.0.ebuild46
-rw-r--r--games-rpg/nwn-data/Manifest11
-rw-r--r--games-rpg/nwn-data/metadata.xml17
-rw-r--r--games-rpg/nwn-data/nwn-data-1.29-r5.ebuild654
-rw-r--r--games-rpg/nwn-penultima/Manifest10
-rw-r--r--games-rpg/nwn-penultima/metadata.xml12
-rw-r--r--games-rpg/nwn-penultima/nwn-penultima-1-r1.ebuild33
-rw-r--r--games-rpg/nwn-penultimarerolled/Manifest9
-rw-r--r--games-rpg/nwn-penultimarerolled/metadata.xml12
-rw-r--r--games-rpg/nwn-penultimarerolled/nwn-penultimarerolled-1.ebuild39
-rw-r--r--games-rpg/nwn-shadowlordsdreamcatcherdemon/Manifest5
-rw-r--r--games-rpg/nwn-shadowlordsdreamcatcherdemon/metadata.xml12
-rw-r--r--games-rpg/nwn-shadowlordsdreamcatcherdemon/nwn-shadowlordsdreamcatcherdemon-1.ebuild40
-rw-r--r--games-rpg/nwn/Manifest25
-rw-r--r--games-rpg/nwn/files/fixinstall107
-rw-r--r--games-rpg/nwn/metadata.xml16
-rw-r--r--games-rpg/nwn/nwn-1.68-r6.ebuild235
-rw-r--r--games-rpg/nwn/nwn-1.69-r1.ebuild94
-rw-r--r--games-rpg/openglad/Manifest10
-rw-r--r--games-rpg/openglad/files/0.98-gladpack.c.patch13
-rw-r--r--games-rpg/openglad/files/openglad-0.98-gcc43.patch11
-rw-r--r--games-rpg/openglad/files/openglad-0.98-ovfl.patch11
-rw-r--r--games-rpg/openglad/metadata.xml11
-rw-r--r--games-rpg/openglad/openglad-0.98-r1.ebuild42
-rw-r--r--games-rpg/openglad/openglad-0.98.ebuild43
-rw-r--r--games-rpg/pcgen/Manifest6
-rw-r--r--games-rpg/pcgen/metadata.xml11
-rw-r--r--games-rpg/pcgen/pcgen-6.04.01-r1.ebuild46
-rw-r--r--games-rpg/pcgen/pcgen-6.04.01.ebuild47
-rw-r--r--games-rpg/penumbra-collection/Manifest5
-rw-r--r--games-rpg/penumbra-collection/metadata.xml8
-rw-r--r--games-rpg/penumbra-collection/penumbra-collection-1.1.ebuild193
-rw-r--r--games-rpg/queen/Manifest12
-rw-r--r--games-rpg/queen/metadata.xml11
-rw-r--r--games-rpg/queen/queen-1.ebuild126
-rw-r--r--games-rpg/runescape-launcher/Manifest5
-rw-r--r--games-rpg/runescape-launcher/metadata.xml12
-rw-r--r--games-rpg/runescape-launcher/runescape-launcher-2.2.4-r1.ebuild83
-rw-r--r--games-rpg/runescape-launcher/runescape-launcher-2.2.4.ebuild83
-rw-r--r--games-rpg/soltys/Manifest8
-rw-r--r--games-rpg/soltys/metadata.xml11
-rw-r--r--games-rpg/soltys/soltys-1.0-r1.ebuild64
-rw-r--r--games-rpg/sumwars/Manifest6
-rw-r--r--games-rpg/sumwars/metadata.xml25
-rw-r--r--games-rpg/sumwars/sumwars-0.5.8-r1.ebuild95
-rw-r--r--games-rpg/sumwars/sumwars-0.5.8.ebuild98
-rw-r--r--games-rpg/to-the-moon/Manifest5
-rw-r--r--games-rpg/to-the-moon/metadata.xml11
-rw-r--r--games-rpg/to-the-moon/to-the-moon-0.ebuild96
-rw-r--r--games-rpg/twclone/Manifest7
-rw-r--r--games-rpg/twclone/files/twclone-0.14-format.patch75
-rw-r--r--games-rpg/twclone/metadata.xml18
-rw-r--r--games-rpg/twclone/twclone-0.14-r1.ebuild29
-rw-r--r--games-rpg/twclone/twclone-0.14.ebuild31
-rw-r--r--games-rpg/vendetta-online-bin/Manifest8
-rw-r--r--games-rpg/vendetta-online-bin/files/vendetta7
-rw-r--r--games-rpg/vendetta-online-bin/metadata.xml8
-rw-r--r--games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.296-r1.ebuild61
-rw-r--r--games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.296.ebuild51
-rw-r--r--games-rpg/wasteland2/Manifest5
-rw-r--r--games-rpg/wasteland2/metadata.xml8
-rw-r--r--games-rpg/wasteland2/wasteland2-1.9.0.13.ebuild85
-rw-r--r--games-rpg/wastesedge/Manifest6
-rw-r--r--games-rpg/wastesedge/metadata.xml8
-rw-r--r--games-rpg/wastesedge/wastesedge-0.3.5-r1.ebuild35
-rw-r--r--games-rpg/wastesedge/wastesedge-0.3.5.ebuild41
-rw-r--r--games-rpg/xu4/Manifest12
-rw-r--r--games-rpg/xu4/files/0.9-savegame.patch76
-rw-r--r--games-rpg/xu4/files/xu4-0.9-ldflags.patch35
-rw-r--r--games-rpg/xu4/files/xu4-0.9-warnings.patch26
-rw-r--r--games-rpg/xu4/files/xu4-0.9-zip.patch144
-rw-r--r--games-rpg/xu4/metadata.xml11
-rw-r--r--games-rpg/xu4/xu4-0.9-r1.ebuild75
-rw-r--r--games-rpg/xu4/xu4-0.9.ebuild72
-rw-r--r--games-rpg/zsdx/Manifest5
-rw-r--r--games-rpg/zsdx/metadata.xml11
-rw-r--r--games-rpg/zsdx/zsdx-1.9.0.ebuild65
-rw-r--r--games-rpg/zsxd/Manifest6
-rw-r--r--games-rpg/zsxd/metadata.xml11
-rw-r--r--games-rpg/zsxd/zsxd-1.9.0-r1.ebuild58
-rw-r--r--games-rpg/zsxd/zsxd-1.9.0.ebuild60
221 files changed, 9455 insertions, 0 deletions
diff --git a/games-rpg/adonthell/Manifest b/games-rpg/adonthell/Manifest
new file mode 100644
index 000000000000..6b523639987f
--- /dev/null
+++ b/games-rpg/adonthell/Manifest
@@ -0,0 +1,10 @@
+AUX adonthell-0.3.5-configure.in.patch 3314 SHA256 7c512aed6f0d204c3b85c5c701c33094950bb0ab32a128a401449a919ef5462b SHA512 4bd82920dac28c28b96b4ec0e5251c3627a3284ebe6e55eb889e542494ba44b13de8e24210b229e9f37f2259c941743792133d0e9a4b91219b6dc366584d16ed WHIRLPOOL 2ed9d62949e3132a785686aba6d3301dca3219f2aace8199640fe067e0a799aacb6d82888a515c83fc6ba38559797250d832f0c521a8ab7f7e27c63fc66e3109
+AUX adonthell-0.3.5-format.patch 320 SHA256 a0b621c9db3818162e4e26c718b37c41bbabfb3f3485511043750b24506eaa89 SHA512 901d0cc307b1fbf78708a2d6cd8e6d6284ee66c9ac23bed64b1bd0685bc5adc113a8816bca80c44999d5558e6b6e635bd58c1d1894d8e8631fa97da6309b554f WHIRLPOOL 738d6d4257afbcd013e84f30e7b066c2a5c49a77c9df2d9ce737cca148c5fd7b0c197ef8e2f662c40c71b71bc112b8f236fbdc38a70179fea3a6d2110b44903b
+AUX adonthell-0.3.5-gcc46.patch 432 SHA256 000d946a598bfb08b1d3a0f465b696544d918b79a285e37ab99937d1c394ffe5 SHA512 57d23fc4ef209b6e07b5e9d039db257c564e874914d0b9d9abda5d62608b9f6b32252667fa4638e9dfc7632111cafec5fad634992dce7b76309d177450fb0404 WHIRLPOOL 1e508c04507d7c28dd8e75e2f866d72c7f3147d8fa9c61f1376fb42e246cf1e6cc645794a31126cb4c9c1559f4f573e2a079be6002c8986627e5e3c414c36434
+AUX adonthell-0.3.5-glibc-2.10.patch 792 SHA256 23e1a0ad1f49035c80797bec1ba6740bceb84426938ac4a3f7c7169c32424d31 SHA512 6aaf6eced04b777804271dbee082c3ac0d39381e079065ff714bbb66b3ac8be96094e37bfa5e5f986ef91ffe6902f91f8ca7777ae7f3b277c56db37562958aff WHIRLPOOL 5809deeb89567593c74cf82cc311ca6e4718db581a1df143e57183cdb5e5dd1fc5b94cd716da5b46dc6707925d11a030651582904a04d95109580f7c8bd5fd6d
+DIST adonthell-src-0.3.5.tar.gz 877439 SHA256 b1b24f26b9f32782793b222c687943442be83fc0d7f5dbb4928a61074be36dd7 SHA512 bf970b809b22a8563b196d6817553dd58dc9cb09b3bd99eb99d5c8e6f0828cf59965633acd4fdf7835dd9cb732cbb3290d3663521201ece7569cad2f494fb15d WHIRLPOOL 4db4d959879e36b1ed3003cbb200c02de18432d19fd6576132c7b54a3efee1c19290003254fe59db181800e0186aafe532c7c9427102c64b7e0cb4a84c078347
+EBUILD adonthell-0.3.5-r1.ebuild 1480 SHA256 74b38eef330dfdfd1ac947dabd36a28cbbbbc16b9a22b3000df09016d8fa7453 SHA512 1e94c3484b7c774be9c6f385c95e6ae3cab2fa86efc0e4cae4774518ad1824da8e0e72701d3672bf811bf5f61f0c0b6b1d950463c2281815b91d19c07868ba6f WHIRLPOOL 17ad77e1f3ed7585465263b5d0c2ccc296ee475b8157f3eb91cc9a076be8ec81ba6efe1861025732a65b964fca6819d13beacd4877c1a8ac36a7964eea9e329a
+EBUILD adonthell-0.3.5-r2.ebuild 1438 SHA256 eb6e946373243e26fbdcf383efc2832b90c2a2d5c1ce21dc931558d43ff9c70d SHA512 8797ac4d9885365904051e5c31ba3f86386d233cdf506711f0e8cbfa23f5394797ec208ae20a9663cf6b1f59daa9f8510f8d6c198c0c235d34350fd3ba8a3e8f WHIRLPOOL 3faeef9891a78be8b702a71554f9095dd0bd06364a032d15c463b9032ecee399dd23baa80fb4d216a4a34868f14c965147e61fcef63ba867cacbe1b34b3c60f0
+MISC ChangeLog 3085 SHA256 ff082df1dffb48e9b94fb04ba47cdc1ffd6c23b2a00fdeb44cb128087710e41b SHA512 a9fc31cd4ff92ff8d71e135252d663166c6f2b116e59e23135bb703d758a12f9166e650660a0e7c262ad3c49dfa76b16deab5b0a7812c8997b86d766c30c85ee WHIRLPOOL 8a30d4b499bcffda47406ce24712ce0b234c4ff066b6cfd4e4da115efe7aef775c6e35847f2d2e927cd77962ce57cf672fd3c44e0cf7098fcaaf2fcc9fe1daf6
+MISC ChangeLog-2015 5125 SHA256 06de1fe68ec71ac77bc971a80c5e5700c48c6412f9af8eebd6afb90a674d9963 SHA512 638f1af7b56e013102d844446526b15c4facb47644ba5cba388547f217cd64e089eb30f3bf4176f5213f355e326ed9d366e272a2d76fbd83d4967bd78e5b82ec WHIRLPOOL ab1c88a117a664244c43fd66ef72d4b8929f7c7dd537ed859cb11b90c9ab6689161e109fe896483d4b095b8b655d13f46698c2213ca9eef5dc598eae3fe65949
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-rpg/adonthell/adonthell-0.3.5-r1.ebuild b/games-rpg/adonthell/adonthell-0.3.5-r1.ebuild
new file mode 100644
index 000000000000..d535d9fddbd1
--- /dev/null
+++ b/games-rpg/adonthell/adonthell-0.3.5-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils python-single-r1 games
+
+DESCRIPTION="roleplaying game engine"
+HOMEPAGE="http://adonthell.linuxgames.com/"
+SRC_URI="https://savannah.nongnu.org/download/${PN}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc nls"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ media-libs/sdl-ttf
+ media-libs/sdl-mixer[vorbis]
+ media-libs/libsdl:0[X,video,sound]
+ sys-libs/zlib
+ media-libs/freetype
+ media-libs/libogg
+ media-libs/libvorbis
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-lang/swig
+ doc? (
+ media-gfx/graphviz
+ app-doc/doxygen
+ )
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${PN}-${PV/a/}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ games_pkg_setup
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-configure.in.patch \
+ "${FILESDIR}"/${P}-glibc-2.10.patch \
+ "${FILESDIR}"/${P}-format.patch \
+ "${FILESDIR}"/${P}-gcc46.patch
+ sed -i \
+ -e "/AC_PATH_PROGS/s:python:${EPYTHON}:" \
+ configure.in || die "sed failed"
+ rm -f ac{local,include}.m4
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ --disable-dependency-tracking \
+ --disable-py-debug \
+ $(use_enable nls) \
+ $(use_enable doc)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ keepdir "${GAMES_DATADIR}"/${PN}/games
+ dodoc AUTHORS ChangeLog FULLSCREEN.howto NEWBIE NEWS README
+ prepgamesdirs
+}
diff --git a/games-rpg/adonthell/adonthell-0.3.5-r2.ebuild b/games-rpg/adonthell/adonthell-0.3.5-r2.ebuild
new file mode 100644
index 000000000000..75039371fbab
--- /dev/null
+++ b/games-rpg/adonthell/adonthell-0.3.5-r2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils python-single-r1
+
+DESCRIPTION="roleplaying game engine"
+HOMEPAGE="http://adonthell.linuxgames.com/"
+SRC_URI="https://savannah.nongnu.org/download/${PN}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc nls"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ media-libs/freetype
+ media-libs/libogg
+ media-libs/libsdl:0[X,video,sound]
+ media-libs/libvorbis
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-ttf
+ sys-libs/zlib
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-lang/swig
+ doc? (
+ app-doc/doxygen
+ media-gfx/graphviz
+ )
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${PN}-${PV/a/}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-configure.in.patch
+ "${FILESDIR}"/${P}-format.patch
+ "${FILESDIR}"/${P}-gcc46.patch
+ "${FILESDIR}"/${P}-glibc-2.10.patch
+)
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "/AC_PATH_PROGS/s:python:${EPYTHON}:" \
+ configure.in || die "sed failed"
+ rm -f ac{local,include}.m4
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ --disable-py-debug \
+ $(use_enable nls) \
+ $(use_enable doc)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ keepdir /usr/share/${PN}/games
+ dodoc AUTHORS ChangeLog FULLSCREEN.howto NEWBIE NEWS README
+}
diff --git a/games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch b/games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch
new file mode 100644
index 000000000000..8aaad58894b7
--- /dev/null
+++ b/games-rpg/adonthell/files/adonthell-0.3.5-configure.in.patch
@@ -0,0 +1,92 @@
+--- a/configure.in
++++ b/configure.in
+@@ -13,7 +13,7 @@
+ AM_INIT_AUTOMAKE([])
+ AM_CONFIG_HEADER(config.h)
+
+-CFLAGS="-g -Wall -fno-exceptions"
++CXXFLAGS="$CXXFLAGS -Wall -fno-exceptions"
+ CPPFLAGS=""
+ DEFS=""
+
+@@ -163,10 +163,8 @@
+
+ dnl Extract the version using Python, check against 2.2+
+
+- changequote(<<, >>)
+- PYTHON_VERSION=`$PYPACKAGE -c 'import sys ; print (int(sys.version[0]) * 10 + int(sys.version[2]))'`
+- PY_VERSION=`$PYPACKAGE -c 'import sys ; print sys.version[0:3]'`
+- changequote([, ])
++ PYTHON_VERSION=`$PYPACKAGE -c 'import sys ; print (int(sys.version@<:@0@:>@) * 10 + int(sys.version@<:@2@:>@))'`
++ PY_VERSION=`$PYPACKAGE -c 'import sys ; print sys.version@<:@0:3@:>@'`
+
+ if test $PYTHON_VERSION -lt 22; then
+ echo "Sorry, you need to have Python 2.2+ installed - update your version!"
+@@ -176,9 +174,7 @@
+ dnl Find the Python.h header file
+
+ AC_MSG_CHECKING(for Python header files)
+- changequote(<<, >>)
+- PYINCLUDE=`$PYPACKAGE -c 'import sys ; print "%s/include/python%s" % (sys.prefix, sys.version[:3])'`
+- changequote([, ])
++ PYINCLUDE=`$PYPACKAGE -c 'import sys ; print "%s/include/python%s" % (sys.prefix, sys.version@<:@:3@:>@)'`
+
+ if test -r "$PYINCLUDE/Python.h"; then
+ PY_CFLAGS="-I$PYINCLUDE"
+@@ -191,10 +187,8 @@
+ dnl Find the Python library
+ AC_MSG_CHECKING(for Python library)
+ PYLIB=""
+- changequote(<<, >>)
+ PYPREFIX=`$PYPACKAGE -c 'import sys; print sys.prefix'`
+- PYLIBVER=`$PYPACKAGE -c 'import sys; print sys.version[:3]'`
+- changequote([, ])
++ PYLIBVER=`$PYPACKAGE -c 'import sys; print sys.version@<:@:3@:>@'`
+
+ dnl look for a framework build of python first
+ fw=`echo "$PYPREFIX" | sed 's/.*\(Python\.framework\).*/\1/;'`
+@@ -233,19 +227,9 @@
+ fi
+ dnl Get the libraries that python depends on
+
+- AC_PATH_PROG(haveldd, ldd)
+ AC_MSG_CHECKING(for Python's dependencies)
+
+- if test x$haveldd != x ; then
+- changequote(<<, >>)
+- py_deps=`ldd $PYPACKAGE | sed 's/\( *.*lib\([^\/]*\)\.so.*=.*$\)/-l\2/p; d' | grep -v 'stdc++'`
+- for py_lib in $py_deps ; do
+- if test "$py_lib" != "-lm" && test "$py_lib" != "-lc" ; then
+- PY_DEPS="$PY_DEPS $py_lib"
+- fi
+- done
+- changequote([, ])
+- fi
++ PY_DEPS="$PY_DEPS `python-config --libs` -lutil"
+
+ case $target in
+ *-sun-solaris*)
+@@ -293,11 +277,9 @@
+ if test "$P_SWIG" != "no" ; then
+ $P_SWIG -version &> swig.ver
+
+- changequote(<<, >>)
+- swig_major_ver=`more swig.ver | sed 's/.* \([0-9]*\)\.[0-9]*\.[0-9]*.*/\1/p; d'`
+- swig_minor_ver=`more swig.ver | sed 's/.* [0-9]*\.\([0-9]*\)\.[0-9]*.*/\1/p; d'`
+- swig_micro_ver=`more swig.ver | sed 's/.* [0-9]*\.[0-9]*\.\([0-9]*\).*/\1/p; d'`
+- changequote([, ])
++ swig_major_ver=`more swig.ver | sed 's/.* \(@<:@0-9@:>@*\)\.@<:@0-9@:>@*\.@<:@0-9@:>@*.*/\1/p; d'`
++ swig_minor_ver=`more swig.ver | sed 's/.* @<:@0-9@:>@*\.\(@<:@0-9@:>@*\)\.@<:@0-9@:>@*.*/\1/p; d'`
++ swig_micro_ver=`more swig.ver | sed 's/.* @<:@0-9@:>@*\.@<:@0-9@:>@*\.\(@<:@0-9@:>@*\).*/\1/p; d'`
+
+ rm -f swig.ver
+
+@@ -387,7 +369,7 @@
+ dnl Generate our compiler arguements
+ dnl ********************************
+
+-CXXFLAGS="$CFLAGS $DEFS $INCLUDES"
++CXXFLAGS="$CXXFLAGS $DEFS $INCLUDES"
+
+ AC_SUBST(CXX)
+ AC_SUBST(CXXFLAGS)
diff --git a/games-rpg/adonthell/files/adonthell-0.3.5-format.patch b/games-rpg/adonthell/files/adonthell-0.3.5-format.patch
new file mode 100644
index 000000000000..fa85d7858109
--- /dev/null
+++ b/games-rpg/adonthell/files/adonthell-0.3.5-format.patch
@@ -0,0 +1,11 @@
+--- a/src/py_adonthell_wrap.cc 2014-10-20 14:21:57.495642785 +0200
++++ b/src/py_adonthell_wrap.cc 2014-10-20 14:22:35.019293237 +0200
+@@ -867,7 +867,7 @@
+ Py_DECREF(old_str);
+ Py_DECREF(value);
+ } else {
+- PyErr_Format(PyExc_RuntimeError, mesg);
++ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
+ }
+ }
+
diff --git a/games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch b/games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch
new file mode 100644
index 000000000000..7e54ec5ee03a
--- /dev/null
+++ b/games-rpg/adonthell/files/adonthell-0.3.5-gcc46.patch
@@ -0,0 +1,13 @@
+--- a/src/win_event.cc 2011-04-18 08:24:16.000000000 +0200
++++ b/src/win_event.cc 2011-04-18 08:25:18.000000000 +0200
+@@ -34,8 +34,9 @@
+
+ case DESTROY:
+ {
++ Functor0wRet<bool> func0ret;
+ set_callback_destroy (
+- makeFunctor (&Functor0wRet<bool>(), *callback, &py_callback::callback_func0ret));
++ makeFunctor (&func0ret, *callback, &py_callback::callback_func0ret));
+ break;
+ }
+
diff --git a/games-rpg/adonthell/files/adonthell-0.3.5-glibc-2.10.patch b/games-rpg/adonthell/files/adonthell-0.3.5-glibc-2.10.patch
new file mode 100644
index 000000000000..7aec808cd5f1
--- /dev/null
+++ b/games-rpg/adonthell/files/adonthell-0.3.5-glibc-2.10.patch
@@ -0,0 +1,22 @@
+diff -Naurp adonthell-0.3.4-orig/src/dialog.cc adonthell-0.3.4/src/dialog.cc
+--- adonthell-0.3.4-orig/src/dialog.cc 2005-03-10 12:39:41.000000000 -0600
++++ adonthell-0.3.4/src/dialog.cc 2009-07-26 15:57:01.410882131 -0600
+@@ -265,7 +265,8 @@ string dialog::scan_string (const char *
+ {
+ u_int32 begin, end, len;
+ PyObject *result;
+- char *tmp, *start, *mid, *str = NULL;
++ const char *start;
++ char *tmp, *mid, *str = NULL;
+ character *the_player = data::the_player;
+ string newstr (s);
+
+@@ -318,7 +319,7 @@ string dialog::scan_string (const char *
+
+ // Error!
+ cout << "\n*** Error, unknown macro " << start << flush;
+- start[0] = ' ';
++ newstr[newstr.length () - strlen (start)] = ' ';
+ }
+
+ // execute python functions
diff --git a/games-rpg/adonthell/metadata.xml b/games-rpg/adonthell/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-rpg/adonthell/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-rpg/arx-fatalis-data/Manifest b/games-rpg/arx-fatalis-data/Manifest
new file mode 100644
index 000000000000..eccf1ddaa086
--- /dev/null
+++ b/games-rpg/arx-fatalis-data/Manifest
@@ -0,0 +1,8 @@
+DIST ArxFatalis_1.21_MULTILANG.exe 9064611 SHA256 97c3483a5db7ca99f5ae8001c148517eda3be4cb96d41cc4c1e42f5741456cf3 SHA512 885260c6173ee5f2d6d6072bcfd14d085f11b997a0ce45cbdee9a347612e96da13477ef7d71b9c015fb02f2e47bdfb968a2aa89b0c92e9327abbd75b724e47c2 WHIRLPOOL 1dc785f3b3e28aca928668f7bb7056db0a7ef39f803e50502f1eaf138248a2321011331366c33b4d90791265ece9a114ad7f4c090352940036c8a5bc74b15c56
+DIST setup_arx_fatalis.exe 547521812 SHA256 dc8f62e1ca731844f84f6e80efd28272708ca4c7d4085b0f0125d1f56e50d462 SHA512 4f2021657bd1c5b89d40a29fca0f77a7755e191b8b3e297bb614e557b18ad943a76eb6670f66fb7f0ae1ad92353f1988c0f3bd0c27e220a35fa38a9cdffe0970 WHIRLPOOL 6d456314751e1a2b06f3effd02c50b498e0b3966851253f338c21e2de6e221bc338e4204d13e7d77158b3cbf3dafcef4f8c4cdabcd68abe21ad3758bc149320f
+DIST setup_arx_fatalis_2.0.0.7.exe 525046992 SHA256 18b14b565ca1b37a3e3207a349c13a693f52e4d9875b17936b911690d4226f7b SHA512 08be7870d02ed6da8cedceb652906ea169eedcb44497a4517ef6a42d9db37403b5146b9e5a3a628a465f23088b0c09d958719e05454dcbb5ac12225c32d35942 WHIRLPOOL 3045487c1ce0cd83b5514d977671df615aeb1cc71a99928c95f8dedf26b42a15cfb782e1c24ef2d6c8f2a4baddac5c35733e8c88f28dc633b713ec515f56369f
+EBUILD arx-fatalis-data-1.21-r2.ebuild 2764 SHA256 650c2381d15a0c508df92acf8e3c13fff7a797f6237caae554858be5206cc42f SHA512 1bfb615c29a60da1cd3866fceb254abb9e788e9c934b6da22ecd5981160021c886f84ddd3bbe2dc23b779414897582313fbc170853abd29282b59961f95c4fb8 WHIRLPOOL f46d5ddd3b766777d17937db91f0375df321ed4d6dccdace880381adfda1d7436f692acd4692f5fe636baedf9c60ca6907ac612e0f9cf410c289c4563fae64ba
+EBUILD arx-fatalis-data-1.21-r3.ebuild 2772 SHA256 ab3b070ff52951b636464123e6f1806b3480ac96dd56db1e5c52f993478be47e SHA512 580072e05787f5897004a8706b3340d4582c4be6327fd2282f0a06009324fcc6981ebf31eac3b8fa3ca347bc8b60761993977ac68df52d325d810252ab501bd6 WHIRLPOOL 1f4a4af2f9bc8fd172b2fb5e16c3786bd5977f4662ec2717ee786629353c3439da2429069d511a386de62c30632ec1d93249f18bef01e7f29f1f180753d5a60b
+MISC ChangeLog 4127 SHA256 ec012347eed60ec0a84cf972c32b0c80b7ab4c05e104c2f309112fa958713873 SHA512 ce53235f365a95089fe8d13ddb90d97b38c3c66b442bda991f31f6d849f6fb63bcc076a35f3ac8c794877a6a0a6c8c02be9e0319d6988ba25449aab72f2ab9b6 WHIRLPOOL 5b7e6bdad0464d775ab693373822525eb10c2e112dd2b107388c14ae01971c8cd37fb0689081bd98860fe6b717e9dae7553da9d78d6a798915dd50bfe03ebecc
+MISC ChangeLog-2015 1510 SHA256 1c95e5aa995606de8289e88788ef34f9802870c77f4f50dbe952b47c04d52861 SHA512 b6d7df0acd3418b25b9f3fa64ebdc2864f8bae4880223673b60164e94f8486001b682680c586910b49e315c86668d490c488aea99f7adf3aa3c2f8831073eea2 WHIRLPOOL 688bc14e9ec3733402bd33717271123bf0282f365ec1e67721a0997e402006beede123cfbed91e28a0d7249707d490124c17cc9b3df6ae8cc04275d42a1e9615
+MISC metadata.xml 630 SHA256 5cf3f8d954c46436e481699aae1cbca432d2ac1a4bdd4a29592fe14da35facb9 SHA512 aa6109541e788745bed8fdd6f55bbd99929b19bbcffc83b757812f014de13b27bb1b4c3034e0eea6e2eaa222afe83a586e035d98879849d6b72979a0bd261f01 WHIRLPOOL 7d39e9072572e6d77a805f107a8a33567bc178c1d1f08fa62ce366d19243b85157935301d0a07660765f8036819ac01f92a58250a5d58b062f085bcd283a0ef3
diff --git a/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r2.ebuild b/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r2.ebuild
new file mode 100644
index 000000000000..0920e723236e
--- /dev/null
+++ b/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r2.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+CDROM_OPTIONAL="yes"
+inherit eutils cdrom check-reqs games
+
+DESCRIPTION="Arx Fatalis data files"
+HOMEPAGE="https://www.arkane-studios.com/uk/arx.php"
+SRC_URI="cdinstall? ( http://download.zenimax.com/arxfatalis/patches/1.21/ArxFatalis_1.21_MULTILANG.exe )
+ gog? ( setup_arx_fatalis.exe )"
+
+LICENSE="cdinstall? ( ArxFatalis-EULA-JoWooD ) gog? ( GOG-EULA )"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gog"
+REQUIRED_USE="^^ ( cdinstall gog )"
+RESTRICT="binchecks mirror gog? ( fetch )"
+
+RDEPEND="games-rpg/arx-libertatis"
+DEPEND="app-arch/innoextract
+ cdinstall? ( app-arch/cabextract )"
+
+CHECKREQS_DISK_BUILD="621M"
+CHECKREQS_DISK_USR="617M"
+
+S=${WORKDIR}
+
+detect_language() {
+ speech_checksum=$(find '.' -iname "speech.pak" \
+ -exec md5sum -b '{}' \; | sed "s/ .*//g")
+ if [[ -z $speech_checksum ]] ; then
+ speech_checksum=$(find '.' -iname "speech_default.pak" \
+ -exec md5sum -b '{}' \; | sed "s/ .*//g")
+ fi
+
+ # check if the checksum is of a known localisation and set data_lang to
+ # the language string to be used with the 1.21 patch installer
+ case "$speech_checksum" in
+ '4c3fdb1f702700255924afde49081b6e') data_lang='german' ;;
+ # Bundled version of AF included with NVIDIA card
+ 'ab8a93161688d793a7c78fbefd7d133e') data_lang='german' ;;
+ '4e8f962d8204bcfd79ce6f3226d6d6de') data_lang='english' ;;
+ '2f88c67ae1537919e69386d27583125b') data_lang='spanish' ;;
+ '4edf9f8c799190590b4cd52cfa5f91b1') data_lang='french' ;;
+ '81f05dea47c52d43f01c9b44dd8fe962') data_lang='italian' ;;
+ '677163bc319cd1e9aa1b53b5fb3e9402') data_lang='russian' ;;
+ '') eerror "speech*.pak not found"
+ die "speech*.pak not found" ;;
+ *) eerror "unsupported data language - speech*.pak checksum:" \
+ "$speech_checksum" \
+ "please file a gentoo bug"
+ die "unsupported data language, file a gentoo bug" ;;
+ esac
+}
+
+pkg_nofetch() {
+ einfo "Please download ${A} from your GOG.com account after buying Arx Fatalis"
+ einfo "and put it into ${DISTDIR}."
+}
+
+src_unpack() {
+ local data_lang
+
+ if use cdinstall ; then
+ cdrom_get_cds bin/Arx.ttf
+ find "${CDROM_ROOT}" -iname "setup*.cab" -exec cabextract '{}' \;
+ detect_language
+ else
+ # gog only offers english
+ data_lang="english"
+ fi
+
+ einfo "Data language: $data_lang"
+ innoextract --lowercase --language=${data_lang} \
+ "${DISTDIR}"/${A} || die
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/arx
+ doins -r app/{graph,misc}
+ find . -iname "*.pak" -exec doins '{}' \;
+
+ dodoc app/{manual,map}.pdf
+
+ # convert to lowercase
+ cd "${D}"
+ find . -type f -exec sh -c 'echo "${1}"
+ lower="`echo "${1}" | tr [:upper:] [:lower:]`"
+ [ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \;
+
+ prepgamesdirs
+}
diff --git a/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r3.ebuild b/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r3.ebuild
new file mode 100644
index 000000000000..f14ea22a6a39
--- /dev/null
+++ b/games-rpg/arx-fatalis-data/arx-fatalis-data-1.21-r3.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+CDROM_OPTIONAL="yes"
+inherit eutils cdrom check-reqs games
+
+DESCRIPTION="Arx Fatalis data files"
+HOMEPAGE="https://www.arkane-studios.com/uk/arx.php"
+SRC_URI="cdinstall? ( http://download.zenimax.com/arxfatalis/patches/1.21/ArxFatalis_1.21_MULTILANG.exe )
+ gog? ( setup_arx_fatalis_2.0.0.7.exe )"
+
+LICENSE="cdinstall? ( ArxFatalis-EULA-JoWooD ) gog? ( GOG-EULA )"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gog"
+REQUIRED_USE="^^ ( cdinstall gog )"
+RESTRICT="binchecks mirror gog? ( fetch )"
+
+RDEPEND="games-rpg/arx-libertatis"
+DEPEND="app-arch/innoextract
+ cdinstall? ( app-arch/cabextract )"
+
+CHECKREQS_DISK_BUILD="621M"
+CHECKREQS_DISK_USR="617M"
+
+S=${WORKDIR}
+
+detect_language() {
+ speech_checksum=$(find '.' -iname "speech.pak" \
+ -exec md5sum -b '{}' \; | sed "s/ .*//g")
+ if [[ -z $speech_checksum ]] ; then
+ speech_checksum=$(find '.' -iname "speech_default.pak" \
+ -exec md5sum -b '{}' \; | sed "s/ .*//g")
+ fi
+
+ # check if the checksum is of a known localisation and set data_lang to
+ # the language string to be used with the 1.21 patch installer
+ case "$speech_checksum" in
+ '4c3fdb1f702700255924afde49081b6e') data_lang='german' ;;
+ # Bundled version of AF included with NVIDIA card
+ 'ab8a93161688d793a7c78fbefd7d133e') data_lang='german' ;;
+ '4e8f962d8204bcfd79ce6f3226d6d6de') data_lang='english' ;;
+ '2f88c67ae1537919e69386d27583125b') data_lang='spanish' ;;
+ '4edf9f8c799190590b4cd52cfa5f91b1') data_lang='french' ;;
+ '81f05dea47c52d43f01c9b44dd8fe962') data_lang='italian' ;;
+ '677163bc319cd1e9aa1b53b5fb3e9402') data_lang='russian' ;;
+ '') eerror "speech*.pak not found"
+ die "speech*.pak not found" ;;
+ *) eerror "unsupported data language - speech*.pak checksum:" \
+ "$speech_checksum" \
+ "please file a gentoo bug"
+ die "unsupported data language, file a gentoo bug" ;;
+ esac
+}
+
+pkg_nofetch() {
+ einfo "Please download ${A} from your GOG.com account after buying Arx Fatalis"
+ einfo "and put it into ${DISTDIR}."
+}
+
+src_unpack() {
+ local data_lang
+
+ if use cdinstall ; then
+ cdrom_get_cds bin/Arx.ttf
+ find "${CDROM_ROOT}" -iname "setup*.cab" -exec cabextract '{}' \;
+ detect_language
+ else
+ # gog only offers english
+ data_lang="english"
+ fi
+
+ einfo "Data language: $data_lang"
+ innoextract --lowercase --language=${data_lang} \
+ "${DISTDIR}"/${A} || die
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/arx
+ doins -r app/{graph,misc}
+ find . -iname "*.pak" -exec doins '{}' \;
+
+ dodoc app/{manual,map}.pdf
+
+ # convert to lowercase
+ cd "${D}"
+ find . -type f -exec sh -c 'echo "${1}"
+ lower="`echo "${1}" | tr [:upper:] [:lower:]`"
+ [ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \;
+
+ prepgamesdirs
+}
diff --git a/games-rpg/arx-fatalis-data/metadata.xml b/games-rpg/arx-fatalis-data/metadata.xml
new file mode 100644
index 000000000000..3293455d3c4e
--- /dev/null
+++ b/games-rpg/arx-fatalis-data/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>daniel@constexpr.org</email>
+ <name>Daniel Scharrer</name>
+ <description>Proxy maintainer. CC him on bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="gog">Extract the data from the GOG.com installer.</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-rpg/arx-fatalis-demo/Manifest b/games-rpg/arx-fatalis-demo/Manifest
new file mode 100644
index 000000000000..a4feeaa19072
--- /dev/null
+++ b/games-rpg/arx-fatalis-demo/Manifest
@@ -0,0 +1,5 @@
+DIST arx_demo_english.zip 160545354 SHA256 9e85d4bfa081a4ccc40a1f3722b32c23cd9fa95e91f47d32be76aa62c9fd7187 SHA512 0cbf0d6da1a373ed29edc49c65ed431117c868ec7bcab04166abd59f5d799460faec506baf191c83fa7c61372888009abb260d8a50e28507a5ec8ab7913a9ad7 WHIRLPOOL 2ef662feac747fc7da44c224d46bd2bc9ab48c01c572912df3464dbef04cd47c4c3768e09f26dde27104e62e3c7c9f4ffe828ec2dac53a80467b31533bcc6731
+EBUILD arx-fatalis-demo-0.ebuild 1287 SHA256 ae190ec0236e4ce7d260c1b03937e643b29629635341029011ef7f3804c3de97 SHA512 9176a4e1cdcf8eb2f1a51b6cf62c276e99554aa33e66f86ff5f9dac49e4ac63ed1cc7d4325b93a13c2472e72d3efeb72760fbc4abb50549c901cb771134e15a1 WHIRLPOOL 3a8793e47f04a3307b1ef64b5be4a2d29c0eeeb336ad18a17d83e1a3138255c920c2eb2882e75bc507dc96cd92f76ce5a54ba6cbd746ac1fa44c5fb5f64e49f3
+MISC ChangeLog 3303 SHA256 16dd2e3b3d13ec9ef73f7d38e5dc947a47f788ec11b6989da93d7867caa44437 SHA512 9d995024d28f249dc2d74c2fcb904736697e50b992ebdc08a87c5bab1c7755925a7a323289d4a6f3fbc6a435bb5bcd1143c3b3752213fb73558c08f1280fbcad WHIRLPOOL 9079b5f564094a7dcfee09fafa080b3dc17f0232c10c3acdc301b5e608b1dc6d9177666e8c2f44cd3536e6a8b3660c47b927f4e9685c06feec95a789ef7b3286
+MISC ChangeLog-2015 831 SHA256 64014620478c808e8bbc9f1d569d8b9425ce562aef9b87d32d8d170a44964c77 SHA512 b7f3729813f2bf1d30be485a6ff01e0d6591c42e38cdd9e6c88d7bf98040a989e24871d35713c20f04657f69a4b5eb658a1fa12bc7c14caebcde6742e65fe9dc WHIRLPOOL 7fbe6976f08859412fcf6a7520c01d8dcdc0d4541d2c3db23f81d1cd00961bdb124f85f1a333e0fd8861926e57400a2b5292a6a7d95048e534bb7c3ef27c9911
+MISC metadata.xml 543 SHA256 d72a38ef017de00a29f77a2351c302e4dc1303cd870903161835840c9342ae13 SHA512 600c90482c7e59697c69e1cb389651cc6da2dd2c9adcc9080cb4179e38622c87c60e66f8ee4b3e86a6ffb1595b00ef4c320db99cef5e6030700321a139022a40 WHIRLPOOL ebaa7dea3d0b63326abf429860da6a83b6438240226a87865644fa54dbfdc9d3caad6b4cee2d38ba0658f64d9c532b3ad8514a244d75535546abe4773e8bd84e
diff --git a/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0.ebuild b/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0.ebuild
new file mode 100644
index 000000000000..3c62337cee7d
--- /dev/null
+++ b/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils games
+
+DESCRIPTION="Arx Fatalis demo"
+HOMEPAGE="https://www.arkane-studios.com/uk/arx.php"
+SRC_URI="arx_demo_english.zip"
+
+LICENSE="ArxFatalisDemo"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="fetch"
+
+RDEPEND="games-rpg/arx-libertatis"
+DEPEND="app-arch/cabextract
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+pkg_nofetch() {
+ einfo "Please find and download ${SRC_URI} and put it into ${DISTDIR}."
+ einfo "There is a list of possible download locations at"
+ einfo "http://wiki.arx-libertatis.org/Getting_the_game_data#Demo"
+}
+
+src_unpack() {
+ unpack ${A}
+ cabextract Setup1.cab || die "cabextract failed"
+ cabextract Setup2.cab || die "cabextract failed"
+ cabextract Setup3.cab || die "cabextract failed"
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r *.pak bin/*.pak
+ insinto "${GAMES_DATADIR}/${PN}/misc"
+ doins bin/Logo.bmp bin/Arx.ttf
+
+ # convert to lowercase
+ cd "${D}"
+ find . -type f -exec sh -c 'echo "${1}"
+ lower="`echo "${1}" | tr [:upper:] [:lower:]`"
+ [ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \;
+
+ make_desktop_entry "arx --data-dir=${GAMES_DATADIR}/arx-fatalis-demo" \
+ "Arx Fatalis Demo" arx-libertatis
+
+ prepgamesdirs
+}
diff --git a/games-rpg/arx-fatalis-demo/metadata.xml b/games-rpg/arx-fatalis-demo/metadata.xml
new file mode 100644
index 000000000000..7a7c278f7b87
--- /dev/null
+++ b/games-rpg/arx-fatalis-demo/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>daniel@constexpr.org</email>
+ <name>Daniel Scharrer</name>
+ <description>Proxy maintainer. CC him on bugs</description>
+ </maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/arx-libertatis/Manifest b/games-rpg/arx-libertatis/Manifest
new file mode 100644
index 000000000000..94241de1da5e
--- /dev/null
+++ b/games-rpg/arx-libertatis/Manifest
@@ -0,0 +1,7 @@
+AUX arx-data-copy 3090 SHA256 9f24928ec21c495147ff0c1c9fd88ab352fd300022bb0751d58b533a96d099d2 SHA512 dfbe8c97b9c7562062eb83f6558d23833a70ab8ca5e42f6cbadbdb97fd3e1cd4f568c415203e7c7aae36522187453f38304afac8a7e2cdc6f3288f76f915ffcb WHIRLPOOL 7db29955044aea81efc75958107d93d98b10d0170d654a8561361331d6f9038fb0ab0f7b2ac656067c67fddd91b80e1d4aec8f6b4ff2126939a565f4b135b788
+AUX arx-libertatis-1.1.2-cmake-3.5.patch 888 SHA256 5fcb6abb24995a7278825c122a54f2c7b58f7a88dccb0efbe301d9fc38396215 SHA512 c1da4981c407bc94ce87b520e2b6288fd6bac437a14dc3b54e8c2c7b01cbda0938b6995581938a2381d1f035ace95df58f3d894e8f7c6070986a5bc43f5e54c2 WHIRLPOOL 823a936abb356d5e392cd728f9a4eaafe597770d6fba1c335ba8e68dff0de63cab12982bf7bf7fc44a5b55e958f1c90ae8cb674e104c6cadc7e3d10521e53518
+DIST arx-libertatis-1.1.2.tar.xz 970608 SHA256 82adb440a9c86673e74b84abd480cae968e1296d625b6d40c69ca35b35ed4e42 SHA512 d4cb8187e7f63934408e38a51a44b7da03c8628820d43139507ff97ebd463b9cd7baf6cc4e85a3d4191d6e5f56850d77d07cfffc33d8f5a51378dfb41f719fb8 WHIRLPOOL 8408189dd184ce692962fb157e89048e96f9a29f47cd16163f0194e5ccb5c8a3c8bbac33fabd253d11eb07fd74b5598ccf98a94383c656c0686aff5485f4bb0e
+EBUILD arx-libertatis-1.1.2.ebuild 2389 SHA256 4312a02ce4ec854068fdc15e20d67d4c6f25f01e3b1ef5943bba08a4f064f65d SHA512 57d3dcffed496025719b15ca50c56f723d5cdf0424057ad20bd64ab06d0ed4c3f8964c54cc35d246657989255ffea004ee3ee818ea9faea4224f737732c22467 WHIRLPOOL 05a405b83d24b3bcb310cf6d68075bd736fe2bfc6f8cb8da611efdd32f5b655f6d8ee650509601f5f6a2404cedf92d19950724d16d0dd22c0b078f094a2ab99c
+MISC ChangeLog 3585 SHA256 22da31b3b1c28f55197a9cfabcd03b70af00f3b96bed161e06994a8f04ed0140 SHA512 e234c4496af5c7c865527e1a90b24e335e8f75cf41efa7ee7c7965a65ae7a07cf60aa0804586a193f5f84a02444ab6a058335211b05a8f90f0935586c0917d67 WHIRLPOOL 2b0b8707287ad7224c8b91e7ca2d2c030d9e1d5e826434e3146c154753fe39b72d9cd95759ffd62754e7865cbda998e0ff609eced4bf7947095120967ad7eb85
+MISC ChangeLog-2015 3701 SHA256 1d99ab935b673a298da41938169af945a9c92c75e61f64687bece433a9060666 SHA512 598cb07b19a210d71b10ea6b0872c7211d49d7e8b7488076d51bbbc82c0f8a311b1b78932419d84d604c8eb80b0ae9c6586ea7eb31940dc2319ccaedc1e51fe5 WHIRLPOOL 6a57d8c1e1bf445e422a6cd4b3b74fe1c3444614dbd1e107e22b094403d3d0f29909a02c2f3a72c0aa762782565975b5a4748b3fcd622d04bda018c2a47d5c35
+MISC metadata.xml 2564 SHA256 3596e2454f1734e05568898762480275410ae7b4c79dfbb865d744ce392310d5 SHA512 c34718413d4e273abffb224a307075529a3845ac3ceeef7bd38157e16ba0b222c77a2d4b7de2508901a6e0c6602462d907e269d8b83f1554639e97e3dc7133cb WHIRLPOOL d6e24fce3e1ab6e2a95222d6d8d4454f7b1111e977d7a770fc936f32334e409bb6521dbf17d4512a70df7c8594324c1c891a9d277a85ee2e21237bd7301e3210
diff --git a/games-rpg/arx-libertatis/arx-libertatis-1.1.2.ebuild b/games-rpg/arx-libertatis/arx-libertatis-1.1.2.ebuild
new file mode 100644
index 000000000000..a4b838d60607
--- /dev/null
+++ b/games-rpg/arx-libertatis/arx-libertatis-1.1.2.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+CMAKE_WARN_UNUSED_CLI=yes
+inherit eutils cmake-utils gnome2-utils games
+
+DESCRIPTION="Cross-platform port of Arx Fatalis, a first-person role-playing game"
+HOMEPAGE="http://arx-libertatis.org/"
+SRC_URI="mirror://sourceforge/arx/${P}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="c++0x debug +unity-build crash-reporter static tools"
+
+COMMON_DEPEND="
+ media-libs/freetype
+ media-libs/libsdl[X,video,opengl]
+ media-libs/openal
+ sys-libs/zlib
+ virtual/opengl
+ crash-reporter? (
+ dev-qt/qtcore:4[ssl]
+ dev-qt/qtgui:4
+ )
+ !static? ( media-libs/glew )"
+RDEPEND="${COMMON_DEPEND}
+ crash-reporter? ( sys-devel/gdb )"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/boost
+ virtual/pkgconfig
+ static? ( media-libs/glew[static-libs] )"
+
+DOCS=( README.md AUTHORS CHANGELOG )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-cmake-3.5.patch
+)
+
+src_configure() {
+ # editor does not build
+ local mycmakeargs=(
+ $(cmake-utils_use_build crash-reporter CRASHREPORTER)
+ -DBUILD_EDITOR=OFF
+ $(cmake-utils_use_build tools TOOLS)
+ -DCMAKE_INSTALL_DATAROOTDIR="${GAMES_DATADIR_BASE}"
+ -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}"
+ $(cmake-utils_use debug DEBUG)
+ -DGAMESBINDIR="${GAMES_BINDIR}"
+ -DICONDIR=/usr/share/icons/hicolor/128x128/apps
+ -DINSTALL_SCRIPTS=ON
+ -DSET_OPTIMIZATION_FLAGS=OFF
+ -DSTRICT_USE=ON
+ $(cmake-utils_use unity-build UNITY_BUILD)
+ $(cmake-utils_use_use c++0x CXX11)
+ -DUSE_NATIVE_FS=ON
+ -DUSE_OPENAL=ON
+ -DUSE_OPENGL=ON
+ -DUSE_SDL=ON
+ $(usex crash-reporter "-DUSE_QT5=OFF" "")
+ $(cmake-utils_use_use static STATIC_LIBS)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ elog "optional dependencies:"
+ elog " games-rpg/arx-fatalis-data (from CD or GOG)"
+ elog " games-rpg/arx-fatalis-demo (free demo)"
+ elog
+ elog "This package only installs the game binary."
+ elog "You need the demo or full game data. Also see:"
+ elog "http://wiki.arx-libertatis.org/Getting_the_game_data"
+ elog
+ elog "If you have already installed the game or use the STEAM version,"
+ elog "run \"${GAMES_BINDIR}/arx-install-data\""
+
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/arx-libertatis/files/arx-data-copy b/games-rpg/arx-libertatis/files/arx-data-copy
new file mode 100644
index 000000000000..f11fc05eb2c1
--- /dev/null
+++ b/games-rpg/arx-libertatis/files/arx-data-copy
@@ -0,0 +1,108 @@
+#!/bin/sh
+
+die() {
+ echo "$@" >&2
+ exit 1
+}
+
+# Handle arguments
+if [ "$1" != "--help" ] && [ "$1" != "-h" ] ; then
+ SOURCE="$(readlink -f "$1")"
+else
+ die "\
+Usage: arx-data-copy path/to/ArxFatalis/ [output_dir]
+
+This script can be used to copy the game data from a fully patched
+Arx Fatalis 1.21 install (for example a Steam download).
+Files will be renamed as needed by Arx Libertatis.
+
+You can get the 1.21 patch from http://www.arkane-studios.com/uk/arx_downloads.php"
+fi
+
+if [ "$2" = "" ] ; then
+ DESTDIR="$(pwd)"
+else
+ DESTDIR="$(readlink -f "$2")"
+fi
+
+cd "$(dirname "$0")"
+
+echo "Installing Arx Fatalis data from \"$SOURCE\" to \"$DESTDIR\".
+"
+
+# Check for required files
+[ -d "$SOURCE" ] || die "$SOURCE does not exist"
+
+# files
+set -- \
+ "data2.pak" \
+ "graph/interface/misc/arkane.bmp" \
+ "graph/interface/misc/quit1.bmp" \
+ "graph/obj3d/textures/fixinter_barrel.jpg" \
+ "graph/obj3d/textures/fixinter_bell.bmp" \
+ "graph/obj3d/textures/fixinter_metal_door.jpg" \
+ "graph/obj3d/textures/fixinter_public_notice.bmp" \
+ "graph/obj3d/textures/item_bread.bmp" \
+ "graph/obj3d/textures/item_club.jpg" \
+ "graph/obj3d/textures/item_long_sword.jpg" \
+ "graph/obj3d/textures/item_mauld_sabre.jpg" \
+ "graph/obj3d/textures/item_mauldsword.jpg" \
+ "graph/obj3d/textures/item_mirror.jpg" \
+ "graph/obj3d/textures/item_ring_casting.bmp" \
+ "graph/obj3d/textures/item_rope.bmp" \
+ "graph/obj3d/textures/item_spell_sheet.jpg" \
+ "graph/obj3d/textures/item_torch2.jpg" \
+ "graph/obj3d/textures/item_torch.jpg" \
+ "graph/obj3d/textures/item_zohark.bmp" \
+ "graph/obj3d/textures/l7_dwarf_[wood]_board08.jpg" \
+ "graph/obj3d/textures/l7_dwarf_[wood]_board80.jpg" \
+ "graph/obj3d/textures/npc_dog.bmp" \
+ "graph/obj3d/textures/npc_pig.bmp" \
+ "graph/obj3d/textures/npc_pig_dirty.bmp" \
+ "graph/obj3d/textures/npc_rat_base.bmp" \
+ "graph/obj3d/textures/npc_rat_base_cm.bmp" \
+ "graph/obj3d/textures/npc_worm_body_part1.jpg" \
+ "graph/obj3d/textures/npc_worm_body_part2.bmp" \
+ "graph/obj3d/textures/[wood]_light_door.jpg" \
+ "manual.pdf" \
+ "map.pdf" \
+ "misc/arx_default.ttf" \
+ "misc/arx_russian.ttf" \
+ "misc/arx_taiwanese.ttf" \
+ "misc/logo.avi" \
+ "misc/logo.bmp" \
+ "sfx.pak" \
+ "data.pak" \
+ "loc.pak" \
+ "speech.pak"
+
+# Install required files
+ret=0
+for f in "$@" ; do
+ DEST="$DESTDIR/$f"
+ DIRNAME="$(dirname "$f")"
+ FILE="$(basename "$f" | sed 's/[^[:alnum:]_-]/\\&/g')"
+ FILE_DEFAULT="$(echo "$FILE" | sed 's/^\(.*\)\(\.[^.]*\)$/\1_default\2/g')"
+
+ # don't screw permissions on existent folders
+ [ -e "$DESTDIR/$DIRNAME" ] || { mkdir -pv "$DESTDIR/$DIRNAME"
+ chmod 755 "$DESTDIR/$DIRNAME" ; }
+
+ find "$SOURCE" -iname "$FILE" -exec cp -fv '{}' "$DEST" \;
+ find "$SOURCE" -iname "$FILE_DEFAULT" -exec cp -fv '{}' "$DEST" \;
+
+ chmod 644 "$DEST" || { missing_files="$missing_files
+ $f" ; return 1 ; }
+
+ ret="$(($ret + $?))"
+done
+
+[ "$ret" = "0" ] || die "
+$ret errors and following files not installed:$missing_files
+
+You either have incorrect permissions on \"${DESTDIR}\"
+or don't have patch 1.21 installed. Fix it and rerun this script."
+
+echo
+echo "Now run:
+ arx --data-dir \"$DESTDIR\""
diff --git a/games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-cmake-3.5.patch b/games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-cmake-3.5.patch
new file mode 100644
index 000000000000..d085afafe393
--- /dev/null
+++ b/games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-cmake-3.5.patch
@@ -0,0 +1,34 @@
+From c4262bc600dc01d3ddbacc7811132b29ea46ad3b Mon Sep 17 00:00:00 2001
+From: Daniel Scharrer <daniel@constexpr.org>
+Date: Thu, 24 Mar 2016 22:47:44 +0100
+Subject: [PATCH] CMake: Disable variable expansion for quoted strings in if()
+
+This makes the build system more robust against stray variables
+coming from included CMake scripts provided by the system.
+
+Fixes build with CMake 3.5.
+
+This has been fixed in master with commit 60e43c.
+---
+ CMakeLists.txt | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 93f1ee3..8347544 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -13,6 +13,11 @@ else()
+ cmake_minimum_required(VERSION 2.8)
+ endif()
+
++if(POLICY CMP0054)
++ # CMake 3.1+: Only interpret if() arguments as variables or keywords when unquoted.
++ cmake_policy(SET CMP0054 NEW)
++endif()
++
+
+ # Define configuration options
+
+--
+2.7.4
+
diff --git a/games-rpg/arx-libertatis/metadata.xml b/games-rpg/arx-libertatis/metadata.xml
new file mode 100644
index 000000000000..36eb9d054450
--- /dev/null
+++ b/games-rpg/arx-libertatis/metadata.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="c++0x">Build ROOT using the C++11 standard.</flag>
+ <flag name="crash-reporter">Build a <pkg>dev-qt/qtgui</pkg>-based
+ tool that allows to submit crash information to the upstream
+ backtracker.</flag>
+ <flag name="debug">Enable asserts and debug logging.</flag>
+ <flag name="static">Link libraries statically, currently only
+ <pkg>media-libs/glew</pkg></flag>
+ <flag name="tools">Build tools that can extract the game's data and
+ save files.</flag>
+ <flag name="unity-build">Build everything in one big source file,
+ allowing for faster build times and better optimizations at
+ the cost of higher memory usage.</flag>
+ </use>
+ <longdescription lang="en">
+ Arx Libertatis is a cross-platform, open source port of
+ Arx Fatalis, a 2002 first-person role-playing game/dungeon crawler
+ developed by Arkane Studios.
+ Arx Fatalis features crafting, melee and ranged combat, as well
+ as a unique casting system where the player draws runes in real
+ time to effect the desired spell.
+ Arx Libertatis updates and improves Arx Fatalis by supporting
+ modern systems, porting the game to new systems as well as
+ eliminating bugs and limitations.
+ </longdescription>
+ <longdescription lang="de">
+ Arx Libertatis ist eine cross-platform, open source Portierung
+ von Arx Fatalis, ein Rollenspiel/Dungeon Crawler in Ego-Perspektive
+ aus dem Jahr 2002, entwickelt von Arkane Studios.
+ Arx Fatalist umfasst das Herstellen von Gegenständen,
+ Nah- und Fernkampf, sowie ein einzigartiges Magiesystem,
+ in dem der Spieler Runen in Echtzeit zeichnen muss, um einen
+ Zauberspruch auszusprechen.
+ Arx Libertatis aktualisiert und verbessert Arx Fatalis, indem
+ es moderne Systeme unterstützt, das Spiel auch zu neuen Systemen
+ portiert und bugs und Beschränkungen behebt.
+ </longdescription>
+ <upstream>
+ <maintainer status="active">
+ <email>daniel@constexpr.org</email>
+ <name>Daniel Scharrer</name>
+ </maintainer>
+ <bugs-to>https://bugs.arx-libertatis.org/</bugs-to>
+ <changelog>
+ http://wiki.arx-libertatis.org/Changelog
+ </changelog>
+ <doc lang="en">http://wiki.arx-libertatis.org/</doc>
+ <remote-id type="github">arx/ArxLibertatis</remote-id>
+ <remote-id type="sourceforge">arx</remote-id>
+ <remote-id type="freecode">arx-libertatis</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/avadon/Manifest b/games-rpg/avadon/Manifest
new file mode 100644
index 000000000000..1fbeba04dd8f
--- /dev/null
+++ b/games-rpg/avadon/Manifest
@@ -0,0 +1,5 @@
+DIST avadon-black-fortress_1.0.4_all.run 109767395 SHA256 1619401aa42abe055b3eabf8b63d4ada3ce55affb054d0d6a6da09affe1c76fe SHA512 7c1acbb1ce3bbfb33052454c9b93060fa97b13fbf4202ee2bb0d70fb59423efc05dfe0bca07cce1e711af9f2757b79c590f237dea5f92aa11aa5979c35d018a7 WHIRLPOOL 751b5ce976a0dcb23065786d5078a32468c0f9a7a1df8eac6884923ad244996c43b7ad25044ee5fd7f680bcaa78982add53b9e248c5794f1c647309c5dbf2afc
+EBUILD avadon-1.0.4.ebuild 1150 SHA256 3c90f2619d0b3e8e0f634e6e658378e62e74be942420dd14f0f149e92fd82114 SHA512 907a012a38f3a26827a420c10f92d558af2121d3df5c3fae89b465f3022c79ed1762faefc812baf777b0b76a8bf28e37919136b4cbf3c64261e5fd2ceadc9bc6 WHIRLPOOL 96c8b04fe4f857292ec143b6f7ef03693b3e49445748ca486388305770f76b20b6990b14eba2686b617d26f0bfdb5d8a801b0c780eb1e577462c1a2e18da177c
+MISC ChangeLog 2549 SHA256 70adf806620a2dec59ab048f627794280f38c333c2a9a96c73574e570e7d65eb SHA512 5b5a53a1319ae5e77cc5b9c4d03ed17b2f401b667fdb00feb7a57c1d418f7893e4592591d999b58176d65659b35a10b5ccfd8935e392bb2614fe223e57c1c5c9 WHIRLPOOL 4ee4ff773079c319be4ef6cc55a43b8a85b8a410ff4337067daf126faacadb50af007f6a3ba9ce41fc8d0885653116a6ebe0371ddc6e83556792304b58640352
+MISC ChangeLog-2015 449 SHA256 b86daab759e5a949ab4819a78d02932586c2a1e5bf5e8f4f2426d7b863d55617 SHA512 630ece7a8dfae9c5a7e442918928a92a29457d7db1674f1b206d3ea591285df191a277e1a6be0c5f338bff08fe9c50d233c33142249e6d6ba7490825ea83ef35 WHIRLPOOL 854e6c392d80a4a8ca46bfea61424e588276659d09f7c79976f7f834d37d524d8eb984155bc881339aa7138f518109c0ee2dd73650aaccf733dc03b80063d62c
+MISC metadata.xml 252 SHA256 0dd0e558bb7ccc4f24cb9c9c43790c108e559f3462861b2ff6eb267a345beaab SHA512 90798aff93ec7e3881b882e7b10bb1680e8cb7d82b0ef4280e562ab0c9e8a2daba8afe57333dc64697322267a4b651c00ee9b4fdeb56278ff70c073da7b91638 WHIRLPOOL c6c72f145f4ccc4863ad4c1a236eac601fb00f0e9550568f98d5e6f5eeb16f361b4c18eac8d80a1534e398fac595a6819a86297164be0818d04de6d643f01d7c
diff --git a/games-rpg/avadon/avadon-1.0.4.ebuild b/games-rpg/avadon/avadon-1.0.4.ebuild
new file mode 100644
index 000000000000..aa2ea9313f40
--- /dev/null
+++ b/games-rpg/avadon/avadon-1.0.4.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils unpacker games
+
+DESCRIPTION="Epic fantasy role-playing adventure in an enormous and unique world"
+HOMEPAGE="http://www.spiderwebsoftware.com/avadon/index.html"
+SRC_URI="avadon-black-fortress_${PV}_all.run"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="fetch bindist"
+
+QA_PREBUILT="${GAMES_PREFIX_OPT#/}/${PN}/Avadon*"
+
+RDEPEND="media-libs/libsdl[X,opengl,video]
+ media-libs/openal"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/data
+
+pkg_nofetch() {
+ einfo
+ einfo "Please buy & download \"${SRC_URI}\" from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move/link it to \"${DISTDIR}\""
+ einfo
+}
+
+src_unpack() {
+ unpack_zip ${A}
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+ local arch=$(usex amd64 "amd64" "x86")
+
+ insinto "${dir}"
+ doins -r "avadon files" icon.bmp
+
+ exeinto "${dir}"
+ doexe Avadon-${arch}
+
+ newicon Avadon.png ${PN}.png
+ games_make_wrapper ${PN} "./Avadon-${arch}" "${dir}"
+ make_desktop_entry ${PN} "Avadon: The Black Fortress"
+
+ dodoc README-linux.txt
+
+ prepgamesdirs
+}
diff --git a/games-rpg/avadon/metadata.xml b/games-rpg/avadon/metadata.xml
new file mode 100644
index 000000000000..3c186688e265
--- /dev/null
+++ b/games-rpg/avadon/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/baldurs-gate-ee/Manifest b/games-rpg/baldurs-gate-ee/Manifest
new file mode 100644
index 000000000000..c4e4916bb6f5
--- /dev/null
+++ b/games-rpg/baldurs-gate-ee/Manifest
@@ -0,0 +1,3 @@
+DIST gog_baldur_s_gate_enhanced_edition_2.5.0.8.sh 2877122979 SHA256 ddd4ad12a340db1fe74f68532565df216577ffd76ce9190da0a288594b161e7b SHA512 b129e7c8e656092ab731410e0776576f28e497958e84faf02095d0a22ee72a2c8c9d1563b8c972959f6f9d4c2cb9dacd13358d5aee1c53c3f198d9b362c19d3d WHIRLPOOL 730218b67b6f026bbd3f40d2f0d382c60b10be48ca0e13f6d705ca96e6edebe21e0fb3131dd1c07aadf3c7396f56e8dbd55b0c19074bd7564ea7d533cb98ace2
+EBUILD baldurs-gate-ee-2.3.67.3.ebuild 1370 SHA256 5ed04ff015c91336c7ba203f70b1c16678329542467f6f98b51304219f2202e7 SHA512 3f1a7e41c762f95e884351e6248b9205e066f3a86f096f932b4643cb8b57f8ace9fff1c02dcb9f0140d8c84ac2489d468502eb0a4077133e6e1cb8e1f8cda061 WHIRLPOOL e6b82eedd904fadf777b6342fa8218e9aeacbe32f0ef60b2906171b2b105a2b78eb0af2c7909f5dd499f32295c4782081b30b2e4691909c4ff0edcdf11461cd0
+MISC metadata.xml 784 SHA256 4d4ac012b2877a1e7d098b9f42e053dc29a6d12286e5f75fbe1ad5bfefd95fec SHA512 d92e2613876c7c8840f640ba778f1cbdb62d2e65caf38a1e931bd7ffe6ab3bcacf6093155b01036f1cb3f18583842761242105019fbf1e72df34e096d7f5bbde WHIRLPOOL 303290c693fc076a0f99fbe7501f0f68026c4935b9b87fe17d20b22d0015f8afa9ddfc7d94b2dd7a55270925d5f0b2b2cb59a3f0fdad17783655e1ccf077abfc
diff --git a/games-rpg/baldurs-gate-ee/baldurs-gate-ee-2.3.67.3.ebuild b/games-rpg/baldurs-gate-ee/baldurs-gate-ee-2.3.67.3.ebuild
new file mode 100644
index 000000000000..9dab4cbf46ba
--- /dev/null
+++ b/games-rpg/baldurs-gate-ee/baldurs-gate-ee-2.3.67.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils unpacker
+
+DESCRIPTION="Baldur's Gate: Enhanced Edition"
+HOMEPAGE="https://www.baldursgate.com/"
+SRC_URI="gog_baldur_s_gate_enhanced_edition_2.5.0.8.sh"
+
+LICENSE="GOG-EULA"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+RESTRICT="bindist fetch"
+
+DEPEND="app-arch/unzip"
+RDEPEND="dev-libs/expat[abi_x86_32(-)]
+ dev-libs/json-c[abi_x86_32(-)]
+ dev-libs/openssl:0[abi_x86_32(-)]
+ media-libs/openal[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]"
+
+QA_PREBUILT="/opt/${PN}/BaldursGate"
+
+S="${WORKDIR}/data/noarch"
+
+pkg_nofetch() {
+ einfo "Please buy and download \"${SRC_URI}\" from"
+ einfo "https://www.gog.com/game/baldurs_gate_enhanced_edition"
+ einfo "and copy it to \"${DISTDIR}\""
+}
+
+src_unpack() {
+ unpack_zip "${DISTDIR}/${SRC_URI}"
+}
+
+src_install() {
+ local ABI="x86"
+ local dir="/opt/${PN}"
+
+ dodoc -r "game/Manuals/."
+ rm -r "game/Manuals" || die "rm failed"
+
+ insinto "${dir}"
+ doins -r "game/."
+ fperms +x "${dir}/BaldursGate"
+
+ dodir "${dir}/lib"
+ dosym "../../../usr/$(get_libdir)/libjson-c.so" "${dir}/lib/libjson.so.0"
+
+ newicon "support/icon.png" "${PN}.png"
+ make_wrapper ${PN} "./BaldursGate" "${dir}" "${dir}/lib"
+ make_desktop_entry "${PN}" "Baldur's Gate: Enhanced Edition" "${PN}" "Game;RolePlaying"
+}
diff --git a/games-rpg/baldurs-gate-ee/metadata.xml b/games-rpg/baldurs-gate-ee/metadata.xml
new file mode 100644
index 000000000000..09145c6cdfdd
--- /dev/null
+++ b/games-rpg/baldurs-gate-ee/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sir.suriv@gmail.com</email>
+ <name>Diogo Pereira</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ Baldur's Gate: Enhanced Edition is a remake of the role-playing video
+ game Baldur's Gate. It takes place in the Forgotten Realms, a high
+ fantasy campaign setting, using a modified version of the Advanced
+ Dungeons &amp; Dragons (AD&amp;D) 2nd edition rules.
+ </longdescription>
+ <upstream>
+ <bugs-to>https://support.baldursgate.com/projects/bg-ee-bugs/issues</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/bass/Manifest b/games-rpg/bass/Manifest
new file mode 100644
index 000000000000..d4a62a1fceb6
--- /dev/null
+++ b/games-rpg/bass/Manifest
@@ -0,0 +1,7 @@
+AUX scummvmGetLang.sh 358 SHA256 3b7468b5ec106f9d37509c65b8f2d6cfa948afa86be99207997d01e421e8e3c3 SHA512 9fc219a8096f0aa0182d752fb362796bacd3837b7368e1132c570d28757f316393163088b790b386211cf9a17cf21302cba0812940afd927e0123b10ad2cd23d WHIRLPOOL a3ffdaaee02b166164f7fd435afab5e7f218202f363fb1b1f4d4d60d3fc43b3594a20e4fb6710ab768437f02820725d2e9b745358ed28c6722fc01f42af89c1d
+DIST bass-cd-1.2.zip 69377781 SHA256 53209b9400eab6fd7fa71518b2f357c8de75cfeaa5ba57024575ab79cc974593 SHA512 ff896e723b4dbf2cc52851ee1260c1006aa285b768a727974719d63509bdac1c65be9ea565eb037d5e9e1c8fd8fd76a8c04776bcde46616ca9ccce18ea498d64 WHIRLPOOL 61fe423bd4738eaa41a7cbae2dce8408798b9ffd8c8e1ff19164190fb799f999d1d41f549ab52f162bb36d168b5c5b2c54d6d501ae8eb0b76e163b122ae5286b
+DIST bass.png 27613 SHA256 cd27b33772c967bb2c248dcfaa187adc0ee4436d03899c8a57ccc4c6fd92e92c SHA512 c0f62257f025970f51f32a7f3284cf117a091d40bbcd6c7503e8f0e8e98954cf96e35a04a4e633a04a721ff01beb7a6e0f4c883e286e477c3e065d411db4c87e WHIRLPOOL 09e062628507e98e6365615dad4f88d66dfeb8ed6553b2ad0041c9fb7cfa461a7fa8e18f856c9dbd986740824b0016c34eb9dfa0c964dd3a9b5d761e06ea6f16
+EBUILD bass-1.2-r1.ebuild 919 SHA256 9de13776e923ada2b9b3b0908ccc097d8945828db9a5546e3cc82efcabf19fff SHA512 d6764f83a7cbfbcb79ea3b50cb7c9d250d04937a3ef17c7f1de824fef946c769ca3f93aea49022a91cbc98cb83a518185342cb275a8059bc944b862f9e07a85f WHIRLPOOL b8b5a7bea38e6e029b2dbd496d0656a23ad0afb609d8f786729ff37c0e2ebab4648735e0e0641410ff88cc703b4044d63e2f036eda9ed1cd96e44b924f5d755a
+MISC ChangeLog 2573 SHA256 bb9e60be672541317a8e3d6313274863157f0a2a7404ef0feda1b6e9c4e6d202 SHA512 e5d76dc82e5046033559c8675b52067718dc58f1470cad3e00512c0e1798c7d8c3c90021564e68941e534d753299e28ab69a534ce8f02e2845aa5d46a919054c WHIRLPOOL 10d36c11b90964720d63aff9cc6336eb23864baed41639cce8d8d32d1cbbeb319539e9485cd1b13af84356d94120df7755a31d4e154afb688e20fe6d4e528aad
+MISC ChangeLog-2015 1761 SHA256 f6e5a0004e1c1d48ffebabd8df42948e8a37c49c9bef83bed4d961a3b6cf313a SHA512 b31e16f8129b4ad1f6da108919dbef3e55eb3dbc3ea6cea3c9c9990717645e9f15e1dd4f98d10b2b27e370d337ae4943b53ee32c3b20be40f7838a860c7c38e6 WHIRLPOOL c630436bb14de146b2f77167f7f90329c496fa28285b9610b010b549f0f4f81779930d46c28e176024bad3b7a2cbb61a11a5e085c3a808b8e3d2b7d1ca3a4609
+MISC metadata.xml 330 SHA256 0d5c67cb9a53d3220c7278b788f0cb6098e2e2da9fbe32dab98b52bf2e7d3bd6 SHA512 4541c93daab84bd6d0764adccf44bb4986ba02303e731b5b9a7a8060bb88a32c1cef91e2b2910e15915b67cf3ea2b5f31b4e637909d1d0b7c3b627f1134206dc WHIRLPOOL 9f36f51c4682de84bedf3b7757f32ca434702738412ae588f0232a505740d5110d72c13442e4753fbb8f804563c47be02e2f61247c0933895f76e468b3abe0db
diff --git a/games-rpg/bass/bass-1.2-r1.ebuild b/games-rpg/bass/bass-1.2-r1.ebuild
new file mode 100644
index 000000000000..0b7cc6e16c9e
--- /dev/null
+++ b/games-rpg/bass/bass-1.2-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Beneath a Steel Sky: a science fiction thriller set in a bleak vision of the future"
+#HOMEPAGE="http://www.revgames.com/_display.php?id=16"
+HOMEPAGE="http://en.wikipedia.org/wiki/Beneath_a_Steel_Sky"
+SRC_URI="mirror://sourceforge/scummvm/bass-cd-${PV}.zip
+ mirror://gentoo/${PN}.png"
+
+LICENSE="bass"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=games-engines/scummvm-0.5.0"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/bass-cd-${PV}
+
+src_install() {
+ games_make_wrapper bass "scummvm -f -p \"${GAMES_DATADIR}/${PN}\" -q\$(scummvmGetLang.sh) sky" .
+ dogamesbin "${FILESDIR}"/scummvmGetLang.sh
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins sky.*
+ dodoc readme.txt
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN} "Beneath a Steel Sky"
+ prepgamesdirs
+}
diff --git a/games-rpg/bass/files/scummvmGetLang.sh b/games-rpg/bass/files/scummvmGetLang.sh
new file mode 100644
index 000000000000..b313cc7d81da
--- /dev/null
+++ b/games-rpg/bass/files/scummvmGetLang.sh
@@ -0,0 +1,19 @@
+tmplang="$LANG"
+test "$LC_MESSAGES" != "" && tmplang="$LC_MESSAGES"
+test "$LC_ALL" != "" && tmplang="$LC_ALL"
+test "$LANGUAGE" != "" && tmplang="$LANGUAGE"
+
+lang=`echo $tmplang|cut -d "_" -f 1`
+
+case $lang in
+ en)
+ lang=gb
+ echo $tmplang | grep en_US &>/dev/null && lang=en
+ ;;
+ de|fr|it|pt|es|se)
+ ;;
+ *)
+ lang=gb
+ ;;
+esac
+echo $lang
diff --git a/games-rpg/bass/metadata.xml b/games-rpg/bass/metadata.xml
new file mode 100644
index 000000000000..801e2cc48963
--- /dev/null
+++ b/games-rpg/bass/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">scummvm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/bastion/Manifest b/games-rpg/bastion/Manifest
new file mode 100644
index 000000000000..9391dbc2daa7
--- /dev/null
+++ b/games-rpg/bastion/Manifest
@@ -0,0 +1,5 @@
+DIST Bastion-HIB-2012-06-20.sh 1055161705 SHA256 f1e67f8e8dd0ba823cab0f16f2269dc8d9230ebca7a304927ff540320169c431 SHA512 e81b5dfa6f61ec2b35b30693c156a612cd3242c2169f4414b6d66839b7d8cc2e6ea8776f55baae67fa8131ee96bc221e1a15004410612eecaa9f7204dcc673ad WHIRLPOOL 2ec712724f263d9cbd181a128a0adc22f38465447db03f1d382aa231bad98e637b27ec2e73b2acf66a5775f53b0406c82cf0cd36befdc13f6afc5434887ac040
+EBUILD bastion-20120620-r1.ebuild 1846 SHA256 52783cd2d4de549a2281ed48703a727ceed4eac9c9671c1483fad4fc82d7004b SHA512 1daa2f7fae9c0a6ccdf642ee1f8b467a492e58629c43bf65835eb6ac3d94f5d3c2aaa556e3ace86142e0c0a71269f2f6929002d3d34474f70ce8e85f2f8231ce WHIRLPOOL 9a9a58cd404b091de7fda8be5416fd412b64fe99925842568634484b00b7eadf2a8486d88879e32c9b58aaee10b0eb5e22858fe830701ef5b0db31fe3a7311cb
+MISC ChangeLog 2833 SHA256 2c016f9eb3a999e468a9b5868e3bcf28507f98a487dbbca29ddafbc7a68b37f9 SHA512 1f6ba615f157dafe6f32a7d9392c6575844fcaf1c5047a8a7624a49640fa4d0933f802d9625c6f675d98697e83cce98f467b971cd6cc4cb221f6095e38b20eb9 WHIRLPOOL cd960b05527ac28e495b19db7697779de0951eddf527bb1be22d3bbf24375b81a03ec59521849c01ba6587c15c1dd3a262472f9ab9e24e8f98c8b794776bb46b
+MISC ChangeLog-2015 1375 SHA256 60821e329c62894d86970a9e106d34282fafb0c3e589e4612d282f1a0e817ca4 SHA512 66f6678d6eb41e35bb11e0a0a24cc116dabc0e4e243f87612a23790e393eb9834a81076e298ea21b3ea546fd7c558c65ba2dffdb9e233e17c5510f13cc30fd8e WHIRLPOOL 264e533d857b693f99958ab3369e6e7df396d07bf7150635bf66d742583ec5d5ef256924d8aceee75ef4ebf86a277025f41aa08c5871ca5cb5d0e4406d96c67d
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-rpg/bastion/bastion-20120620-r1.ebuild b/games-rpg/bastion/bastion-20120620-r1.ebuild
new file mode 100644
index 000000000000..4e8eb6a973e5
--- /dev/null
+++ b/games-rpg/bastion/bastion-20120620-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils gnome2-utils check-reqs unpacker games
+
+TIMESTAMP=${PV:0:4}-${PV:4:2}-${PV:6:2}
+DESCRIPTION="An original action role-playing game set in a lush imaginative world"
+HOMEPAGE="http://supergiantgames.com/?page_id=242"
+SRC_URI="Bastion-HIB-${TIMESTAMP}.sh"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="bindist fetch splitdebug"
+
+MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${MYGAMEDIR#/}/Bastion.bin*
+ ${MYGAMEDIR#/}/lib/*
+ ${MYGAMEDIR#/}/lib64/*"
+
+# mono shit: vague dependencies
+RDEPEND="
+ virtual/opengl
+ media-libs/freealut
+ media-libs/openal
+ media-libs/sdl-gfx
+ media-libs/sdl-image
+ media-libs/sdl-mixer
+ media-libs/sdl-net
+ media-libs/sdl-ttf
+ media-libs/smpeg
+ x11-libs/libX11
+ x11-libs/libXft"
+
+CHECKREQS_DISK_BUILD="2400M"
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+}
+
+src_unpack() {
+ myarch=$(usex amd64 "x86_64" "x86")
+
+ unpack_makeself
+
+ mv instarchive_all{,.tar.lzma} || die
+ mv instarchive_linux_${myarch}{,.tar.lzma} || die
+
+ mkdir ${P} || die
+ cd ${P} || die
+
+ unpack ./../instarchive_{all,linux_${myarch}}.tar.lzma
+}
+
+src_install() {
+ insinto "${MYGAMEDIR}"
+ doins -r *
+
+ newicon -s 256 Bastion.png ${PN}.png
+ make_desktop_entry ${PN}
+ games_make_wrapper ${PN} "./Bastion.bin.${myarch}" "${MYGAMEDIR}" "${MYGAMEDIR}/$(get_libdir)"
+
+ fperms +x "${MYGAMEDIR}"/Bastion.bin.${myarch}
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "If you are using opensource drivers you should consider installing:"
+ elog " media-libs/libtxc_dxtn"
+
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/bastion/metadata.xml b/games-rpg/bastion/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-rpg/bastion/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/coe2/Manifest b/games-rpg/coe2/Manifest
new file mode 100644
index 000000000000..4f28ca922f62
--- /dev/null
+++ b/games-rpg/coe2/Manifest
@@ -0,0 +1,5 @@
+DIST coe2_2007.zip 4937222 SHA256 7b7c281454f3c83ba510d4223ccfb6af77fd760fcb507d7e71cf633cd86aa3bb SHA512 db0d4ee2016ef3cf7159c227c494346fa0a0e9f9b20a6b520b67899570e3135a4286d6ada2f85d7ea7b55a1baeada41654d4fab29f5996357608f0d2d654b2ed WHIRLPOOL a9c1d989dc48dc43d5c2125f4420de9bdfe23dca9758d0f8eeac5bc19eef4aab124075530bbf04da1fc80f022718564e21d4a464b49306d3d104a733c50e7259
+EBUILD coe2-2007-r1.ebuild 1359 SHA256 b7be5019e1e09d5415280b5a31b372f2ef47a4f31d44a6a812d8c3a0ab56991e SHA512 c8cb4c13e277a8ef6d7fefbf1ef2569ef0fc95aba94496787bf9d1042036306e7c67f9b65a9bb103fa83e30fc112a95cf09702dce85397c1abfc1b11a7feb8c7 WHIRLPOOL 7fee0df462fb5c6f64d5148946f87bf851af999006c47920f5a0a66953abe201154aa8c9d0ec01c7198b14e32aea30c167d0ed3ced00750cf7ab86c47478cefd
+MISC ChangeLog 2589 SHA256 ab45399677b736cf51a56cee87c5a679302f0b86e1240ec69cdb86e0ed6c2c18 SHA512 ac7671f6104d5450ff21e152af12210314ab12ed1caa986cae7a0d4bdd096571ea4e2be2401d32611956d1e1d63581151f8786868c25210f3c34fa9f6c161449 WHIRLPOOL d259a328aa1cda881393b3fc33d2e12435c7558d579fd6ed83b4afd7239beeeca30c715cf8d8dc1841ce73876546a004710867f42dadaf7f49daf26c21d27b90
+MISC ChangeLog-2015 1062 SHA256 aefc317ce2136a063c86aa5c1c73c1699f35fc7199ce32967004609f315158c4 SHA512 41b00a4b3ee948cc2835fe0e7834f4f07d5ae5e3c3e16dc865bbfaa8afb5a30ece8004c22e493d590937e869ad6578164884945deb4cfabec921b5b48abd785c WHIRLPOOL c0e9954a502e17c1d96b4039891953ced6da388c34685f8f740532eb2e060dfde0f3a27afa360fb9df14e34bc965e6970853d50f07d1ccbd6b920ccbc3430e19
+MISC metadata.xml 1166 SHA256 6341130f57b07563f424ee4725e5196bd83de526097ba218758f0a3338ee225e SHA512 60a33d86c244ce321427d325d4f1fb56846940a1ab2b6c965afb317c497b142644574b94bc715fd0d602628d8b07ba9690f5d0addad626163273cc1584ada370 WHIRLPOOL 06aefaaa95fc1397ed646d4a6614e6b2da7e55b66b91f51ba162dc30b08a67dd69686bc7cbc55ecb1733b18abb24e57525f84e06b65eb4867a9654022c749e9a
diff --git a/games-rpg/coe2/coe2-2007-r1.ebuild b/games-rpg/coe2/coe2-2007-r1.ebuild
new file mode 100644
index 000000000000..d4070f0433ac
--- /dev/null
+++ b/games-rpg/coe2/coe2-2007-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Precursor to the Dominions series"
+HOMEPAGE="http://www.shrapnelgames.com/Illwinter/CoE2/"
+SRC_URI="http://download.shrapnelgames.com/downloads/${PN}_${PV}.zip"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror bindist"
+
+RDEPEND="media-libs/libsdl[sound,video]"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/coe
+
+# bug #430026
+QA_PREBUILT="${GAMES_PREFIX_OPT}/coe2/coe_linux"
+
+src_prepare() {
+ rm -r *.{dll,exe} old || die
+ if use amd64 ; then
+ mv -f coe_linux64bit coe_linux || die
+ fi
+}
+
+src_install() {
+ insinto "${GAMES_PREFIX_OPT}/${PN}"
+ doins *.{bgm,smp,trp,trs,wrl}
+ dodoc history.txt manual.txt readme.txt
+ exeinto "${GAMES_PREFIX_OPT}/${PN}"
+ doexe coe_linux
+
+ games_make_wrapper ${PN} "./coe_linux" "${GAMES_PREFIX_OPT}/${PN}"
+ make_desktop_entry ${PN} "Conquest of Elysium 2"
+
+ # Slots for saved games.
+ # The game shows e.g. "EMPTY SLOT 0?", but it works.
+ local f slot state_dir=${GAMES_STATEDIR}/${PN}
+ dodir "${state_dir}"
+ for slot in {0..4} ; do
+ f=save${slot}
+ dosym "${state_dir}/save${slot}" "${GAMES_PREFIX_OPT}/${PN}/${f}"
+ echo "empty slot ${slot}" > "${D}${state_dir}/${f}" || die
+ fperms 660 "${state_dir}/${f}"
+ done
+
+ prepgamesdirs
+}
diff --git a/games-rpg/coe2/metadata.xml b/games-rpg/coe2/metadata.xml
new file mode 100644
index 000000000000..59ce22e6b4f8
--- /dev/null
+++ b/games-rpg/coe2/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription lang="en">
+Originally released in 1997, Conquest of Elysium II is a turn-based fantasy
+strategy game, and the precursor to the wildly popular Dominions series. As one
+of up to eight players (human, computer controlled, or a mixture) your goal, as
+suggested in the title, is very simple: total subjugation of all that do not fly
+your banner!
+
+Choose your leader from twenty distinct character classes, including brutal
+barbarians, insane necromancers, mighty maharajas, sinister shamans, and even
+the Agarthan king from Dominions 3! Each character allows new strategies for the
+player to explore. The Priestess of Baal can summon demonic creatures, change
+the weather, and sacrifice the innocent. An Enchanter can create constructs out
+of corpses, lakes, forests, and more. Barons can build siege towers, raise
+levies, and keep his subjects in line, even in times of high taxation.
+</longdescription>
+</pkgmetadata>
diff --git a/games-rpg/comi/Manifest b/games-rpg/comi/Manifest
new file mode 100644
index 000000000000..3029be6e05dc
--- /dev/null
+++ b/games-rpg/comi/Manifest
@@ -0,0 +1,3 @@
+DIST comi.jpg 5320 SHA256 ddce96d83ffb84cce4c35a4a19a06b864256f61e6092ba3c224cad95e5f7e7fd SHA512 b8042241b0badc6950cac8bf0eae7f5e138d5f3fc96f9d3a2108cd3bc69d972bbb12e8f3a416273f0763a1ecfee9b66daff69e211889cd93468439a3036817af WHIRLPOOL 615435dc8ae60b75f1001dad1ae8cad60ede0606955cd54a04101eef1b3200f92d6f8eec8eb866b3a36b5ebd9bf480769eb772b25f406bec36566cc297d7391e
+EBUILD comi-1.ebuild 1476 SHA256 94bd8308422bf9d999cdd3f609407a1a928d4cc1336399f615d9654bdef7f016 SHA512 44851095403c5903cb2294617dcfb7c56f7536c00a53d2cb537392bfea7015a5cb82de67f093ee4cf41fef11c0c49ea605d99584ccc46838d3cb2665aa009b4b WHIRLPOOL 3aeed17f754265bb1be7524f4b2fbd969bf95f8793ff3a0205b86423b5d75f4e1bbe896e74f35706f930bafafe0a892ddde8e683c7890f304bfeaabb635daef9
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-rpg/comi/comi-1.ebuild b/games-rpg/comi/comi-1.ebuild
new file mode 100644
index 000000000000..91a25419df7f
--- /dev/null
+++ b/games-rpg/comi/comi-1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cdrom estack eutils xdg
+
+DESCRIPTION="The Curse of Monkey Island, the third game in the series"
+HOMEPAGE="https://en.wikipedia.org/wiki/The_Curse_of_Monkey_Island"
+SRC_URI="https://dev.gentoo.org/~chewi/distfiles/${PN}.jpg"
+LICENSE="${PN}"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+RESTRICT="bindist"
+
+RDEPEND=">=games-engines/scummvm-0.4.0"
+
+S="${WORKDIR}"
+
+dotar() {
+ cd "${CDROM_ABSMATCH%/*}" || die
+ eshopts_push -s nocaseglob nullglob
+
+ # Lowercase
+ # Documentation into doc
+ # Remainder into data
+ # Avoid copying files twice
+
+ tar c \
+ --mode=u+w \
+ --ignore-case \
+ --xform='s:^[^a-z]+$:\L\0:x' \
+ --xform='s:.*:data/\0:x' \
+ --xform='s:.*\.(pdf|txt)$:doc/\0:x' \
+ --xform='s:^doc/data/:doc/:x' \
+ --exclude="$(use doc || echo '*.pdf')" \
+ --exclude-from=<(find "${WORKDIR}"/data -type f -printf "%P\n" 2>/dev/null) \
+ *.{txt,pdf} *.la[0-9] resource*/ \
+ | tar x -C "${WORKDIR}"
+
+ assert "tar failed"
+ eshopts_pop
+
+ # Don't prevent CD ejection.
+ cd "${WORKDIR}" || die
+}
+
+src_unpack() {
+ cdrom_get_cds comi.la1 comi.la2
+ dotar
+
+ cdrom_load_next_cd
+ dotar
+}
+
+src_install() {
+ insinto /usr/share/games/scummvm/games/comi
+ doins -r data/*
+
+ # Documentation may be missing.
+ [[ -d doc ]] && dodoc doc/*
+
+ doicon "${DISTDIR}"/${PN}.jpg
+ make_wrapper ${PN} "scummvm comi"
+ make_desktop_entry ${PN} "The Curse of Monkey Island" ${PN}.jpg
+}
diff --git a/games-rpg/comi/metadata.xml b/games-rpg/comi/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-rpg/comi/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/daimonin-client/Manifest b/games-rpg/daimonin-client/Manifest
new file mode 100644
index 000000000000..f5418d500e84
--- /dev/null
+++ b/games-rpg/daimonin-client/Manifest
@@ -0,0 +1,9 @@
+AUX daimonin-client-0.10.5-datadir.patch 983 SHA256 69f925f6fe46e7129a2b2af3988f6a5b6cc06b670ec1a97a7765e4a655d0c7cc SHA512 eb4748894c0722ee112efc3953a14784eb13237919813c057afddc09104f250f346c29a1a224bd3ce8a44b22af4fa2b59f826aa5eb96fb45a51f276f743fa3fa WHIRLPOOL f68dfaca458d7d4a5f0f4c464d6483e684f0812a414bbceed42c404715dd493a8a816156ec34bde39ffd11d1448324ad2d3a0c019617c884abc8ab736d2e7671
+AUX daimonin-client-0.10.5-nozlib.patch 1094 SHA256 f5fe6c24c907bf991bb8e853ab5afa2fc4df26e12ce66395b92fc981f5f15bcd SHA512 31ef58b81c669f7a8c685355dfb37d85383891db4534c3b62b0d9f5beaed6cb6d4be34657acd109287dc85d83a6c81950322667729b36552394c17a9b0bfc989 WHIRLPOOL 4a172e40362abd7d3e3937e0df18536d73f95784a5207b1e292d5eeb36b90e1d0c5fb2c1e862252176f21fea584e20e0fab95f0e00650f13255d244cc063ef7a
+DIST daimonin-client-0.10.5.tar.gz 15554328 SHA256 07bc94207dc77e0cae2bc949fd9df92da853f70343927d39f31e439d2d7ea3c9 SHA512 7f961105f368d7b4279c03e90028581a0efe998311f334f87d4ca6ff22df1a62f9b5911adf20822a282d7ed3796d8cb0643ab458cc51fb46cf3b90815164ac04 WHIRLPOOL e5141b02cb581f391609031b18626cd37eb2ed69dcfc7dc2e53d7b019747a5e63bf9f2cbcb7751b936c8c9e7f1637fe92151ac0370fb6dab3511fca0e8ea2dc4
+DIST daimonin-client-AllMusic-20100827.zip 86844919 SHA256 0732fde7f39b34057d72ab65b00ddefc1c84fcf8ef8fdf00d72fb67f2144d867 SHA512 50ec9524bd934a715271ddef1ea2cec855e93607e5befd1b18b74493400c9e1b2e6e5d829f3b21088b28c67635c0d1479eec53e1626c680f1d34081292607c9f WHIRLPOOL 91d485e1b816c6ee06cca9c18185b2a58f1da1f4231139dbb183a14a2ce3a12bab1891a9506bfe7ee2d9ff91d63801b160a4b67a52be8d2f2c4615d2568edd93
+EBUILD daimonin-client-0.10.5-r1.ebuild 1533 SHA256 fb74ee3679374c3a10783344ae136d951721b2090146ef9d790f41272f0e4808 SHA512 e94ae5bd39900bcb50d31a64f395b96087911ce824a0502fd386a8f25fd3acdcbd80908baed1d8a8ec73febe635052964ffbfae5804c2f8ee679666c7ccb68a3 WHIRLPOOL 41186f88b049a21313e5666145b01cf32238b80cfa103d4578a7817286286fd51fee45ed2051ec9bb69bb9c5c9e0cb8b5e16a4f15b683c0a06146bef236cc7d5
+EBUILD daimonin-client-0.10.5.ebuild 1446 SHA256 0bac292ec850fe052a5a9f4d1afe47d5e6debffef5e29f3737a4488019f3c2c1 SHA512 ce7e1af44dba8de7022d8e7cb2b55981ffa169d3f0b3a63b2474efbf3f2fadd86dafa95ec03bf73585ccf62f7756f78069475aebc7f8ebdca6e03982cf463a78 WHIRLPOOL fd588ee77f724b29ba00cd0de569887abd18e7f5f834a75a720f1b472adba2d75502f4708cd0159fdbd6453becc3a254734b4c9883701884d62eabb0711e2fb3
+MISC ChangeLog 2908 SHA256 78eaf599c4c881246a680b45136bc43c823a6e8c6e847278487311cabfa83b40 SHA512 52d59681a7d1f59f84051212722557033975b7e80ba7ec727a6dfef84a1f270ffb2e73f88a8135d561664caecba58563cbbb797a474cc3a6c2cf180dfa60ddcc WHIRLPOOL 9a1db530f059514d4bda1bd38e21548058a02351dfb4f1f94560f45596f62739300bf821bccaa342a55b5c78df5fa0cb6b405e29f3cd10a62af595b69755708f
+MISC ChangeLog-2015 5418 SHA256 817b643734fbd26b098fc4bd48cf100d78450e6a431a231489cd7da76879f7df SHA512 09db4ad04c1d46edf00792a552813ebb16213ee33afa7b5ab32294f01f7698dcb26736c38cfe6c15cfbcf7305606af7aa14054e2e124b4cd3bd92bd27fadf176 WHIRLPOOL 9a61289b9ba35d116f10aa1c5464037805caac9d567f90dd6a293352ec04134f39ad1994fd9608c60f15285bf32ade5813a6b33a87f9f54e9ef1711e00d80467
+MISC metadata.xml 408 SHA256 f8bde5afc39419a3b24fd0c99e19cec9e2d50601759dac0062875a89ea06d5fa SHA512 039f6849c28f9c21b7e2854314fcd0ff9b356b3983e68c0a4a2eb8e96893475e4333f7408c233f8f9651c4613a2683a63a4f5da58d11555d34712f9ebe0a2f6b WHIRLPOOL c3bcc6aab04716086320e35e6f147f2a969b1bc54520566e82bfaa1c4549c96c825ab3c7800023185ec569bc375ac1afe6c69a8baa2c7b2cc20c76686c8f7b94
diff --git a/games-rpg/daimonin-client/daimonin-client-0.10.5-r1.ebuild b/games-rpg/daimonin-client/daimonin-client-0.10.5-r1.ebuild
new file mode 100644
index 000000000000..048a72617b0b
--- /dev/null
+++ b/games-rpg/daimonin-client/daimonin-client-0.10.5-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils autotools
+
+MY_P=${PN}-${PV}
+DESCRIPTION="a graphical 2D tile-based MMORPG"
+HOMEPAGE="http://daimonin.sourceforge.net/"
+SRC_URI="http://daimonin.svn.sourceforge.net/viewvc/daimonin/main/client/?view=tar&pathrev=6021
+ -> daimonin-client-0.10.5.tar.gz
+ music? ( mirror://sourceforge/daimonin/Addon%20packs/Music/AllMusic.zip
+ -> daimonin-client-AllMusic-20100827.zip )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug music"
+
+RDEPEND="
+ dev-games/physfs
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[vorbis]
+ net-misc/curl"
+DEPEND="${RDEPEND}
+ music? ( app-arch/unzip )"
+
+S=${WORKDIR}/client/make/linux
+
+PATCHES=(
+ "${FILESDIR}"/${P}-nozlib.patch
+)
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ if use music ; then
+ cd client/media || die
+ rm -f * || die
+ unpack ${PN}-AllMusic-20100827.zip
+ fi
+}
+
+src_prepare() {
+ default
+ rm ../../src/include/z{lib,conf}.h || die
+ sed -i \
+ -e 's:$(d_datadir):$(DESTDIR)$(d_datadir):' \
+ -e '/PROGRAMS/s:daimonin-updater::' \
+ Makefile.am \
+ || die "sed failed"
+ eautoreconf
+ cd ../../src || die
+ # Not relative to $S, so can't be applied via $PATCHES[@]
+ eapply "${FILESDIR}"/${P}-datadir.patch
+}
+
+src_configure() {
+ econf \
+ --disable-simplelayout \
+ $(use_enable debug)
+}
+
+src_install() {
+ default
+ cd ../.. || die
+ dodoc README*
+ newicon bitmaps/pentagram.png ${PN}.png
+ make_desktop_entry daimonin Daimonin
+}
diff --git a/games-rpg/daimonin-client/daimonin-client-0.10.5.ebuild b/games-rpg/daimonin-client/daimonin-client-0.10.5.ebuild
new file mode 100644
index 000000000000..70df84a87515
--- /dev/null
+++ b/games-rpg/daimonin-client/daimonin-client-0.10.5.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools games
+
+MY_P=${PN}-${PV}
+DESCRIPTION="a graphical 2D tile-based MMORPG"
+HOMEPAGE="http://daimonin.sourceforge.net/"
+SRC_URI="http://daimonin.svn.sourceforge.net/viewvc/daimonin/main/client/?view=tar&pathrev=6021
+ -> daimonin-client-0.10.5.tar.gz
+ music? ( mirror://sourceforge/daimonin/Addon%20packs/Music/AllMusic.zip
+ -> daimonin-client-AllMusic-20100827.zip )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="music debug"
+
+RDEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-image[png]
+ dev-games/physfs
+ net-misc/curl"
+DEPEND="${RDEPEND}
+ music? ( app-arch/unzip )"
+
+S=${WORKDIR}/client/make/linux
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ if use music ; then
+ cd client/media
+ rm -f *
+ unpack ${PN}-AllMusic-20100827.zip
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-nozlib.patch
+ rm ../../src/include/z{lib,conf}.h
+ sed -i \
+ -e 's:$(d_datadir):$(DESTDIR)$(d_datadir):' \
+ -e '/PROGRAMS/s:daimonin-updater::' \
+ Makefile.am \
+ || die "sed failed"
+ eautoreconf
+ cd ../../src
+ epatch "${FILESDIR}"/${P}-datadir.patch
+}
+
+src_configure() {
+ egamesconf \
+ --disable-simplelayout \
+ $(use_enable debug)
+}
+
+src_install() {
+ default
+ cd ../..
+ dodoc README*
+ newicon bitmaps/pentagram.png ${PN}.png
+ make_desktop_entry daimonin Daimonin
+ prepgamesdirs
+}
diff --git a/games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch
new file mode 100644
index 000000000000..f2fc757abd27
--- /dev/null
+++ b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch
@@ -0,0 +1,28 @@
+--- a/main.c 2010-08-24 19:32:55.000000000 +0200
++++ b/main.c 2010-09-19 18:49:54.000000000 +0200
+@@ -2386,7 +2386,7 @@
+
+ /* Add the base dir to the search path. The base dir is where all the
+ * defaults are (or should be). */
+- if (!PHYSFS_addToSearchPath(PHYSFS_getBaseDir(), 1))
++ if (!PHYSFS_addToSearchPath(SYSPATH, 1))
+ {
+ LOG(LOG_MSG, "%s\n", PHYSFS_getLastError());
+ }
+@@ -2545,13 +2545,13 @@
+
+ /* Prepend the user dir to the search path. This means files are read from
+ * this location in preference to the defaults. */
+- if (strcmp(PHYSFS_getBaseDir(), home))
+- {
++ /*if (strcmp(PHYSFS_getBaseDir(), home))
++ {*/
+ if (!PHYSFS_addToSearchPath(home, 0))
+ {
+ LOG(LOG_ERROR, "%s\n", PHYSFS_getLastError());
+ }
+- }
++ //}
+
+ /* Prepend any add-on packs to the search path. This means files are read
+ * from these locations in preference to the defaults and the user dir. */
diff --git a/games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch
new file mode 100644
index 000000000000..62a6e5fb1302
--- /dev/null
+++ b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch
@@ -0,0 +1,40 @@
+--- a/Makefile.am 2010-12-01 14:39:11.605648458 -0500
++++ b/Makefile.am 2010-12-01 14:41:59.875915880 -0500
+@@ -2,23 +2,18 @@
+ daimonin_PROGRAMS = daimonin daimonin-updater
+
+ daimonin_SOURCES = \
+- ../../src/adler32.c \
+ ../../src/anim.c \
+ ../../src/book.c \
+ ../../src/buddy.c \
+ ../../src/chatfilter.c \
+ ../../src/client.c \
+ ../../src/commands.c \
+- ../../src/crc32.c \
+ ../../src/dialog.c \
+ ../../src/event.c \
+ ../../src/filewrap.c \
+ ../../src/font.c \
+ ../../src/group.c \
+ ../../src/ignore.c \
+- ../../src/inffast.c \
+- ../../src/inflate.c \
+- ../../src/inftrees.c \
+ ../../src/interface.c \
+ ../../src/inventory.c \
+ ../../src/item.c \
+@@ -35,11 +30,9 @@
+ ../../src/sprite.c \
+ ../../src/textwin.c \
+ ../../src/tile_stretcher.c \
+- ../../src/uncompr.c \
+ ../../src/wrapper.c \
+- ../../src/widget.c \
+- ../../src/zutil.c
+-daimonin_LDADD = -lSDL_mixer -lSDL_image @SDL_LIBS@ @EXTRA_LIBS@ @PHYSFS_LIBS@
++ ../../src/widget.c
++daimonin_LDADD = -lSDL_mixer -lSDL_image @SDL_LIBS@ @EXTRA_LIBS@ @PHYSFS_LIBS@ -lz
+ daimonin_OBJDIR = objs
+
+ daimonin_updater_SOURCES = \
diff --git a/games-rpg/daimonin-client/metadata.xml b/games-rpg/daimonin-client/metadata.xml
new file mode 100644
index 000000000000..6794421a86c3
--- /dev/null
+++ b/games-rpg/daimonin-client/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="music">Install extra music</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">daimonin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/dear-esther/Manifest b/games-rpg/dear-esther/Manifest
new file mode 100644
index 000000000000..f2d0bfe59a5e
--- /dev/null
+++ b/games-rpg/dear-esther/Manifest
@@ -0,0 +1,5 @@
+DIST dearesther-linux-06082013-bin 1007461686 SHA256 4b3368e9cd83f371b6ea63814ce1ec5db733d5ef3229e3f78bdc530c268076a4 SHA512 c66a2b068b4caaebfb63e4617102af4a5df153dfe76854d1fa94305fb95b15e4362c9ca5e715ea4b29966916a9a585fa71bfc2b2b33b878f26e3785b7d93722e WHIRLPOOL 022d2fe66dfb2f4bea71898afd6f011ffe5870c5af27e3adb04fe5caa76a41bce75ee931408edda41dc24956ddae4f2399719f3938d72fe9cf94b2a9e2e703ea
+EBUILD dear-esther-20130608.ebuild 1543 SHA256 5611ac6548407346d4fb512a18f41c60447a02c05f61de52b8f196cff86a0068 SHA512 74893d58171e885144cbed4836ebdab13ae1570861d520f451836e044aad21f29ca5f9ac519577298acb8327233d1d415b289ce71190da51f98263baa4d20b5c WHIRLPOOL 1690b7fb7766c027281441720a3629b7cf6f9b671cb92f300cea9a212da99db3c8fe10e7b322e631468598171bd997115083feae150320e4b240d92d078c11c1
+MISC ChangeLog 2446 SHA256 5de6c11f0d54605b87235010ca650f9a0b7bc4be9f3e9f58f7a4ddb90bac4e10 SHA512 3cff545f27b69beea95e74b44059492b6aa247f45d8b29526feb2cdb085ab03cc48c142591761c94c4afc5c77cb1da0e1ea28de68081273d95b8f5db5e143139 WHIRLPOOL aef18480c01e5bf86b0e1571b74b49383bc63ab0efa7896b17d479420db85f2cb41aa3217354f71d8505070700dba375b52ecfb1a95772c762b6b460d78a12f4
+MISC ChangeLog-2015 963 SHA256 e022187feb76f5ddc6cf3ebd3171394459ee24ad76947a8370a2a3c2c06191ba SHA512 c1319d6acc7ba924cec3d8e7f77a220fc6fda281d2b9623c7f1a1beaf741384e30f428de9cbb3459b5a55e69eb3cc89599a54da863ecff84b947504f7ee92bd6 WHIRLPOOL 46296b06a5bea8cdd6f5308564ff18b81ad027082c33aed9c4cefe33fc9f7dec34f292d02e926a2690f96637c0af9e594b62bd5d5441da8cdb3f7b4e1f7189d3
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-rpg/dear-esther/dear-esther-20130608.ebuild b/games-rpg/dear-esther/dear-esther-20130608.ebuild
new file mode 100644
index 000000000000..2f04d25cf503
--- /dev/null
+++ b/games-rpg/dear-esther/dear-esther-20130608.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: unbundle libSDL2
+
+EAPI=5
+inherit eutils gnome2-utils unpacker games
+
+TIMESTAMP="${PV:4:2}${PV:6:2}${PV:0:4}"
+DESCRIPTION="Ghost story, told using first-person gaming technologies"
+HOMEPAGE="http://dear-esther.com/"
+SRC_URI="dearesther-linux-${TIMESTAMP}-bin"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="bindist fetch splitdebug"
+
+MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${MYGAMEDIR#/}/dearesther_linux
+ ${MYGAMEDIR#/}/bin/*.so*"
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ >=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)]
+ >=media-libs/openal-1.15.1[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]"
+
+S=${WORKDIR}/data
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+ einfo
+}
+
+src_unpack() {
+ unpack_zip ${A}
+}
+
+src_install() {
+ insinto "${MYGAMEDIR}"
+ doins -r bin dearesther platform dearesther_linux
+
+ doicon -s 256 dearesther.png
+ make_desktop_entry "${PN}" "Dear Esther" dearesther
+ games_make_wrapper ${PN} "./dearesther_linux -game dearesther" "${MYGAMEDIR}" "${MYGAMEDIR}/bin"
+
+ dodoc README-linux.txt
+
+ fperms +x "${MYGAMEDIR}"/dearesther_linux
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/dear-esther/metadata.xml b/games-rpg/dear-esther/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-rpg/dear-esther/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/draci-historie/Manifest b/games-rpg/draci-historie/Manifest
new file mode 100644
index 000000000000..b881ca915640
--- /dev/null
+++ b/games-rpg/draci-historie/Manifest
@@ -0,0 +1,8 @@
+DIST dh-cz-2012.zip 29293879 SHA256 3aa876f50d8345bad8766b7c7f22a320497988868c48822c2eba0ac72b8cb0ff SHA512 1c7691fe275f662a3a22bdb824965c1e0079a44ddfed5a75596f71dcd32cf3e34d2107480a5df392a2a28aae01cccca6eedf615f362af11bbac30c30dfd89cd2 WHIRLPOOL 6ece1f7515db0c5f5ee7240cf83b7127118a32b9bb0f5511c05460713e12fbdd78fcf86d20f96ad0b01c1ad16834cdc7ec6a28fbdfdb2c31e5b000e75b4a6997
+DIST dh-de-2012.zip 3316443 SHA256 c8013237fec7718fb2769ff3c8b08dd7f78fd6420311ec79c1a262cb337cb1a5 SHA512 088f372e8de59cb52555a70cb7918ec14bb4abbb712a3867b40ce9eef80dc3f03b6c28402b9e0c9ee7e02f1938ee5f140abc02aef801716e38af84d66dafd5aa WHIRLPOOL 63c5e055e4b9e75386477bc1e1aec5ab25b854a9970d2b6d221210c0f236b3f0b485914ecfd9764c1d8e6a3d57ab860e168fac91b70239f0f0dac5fb3549854a
+DIST dh-en-2012.zip 3310860 SHA256 807c625902051639a35871da2c5138615ae2c327c5f12eebb8dd22628874ae23 SHA512 a9b5ff15305c961f288fdf915f56ca204a2ebe5370dcf56c20a0057cf721c45445a20479a39fe1f5443e79e7c95bd5771abef2115396c418442d2e5e400ce10a WHIRLPOOL 8bf76bf3ce43848ae87e2f75b2e2a1f43bf041d6f2567f2be0268d87f92ec3c051b87c7bd2e89f061186285ca6da8678c8f65a2ae2ad02f70b21c71ea6b244b2
+DIST dh-pl-2012.zip 36041498 SHA256 c2034462ed4c1d6abf129e4144a2e21c193aff694943dc3f6ea565d9aa9aeafe SHA512 627f85a14362e032e00ed36275df696b6a468965734db7c8bb459d689b548c05033fe387ffee9855a83fe634f14b98a5c5ea51aefdf169c7243e9282fa1c19a5 WHIRLPOOL 9d0fe742d5779ab0a96712c2940fab7865ac889a15aff2def92ca35e8e7a4fe6c7ede57666ee8f330292e44f58309d37da4f206e168d4577d64765e85920590f
+EBUILD draci-historie-2012.ebuild 2442 SHA256 2c3f121d11a4311a3d37b409348e82a7e0d6fd5ed1f922b57626d0ec0d313d48 SHA512 e187647b1ff3309b09c5cf22342fa7875fabaaee47e9311a8b500231ea2b2cbc9bdabd4fc9b7f51ccf9ecbd9cd82d37e2884adb7d2c5278d4f99ac74b6220060 WHIRLPOOL bf306c62778cd727909b348c7acb65c1ef991e83fe4f823920dba399f5de409077b9f9626682521b360680f74e9ca6071c6b7e0bde9fe419798a533a32b21b51
+MISC ChangeLog 2589 SHA256 ad4b03961eec75028e7f7e449efb13427e516bee96a9560d1f923c3c47d1ff75 SHA512 4ac14b8e48b6103f57b09046aaf97b25f39f459534ef06bce0a027380ba57c7488da6a862cb0858612e1ee730d7c91d5c3d0c7ee18b538bf1bfdf06fa6d8ad61 WHIRLPOOL 3e8a62dc43213920884bc85dcc03857ef04fae0135c0cad6f69e47044aa596a7e5598081b2a58c69dc6261c0d76e7a9532f1203bba998f634cf3c2ff8702e121
+MISC ChangeLog-2015 595 SHA256 e41cc55e0361dd44c76f415c8d1b6dfa9085beb7b480925a9a58155c92b21c3c SHA512 008b4291c75635bbb2c86ebbea5cd6c694cecda3b0fd9641d3d7b53351f0603feb0ec954399821730c0d373e9b771a99f96305cd8c271a5a1d10f72fe29d3c97 WHIRLPOOL 60bc5f737db99bd6a79075702069ee232e9292ddb2ff419bfe054a4c4e02d05c01c643cd1a65e53389f1afc3b51bf10f9562a4505e3cc18cd55e40ef8681426b
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-rpg/draci-historie/draci-historie-2012.ebuild b/games-rpg/draci-historie/draci-historie-2012.ebuild
new file mode 100644
index 000000000000..e2795d58bf68
--- /dev/null
+++ b/games-rpg/draci-historie/draci-historie-2012.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit unpacker eutils games
+
+DESCRIPTION="Bert the little dragon searches for his father"
+HOMEPAGE="http://www.ucw.cz/draci-historie/index-en.html"
+BASE_URL="http://www.ucw.cz/draci-historie/binary/dh"
+SRC_URI="l10n_cs? ( ${BASE_URL}-cz-${PV}.zip )
+ l10n_de? ( ${BASE_URL}-de-${PV}.zip )
+ l10n_en? ( ${BASE_URL}-en-${PV}.zip )
+ l10n_pl? ( ${BASE_URL}-pl-${PV}.zip )
+ !l10n_cs? ( !l10n_de? ( !l10n_en? ( !l10n_pl? ( ${BASE_URL}-en-${PV}.zip ) ) ) )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="l10n_cs l10n_de l10n_en l10n_pl"
+
+RDEPEND=">=games-engines/scummvm-1.1"
+DEPEND="$(unpacker_src_uri_depends)"
+
+S=${WORKDIR}
+
+src_unpack() {
+ if use l10n_en || ( ! use l10n_cs && ! use l10n_de && ! use l10n_en && ! use l10n_pl ) ; then
+ mkdir en || die
+ unpacker dh-en-${PV}.zip
+ mv *.{dfw,fon,mid,sam} en/ || die
+ fi
+ if use l10n_cs ; then
+ mkdir cs || die
+ unpacker dh-cz-${PV}.zip
+ mv *.{dfw,fon,mid,sam,zzz} cs/ || die
+ fi
+ if use l10n_de ; then
+ mkdir de || die
+ unpacker dh-de-${PV}.zip
+ mv *.{dfw,fon,mid,sam} de/ || die
+ fi
+ if use l10n_pl ; then
+ mkdir pl || die
+ unpacker dh-pl-${PV}.zip
+ mv *.{dfw,fon,mid,sam,zzz} pl/ || die
+ fi
+}
+
+src_prepare() {
+ rm -f *.{bat,exe,ins} readme.* || die
+}
+
+src_install() {
+ newicon bert.ico draci-historie.ico
+ insinto "${GAMES_DATADIR}"/${PN}
+ for lingua in $(find * -type d); do
+ doins -r ${lingua}
+ done
+ if use l10n_en || ( ! use l10n_cs && ! use l10n_de && ! use l10n_en && ! use l10n_pl ) ; then
+ games_make_wrapper draci-historie-en "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en\" draci" .
+ make_desktop_entry ${PN}-en "Dračí Historie (English)" /usr/share/pixmaps/draci-historie.ico
+ fi
+ if use l10n_cs ; then
+ games_make_wrapper draci-historie-cs "scummvm -f -p \"${GAMES_DATADIR}/${PN}/cs\" draci" .
+ make_desktop_entry ${PN}-cs "Dračí Historie (Čeština)" /usr/share/pixmaps/draci-historie.ico
+ fi
+ if use l10n_de ; then
+ games_make_wrapper draci-historie-de "scummvm -f -p \"${GAMES_DATADIR}/${PN}/de\" draci" .
+ make_desktop_entry ${PN}-de "Dračí Historie (Deutsch)" /usr/share/pixmaps/draci-historie.ico
+ fi
+ if use l10n_pl ; then
+ games_make_wrapper draci-historie-pl "scummvm -f -p \"${GAMES_DATADIR}/${PN}/pl\" draci" .
+ make_desktop_entry ${PN}-pl "Dračí Historie (Polski)" /usr/share/pixmaps/draci-historie.ico
+ fi
+ prepgamesdirs
+}
diff --git a/games-rpg/draci-historie/metadata.xml b/games-rpg/draci-historie/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-rpg/draci-historie/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-rpg/dragonhunt/Manifest b/games-rpg/dragonhunt/Manifest
new file mode 100644
index 000000000000..5d01bcc9c4f6
--- /dev/null
+++ b/games-rpg/dragonhunt/Manifest
@@ -0,0 +1,6 @@
+DIST Dragon_Hunt-3.56.tar.gz 2170718 SHA256 70a22937fd002f2d82d8998623b6ec101fadfbafc4e0d1857aa0686c6bf1eba9 SHA512 86ca32436088e8cda8993e21ebe6180f8361eb8bf5e052b3744a1db50073826118d1db657d713c7d75cd78c50c78c940caaf7adc5d31ad895d02a44f82b1e72a WHIRLPOOL c19fb4fedaeb62a65d8bf3938f8f629394ab4b1d8d0ccb1c88ebeac280a596ae7a93f34741d2e2c998d863e37bfebe95fe070f3d017202bf3b3eb35712a6598b
+EBUILD dragonhunt-3.56-r1.ebuild 2235 SHA256 04ec3c75e8cca37e553ac229887de90ead8f7918222d68a46cc16d90065c171f SHA512 38995ab7966a186cffe0743e43e8a0bb681bfa08eb5e06177a0ddabfa6185030797c1a44d3c86f77b7a1a5a9fba6738943694aec5ade400f24085e9280fdfff6 WHIRLPOOL 1655c8b87c0e700134a250fd2502e550a6eea10195af05c14ca4d3b7e98d209795a4046465c5120afb90425490973b1a29d1331ced2016d89ad48a447053416d
+EBUILD dragonhunt-3.56-r2.ebuild 2110 SHA256 a94b0088aee4ce8b182d8d4efc4784eb2bd2ff806b3d1c0dcb47f8f15e6d0439 SHA512 12562488edba40cbc108d8ebdd956b842be85c17b7e5baeaf3594a5c0fbdc79dfd7b592c862d8a7cebce5a1e32b5e6bfe2b7c429dee69426042c70ce624ba199 WHIRLPOOL d41d4447bd3a8c58b04135a3285bf8466e604c7ea8cd2a3802542b1ff905850c89e2f042c4302a5d14e7c401a2e98df146a7dc6a5ae71f62ba7b847bc39bf886
+MISC ChangeLog 3092 SHA256 63811ad74205ccfa5571aa7f59ff3ea7b3665886bfb2898266a5b14846ea2365 SHA512 2a39ab0b5cbb056f2fe7789eae8022c46589e228179c0c45a0443fdcfff2491e3184a685ea41027f8faae57994594b39d48e76356141779dfcd2ec3eea4db0ca WHIRLPOOL 5a6086cea63da4cab3113e029e953b7290b0c3a5212132f2d1bfc3d98358c1a4019fc38681ea7f2d7cd38ccfd34788ef12885f02a1bfcc8692fb4baab813cd19
+MISC ChangeLog-2015 1702 SHA256 ae8bd32812f903778570936c6562d04bcc723ddd54a3bc2b434ae991371c0989 SHA512 4ef1d62827939cb804f7e4d49f8cdbf026ccef973a477a7f3f7092e56325dcade9fca8db0eafdd7f050d68a537957d131d6f25ae3822a8669c907e2fb2e07b69 WHIRLPOOL 400e34e3404b374592c8ac24ebe899d5552124e9bf9155f8c3120304cc32bd718dbe2b8affab7f63d1b9ca071e4bd13ee5ea37d5da3d9276dbf9e4ba5e821147
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild b/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild
new file mode 100644
index 000000000000..0b72e9a1340e
--- /dev/null
+++ b/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1 games
+
+MY_P="Dragon_Hunt-${PV}"
+DESCRIPTION="A simple graphical RPG"
+HOMEPAGE="http://emhsoft.com/dh.html"
+SRC_URI="http://emhsoft.com/dh/${MY_P}.tar.gz"
+
+LICENSE="GPL-2 CC-SA-1.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}
+ dev-python/pygame[${PYTHON_USEDEP}]"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ games_pkg_setup
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Where to look for modules to load.
+ sed -i "s:\.\./modules/:${GAMES_DATADIR}/${PN}/:" \
+ code/g.py \
+ code/map_editor.py \
+ code/rpg.py || die
+
+ # Where to look for keybinding
+ sed -i "s:\.\./settings:${GAMES_SYSCONFDIR}/${PN}/settings:" \
+ code/g.py || die
+
+ # Save games in ~/.${PN}/.
+ sed -i \
+ -e "s:^\(from os import.*\):\1\, environ:" \
+ -e "s:g.mod_dir.*\"/saves/\?\":environ[\"HOME\"] + \"/.${PN}/\":" \
+ code/g.py code/loadgame.py || die
+
+ # Save maps in ~/.
+ sed -i \
+ -e "s:^\(from os import.*\):\1\, environ:" \
+ -e "s:g.mod_dir.*\"map\.txt\":environ[\"HOME\"]\ +\ \"/dh_map.txt\":" \
+ code/map_editor.py || die
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r modules/*
+
+ insinto "${GAMES_SYSCONFDIR}"/${PN}
+ doins settings.txt
+
+ insinto "$(games_get_libdir)"/${PN}
+ doins code/*.py
+
+ games_make_wrapper ${PN} "${EPYTHON} ./rpg.py" "$(games_get_libdir)"/${PN}
+ games_make_wrapper ${PN}-mapeditor "${EPYTHON} ./map_editor.py" \
+ "$(games_get_libdir)"/${PN}
+
+ newicon modules/default/images/buttons/icon.png ${PN}.png
+ make_desktop_entry ${PN} "Dragon Hunt"
+ make_desktop_entry ${PN}-mapeditor "Dragon Hunt - Editor"
+
+ dodoc README.txt docs/{Changelog,Items.txt,example_map.txt,tiles.txt}
+ dohtml docs/*.html
+
+ python_optimize "${ED}$(games_get_libdir)"/${PN} \
+ "${ED}${GAMES_DATADIR}/${PN}/Dark Ages/data/make_map.py"
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ echo
+ elog "If you use the map editor then note that maps will be saved as"
+ elog "~/dh_map.txt and must be move to the correct module directory"
+ elog "(within ${GAMES_DATADIR}/${PN}) by hand."
+ echo
+}
diff --git a/games-rpg/dragonhunt/dragonhunt-3.56-r2.ebuild b/games-rpg/dragonhunt/dragonhunt-3.56-r2.ebuild
new file mode 100644
index 000000000000..e908b7b28145
--- /dev/null
+++ b/games-rpg/dragonhunt/dragonhunt-3.56-r2.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1
+
+MY_P="Dragon_Hunt-${PV}"
+DESCRIPTION="A simple graphical RPG"
+HOMEPAGE="http://emhsoft.com/dh.html"
+SRC_URI="http://emhsoft.com/dh/${MY_P}.tar.gz"
+
+LICENSE="GPL-2 CC-SA-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}
+ dev-python/pygame[${PYTHON_USEDEP}]"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # Where to look for modules to load.
+ sed -i "s:\.\./modules/:/usr/share/${PN}/:" \
+ code/g.py \
+ code/map_editor.py \
+ code/rpg.py || die
+
+ # Where to look for keybinding
+ sed -i "s:\.\./settings:/etc/${PN}/settings:" \
+ code/g.py || die
+
+ # Save games in ~/.${PN}/.
+ sed -i \
+ -e "s:^\(from os import.*\):\1\, environ:" \
+ -e "s:g.mod_dir.*\"/saves/\?\":environ[\"HOME\"] + \"/.${PN}/\":" \
+ code/g.py code/loadgame.py || die
+
+ # Save maps in ~/.
+ sed -i \
+ -e "s:^\(from os import.*\):\1\, environ:" \
+ -e "s:g.mod_dir.*\"map\.txt\":environ[\"HOME\"]\ +\ \"/dh_map.txt\":" \
+ code/map_editor.py || die
+}
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins -r modules/*
+
+ insinto /etc/${PN}
+ doins settings.txt
+
+ insinto /usr/$(get_libdir)/${PN}
+ doins code/*.py
+
+ make_wrapper ${PN} "${EPYTHON} ./rpg.py" /usr/$(get_libdir)/${PN}
+ make_wrapper ${PN}-mapeditor "${EPYTHON} ./map_editor.py" \
+ /usr/$(get_libdir)/${PN}
+
+ newicon modules/default/images/buttons/icon.png ${PN}.png
+ make_desktop_entry ${PN} "Dragon Hunt"
+ make_desktop_entry ${PN}-mapeditor "Dragon Hunt - Editor"
+
+ dodoc README.txt docs/{Changelog,Items.txt,example_map.txt,tiles.txt}
+ dodoc -r docs/*.html
+
+ python_optimize "${ED}/usr/$(get_libdir)"/${PN} \
+ "${ED}/usr/share/${PN}/Dark Ages/data/make_map.py"
+}
+
+pkg_postinst() {
+ echo
+ elog "If you use the map editor then note that maps will be saved as"
+ elog "~/dh_map.txt and must be move to the correct module directory"
+ elog "(within /usr/share/${PN}) by hand."
+ echo
+}
diff --git a/games-rpg/dragonhunt/metadata.xml b/games-rpg/dragonhunt/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-rpg/dragonhunt/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-rpg/drascula/Manifest b/games-rpg/drascula/Manifest
new file mode 100644
index 000000000000..bcc59dbedaa8
--- /dev/null
+++ b/games-rpg/drascula/Manifest
@@ -0,0 +1,8 @@
+DIST drascula-1.0.zip 32842993 SHA256 b731f6cb5a22ba8b4c3b3362f570b9a10a67b6cb0b395394b19a94b36e4e42de SHA512 74ca773264e1ed611456b230d6265dade8d745a3adb736f3d6583d43ed6820a25f481ec65612b31d4b3076418f6bc696c82fa0f5085ec43edc91761e95361d11 WHIRLPOOL 7e155b83d4075ad2d096c5e8997f24ed7d1c726a46baa962f8287b8bf411cc8fd749debf0188b58416822d15ad1301321bc5b33bb787f57e32a29cdf1c21370d
+DIST drascula-1.5.0.dat 219267 SHA256 8f060ad18574aa7f2730dfab72eab110256db85fb9a2937a3361e059843eef32 SHA512 0d788887f0cbe95f7008920d7929831d928497040ae0a2e2869c677363b693aafcf839df20ae192ec4a902f98a95771c9c45d3ec63c5a4bb1961e5f56d20fc53 WHIRLPOOL e880d0c3b5f2f84a1ef9a99572de5d3d18fb43b6870699100391662ae78d6549f19412b63938688888a453215d00819711c18f3f0e2f011d7271d7f04dc54d22
+DIST drascula-audio-2.0.zip 36531704 SHA256 7e6afba36eed13dd02e0360119e9a6a8d0e7b334ddc11d7c46ab7faceb8fe401 SHA512 09018bcfa062e720db6af7b38fa582f1b3674a25e7bb323d894ad767f8bcd449739fc592a10d848f6cac90a8bb51b5148c5c39558f70d29e2a5116b0b196274e WHIRLPOOL d2e5b9e367eb29f9bc7a2578f9b73488fa61ceac025b82c1f319e708226cd89c3652dc9265fea00222147acfbb2ee23d59f5faff11b1e8dab5bf5a5bbc3a0f64
+DIST drascula-int-1.1.zip 34855203 SHA256 24d894925c02993d0cd59013cd228b5e5c68c77d0dc57045a2aa2aba4e344388 SHA512 f8127d09e19dec9abf75b9129792c67f3d36ea80fa69c70eeaa536f7a76f8f29072c21f041a0f9467d595f214392541c09c7a75caca0318e8d1b587db9d099cf WHIRLPOOL 2cb3c9f13163d061b57dc01df9d160b8380813ff4af3385d68066b0d299ae39ba96b123c897b2160dd486a1e439e82c6ab0f28b183409970fbc11e8ef6ac25fd
+EBUILD drascula-1.0-r2.ebuild 1734 SHA256 d5cc0b0245330925f207bafa800d4541fee080345641510f036e85f0909afe3a SHA512 f16f591fe402cfdd17350f0c581d94a5698087859cbf9c0fdbcd8d2f33e48bbb0ebf08c6a09c8404655ec76d3d926f0a130af050978bc4cf412b6c4031eef877 WHIRLPOOL 8a435f5462015caec8da83631f9a5c357dfebef558e54191c9d91143dd6c51fac682ebb7d8a41ea81b3c61c14571d5b85e29569f000f1fa0593e04903924ab22
+MISC ChangeLog 2571 SHA256 927f93c127573ba0e8eb061ebe3e9d479f72aa2d7efa74a396e960ffc07bc11c SHA512 50a4554e933a284c711d0092c856462b8455abd354627b62541eecfd6761f418811709fa1ae29ad39b49d59ffecc8f2fffe3f9753a444674048124c215a2d934 WHIRLPOOL a096395b3f8192e532aea3b8ad6ebd1059df0f0fcb0418df5211455929917a73a48048b17dc8263aec1f8fc7db5bc6b2897381efe89ef1ce1246b9f535485534
+MISC ChangeLog-2015 1464 SHA256 994a92f94aa74b564006067749626d14bccfcfe51140afbdcad6e1aad170f522 SHA512 e01876b33668bd7f4ca9a9544d9e344a3ad298f2b48fc9d96811c65ba7aea485c0c3f136a1f1382580288ef1b4ebcaa6645b9a60a5f40f853dcebdeee212f11e WHIRLPOOL 49dcc9bf77c2b69ba969fb0a57716b91f1bac4660c8b7d52ec1112d5020fec1f943d1986f87fd372b9b73981cfc6e082d95a126b79e7c874dc816e2ea22373c5
+MISC metadata.xml 473 SHA256 a7dff3ff645d23f4537533080550f7de9018ea580700ab5cc055c4cc70a5e880 SHA512 4e247fb0a866b080da09b521cdfa1d8eaf3463e4cc62199dc58f22eec49f41c3843f71981b0f41a0ebbda98f9fd6e02f3a15e63a8b445266630324dbfecbda91 WHIRLPOOL 1c3a2422b1938fdc9225864bc9dac3de23a6c0227ed72b1d878a72b4b39079a25de42bbb410d44d46143c56edd3ae0494331b38f3662cea2495cc6c426924d07
diff --git a/games-rpg/drascula/drascula-1.0-r2.ebuild b/games-rpg/drascula/drascula-1.0-r2.ebuild
new file mode 100644
index 000000000000..fe3c8eacc995
--- /dev/null
+++ b/games-rpg/drascula/drascula-1.0-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+INT_PV=1.1
+INT_URI="mirror://sourceforge/scummvm/drascula-int-${INT_PV}.zip"
+DAT_PV=1.5.0
+AUD_PV=2.0
+DESCRIPTION="Drascula: The Vampire Strikes Back"
+HOMEPAGE="http://www.alcachofasoft.com/"
+SRC_URI="mirror://sourceforge/scummvm/drascula-${PV}.zip
+ https://github.com/scummvm/scummvm/raw/v1.5.0/dists/engine-data/drascula.dat -> drascula-${DAT_PV}.dat
+ sound? ( mirror://sourceforge/scummvm/drascula-audio-${AUD_PV}.zip )
+ l10n_es? ( ${INT_URI} )
+ l10n_de? ( ${INT_URI} )
+ l10n_fr? ( ${INT_URI} )
+ l10n_it? ( ${INT_URI} )"
+
+LICENSE="drascula"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="l10n_es l10n_de l10n_fr l10n_it +sound"
+RESTRICT="mirror"
+
+RDEPEND=">=games-engines/scummvm-0.13.1"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+src_unpack() {
+ if use l10n_es || use l10n_de || use l10n_fr || use l10n_it; then
+ unpack drascula-int-${INT_PV}.zip
+ fi
+ if use sound; then
+ unpack drascula-audio-${AUD_PV}.zip
+ fi
+ unpack drascula-${PV}.zip
+}
+
+src_install() {
+ local lang
+
+ games_make_wrapper ${PN} "scummvm -f -p \"${GAMES_DATADIR}/${PN}\" drascula" .
+ for lang in es de fr it
+ do
+ if use l10n_${lang} ; then
+ games_make_wrapper ${PN}-${lang} "scummvm -q ${lang} -f -p \"${GAMES_DATADIR}/${PN}\" drascula" .
+ make_desktop_entry ${PN}-${lang} "Drascula: The Vampire Strikes Back (${lang})" ${PN}
+ fi
+ done
+ insinto "${GAMES_DATADIR}"/${PN}
+ find . -name "P*.*" -execdir doins '{}' +
+ newins "${DISTDIR}"/drascula-${DAT_PV}.dat drascula.dat
+ if use sound; then
+ doins audio/*
+ fi
+ dodoc readme.txt drascula.doc
+ make_desktop_entry ${PN} "Drascula: The Vampire Strikes Back"
+ prepgamesdirs
+}
diff --git a/games-rpg/drascula/metadata.xml b/games-rpg/drascula/metadata.xml
new file mode 100644
index 000000000000..4bb899986a01
--- /dev/null
+++ b/games-rpg/drascula/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="sound">Install optional audio files</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">scummvm</remote-id>
+ <remote-id type="github">scummvm/scummvm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/dreamweb/Manifest b/games-rpg/dreamweb/Manifest
new file mode 100644
index 000000000000..f5ccdfbd4213
--- /dev/null
+++ b/games-rpg/dreamweb/Manifest
@@ -0,0 +1,12 @@
+DIST cat-dreamweb.png 1088 SHA256 1b559ef8d8294a35089aad1bb1b02408ad66681e0d28ed04fce23dd101c58b26 SHA512 fb2b70e36fc975ca18b77e368bd35b54d5db80a39accc0f4529c6ddd9d556d17bda84f72ad2b5d4621270fffef3218e7f6f4e8f38130d6b45ed3e68f90bdd140 WHIRLPOOL 1d4e9d91a7cb446330c7f20ed9437792fb2647da4578a36a21cad3636c49fe8ba20864e5768b69f3453137783bfc5a1800a521c7367dd7f9023bee220af5ade9
+DIST dreamweb-cd-de-1.1.zip 243874867 SHA256 2d42fbf5dd3a58ea98ebb5c9bb33f3d5b70e92a936013248f67c33f1b82ac74b SHA512 30b64b68b22574f29b1b7685ce0df822871e1e641d76d0527d50cc53c4a928a5266033239e44162c30474dd30e5179be88b504c0d820eac5de936145e04c0e9c WHIRLPOOL 70715ee12f3e537cbd1e1e7b0f715d0f90c2d29078965a93130182cd1068983ba408f38047bf9769dc389f7073afff17bb918b4af14c34b4cafff7e4dc8549a7
+DIST dreamweb-cd-es-1.1.zip 171154186 SHA256 1f10045952d2348d2775c05c0b95ff4f35c60d6e9be109893157ef63d4444803 SHA512 67f6d3c2755c39d1f4c268a5f3a011395de6abdb14d798bdd45116200b1d9ee6597c75004268dd142f3341148b81250f464d271589c52fae3ad3b7a0e8e50af2 WHIRLPOOL 7036cd2622e9a34f81824770e39ada91d60abdb2b289a69596dc8514533f2e937b4281f28a6b2994ad5f79437f9cd0715ad73e4090dff96f7bd65e4ed6568bff
+DIST dreamweb-cd-fr-1.1.zip 166468360 SHA256 76fff0ba67f5bcf2dde9c3fb3f5d3d5c017bb0e7368d98d9deee83d1b4182d54 SHA512 77183bcb2477c5dd8bcabb0a16d18b23d48b884d452721e49032c9e7e8ac48df3af18a63aa9765d7b0a138bcf6a116d7dabbce147bcff79c37fab39721fc6456 WHIRLPOOL fe85f7bcc1ab6ce368bd6df2c081263a8d1a9153f1ddcdb16fd347887f79aedc39e6f6f96c57f102733261cd03da6ce11d9175bbbf342cb29d732cbf0fe919b6
+DIST dreamweb-cd-it-1.1.zip 225726238 SHA256 7363d5f6b5aa380862d185980f50e7ac7c661cccdc3f1132f525d92bf4c47f51 SHA512 0a9d0227f0ef1e204e447fc3b43ce81bd50fe2999f3b0a79141e8f1b9dfe08161cdee0ce917728d183c99aaea884cf8fa4808ee007bc9bb3062436a7b65fe052 WHIRLPOOL af037b801227ca232d4be0d05e7402616abfbfba37cd6f73362fb723459ab6ede6d89d11c66390c6d5b03573dbf51f9d7c46a8145a6fe04f1f71b7056b406ea4
+DIST dreamweb-cd-uk-1.1.zip 226067188 SHA256 4a6f13911ce67d62c526e41048ec067b279f1b378c9210f39e0ce8d3f2b80142 SHA512 5e3c11f06ab0518a18cf1feffbc7b016363bc258e6e4d282bbdb5aa88f9540d5fdc10e4d59571d626aeab61a4ab6c4266620c73b2944b9c6963c1e5b66eecd9d WHIRLPOOL 49846418fb6f02419a14231a3804bc9808a957f70b1f187e79029a9a4e7aadccbea577aa4cd0c9b52c6173ba0ae64edc20e4a8b3e2e2f0c4a84715825cdfde54
+DIST dreamweb-cd-us-1.1.zip 226360597 SHA256 f403d95e847b0fe2cde9b86cd2cf835826c6b759c3691f0ee456cacb0948dc94 SHA512 cca33b2f4fd373eb0bc6d12df9ad3ba8417e0fd27cc09e1e0a3201ab4567ddeea127529aa1d1742060225888870c892f8dc983078017c5ae9253b6e028171cb8 WHIRLPOOL ebeef1fec38df99a1fccd56d8445ff9ec466efbe406ce0c4110def481c32fe84eb74c4f1afb3a18680161b784b07be43e68b8b95f0f9f018102bc86a78e2475f
+DIST dreamweb-manuals-en-highres.zip 186406397 SHA256 6d26dbc9c032dfe00211065c31d738a2135aefdf561934722e1ca6e3416ff769 SHA512 a67d3eadeb2ea7579d23315cd9c9fbb31d9e7aa88fdd3c4bc8656801e4b064ad94356167cfbf0ee6e18ad02316297dad0d07616b34080aae68467868de421305 WHIRLPOOL c51d22d09bdafd07e95ebdf6d1c6911c348585572f9050624b16eaa61d5cf704782846929173a242425970a32527f978483fc2d59a078a62e49150338f4a0efc
+EBUILD dreamweb-1.1.ebuild 3571 SHA256 860837f271ad3754cf72073df1185722f33f3464aa985a91556cfb8c0e353fe7 SHA512 8186c6c2e3ee50f4572a94db06975a7c1781f14667510e1c30482b916fe1840e29f9b0a981fabe746479a8ba9bed7795c4cf782ce6384769da1504a7d3be11e7 WHIRLPOOL 2e6eaaf996d72ee1dd9bf1b3fa52ef5661ce613c46901c958d6883b07967e2a5d772018aacefca5a931ef93432517529c2415a6301479dc52d9f6ea9b9fe27db
+MISC ChangeLog 2562 SHA256 37864908c61c4f342369ba5c12b95c5dde4ef556f51dfbb75483f742cb8895a4 SHA512 82fab8be0f9af58297ae7350769a08a2899606efb81bd853e3ce905c672ee5c89285a6c435e54189831cac42fb6c32a353312b07dcc0da1f8d88f68b9a90ff64 WHIRLPOOL f94b4b44ae5e85a8398a9cefd7b9866102e04c47fd5290bf34e1eda27795fb34932c76767c1e0bf4447da0a8e717fb77f7c70cc580ccba886412db8eb494f9d4
+MISC ChangeLog-2015 555 SHA256 1403397a821bc5c8da6f18ce9db5baa6bbad337f6682993df5bbef998dd676f6 SHA512 ead2ca67881957c76fd42dda9aa67aa9ea8de6aad45e35a9594068d94db674703d414eb9571910c925a3e82e2675186ad5375dc6f7d21816c4f0a03be2109c38 WHIRLPOOL 3bb45393a989aa3666ffc18cbc85c02557dbb67ebb6e232473c5e044463bc9f937b4a73c7d7c326a26988fe4b42a9b83ce76c39a39cbd9cb6c2628adde7a0328
+MISC metadata.xml 459 SHA256 769ca1131d3c7d9c39a85a295aeaa4c44e0a41a2701e89d1385ce28b1d5f168a SHA512 06373bf69e200ed3a6b86bb7f914147c26ea4d4b00f3592b3235917d878e45ed2b86f33136057a64471bdc711cdc5740a35f80b39a92e7fbe55304d8c98c1474 WHIRLPOOL 3c4d85b4a689ec947b51abd05ce9bea141e159c35f206b729372fd496282a82571ee90753aed522aed2fdc54a0af7d20a52ebd40b6078fe9381e9d59d37a6c51
diff --git a/games-rpg/dreamweb/dreamweb-1.1.ebuild b/games-rpg/dreamweb/dreamweb-1.1.ebuild
new file mode 100644
index 000000000000..58a817f7980c
--- /dev/null
+++ b/games-rpg/dreamweb/dreamweb-1.1.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit unpacker eutils games
+
+DESCRIPTION="Top-down adventure game set in a gritty futuristic/dystopian city"
+HOMEPAGE="http://wiki.scummvm.org/index.php/Dreamweb"
+SRC_URI="doc? ( mirror://sourceforge/scummvm/${PN}-manuals-en-highres.zip )
+ l10n_de? ( mirror://sourceforge/scummvm/${PN}-cd-de-${PV}.zip )
+ l10n_en? ( mirror://sourceforge/scummvm/${PN}-cd-us-${PV}.zip )
+ l10n_en-GB? ( mirror://sourceforge/scummvm/${PN}-cd-uk-${PV}.zip )
+ l10n_es? ( mirror://sourceforge/scummvm/${PN}-cd-es-${PV}.zip )
+ l10n_fr? ( mirror://sourceforge/scummvm/${PN}-cd-fr-${PV}.zip )
+ l10n_it? ( mirror://sourceforge/scummvm/${PN}-cd-it-${PV}.zip )
+ !l10n_de? ( !l10n_en? ( !l10n_en-GB? ( !l10n_es? ( !l10n_fr? ( !l10n_it? \
+ ( mirror://sourceforge/scummvm/${PN}-cd-us-${PV}.zip ) ) ) ) ) )
+ http://www.scummvm.org/images/cat-dreamweb.png"
+
+LICENSE="Dreamweb"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc l10n_de l10n_en l10n_en-GB l10n_es l10n_fr l10n_it"
+
+RDEPEND=">=games-engines/scummvm-1.7[flac]"
+DEPEND="$(unpacker_src_uri_depends)"
+
+S=${WORKDIR}
+
+src_unpack() {
+ if use l10n_de ; then
+ mkdir -p "${S}"/de || die
+ cd "${S}"/de || die
+ unpacker ${PN}-cd-de-${PV}.zip
+ fi
+ if use l10n_en || ( ! use l10n_de && ! use l10n_en && ! use l10n_en-GB && \
+ ! use l10n_es && ! use l10n_fr && ! use l10n_it ) ; then
+ mkdir -p "${S}"/en_US || die
+ cd "${S}"/en_US || die
+ unpacker ${PN}-cd-us-${PV}.zip
+ fi
+ if use l10n_en-GB ; then
+ mkdir -p "${S}"/en_GB || die
+ cd "${S}"/en_GB || die
+ unpacker ${PN}-cd-uk-${PV}.zip
+ fi
+ if use l10n_es ; then
+ mkdir -p "${S}"/es || die
+ cd "${S}"/es || die
+ unpacker ${PN}-cd-es-${PV}.zip
+ fi
+ if use l10n_fr ; then
+ mkdir -p "${S}"/fr || die
+ cd "${S}"/fr || die
+ unpacker ${PN}-cd-fr-${PV}.zip
+ fi
+ if use l10n_it ; then
+ mkdir -p "${S}"/it || die
+ cd "${S}"/it || die
+ unpacker ${PN}-cd-it-${PV}.zip
+ fi
+ if use doc ; then
+ mkdir -p "${S}"/doc || die
+ cd "${S}"/doc || die
+ unpacker ${PN}-manuals-en-highres.zip
+ fi
+}
+
+src_prepare() {
+ rm -rf */license.txt */*.EXE || die
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ newicon "${DISTDIR}"/cat-dreamweb.png dreamweb.png
+ if use l10n_de ; then
+ doins -r de
+ games_make_wrapper dreamweb-de "scummvm -f -p \"${GAMES_DATADIR}/${PN}/de\" dreamweb" .
+ make_desktop_entry ${PN}-de "Dreamweb (Deutsch)" dreamweb
+ fi
+ if use l10n_en || ( ! use l10n_de && ! use l10n_en && ! use l10n_en-GB && \
+ ! use l10n_es && ! use l10n_fr && ! use l10n_it ) ; then
+ doins -r en_US
+ games_make_wrapper dreamweb-en_US "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en_US\" dreamweb" .
+ make_desktop_entry ${PN}-en_US "Dreamweb (US English)" dreamweb
+ fi
+ if use l10n_en-GB ; then
+ doins -r en_GB
+ games_make_wrapper dreamweb-en_GB "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en_GB\" dreamweb" .
+ make_desktop_entry ${PN}-en_GB "Dreamweb (UK English)" dreamweb
+ fi
+ if use l10n_es ; then
+ doins -r es
+ games_make_wrapper dreamweb-es "scummvm -f -p \"${GAMES_DATADIR}/${PN}/es\" dreamweb" .
+ make_desktop_entry ${PN}-es "Dreamweb (Español)" dreamweb
+ fi
+ if use l10n_fr ; then
+ doins -r fr
+ games_make_wrapper dreamweb-fr "scummvm -f -p \"${GAMES_DATADIR}/${PN}/fr\" dreamweb" .
+ make_desktop_entry ${PN}-fr "Dreamweb (Français)" dreamweb
+ fi
+ if use l10n_it ; then
+ doins -r it
+ games_make_wrapper dreamweb-it "scummvm -f -p \"${GAMES_DATADIR}/${PN}/it\" dreamweb" .
+ make_desktop_entry ${PN}-it "Dreamweb (Italiano)" dreamweb
+ fi
+ use doc && dodoc -r doc/*
+ prepgamesdirs
+}
diff --git a/games-rpg/dreamweb/metadata.xml b/games-rpg/dreamweb/metadata.xml
new file mode 100644
index 000000000000..1cbcf304b004
--- /dev/null
+++ b/games-rpg/dreamweb/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="doc">High-resolution scans of the written material in the original UK game box</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">scummvm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/dungeon-defenders/Manifest b/games-rpg/dungeon-defenders/Manifest
new file mode 100644
index 000000000000..93da2f6ce0f7
--- /dev/null
+++ b/games-rpg/dungeon-defenders/Manifest
@@ -0,0 +1,5 @@
+DIST dundef-linux-03052013.mojo.run 5384683543 SHA256 bc81021859871169285111ef7b1806952dcc17b128f3e387d9b5072918490c61 SHA512 911d1691411d870cee62d08b0c559ac80588edc9ba0c9d622c7528f7f8635d86eae962f7a2b1bfed27be1d780c033216374f69072ed7828e8624855e9b0b9aca WHIRLPOOL a5d75261ad542cf182829d6bd9cb053696d2228e44a6560a400e26f0697d9993037410cb9a2311e882b5076aefc612ba4b490d709ee281a6422b122e2a644402
+EBUILD dungeon-defenders-20130305.ebuild 2634 SHA256 ed13141878c0605958853c6abfddb284006287249a3121320ceb3321db701711 SHA512 eaebd5f69e0a5ec3dbbe1196daa1c3aff8e6cb212995f564a556dd123223008a37a25e07509ff54f0cebbf43abe812a9fb211ffdb36df3e917bb4d109a5707d5 WHIRLPOOL 2f1bdddbe0f49bd69efa2c29f36d1a34f04e58b0a87d7407c4010436681e3e48386d2762b8584512782d03402b5135bee3e672212adee4d6fd87b1d723f62c84
+MISC ChangeLog 2857 SHA256 6561f960e9b8ee3b77dffa3a04d6a3cbbfba0b041d7d06b01e6a65b06ad8ce31 SHA512 41c4d7c54b457bd4da24d8b8fc6aeded61b4cee847ce9bd67c547a5e816af1917f3d4b68754172c72d5af320b01adb89698f1fc1c5a5f6ec623f36ca8f02f897 WHIRLPOOL 09758dcd122a060785792ef84020632b4aaa75693d289fcf30fdd5edf0b3fc50cf45852122b9c6ba589640e4ae58b80478040214a8d9cb286f50d7fa3e62a567
+MISC ChangeLog-2015 1263 SHA256 84d35c3cad6381387d7db4250193605eea9e6c5370d27730485db8491ee4608c SHA512 d76bea745d7f12286cf49db4f4bc24ead9ff79b078e103608dc89267b673ab892f12b61229ebf169cc760d2fa09bf0f392be46f181aa7df54e52ee928e3c716b WHIRLPOOL 2923e03f3b8a020f96d45187f64da0dc791e08f353d8ed9155471b2e3bc8245a7d000d90aa18634775a0ac972edd42f506c1763cb39340b631700ad4fccd63da
+MISC metadata.xml 355 SHA256 3fe59ecadf91cdd661b063661864ef57eb3df8d59bd55a2eb9e61dc1a75e5bd8 SHA512 78f8cc8f1f1be915da206e4b8be196a21b58a6f209023594755e481136a1b86ee31c8d0dfedd516d756a47db624e89728875b073b71c3b08ac94a5cde8ff3b83 WHIRLPOOL adc2ef67e7870008ce851a78268832c5ff50649850b2614fb66edd3a16ccbad441306f00c44000385a742552b91b4a805408b19aad2ef3b7dda9e86532703dba
diff --git a/games-rpg/dungeon-defenders/dungeon-defenders-20130305.ebuild b/games-rpg/dungeon-defenders/dungeon-defenders-20130305.ebuild
new file mode 100644
index 000000000000..45442dfbaf87
--- /dev/null
+++ b/games-rpg/dungeon-defenders/dungeon-defenders-20130305.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: unbundle SDL-2 when it gets released
+
+EAPI=5
+inherit check-reqs eutils gnome2-utils unpacker games
+
+TIMESTAMP="${PV:4:2}${PV:6:2}${PV:0:4}"
+MY_PN="DungeonDefenders"
+DESCRIPTION="A hybrid of two hot genres: Tower Defense and cooperative online Action-RPG"
+HOMEPAGE="http://dungeondefenders.com/"
+SRC_URI="dundef-linux-${TIMESTAMP}.mojo.run"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="bundled-libs"
+RESTRICT="bindist fetch splitdebug"
+
+MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${MYGAMEDIR#/}/UDKGame/Binaries/${MY_PN}-x86
+ ${MYGAMEDIR#/}/UDKGame/Binaries/libSDL2-2.0.so.0"
+CHECKREQS_DISK_BUILD="5916M"
+
+# linked against pulseaudio
+# without SDL-2 only linkage: opengl, openal
+DEPEND="app-arch/unzip"
+RDEPEND="
+ x11-misc/xdg-utils
+ >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)]
+ >=media-sound/pulseaudio-5.0[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXScrnSaver[abi_x86_32(-)]
+ x11-libs/libXcursor[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ x11-libs/libXi[abi_x86_32(-)]
+ x11-libs/libXinerama[abi_x86_32(-)]
+ x11-libs/libXrandr[abi_x86_32(-)]
+ x11-libs/libXxf86vm[abi_x86_32(-)]
+ !bundled-libs? ( >=media-libs/openal-1.15.1[abi_x86_32(-)] )"
+
+S=${WORKDIR}/data
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+ einfo
+}
+
+src_unpack() {
+ unpack_zip ${A}
+}
+
+src_prepare() {
+ # https://bugzilla.icculus.org/show_bug.cgi?id=5894
+ sed -i \
+ -e 's/LobbyLevel_Valentines2013.udk/LobbyLevel.udk/' \
+ UDKGame/Config/DefaultDunDef.ini || die
+
+ # Remove the binaries that we're unbundling and unnecessary stuff
+ rm -v UDKGame/Binaries/xdg-open || die
+ if ! use bundled-libs ; then
+ einfo "Removing bundled libs..."
+ rm -v UDKGame/Binaries/libopenal.so.1 || die
+ fi
+}
+
+src_install() {
+ # Move the data rather than copying. The game consumes over 5GB so
+ # a needless copy should really be avoided!
+ dodir "${MYGAMEDIR}"
+ mv -v Engine UDKGame "${D}${MYGAMEDIR}" || die
+
+ # use system xdg-open script, location is hardcoded
+ dosym /usr/bin/xdg-open "${MYGAMEDIR}"/UDKGame/Binaries/xdg-open
+
+ newicon -s 48 DunDefIcon.png ${PN}.png
+ make_desktop_entry "${PN}" "Dungeon Defenders"
+ games_make_wrapper ${PN} "./${MY_PN}-x86" "${MYGAMEDIR}/UDKGame/Binaries"
+
+ dodoc README-linux.txt
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/dungeon-defenders/metadata.xml b/games-rpg/dungeon-defenders/metadata.xml
new file mode 100644
index 000000000000..b878aaa1812d
--- /dev/null
+++ b/games-rpg/dungeon-defenders/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="bundled-libs">
+ Use the upstream provided bundled libraries.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/games-rpg/egoboo/Manifest b/games-rpg/egoboo/Manifest
new file mode 100644
index 000000000000..e3b2361577ad
--- /dev/null
+++ b/games-rpg/egoboo/Manifest
@@ -0,0 +1,7 @@
+AUX egoboo-2.8.1-gentoo.patch 2233 SHA256 c56a194e325b78633ae2078a6225643ab5c7f869d7bb6a5913db0dd042cbdaf1 SHA512 277e453c95ee908b064987eae732b37a6ee9c2d903532017eb8a8951458a16b5195694f8165ba7146b1ca609be6155e4df20212b8c3cb3b056c4249bc4f3e1f3 WHIRLPOOL 119697d2812c08f2f0ab43cbafb3e243687149c7523fdff29de6a91c763b06a59b70a930586b85d15686fc04902f7d642fc1347a0c224b3cd8ed4e4bf48f8b13
+DIST egoboo-2.8.1.tar.gz 150029960 SHA256 a2694187d28a7aadf4ca3b9b7a6c6dcd3bb03ec8f145435c744bb77afb5f4c26 SHA512 5793a63ba90f461ae99bcb81bf4ddf287b203bc2d401e1f697f1f4f93e1d681954e09b23938eb1a36e7dd535e2d12b8882efd77572cc63392cad5f9462ac3054 WHIRLPOOL a4aa29244a43c974f7109ba4a3be40d2438a01c05ac032c4f74e01c2ca407ab3b6033f5133164e853bc50c8b0c59320ac076d21c93ea26ca7089fe8e603a4f6c
+EBUILD egoboo-2.8.1-r1.ebuild 1254 SHA256 79d5c2e700eee31396ae2bc352172bf90a9e3a139eea0087acd1e43051f7e7ad SHA512 3ba98b1a1ed0a4af22dff6726ebc58e12c5cfca79575bc3f553ee9d196122803f5d870d0c7a93433ed46b6bf9733e4a553d82e9a44b98bf94e2e8d9e41ad5c01 WHIRLPOOL 636a9a5dbaef9ee8f8d4feaf5d450c51b38e852b368ced27de02877883ea2f5467f5a07063093054e3038151e6664e44397a1de07295a91823694538209a83a9
+EBUILD egoboo-2.8.1.ebuild 1308 SHA256 2b2153ca79ea030531cd6cac3cc6a7c254af568ef533cbcebdb64acf5bf50798 SHA512 2f3db37dc8ad211951a2ac91759d3381e10b7c24173ab0647257b8d2b6b9345df34a275f2a9b054ec386546c1b04c47d7813be67d9b18fb58e11a117dda26a76 WHIRLPOOL 36ea24a72dfac24cb718cd62d5462ca62e3aeb60e4757a6756402a36429cb8c539999bbebe9f071580730e053a49025bd7adabe14cba37719110d20b513355a8
+MISC ChangeLog 2870 SHA256 776de30c73f5e4f3fc391207568e17260ede7c4f9d4579d2c1108da216086cad SHA512 f2532ec41ae606fe4b3a8dbf7f8ea2ef8f3c8641a451660ecab5ad906c54e3a5c37490e51b38d03f628222a1fb2c921f2b57107f829af7bfd2afddd258c88645 WHIRLPOOL 42f8fa3489fe2f15a77ba5bd8561dfcd2f500e021fdd56bcdb9297d8768b03a73e5650d72e8aaea7e52ac9c4e88b62761b1aa83cf32e9c4c013cbaa1b3c4850c
+MISC ChangeLog-2015 5126 SHA256 13048aafd98367979277229979b67e1bb50eea91b520c86d2bfcf30ce0143f8a SHA512 0ebbbbb28e39ccb7e55da3dd745dc478724a81456d4235f44fa60246bd1f27cdaa293638a7103a5d3e461c95587fc977fe124c06849ffcae8aac58d3aae3bfe5 WHIRLPOOL 8a289e17647dfbd7b9d82d972745aee82baf4b45acc35375dfeafab710b61fb2c8a8c959d0c431181f978f303998ae3d87346b85bdb0674faba774cddc58440d
+MISC metadata.xml 329 SHA256 a1a8a1fe2a8d92b986d673fb39e14d175d7c7f33a007d25522bbfd528b505237 SHA512 c3152f5db54eb4ae254c36981adb9556ff0eb37b267cd1dd25efc1428249d826e4c37b6166034acf98229f6f3ac681d7edb9681c69fd2f88e9394dff04fbd5fb WHIRLPOOL 48484bbd073388f486c17d10a92b8835cadd60749ef561006096625a80f503d47d8af20abb4e472e3decd3b667aea5f1ae1352ab1eba7099a99aa7a485ca80cd
diff --git a/games-rpg/egoboo/egoboo-2.8.1-r1.ebuild b/games-rpg/egoboo/egoboo-2.8.1-r1.ebuild
new file mode 100644
index 000000000000..108aefdfcecc
--- /dev/null
+++ b/games-rpg/egoboo/egoboo-2.8.1-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="A 3d dungeon crawling adventure in the spirit of NetHack"
+HOMEPAGE="http://egoboo.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ dev-games/physfs
+ media-libs/libsdl[joystick,video]
+ media-libs/sdl-image
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-ttf
+ net-libs/enet:0
+ virtual/glu
+ virtual/opengl"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_prepare() {
+ edos2unix src/game/platform/file_linux.c \
+ src/game/network.c \
+ src/game/Makefile
+ default
+ sed -i \
+ -e "s:@GENTOO_CONFDIR@:/etc/${PN}:" \
+ -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
+ src/game/platform/file_linux.c || die "sed failed"
+ rm -rf src/enet || die
+}
+
+src_compile() {
+ emake -C src/game PROJ_NAME=egoboo-2.x
+}
+
+src_install() {
+ dodoc BUGS.txt Changelog.txt doc/*.txt doc/*.pdf
+
+ insinto /usr/share/${PN}
+ doins -r basicdat modules
+ insinto /etc/${PN}
+ doins -r controls.txt setup.txt
+
+ newbin src/game/egoboo-2.x ${PN}
+
+ newicon basicdat/icon.bmp ${PN}.bmp
+ make_desktop_entry ${PN} Egoboo /usr/share/pixmaps/${PN}.bmp
+}
diff --git a/games-rpg/egoboo/egoboo-2.8.1.ebuild b/games-rpg/egoboo/egoboo-2.8.1.ebuild
new file mode 100644
index 000000000000..c5e80cc1a359
--- /dev/null
+++ b/games-rpg/egoboo/egoboo-2.8.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A 3d dungeon crawling adventure in the spirit of NetHack"
+HOMEPAGE="http://egoboo.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl[joystick,video]
+ media-libs/sdl-image
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-ttf
+ net-libs/enet:0
+ dev-games/physfs"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ edos2unix src/game/platform/file_linux.c \
+ src/game/network.c \
+ src/game/Makefile
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ -e "s:@GENTOO_CONFDIR@:${GAMES_SYSCONFDIR}/${PN}:" \
+ src/game/platform/file_linux.c || die "sed failed"
+ rm -rf src/enet || die
+}
+
+src_compile() {
+ emake -C src/game PROJ_NAME=egoboo-2.x
+}
+
+src_install() {
+ dodoc BUGS.txt Changelog.txt doc/*.txt doc/*.pdf
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r basicdat modules
+ insinto "${GAMES_SYSCONFDIR}/${PN}"
+ doins -r controls.txt setup.txt
+
+ newgamesbin src/game/egoboo-2.x ${PN}
+
+ newicon basicdat/icon.bmp ${PN}.bmp
+ make_desktop_entry ${PN} Egoboo /usr/share/pixmaps/${PN}.bmp
+
+ prepgamesdirs
+}
diff --git a/games-rpg/egoboo/files/egoboo-2.8.1-gentoo.patch b/games-rpg/egoboo/files/egoboo-2.8.1-gentoo.patch
new file mode 100644
index 000000000000..2f1205a45118
--- /dev/null
+++ b/games-rpg/egoboo/files/egoboo-2.8.1-gentoo.patch
@@ -0,0 +1,56 @@
+--- a/src/game/platform/file_linux.c 2012-04-29 21:45:29.627419281 +0200
++++ b/src/game/platform/file_linux.c 2012-04-29 21:45:29.628419211 +0200
+@@ -79,9 +79,9 @@
+ strncpy( linux_dataPath, PREFIX "/share/games/egoboo-2.x", SDL_arraysize( linux_dataPath ) );
+ #else
+ // these are read-only directories
+- strncpy( linux_configPath, "/etc/egoboo-2.x/", SDL_arraysize( linux_configPath ) );
++ strncpy( linux_configPath, "@GENTOO_CONFDIR@", SDL_arraysize( linux_configPath ) );
+ strncpy( linux_binaryPath, "/games/", SDL_arraysize( linux_binaryPath ) );
+- strncpy( linux_dataPath, "/share/games/egoboo-2.x/", SDL_arraysize( linux_dataPath ) );
++ strncpy( linux_dataPath, "@GENTOO_DATADIR@", SDL_arraysize( linux_dataPath ) );
+ #endif
+
+ // the log file cannot be started until there is a user data path to dump the file into
+--- a/src/game/network.c 2012-04-29 20:14:31.482179973 +0200
++++ b/src/game/network.c 2012-04-29 20:14:52.077730184 +0200
+@@ -37,7 +37,7 @@
+ #include "egoboo_setup.h"
+ #include "egoboo.h"
+
+-#include "enet/enet.h"
++#include <enet/enet.h>
+ #include "file_common.h"
+
+ #include <stdarg.h>
+--- a/src/game/Makefile 2012-04-29 20:17:09.303070070 +0200
++++ b/src/game/Makefile 2012-04-29 20:18:21.047023847 +0200
+@@ -33,8 +33,7 @@
+ # the compiler options
+
+-CC := gcc
+-INC := -I. -I.. -I../enet/include ${SDLCONF_I} -I./extensions -I./file_formats -I./platform
+-LDFLAGS := ${SDLCONF_L} -L../enet/lib -lSDL_ttf -lSDL_mixer -lGL -lGLU -lSDL_image -lphysfs -lenet
++INC := -I. -I.. ${SDLCONF_I} -I./extensions -I./file_formats -I./platform
++LDLIBS := ${SDLCONF_L} -lSDL_ttf -lSDL_mixer -lGL -lGLU -lSDL_image -lphysfs -lenet -lm
+
+ # use different options if the environmental variable PREFIX is defined
+ ifdef ($(PREFIX),"")
+@@ -43,7 +43,7 @@
+ OPT := -Os -Wall -DPREFIX=\"${PREFIX}\" -D_NIX_PREFIX
+ endif
+
+-CFLAGS := ${OPT} ${INC}
++CFLAGS += ${INC} -DENET11
+
+ #------------------------------------
+ # definitions of the target projects
+@@ -52,7 +52,7 @@
+ all: ${EGO_BIN}
+
+ ${EGO_BIN}: ${EGO_OBJ}
+- ${CC} -o $@ $^ ${LDFLAGS} ${CFLAGS}
++ ${CC} -o $@ $^ ${LDFLAGS} ${CFLAGS} ${LDLIBS}
+
+ clean:
+ rm -f ${ENET_OBJ} ${EGO_OBJ} ${EGO_BIN}
diff --git a/games-rpg/egoboo/metadata.xml b/games-rpg/egoboo/metadata.xml
new file mode 100644
index 000000000000..d8a2d5fe278b
--- /dev/null
+++ b/games-rpg/egoboo/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">egoboo</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/eschalon-book-1-demo/Manifest b/games-rpg/eschalon-book-1-demo/Manifest
new file mode 100644
index 000000000000..62f1a4b039af
--- /dev/null
+++ b/games-rpg/eschalon-book-1-demo/Manifest
@@ -0,0 +1,6 @@
+DIST eschalon-book-1-demo-106.tar.gz 83157919 SHA256 172d66826ad8a1c6fe8b8d9feddeff6fff36f4da07edcf5a12264b17d9d61eea SHA512 7229cb48ad02b1842ac71fec03f5ea3e0df8f895409222a764c8505586a1ceb350dc4b57b4c9eed528ef0984bb60d406f41df26d5b7e8157d0f22b8ded590d66 WHIRLPOOL 7e5e0c2c4abdcc7d44bf0e87eb1ac121bd90dca9cfea9dddc5afef1e3e84f556f949ff4446945eb2f48250783e45d38bfd6dd414d5632ba6c441be00c0d9a708
+EBUILD eschalon-book-1-demo-106-r1.ebuild 870 SHA256 7092ced41b21e2d92a0c04807898a6b334ea9ef64e147e071b77dff560ba5508 SHA512 24c8c3649aa29e9385e911eafdecb599e791dffe7d57f74607022e90faea388c40edd6978f7637f4b24c52ac8025083635c5a5a1c7682b4eb16793a01f514119 WHIRLPOOL 42f318245caa47bd5cfeb543109dae8a8366b2e1d7b1fc2cdc046489f5825162464b22bd8a83d7b3747766c1c40a52dc47f7a334c3c473e9ca89e830e7420807
+EBUILD eschalon-book-1-demo-106.ebuild 988 SHA256 9125fa1be26b595dfd2940d573e73e468ecbabb8727aa75210af673cb10705bb SHA512 30100431e8b329c4900402531d54bfaea26ab93ebf53ec9f78c75e74d05a2b673a60c41552237ac305afb80fe62224b9a354531c968e29805143daff10fc1fa6 WHIRLPOOL 1b443e5a71ee2c2c2f0410f38288c95d6959a92d45f583e6a3a40318c2ffa35eede8f04e3e0e33ac84b74423bc220d3f7dd5cc827fd4e70d9cb7742c09f0cae8
+MISC ChangeLog 2774 SHA256 1c46f53d11099de781f6fa0f2d1451ba23edb224441a9d445974ab6e7b474bbb SHA512 85604fb101b649b5bcc8e1c3ec4290ad5dedcafff5915292109890321240ee60490c80c166672e962c07993fc835184b5d58294a9404819a52b7fa9567ba29bb WHIRLPOOL 948876468fd69540b7a9d2af8e86d4a2c232cd9a62da175f922665874846a82f62d5190a121cdcc8763ee28fde7264b9ed9bad65fdf06389ef6d0b50ee4ce6b2
+MISC ChangeLog-2015 1613 SHA256 aba57533cd1f9f031ea339fe64d5cfce3460674a0cea1b0c757852cc207b99ca SHA512 58d073518e83f77e6f93ecc00e41fc3b20cd586703d69d18a0f23061d04fb5710400f1c5a5436d2036f93fc1f4a4d4f8f2f5773993a5834f825380024e8d4ccf WHIRLPOOL cf04fab92fdf7aac9ee61c8afff8e175bc5d0afb280f1dbfe2a2a1b47505dc326563132a77ba863a6937ae1f40c00de3cebce7d10c8bdc7cfe5bcfc3816e809b
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-rpg/eschalon-book-1-demo/eschalon-book-1-demo-106-r1.ebuild b/games-rpg/eschalon-book-1-demo/eschalon-book-1-demo-106-r1.ebuild
new file mode 100644
index 000000000000..62333050eaec
--- /dev/null
+++ b/games-rpg/eschalon-book-1-demo/eschalon-book-1-demo-106-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="A classic role-playing game"
+HOMEPAGE="http://basiliskgames.com/eschalon-book-i"
+SRC_URI="https://dev.gentoo.org/~calchan/distfiles/${P}.tar.gz"
+
+LICENSE="eschalon-book-1-demo"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="strip"
+
+QA_PREBUILT="opt/*"
+
+RDEPEND="
+ >=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXxf86vm[abi_x86_32(-)]
+ virtual/glu[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]"
+
+S="${WORKDIR}/Eschalon Book I Demo"
+
+src_install() {
+ insinto /opt/${PN}
+ doins -r data music sound *pdf *pak help.txt
+
+ exeinto /opt/${PN}
+ doexe "Eschalon Book I Demo"
+
+ make_desktop_entry ${PN} "Eschalon: Book I (Demo)"
+ make_wrapper ${PN} "\"./Eschalon Book I Demo\"" /opt/${PN}
+}
diff --git a/games-rpg/eschalon-book-1-demo/eschalon-book-1-demo-106.ebuild b/games-rpg/eschalon-book-1-demo/eschalon-book-1-demo-106.ebuild
new file mode 100644
index 000000000000..ba00e2e78151
--- /dev/null
+++ b/games-rpg/eschalon-book-1-demo/eschalon-book-1-demo-106.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A classic role-playing game"
+HOMEPAGE="http://basiliskgames.com/eschalon-book-i"
+SRC_URI="https://dev.gentoo.org/~calchan/distfiles/${P}.tar.gz"
+
+LICENSE="eschalon-book-1-demo"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="strip"
+QA_PREBUILT="${GAMES_PREFIX_OPT:1}/${PN}/Eschalon Book I Demo"
+
+RDEPEND="
+ >=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXxf86vm[abi_x86_32(-)]
+ virtual/glu[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]"
+
+S="${WORKDIR}/Eschalon Book I Demo"
+
+src_install() {
+ insinto "${GAMES_PREFIX_OPT}/${PN}"
+ doins -r data music sound *pdf *pak help.txt
+
+ exeinto "${GAMES_PREFIX_OPT}/${PN}"
+ doexe "Eschalon Book I Demo"
+
+ make_desktop_entry ${PN} "Eschalon: Book I (Demo)"
+ games_make_wrapper ${PN} "\"./Eschalon Book I Demo\"" "${GAMES_PREFIX_OPT}/${PN}"
+ prepgamesdirs
+}
diff --git a/games-rpg/eschalon-book-1-demo/metadata.xml b/games-rpg/eschalon-book-1-demo/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-rpg/eschalon-book-1-demo/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-rpg/eternal-lands-bloodsucker/Manifest b/games-rpg/eternal-lands-bloodsucker/Manifest
new file mode 100644
index 000000000000..4a199274134e
--- /dev/null
+++ b/games-rpg/eternal-lands-bloodsucker/Manifest
@@ -0,0 +1,7 @@
+DIST eternal-lands-bloodsucker-3.0.zip 56684190 SHA256 656e00bdb5910d17de81547ef359a0b1bca3246f08efbf1e3072079b84a9e886 SHA512 de694f9fbb1de0af2fcaa53bd8007f15388d64f182e69a5673c65ee68cc15b9a79e25aee99f61facbcedac31b02055c6b2981a0f6d132f90111b8a8d926d45bc WHIRLPOOL c390be0fff89f4082631e9b0ad4330e88f58171ffab2b0635d2e420e03fbe20b6740a7f53b6184586d53bb731ba4b70605a8ed76fb61b70d7bc6d246b0bed261
+DIST eternal-lands-bloodsucker-3.0_p20110618.tar.bz2 48324713 SHA256 bfc347a9b17c9673ef7ae225ec690e3c55e07b33a57e484415baf88ea4e15730 SHA512 951083ae5170929d64efa79962a19ab2481df956c316aecc32179478c4d56dd4d23282fa428974865216877b493a8729bdbedb0396b6c11670f6ee094c334fe4 WHIRLPOOL 96fe24a740b3fa6e9ec6a6052edd940bb98042beda6344b4d5614938d03e11c5661c79ebb5bb7a7b8f0e55c31758d1bfb4418e5fdcca03b568ebd58b25512521
+EBUILD eternal-lands-bloodsucker-3.0.ebuild 795 SHA256 0bbfcae6af1bb1e759bd8455d644e4700edfcc53b284eea114055cd58aa0eebd SHA512 f9f3b76b5098afb10ec8a5dcea87eed9780d84373cd687bc1935d16e1362f821a8c8941c541d2adfd7084b2206aa01e15b257b82282e5d303d71785f75e3cd1e WHIRLPOOL fd0493ca2b1bba7514bbad7c3adf8c635ce80b18492b07a5b7ec86049f11101b316629dfc28d2638dbd0d70a711afc2c9f389433c8c3837946eb0f4799902103
+EBUILD eternal-lands-bloodsucker-3.0_p20110618.ebuild 801 SHA256 fba793ffc831c3f12b75ba711f9047caca777423df97c9f6cc668db35cded549 SHA512 4e36f00309f5e814508aae3337f14cf006503bc3e9cdfffb249bccfe7be6de81187b6f5de8aaa49a5d94824177a49f69e98f626e895bb769f6380e6469ab6ea1 WHIRLPOOL 90f8eba23b6a935f5219843965727bcce32e18daa8342d8f9420b82af8b84d412ead958180abc1d56eeb65ca50a4cb3bd85b27c87a0056f5f78711529dd3ff39
+MISC ChangeLog 2634 SHA256 c931964c52e89198dc881f3ea48b769f72a61302ca9027ba772e1f7a6ecf279a SHA512 5a6a10e506c4890fde4b14605281b12f5debc0a81da3867adbcf1c1c578bc79a57172cf9d051fd7cd35ee223aaeb05fbb4fce142acca2725dc5cc540787dc4b4 WHIRLPOOL 52001e6ce6cfd073090edbdfa0ecb3799627fe86ff8d6cb601ce86016b101912bdc326db71f6f89ea1f1a0289e319931b110a627ba3130fd44cccf36c664da18
+MISC ChangeLog-2015 903 SHA256 a481e6d8984c7dd537d17c343ca6f89f15d64a9b9b806dad9216928fb84f6864 SHA512 0e7ef2062e3867f79e16e33d906a955b1b1d8c7199c206ed8bb0b7c8bf0bfcfd6001ddb2250cbe4aaf828dc277c3d40721b3a58428a417758232d40d3a24aa40 WHIRLPOOL 424eaac7b810aaa0a288938c500050ca35b2eaa711971c142c28a553bc02b94544d810afeaebe6cb40973b09bde4771562022faa72ada948b6edb3bc2b003ff6
+MISC metadata.xml 495 SHA256 14b0aa7cc49124e8e042ccfc81e201608ef5009425365f2fd327f09b22348c72 SHA512 5f54f31c6ba0b928da9389da93fe13f64e3ce5df24028f2a876e01c0ff2365e4764279739edbd1bf0f866c8b58ae3ba5d10c44898fbb64401cd6097c4a629fc0 WHIRLPOOL 2d7ab6a46faafbff1ffd4ea4d41174f1b907306a145730b1414ea0ed3c7e1224c1d4835d0ed502b15a7bdbb69519981f7fd589231b8609308d5f14fba20e766b
diff --git a/games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0.ebuild b/games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0.ebuild
new file mode 100644
index 000000000000..964d4b90b708
--- /dev/null
+++ b/games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit eutils games
+
+DESCRIPTION="Non-official map pack for Eternal Lands"
+HOMEPAGE="http://maps.el-pl.org/"
+SRC_URI="mirror://gentoo/${P}.zip"
+LICENSE="CC-BY-NC-SA-3.0"
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+
+IUSE=""
+
+DEPEND="games-rpg/eternal-lands-data[bloodsuckermaps]"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+src_install() {
+ insopts -m 0660
+ insinto "${GAMES_DATADIR}/eternal-lands"
+ doins -r maps || die "doins failed"
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Note that the Bloodsucker Maps are not official maps and are not"
+ elog "supported by the Eternal Lands team."
+ elog "Please do not bother Eternal Lands staff about bugs with the maps."
+}
diff --git a/games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0_p20110618.ebuild b/games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0_p20110618.ebuild
new file mode 100644
index 000000000000..a25ad27fdb7d
--- /dev/null
+++ b/games-rpg/eternal-lands-bloodsucker/eternal-lands-bloodsucker-3.0_p20110618.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils games
+
+DESCRIPTION="Non-official map pack for Eternal Lands"
+HOMEPAGE="http://maps.el-pl.org/"
+SRC_URI="https://dev.gentoo.org/~rich0/distfiles/${P}.tar.bz2"
+LICENSE="CC-BY-NC-SA-3.0"
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+
+IUSE=""
+
+DEPEND="games-rpg/eternal-lands-data[bloodsuckermaps]"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+src_install() {
+ insopts -m 0660
+ insinto "${GAMES_DATADIR}/eternal-lands"
+ doins -r maps
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Note that the Bloodsucker Maps are not official maps and are not"
+ elog "supported by the Eternal Lands team."
+ elog "Please do not bother Eternal Lands staff about bugs with the maps."
+}
diff --git a/games-rpg/eternal-lands-bloodsucker/metadata.xml b/games-rpg/eternal-lands-bloodsucker/metadata.xml
new file mode 100644
index 000000000000..87c0e5ac4cf8
--- /dev/null
+++ b/games-rpg/eternal-lands-bloodsucker/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>rich0@gentoo.org</email>
+ <name>Rich Freeman</name>
+</maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>The Bloodsucker Maps are an add-on for Eternal Lands and provide enhanced non-official maps for the game.</longdescription>
+</pkgmetadata>
diff --git a/games-rpg/eternal-lands-data/Manifest b/games-rpg/eternal-lands-data/Manifest
new file mode 100644
index 000000000000..24d03a528b54
--- /dev/null
+++ b/games-rpg/eternal-lands-data/Manifest
@@ -0,0 +1,10 @@
+DIST EL_sound_191.zip 43002046 SHA256 407a8220a7e2e9dc9a176e8868de2734565bf9bc83cb59a5a5c12571f29e157c SHA512 cc4103d6cdafffcf3926f0e90ca2555b09b22d9e00947f9e1790cfa5b7c945cff16f935ede886b498ac86028b77e8f1ead6eecab2d59848100233eed373c1310 WHIRLPOOL dbe4219e5702abb446cc62b9c33789126a96c575cbce3e26f3e134a8be3de7cbdd5ab34f4bb70e6428823d910bdbac8009fbbafbccd29f2f0d616a82e265e09d
+DIST el_linux_192.zip 65888714 SHA256 bd700258110b8ac7b540cce1517777ca718c22cb5330989e097206adf962b8e9 SHA512 c3e1ba88d39ca9083b479ba5ef308f8e3df93ba9257c1f562c6dc8accece558b89079f0eec533bd431ffc08c82e28e9dc90a04c2a6ba956fae53718e7aad4bab WHIRLPOOL 7e6da764dd6cd056ceb584e625a5d241be6a452011901ee46ed810aa341e211f306289d1b45cd173182b5c1f6cac8bb4d95327aa2ae526fbb124cd8d8eec2710
+DIST el_linux_193.zip 67104165 SHA256 32881313e48bf9a6520dc77b55ef1f4ede3b8922383c4976ca38d0aceeea628a SHA512 95de984998bfc27525b7986895d1154a74c6e4dbffb9bf115c1284213acf56a470967b55e0507ed6aacd67f972bce4689aa7cffb9acd16d92bf448f195dc4f0c WHIRLPOOL 43206d9b6e349fb2419d53c53d8169750044dc577d19d1fa30daa93adccee08180dea32faf8e4aeef7a0e0c9d8f7bdd3cdc88e4f06c59876350ffa29b4f1cdf8
+DIST el_music_full-20060803.zip 65511882 SHA256 1ea4de25081034ac684aaebf127ab6ca8524ba5367532863d84d63837dd631ec SHA512 dbd24cb20331d3640b3a5891faaf88aa0e71ba0564dfde347f2ea0fcb7e0f2700f1324ee8e988c551efb943183bbc823d4ee0373ed2b1f6d0300df76e25a524c WHIRLPOOL 3ab2a25cfab24a0e621dcb47db4a2e5edef96ae50b4cbc8d5e2e8c081453cf20ad7db5c5520d7cc859b1340fe8b52fde45c4bf02edb3f267ca0eaa113b0c596c
+EBUILD eternal-lands-data-1.9.2-r1.ebuild 3052 SHA256 a9bf4b14302f9b9791dee4f7e8ab4e4366c569454c2dcb80e0a21f98851df67b SHA512 045c0d44a0b7001e3d2c4215976f366b92e4b31e49dac68361e2546d3420f1219ad7e8dbdf0bc38452c7fd6eb5fd3be36bbe63c87d9d645e2f9388c2d2ac4a73 WHIRLPOOL 47b2f076e5e4b2712fec6e5b511fea5d39034ad36ed19901f9e758ddb6de7dbcf41befcd96bedf55a5c99a87400d501e6a223e8de06b6b6a9cba46b9109bded8
+EBUILD eternal-lands-data-1.9.3-r1.ebuild 3226 SHA256 c062ed308dc5618887d65e8474e34b273bd5bef84fa0eb55b9c8f0b9b1a8cdb2 SHA512 34ccbd924c6c11fc12a24755773d7ccc75a0e02ccc91cf64fdc8dcce9fec77c682184e4e419c043405d26317a9b0eb594436202f8a9343423d43712947d77744 WHIRLPOOL 36643b0b0d8b623ff9a7a202c837a37f4c45acdcc764ddfa6977a19dd373753c1e09a20b564b91b37d10e5152c46ad8a2ddfa6ee2e6e9f8c558e1c0d90ebcf10
+EBUILD eternal-lands-data-1.9.3.ebuild 3052 SHA256 3c82d02efdc6d3715376fdcb515bd5ebd5e3b7efe7508d4d8b114ef7fc0d8b7c SHA512 eeb570928b01422ad12d00be9f60b7a51944430782785718f03dae58ae7ba798cd1bcedb184e5a5ab28a8ecdcbc9c12eede79e4de17c7b1b4393763ba9edc336 WHIRLPOOL 47e81eafa8060c69670ebc09c54e79bb3713c7a9256084f277811936f3fa4e897caf6eb8d93562dad8f09762305895bdc4a22c3c5e61ef294a66c727b6096eac
+MISC ChangeLog 3016 SHA256 e73b718c072104412db7a6afe3f77fd2a9e1f7ae038b6a852c93d2be285ded41 SHA512 59e0e980e18458a1ae4c8453e2e85a31be94869991ecf73475fc756c159edc66a264aa0c648685d18eb72a5cbc124ee2067b1b77390469c44df243bead4b6810 WHIRLPOOL ff635be9c6a4ab3dba5adb744ff094875b9595c927080424b817bbbb73b168c649eb6791312e18054d86c0e5611f80833b1b691fa742fc53e88287342f014e2a
+MISC ChangeLog-2015 5383 SHA256 b5c00c1980de2d2b840c50f715dc27fee95a39565a4ef4159ee4b0a06c0b67c4 SHA512 6a6b6306045ebe6a3a27518812aa6cc57b32fa1b61a36f3dd903383812e03d1f946cddc8d28611f83ff7504f1333408a0b783288db89314106ec24978711c42d WHIRLPOOL 5946bf9aae499c3c0728570858b4bed3f5df84a7d72da0cf07b49e94cf3c5763d70c6c61c28e79baec003df646155b191589a1d55c67cd9de4ee8b8c677db236
+MISC metadata.xml 693 SHA256 97955520c254e91fa997dd9aa5c3f2bef0fc6621ac84f768c74afb8f6b6a841b SHA512 f7f4137895332025da54423286dbb10632475d5c9e0e8d6a5657cf281b0c44a9ee4c58760a28a8d05f8ab05d8a1eae2d4c06fc329bba87793411a3e0d4372b4e WHIRLPOOL af25a988dc89d82e3600b212bf98765843a8c1afe06ebf4aaed7473dd074a1046200db2bd42cabf62e5b0d56cd3dc0cbb9dad9bb52b5e5c452420df807e74203
diff --git a/games-rpg/eternal-lands-data/eternal-lands-data-1.9.2-r1.ebuild b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.2-r1.ebuild
new file mode 100644
index 000000000000..50ccc62c5894
--- /dev/null
+++ b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.2-r1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit games
+
+MUSIC_DATE="20060803"
+
+MY_PV="${PV//_/}"
+MY_PV="${MY_PV//./}"
+MY_PN="${PN%*-data}"
+DESCRIPTION="An online MMORPG written in C and SDL"
+HOMEPAGE="http://www.eternal-lands.com"
+SRC_URI="http://www.eternal-lands.com/el_linux_192.zip
+ music? ( mirror://gentoo/el_music_full-${MUSIC_DATE}.zip )
+ sound? ( http://www.eternallands.co.uk/EL_sound_191.zip )"
+# WARNING: The music file is held at
+# http://www.eternal-lands.com/page/music.php
+# We only mirror it so that it is versioned by the date we mirrored it
+# AND prefixed with el_ so as not cause any conflicts. Maybe oneday they will
+# version their music, maybe not.
+
+LICENSE="eternal_lands"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="music sound bloodsuckermaps"
+
+DEPEND="app-arch/unzip
+ !bloodsuckermaps? ( !games-rpg/eternal-lands-bloodsucker )"
+
+PDEPEND="bloodsuckermaps? ( >=games-rpg/eternal-lands-bloodsucker-3.0_p20110618 )"
+
+# Maybe one day upstream will do things in a consistent way.
+S="${WORKDIR}/el_linux"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Move our music files to the correct directory
+ if use music ; then
+ mkdir music
+ mv ../*.ogg ../*.pll music || die
+ fi
+}
+
+src_install() {
+ # These are provided by eternal-lands ebuild
+
+ rm license.txt
+ rm commands.lst
+
+ # don't install maps if using alternate maps
+ if use bloodsuckermaps ; then
+ rm maps/anitora.dds maps/cave1.dds maps/cont2map10.dds
+ rm maps/cont2map11.dds maps/cont2map12.dds maps/cont2map13.dds
+ rm maps/cont2map14.dds maps/cont2map15.dds maps/cont2map16.dds
+ rm maps/cont2map17.dds maps/cont2map18.dds maps/cont2map19.dds
+ rm maps/cont2map1.dds maps/cont2map20.dds maps/cont2map21.dds
+ rm maps/cont2map22.dds maps/cont2map23.dds maps/cont2map24.dds
+ rm maps/cont2map2.dds maps/cont2map3.dds maps/cont2map4.dds
+ rm maps/cont2map5.dds maps/cont2map6.dds maps/cont2map7.dds
+ rm maps/cont2map8.dds maps/cont2map9.dds maps/irilion.dds
+ rm maps/legend.dds maps/map11.dds maps/map12.dds
+ rm maps/map13.dds maps/map14f.dds maps/map15f.dds
+ rm maps/map2.dds maps/map3.dds maps/map4f.dds
+ rm maps/map5nf.dds maps/map6nf.dds maps/map7.dds
+ rm maps/map8.dds maps/map9f.dds maps/seridia.dds
+ rm maps/startmap.dds
+ fi
+
+ insopts -m 0660
+ insinto "${GAMES_DATADIR}/${MY_PN}"
+ doins -r 2dobjects 3dobjects actor_defs animations maps meshes \
+ particles skeletons shaders textures languages shaders skybox \
+ *.lst 3dobjects.txt *.xml \
+ || die "doins failed"
+
+ if use music ; then
+ doins -r music || die "doins music failed"
+ fi
+
+ # Removed sound from above - need to handle sound support
+
+ cd "${WORKDIR}"
+ if use sound ; then
+ doins -r sound || die "doins sound failed"
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ # Ensure that the files are writable by the game group for auto
+ # updating.
+ chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${MY_PN}"
+
+ # Make sure new files stay in games group
+ find "${ROOT}/${GAMES_DATADIR}/${MY_PN}" -type d -exec chmod g+sx {} \;
+}
diff --git a/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3-r1.ebuild b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3-r1.ebuild
new file mode 100644
index 000000000000..5a4e5d454bcb
--- /dev/null
+++ b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3-r1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit games
+
+MUSIC_DATE="20060803"
+
+MY_PV="${PV//_/}"
+MY_PV="${MY_PV//./}"
+MY_PN="${PN%*-data}"
+DESCRIPTION="An online MMORPG written in C and SDL"
+HOMEPAGE="http://www.eternal-lands.com"
+SRC_URI="http://www.eternal-lands.com/el_linux_193.zip
+ music? ( mirror://gentoo/el_music_full-${MUSIC_DATE}.zip )
+ sound? ( http://www.eternallands.co.uk/EL_sound_191.zip )"
+# WARNING: The music file is held at
+# http://www.eternal-lands.com/page/music.php
+# We only mirror it so that it is versioned by the date we mirrored it
+# AND prefixed with el_ so as not cause any conflicts. Maybe oneday they will
+# version their music, maybe not.
+
+LICENSE="eternal_lands"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="music sound bloodsuckermaps"
+
+DEPEND="app-arch/unzip
+ !bloodsuckermaps? ( !games-rpg/eternal-lands-bloodsucker )"
+
+PDEPEND="bloodsuckermaps? ( >=games-rpg/eternal-lands-bloodsucker-3.0_p20110618 )"
+
+# Maybe one day upstream will do things in a consistent way.
+S="${WORKDIR}/el_linux"
+
+src_prepare() {
+ # Move our music files to the correct directory
+ if use music ; then
+ mkdir music
+ mv ../*.ogg ../*.pll music || die
+ fi
+
+ # Fix assertion error with >=libxml2-2.9 (see bug #449352)
+ xmllint --noent actor_defs/actor_defs.xml > actor_defs.xml || die "Failed parsing actor_defs.xml"
+ mv actor_defs.xml actor_defs
+}
+
+src_install() {
+ # These are provided by eternal-lands ebuild
+
+ rm license.txt
+ rm commands.lst
+
+ # don't install maps if using alternate maps
+ if use bloodsuckermaps ; then
+ rm maps/anitora.dds maps/cave1.dds maps/cont2map10.dds
+ rm maps/cont2map11.dds maps/cont2map12.dds maps/cont2map13.dds
+ rm maps/cont2map14.dds maps/cont2map15.dds maps/cont2map16.dds
+ rm maps/cont2map17.dds maps/cont2map18.dds maps/cont2map19.dds
+ rm maps/cont2map1.dds maps/cont2map20.dds maps/cont2map21.dds
+ rm maps/cont2map22.dds maps/cont2map23.dds maps/cont2map24.dds
+ rm maps/cont2map2.dds maps/cont2map3.dds maps/cont2map4.dds
+ rm maps/cont2map5.dds maps/cont2map6.dds maps/cont2map7.dds
+ rm maps/cont2map8.dds maps/cont2map9.dds maps/irilion.dds
+ rm maps/legend.dds maps/map11.dds maps/map12.dds
+ rm maps/map13.dds maps/map14f.dds maps/map15f.dds
+ rm maps/map2.dds maps/map3.dds maps/map4f.dds
+ rm maps/map5nf.dds maps/map6nf.dds maps/map7.dds
+ rm maps/map8.dds maps/map9f.dds maps/seridia.dds
+ rm maps/startmap.dds
+ fi
+
+ insopts -m 0660
+ insinto "${GAMES_DATADIR}/${MY_PN}"
+ doins -r 2dobjects 3dobjects actor_defs animations maps meshes \
+ particles skeletons shaders textures languages shaders skybox \
+ *.lst 3dobjects.txt *.xml \
+ || die "doins failed"
+
+ if use music ; then
+ doins -r music || die "doins music failed"
+ fi
+
+ # Removed sound from above - need to handle sound support
+
+ cd "${WORKDIR}"
+ if use sound ; then
+ doins -r sound || die "doins sound failed"
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ # Ensure that the files are writable by the game group for auto
+ # updating.
+ chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${MY_PN}"
+
+ # Make sure new files stay in games group
+ find "${ROOT}/${GAMES_DATADIR}/${MY_PN}" -type d -exec chmod g+sx {} \;
+}
diff --git a/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3.ebuild b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3.ebuild
new file mode 100644
index 000000000000..65c8d6cf6c1a
--- /dev/null
+++ b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit games
+
+MUSIC_DATE="20060803"
+
+MY_PV="${PV//_/}"
+MY_PV="${MY_PV//./}"
+MY_PN="${PN%*-data}"
+DESCRIPTION="An online MMORPG written in C and SDL"
+HOMEPAGE="http://www.eternal-lands.com"
+SRC_URI="http://www.eternal-lands.com/el_linux_193.zip
+ music? ( mirror://gentoo/el_music_full-${MUSIC_DATE}.zip )
+ sound? ( http://www.eternallands.co.uk/EL_sound_191.zip )"
+# WARNING: The music file is held at
+# http://www.eternal-lands.com/page/music.php
+# We only mirror it so that it is versioned by the date we mirrored it
+# AND prefixed with el_ so as not cause any conflicts. Maybe oneday they will
+# version their music, maybe not.
+
+LICENSE="eternal_lands"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="music sound bloodsuckermaps"
+
+DEPEND="app-arch/unzip
+ !bloodsuckermaps? ( !games-rpg/eternal-lands-bloodsucker )"
+
+PDEPEND="bloodsuckermaps? ( >=games-rpg/eternal-lands-bloodsucker-3.0_p20110618 )"
+
+# Maybe one day upstream will do things in a consistent way.
+S="${WORKDIR}/el_linux"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Move our music files to the correct directory
+ if use music ; then
+ mkdir music
+ mv ../*.ogg ../*.pll music || die
+ fi
+}
+
+src_install() {
+ # These are provided by eternal-lands ebuild
+
+ rm license.txt
+ rm commands.lst
+
+ # don't install maps if using alternate maps
+ if use bloodsuckermaps ; then
+ rm maps/anitora.dds maps/cave1.dds maps/cont2map10.dds
+ rm maps/cont2map11.dds maps/cont2map12.dds maps/cont2map13.dds
+ rm maps/cont2map14.dds maps/cont2map15.dds maps/cont2map16.dds
+ rm maps/cont2map17.dds maps/cont2map18.dds maps/cont2map19.dds
+ rm maps/cont2map1.dds maps/cont2map20.dds maps/cont2map21.dds
+ rm maps/cont2map22.dds maps/cont2map23.dds maps/cont2map24.dds
+ rm maps/cont2map2.dds maps/cont2map3.dds maps/cont2map4.dds
+ rm maps/cont2map5.dds maps/cont2map6.dds maps/cont2map7.dds
+ rm maps/cont2map8.dds maps/cont2map9.dds maps/irilion.dds
+ rm maps/legend.dds maps/map11.dds maps/map12.dds
+ rm maps/map13.dds maps/map14f.dds maps/map15f.dds
+ rm maps/map2.dds maps/map3.dds maps/map4f.dds
+ rm maps/map5nf.dds maps/map6nf.dds maps/map7.dds
+ rm maps/map8.dds maps/map9f.dds maps/seridia.dds
+ rm maps/startmap.dds
+ fi
+
+ insopts -m 0660
+ insinto "${GAMES_DATADIR}/${MY_PN}"
+ doins -r 2dobjects 3dobjects actor_defs animations maps meshes \
+ particles skeletons shaders textures languages shaders skybox \
+ *.lst 3dobjects.txt *.xml \
+ || die "doins failed"
+
+ if use music ; then
+ doins -r music || die "doins music failed"
+ fi
+
+ # Removed sound from above - need to handle sound support
+
+ cd "${WORKDIR}"
+ if use sound ; then
+ doins -r sound || die "doins sound failed"
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ # Ensure that the files are writable by the game group for auto
+ # updating.
+ chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${MY_PN}"
+
+ # Make sure new files stay in games group
+ find "${ROOT}/${GAMES_DATADIR}/${MY_PN}" -type d -exec chmod g+sx {} \;
+}
diff --git a/games-rpg/eternal-lands-data/metadata.xml b/games-rpg/eternal-lands-data/metadata.xml
new file mode 100644
index 000000000000..b159e2e80c62
--- /dev/null
+++ b/games-rpg/eternal-lands-data/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>rich0@gentoo.org</email>
+ <name>Rich Freeman</name>
+</maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>Eternal Lands is a FREE MMORPG (massively multiplayer online
+ role playing game)</longdescription>
+<use>
+ <flag name="bloodsuckermaps">Will install Bloodsucker's Maps in place of the official map files.</flag>
+ <flag name="music">Adds in-game music.</flag>
+ <flag name="sound">Adds in-game sound effects.</flag>
+</use>
+</pkgmetadata>
diff --git a/games-rpg/eternal-lands/Manifest b/games-rpg/eternal-lands/Manifest
new file mode 100644
index 000000000000..64ae1959d593
--- /dev/null
+++ b/games-rpg/eternal-lands/Manifest
@@ -0,0 +1,15 @@
+AUX eternal-lands-1.9.1-libpng.patch 604 SHA256 a60bd9a16aa965e451a747bd43a5650af9d62b53a2e6fae93a6b3d94b2357e60 SHA512 41700e5ffaf749a691b7588006ca28142477690d4d4f1d0b1517e5d5188c2932fa8a08c1538cc36198fc19a7f8fa58646a2e51fd7500e3f175b0e55e0903e0df WHIRLPOOL cc62a5b008b8fe9c6fb51ba139e70f154ca1a1f5f11146accba4ae62a532b009d5c9f9c92b80e6716b833db108b90111317a0bdea97a968df43607a133a9a8aa
+AUX eternal-lands-1.9.2-glext.patch 296 SHA256 fa66cc5793df66c804c02395587b1866b9ce843a2eea2a6161003ff9dad37bbc SHA512 523fff594a86e770a573731092e7cc9d02121f183ac1d9d123acff2b082c00f0a9111e2262313f2f208b1b00a6a6a61d19eace36e8da0baa40ca5e3aecc7fdaf WHIRLPOOL 909cf73906dde12b7e17af02ff4ab1722d6325c6f0122db964a72863553ceb388eca35e8ea94b0d982da039ab19e0a4171765799264499aa3585afa9ff4f72ed
+AUX eternal-lands-1.9.3-build.patch 16222 SHA256 cc4dea9ea06fb62cd662cf07cd478f6e3d0f5afa2c7730c63943909cf2676ef8 SHA512 b268c0f1dab0f86bfcea3d13122983c4efdbf9941d1851618a01986b2fc36139350e830c6838c229f7ffbb69fd51a46d06277eb43167a47e192b86db710dcfc7 WHIRLPOOL 4672c9bf0ca77703d18e676f072e7bca2354f4a9fa1d048bba2319b63ceabfcc5b2cc653235490fef33f677b59938d37ee0a501122942a21a30932041175e817
+AUX eternal-lands-1.9.3-glbuild.patch 581 SHA256 333e0e0bcc96b6ec3776415ad8a6793e271628b41c3733d9f1aeeb9092142673 SHA512 583b306f98975e8d86314519cfd0034870d07a2d908de9ac2fae9eba50ce90acc7f8949fbe40379a13308ebfdf33379f5801ccfe83d67c318b8edc3ddc0a9ed5 WHIRLPOOL d695d1f9fa668f1246f934fe0ee845b43e56533800ce97513b1d72341e8f88aebc5b8600f005a539253bc21e18426a5ee909f9311bc73797f4189fdda584a638
+AUX eternal-lands-1.9.3-minizip.patch 2142 SHA256 17101affdb96dff6de028dc1729d6d62237d8ff685d986c77806ed8721afcb5d SHA512 2a560c99504a649de7d01d08bb4d92cdd803e6c91b2ef2d1e82449268e8248b468fb8bb855e8e73396e8d4e5e2def44bda9df07f654b730bb25b509550d0f826 WHIRLPOOL 3cbb12da0a6f0a8f25046490a0692a84ed2f91fc1d87f2548f79321478607275c471ed5549df2254f2599713560956607df2f3d4cb781ca9419cdbdf78897577
+DIST elc_1.9.2-20110618.tar.bz2 2164208 SHA256 0226c95dc9e0a93713d2d8efcba7f75fbb97efe9b2b4f3b527e2851db69a0fad SHA512 8ce7465fbe40dbc20efff07578d9abea9711fc134302880368568f1057d32f506c478ee66c63953ea5ed5eabd7ef6afda55524dcf521facc9cd368dbc0273a79 WHIRLPOOL cecb8cf4faf9d14411f09834f885583b9f8d752524f57313e58c831be3be4fd8ef4277ae6ac26b950f661c743c09f3b61fc0762a37d0602c7f2d75015cd4ea26
+DIST elc_1.9.3-20120213.tar.bz2 2401172 SHA256 b5ca11a2fc8db72003c6719ed031f9a7536865647a0278fa45ad8426ce88599e SHA512 3580d3ceb94094443ef25f6e4880c9ffe3fff256c8d8e6657b4e0683a05184da9e6a76264557d2065a8187e3d36febd9d30ff5adff83a17607b1e478be90fabc WHIRLPOOL 12461eb7c4e453c7f9e3b607ce6f0c935e78c37e04a5736dcbf59775324e9280fc7f6302792d35984a7ae21ad4e48e35854568400df279714131de4a39b0a075
+DIST eternal-lands.png 9955 SHA256 dd7d45cd9948fe7875ebd0bfcd1925d9b34e7606a223faf61d37a6dd2cd433fb SHA512 c77571c949bb43fa7f95ae58f863ed972cfc76e184de5d0fa0a3599e4f7539f6334b843233b61fc807c90ef270d87cd57494510ce559427b592d255c198729bf WHIRLPOOL 760a339efeda97dd517ebc6dc4e222a77d35fb936002ff4f3ec571b9845ba53ce677dc3ce1a2206bb49a0b33efda231f5677fff25aadb700c191d9f7e17a778f
+EBUILD eternal-lands-1.9.2-r1.ebuild 4055 SHA256 b22bc538bc57bb810a3477b4d485520ec2a08ad963cbb2872d09ce4fc89beb41 SHA512 65977c49f4d113be4ef4f0389ba4e3605f0c72a229a4ee03e7e66a6d0322029dc9e1591cb7e92e22e16c0ce85df8c8b52930874c264ea9de6336cd0aaf09e0ec WHIRLPOOL cdb0423b13753e885e51e5127d8021443de776428e2823a211f2bd339ad396132ac891caedb9968eee593f3cbc7a05a6411ccde4ab1f55091438a63726ad6bd5
+EBUILD eternal-lands-1.9.2.ebuild 3952 SHA256 c3fcf5b4a781d8e854d2dbd08cf81b29015be98c07760bcac4397a990d5ffc1b SHA512 1813a39956d13c65b07c3cb77022bea73b47dfb9767cca63fbf0e6c6f147395ceb90fc231bd3bb9efffdef25a05094917104e647f3d6179e3be50160fabdf78f WHIRLPOOL 2037a7b07ea8c3f1512ed0100a84ef6e870c169432b6e64c9b38b09ce419c9a29b1ed8e55b18a8f762395991379f5e3234ba9392cf9c1ca2961b3b963dc85074
+EBUILD eternal-lands-1.9.3-r2.ebuild 2853 SHA256 0161605e41c09929e1c2428c3fd6c5d97cc8e0774002b3f3697f4ed9c84ac916 SHA512 d67cbfb1b521709f783ddb4429de88500efe327c89cf1a9c37043efa8a86fa28877621c158cd867a600b9b7e93818fc5b78aefa3cb967cb631d76321ec37bfcf WHIRLPOOL 34a4fb022445743a39f115cee34f807ae61defd6ceb8efc5953695ae0f3e18068dd23d77593c0cb25304bfcd4d5b7567e1f2d0d0bdad40ca09eac4031c9a97df
+EBUILD eternal-lands-1.9.3.ebuild 4031 SHA256 e02fd8f1c534948000edc12d24f8ed589d43ede8fcb3d092f00e83837bc142f6 SHA512 ae59954a4c34092f7991bfa0e865d3f43a75934fbef70f569561f40307dd6a23fa99b57f95e99d2ef86a1629cd1777cbe4f5e2d93c8409126dd471117470f5a1 WHIRLPOOL c37144be05267b2a44477ecadd4460b782b4704f0b86bbf1627622411c5a626101bb47212d5e9ca3e64445013da4a1a0f2fce7bf6de6d2e829c71f6dc0293c79
+MISC ChangeLog 3471 SHA256 0212366d4ef58e2a42a49f64ce404b4af49c533443ff18bb3a7f509ac3c0c1c1 SHA512 f377a0646ad33cdaa7c75bd40f368e0baad652072e2f2b022be69beb075d8a971403de15edead95f66fc219a6694140b259ed9b207c8a39f3a3616d36bc1c650 WHIRLPOOL eb0ece214fb5b79f8144ad39f6a14f688a2650a7ad9dd3a4581d0fbcd8cfeb98fd4a913a2fdc1562bdef537ca1f006d077df04dbf3f6098c12f4db6d539874cf
+MISC ChangeLog-2015 12948 SHA256 87844d1128e65b4a05eadedbed478956e35a21eec339e54fd5946ef4f55abc6f SHA512 e75b0aab2871ba8f5fb1c738208cb7011a3dff2d22c941f9e25ee7647ce7c84baa2d13e7fe69a57852922f9678c962c5396475632afbc132ecbe04dda246102b WHIRLPOOL 46f61f460bcd9b1131ed29ba1896c1f2b7119e7e329e55731a02965bb54172a1fa4a3157a591bd9e2523e5caca380f96db50e2953ebbbdeb2b708d4d2ef5adf2
+MISC metadata.xml 473 SHA256 132dddcc31613183b7094263ea3d8ad5ede1fb2c4dce4a3a90354cbdd4ac26d3 SHA512 155747ce4853628667e2e66717b4d64df8f841194b4b1684aaaadb240393c3763ad0071f98140ed0ec36c47f134f3f0dd4c4d5b8bf91d3ab0df1aeaf7558dec0 WHIRLPOOL 4769424424cef1fa8d5efb3e2dbf82a8300fe533f83671ed4593c07bbfe0dc9326e2b71f28b90941ddeff6665375a401e8d25fabf1b808a174abb16b050eb0d3
diff --git a/games-rpg/eternal-lands/eternal-lands-1.9.2-r1.ebuild b/games-rpg/eternal-lands/eternal-lands-1.9.2-r1.ebuild
new file mode 100644
index 000000000000..70023bc26074
--- /dev/null
+++ b/games-rpg/eternal-lands/eternal-lands-1.9.2-r1.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils flag-o-matic games
+
+DESCRIPTION="An online MMORPG written in C and SDL"
+HOMEPAGE="http://www.eternal-lands.com"
+SRC_URI="https://dev.gentoo.org/~rich0/distfiles/elc_1.9.2-20110618.tar.bz2
+ https://dev.gentoo.org/~rich0/distfiles/eternal-lands.png"
+
+LICENSE="eternal_lands"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="debug doc kernel_linux"
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ virtual/opengl
+ virtual/glu
+ media-libs/libsdl[X]
+ media-libs/sdl-net
+ media-libs/sdl-image
+ media-libs/openal
+ media-libs/freealut
+ media-libs/libvorbis
+ dev-libs/libxml2
+ media-libs/cal3d[-16bit-indices]
+ media-libs/libpng
+ >=games-rpg/eternal-lands-data-1.9.2"
+
+DEPEND="${RDEPEND}
+ >=app-eselect/eselect-opengl-1.0.6-r1
+ app-arch/unzip
+ doc? ( app-doc/doxygen
+ media-gfx/graphviz )"
+
+#ECVS_SERVER="cvs.elc.berlios.de:/cvsroot/elc"
+#ECVS_MODULE="elc"
+#ECVS_USER="anonymous"
+#ECVS_LOCALNAME="elc"
+#ECVS_PASS=""
+#ECVS_CVS_OPTIONS="-dP -z3"
+#ECVS_BRANCH="elc_1_8_0"
+
+#S="${WORKDIR}/${ECVS_MODULE}"
+S="${WORKDIR}/elc"
+
+src_unpack() {
+# cvs_src_unpack
+ OPTIONS="-DDATA_DIR="\\\\\"${GAMES_DATADIR}/${PN}/\\\\\"""
+ S_CLIENT="${WORKDIR}/elc"
+ BROWSER="firefox"
+ unpack ${A}
+ cd "${S}"
+}
+
+src_prepare() {
+ # Add debugging options
+ if use debug ; then
+ OPTIONS="${OPTIONS} -DMEMORY_DEBUG"
+ append-flags -ggdb
+ fi
+
+ # Clean compile flags (make Gentoo friendly)
+ sed -i \
+ -e "s@CFLAGS=\$(PLATFORM) \$(CWARN) -O0 -ggdb -pipe@CFLAGS = ${CFLAGS} ${OPTIONS} @g" \
+ -e "s@CXXFLAGS=\$(PLATFORM) \$(CXXWARN) -O0 -ggdb -pipe@CXXFLAGS = ${CXXFLAGS} ${OPTIONS} @g" \
+ -e 's/lopenal/lopenal -l alut/' \
+ Makefile.linux || die "sed failed"
+
+ sed -i \
+ -e 's/#browser/browser/g' \
+ -e "s/browser = mozilla/#browser = ${BROWSER}/g" \
+ -e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \
+ el.ini || die "sed failed"
+
+ # Support BSD in the Linux makefile - it's easier
+ use kernel_linux || sed -i \
+ -e 's/^CFLAGS=.*/& -DBSD/' \
+ Makefile.linux || die "sed failed"
+
+ # Clean up library flag order for --as-needed
+# sed -i -e 's/@$(LINK) $(CFLAGS) $(LDFLAGS) -o $(EXE) $(OBJS)/@$(LINK) $(CFLAGS) -o $(EXE) $(OBJS) $(LDFLAGS)/' Makefile.linux
+
+ # Finally, update the server
+ sed -i -e '/#server_address =/ s/.*/#server_address = game.eternal-lands.com/' \
+ el.ini || die "sed failed"
+
+ sed -i -e 's:FEATURES:EL_FEATURES:' make.defaults
+ sed -i -e 's:FEATURES:EL_FEATURES:' Makefile.linux
+
+ if use debug; then
+ sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' make.defaults
+ sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' Makefile.linux
+ fi
+
+ cp Makefile.linux Makefile
+
+ epatch "${FILESDIR}/${PN}-1.9.2-glext.patch"
+# epatch "${FILESDIR}/${PN}-1.9.1-libpng.patch"
+
+# Fix for Gentoo zlib OF redefine
+
+ sed -i '1i#define OF(x) x' `find -name "*.c"` || die "sed failed"
+}
+
+src_compile() {
+ emake || die "make failed"
+
+ if use doc; then
+ emake docs || die "Failed to create documentation, try with USE=-doc"
+ mv ./docs/html/ ../client || die "Failed to move documentation directory"
+ fi
+}
+
+src_install() {
+ doicon "${DISTDIR}/eternal-lands.png" ${PN}.png
+
+ newgamesbin el.x86.linux.bin el \
+ || die "newgamesbin failed"
+ make_desktop_entry el "Eternal Lands" \
+ || die "make_desktop_entry failed"
+ insopts -m 0660
+ insinto "${GAMES_DATADIR}/${PN}"
+
+ doins -r *.ini *.txt commands.lst \
+ || die "doins failed"
+
+ if use doc ; then
+ dohtml -r client/*
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Auto Update is now enabled in Eternal Lands"
+ elog "If an update occurs then the client will suddenly exit"
+ elog "Updates only happen when the game first loads"
+ elog "Please don't report this behaviour as a bug"
+
+ # Ensure that the files are writable by the game group for auto
+ # updating.
+ chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}"
+
+ # Make sure new files stay in games group
+ find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \;
+
+}
diff --git a/games-rpg/eternal-lands/eternal-lands-1.9.2.ebuild b/games-rpg/eternal-lands/eternal-lands-1.9.2.ebuild
new file mode 100644
index 000000000000..dfdd692983b3
--- /dev/null
+++ b/games-rpg/eternal-lands/eternal-lands-1.9.2.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils flag-o-matic games
+
+DESCRIPTION="An online MMORPG written in C and SDL"
+HOMEPAGE="http://www.eternal-lands.com"
+SRC_URI="https://dev.gentoo.org/~rich0/distfiles/elc_1.9.2-20110618.tar.bz2
+ https://dev.gentoo.org/~rich0/distfiles/eternal-lands.png"
+
+LICENSE="eternal_lands"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="debug doc kernel_linux"
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ virtual/opengl
+ virtual/glu
+ media-libs/libsdl[X]
+ media-libs/sdl-net
+ media-libs/sdl-image
+ media-libs/openal
+ media-libs/freealut
+ media-libs/libvorbis
+ dev-libs/libxml2
+ media-libs/cal3d[-16bit-indices]
+ media-libs/libpng
+ >=games-rpg/eternal-lands-data-1.9.2"
+
+DEPEND="${RDEPEND}
+ >=app-eselect/eselect-opengl-1.0.6-r1
+ app-arch/unzip
+ doc? ( app-doc/doxygen
+ media-gfx/graphviz )"
+
+#ECVS_SERVER="cvs.elc.berlios.de:/cvsroot/elc"
+#ECVS_MODULE="elc"
+#ECVS_USER="anonymous"
+#ECVS_LOCALNAME="elc"
+#ECVS_PASS=""
+#ECVS_CVS_OPTIONS="-dP -z3"
+#ECVS_BRANCH="elc_1_8_0"
+
+#S="${WORKDIR}/${ECVS_MODULE}"
+S="${WORKDIR}/elc"
+
+src_unpack() {
+# cvs_src_unpack
+ OPTIONS="-DDATA_DIR="\\\\\"${GAMES_DATADIR}/${PN}/\\\\\"""
+ S_CLIENT="${WORKDIR}/elc"
+ BROWSER="firefox"
+ unpack ${A}
+ cd "${S}"
+}
+
+src_prepare() {
+ # Add debugging options
+ if use debug ; then
+ OPTIONS="${OPTIONS} -DMEMORY_DEBUG"
+ append-flags -ggdb
+ fi
+
+ # Clean compile flags (make Gentoo friendly)
+ sed -i \
+ -e "s@CFLAGS=\$(PLATFORM) \$(CWARN) -O0 -ggdb -pipe@CFLAGS = ${CFLAGS} ${OPTIONS} @g" \
+ -e "s@CXXFLAGS=\$(PLATFORM) \$(CXXWARN) -O0 -ggdb -pipe@CXXFLAGS = ${CXXFLAGS} ${OPTIONS} @g" \
+ -e 's/lopenal/lopenal -l alut/' \
+ Makefile.linux || die "sed failed"
+
+ sed -i \
+ -e 's/#browser/browser/g' \
+ -e "s/browser = mozilla/#browser = ${BROWSER}/g" \
+ -e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \
+ el.ini || die "sed failed"
+
+ # Support BSD in the Linux makefile - it's easier
+ use kernel_linux || sed -i \
+ -e 's/^CFLAGS=.*/& -DBSD/' \
+ Makefile.linux || die "sed failed"
+
+ # Clean up library flag order for --as-needed
+# sed -i -e 's/@$(LINK) $(CFLAGS) $(LDFLAGS) -o $(EXE) $(OBJS)/@$(LINK) $(CFLAGS) -o $(EXE) $(OBJS) $(LDFLAGS)/' Makefile.linux
+
+ # Finally, update the server
+ sed -i -e '/#server_address =/ s/.*/#server_address = game.eternal-lands.com/' \
+ el.ini || die "sed failed"
+
+ sed -i -e 's:FEATURES:EL_FEATURES:' make.defaults
+ sed -i -e 's:FEATURES:EL_FEATURES:' Makefile.linux
+
+ if use debug; then
+ sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' make.defaults
+ sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' Makefile.linux
+ fi
+
+ cp Makefile.linux Makefile
+
+ epatch "${FILESDIR}/${PN}-1.9.2-glext.patch"
+# epatch "${FILESDIR}/${PN}-1.9.1-libpng.patch"
+}
+
+src_compile() {
+ emake || die "make failed"
+
+ if use doc; then
+ emake docs || die "Failed to create documentation, try with USE=-doc"
+ mv ./docs/html/ ../client || die "Failed to move documentation directory"
+ fi
+}
+
+src_install() {
+ doicon "${DISTDIR}/eternal-lands.png" ${PN}.png
+
+ newgamesbin el.x86.linux.bin el \
+ || die "newgamesbin failed"
+ make_desktop_entry el "Eternal Lands" \
+ || die "make_desktop_entry failed"
+ insopts -m 0660
+ insinto "${GAMES_DATADIR}/${PN}"
+
+ doins -r *.ini *.txt commands.lst \
+ || die "doins failed"
+
+ if use doc ; then
+ dohtml -r client/*
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Auto Update is now enabled in Eternal Lands"
+ elog "If an update occurs then the client will suddenly exit"
+ elog "Updates only happen when the game first loads"
+ elog "Please don't report this behaviour as a bug"
+
+ # Ensure that the files are writable by the game group for auto
+ # updating.
+ chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}"
+
+ # Make sure new files stay in games group
+ find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \;
+
+}
diff --git a/games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild b/games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild
new file mode 100644
index 000000000000..02a7b89440be
--- /dev/null
+++ b/games-rpg/eternal-lands/eternal-lands-1.9.3-r2.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic gnome2-utils games
+
+DESCRIPTION="An online MMORPG written in C and SDL"
+HOMEPAGE="http://www.eternal-lands.com"
+SRC_URI="mirror://gentoo/elc_1.9.3-20120213.tar.bz2
+ https://dev.gentoo.org/~rich0/distfiles/${PN}.png"
+
+LICENSE="eternal_lands"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="debug doc kernel_linux"
+
+RDEPEND="dev-libs/libxml2:=
+ media-libs/cal3d:=[-16bit-indices]
+ media-libs/freealut
+ media-libs/libpng:0=
+ media-libs/libsdl:=[X,opengl,video]
+ media-libs/libvorbis:=
+ media-libs/openal:=
+ media-libs/sdl-image:=
+ media-libs/sdl-net:=
+ >=games-rpg/eternal-lands-data-1.9.3
+ sys-libs/zlib:=[minizip]
+ virtual/glu
+ virtual/opengl
+ x11-libs/libX11:=
+ x11-libs/libXau:=
+ x11-libs/libXdmcp:=
+ x11-libs/libXext:="
+DEPEND="${RDEPEND}
+ >=app-eselect/eselect-opengl-1.0.6-r1
+ app-arch/unzip
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen
+ media-gfx/graphviz )
+ media-libs/glew"
+
+S="${WORKDIR}/elc"
+
+src_prepare() {
+ local BROWSER="firefox"
+
+ sed -i \
+ -e 's/#browser/browser/g' \
+ -e "s/browser = mozilla/#browser = ${BROWSER}/g" \
+ -e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \
+ el.ini || die "sed failed"
+
+ # Finally, update the server
+ sed -i -e '/#server_address =/ s/.*/#server_address = game.eternal-lands.com/' \
+ el.ini || die "sed failed"
+
+ epatch "${FILESDIR}/${PN}-1.9.3-glbuild.patch"
+ epatch "${FILESDIR}/${PN}-1.9.3-build.patch"
+ epatch "${FILESDIR}/${PN}-1.9.3-minizip.patch"
+
+ # remove bundled minizip
+ rm io/{crypt,ioapi,unzip,zip}.h || die
+ rm io/{ioapi,unzip,zip}.c || die
+
+ cp Makefile.linux Makefile
+}
+
+src_compile() {
+ emake \
+ DEBUG="$(usex debug)" \
+ BSD_KERNEL="$(usex !kernel_linux)" \
+ DATADIR="${GAMES_DATADIR}/${PN}/"
+
+ if use doc; then
+ emake docs
+ mv ./docs/html/ ../client || die "Failed to move documentation directory"
+ fi
+}
+
+src_install() {
+ dogamesbin el
+ make_desktop_entry el "Eternal Lands"
+
+ insopts -m 0660
+ insinto "${GAMES_DATADIR}/${PN}"
+
+ doins -r *.ini *.txt commands.lst
+
+ if use doc ; then
+ dohtml -r "${WORKDIR}"/client/*
+ fi
+
+ doicon -s 64 "${DISTDIR}/${PN}.png"
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+ elog "Auto Update is now enabled in Eternal Lands"
+ elog "If an update occurs then the client will suddenly exit"
+ elog "Updates only happen when the game first loads"
+ elog "Please don't report this behaviour as a bug"
+
+ # Ensure that the files are writable by the game group for auto
+ # updating.
+ chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}"
+
+ # Make sure new files stay in games group
+ find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \;
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/eternal-lands/eternal-lands-1.9.3.ebuild b/games-rpg/eternal-lands/eternal-lands-1.9.3.ebuild
new file mode 100644
index 000000000000..83bec66837a3
--- /dev/null
+++ b/games-rpg/eternal-lands/eternal-lands-1.9.3.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils flag-o-matic games
+
+DESCRIPTION="An online MMORPG written in C and SDL"
+HOMEPAGE="http://www.eternal-lands.com"
+SRC_URI="mirror://gentoo/elc_1.9.3-20120213.tar.bz2
+ https://dev.gentoo.org/~rich0/distfiles/eternal-lands.png"
+
+LICENSE="eternal_lands"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="debug doc kernel_linux"
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ virtual/opengl
+ virtual/glu
+ media-libs/libsdl[X]
+ media-libs/sdl-net
+ media-libs/sdl-image
+ media-libs/openal
+ media-libs/freealut
+ media-libs/libvorbis
+ dev-libs/libxml2
+ media-libs/cal3d[-16bit-indices]
+ media-libs/libpng
+ >=games-rpg/eternal-lands-data-1.9.2"
+
+DEPEND="${RDEPEND}
+ >=app-eselect/eselect-opengl-1.0.6-r1
+ app-arch/unzip
+ doc? ( app-doc/doxygen
+ media-gfx/graphviz )"
+
+#ECVS_SERVER="cvs.elc.berlios.de:/cvsroot/elc"
+#ECVS_MODULE="elc"
+#ECVS_USER="anonymous"
+#ECVS_LOCALNAME="elc"
+#ECVS_PASS=""
+#ECVS_CVS_OPTIONS="-dP -z3"
+#ECVS_BRANCH="elc_1_8_0"
+
+#S="${WORKDIR}/${ECVS_MODULE}"
+S="${WORKDIR}/elc"
+
+src_unpack() {
+# cvs_src_unpack
+ OPTIONS="-DDATA_DIR="\\\\\"${GAMES_DATADIR}/${PN}/\\\\\"""
+ S_CLIENT="${WORKDIR}/elc"
+ BROWSER="firefox"
+ unpack ${A}
+ cd "${S}"
+}
+
+src_prepare() {
+ # Add debugging options
+ if use debug ; then
+ OPTIONS="${OPTIONS} -DMEMORY_DEBUG"
+ append-flags -ggdb
+ fi
+
+ # Clean compile flags (make Gentoo friendly)
+ sed -i \
+ -e "s@CFLAGS=\$(PLATFORM) \$(CWARN) -O0 -ggdb -pipe@CFLAGS = ${CFLAGS} ${OPTIONS} @g" \
+ -e "s@CXXFLAGS=\$(PLATFORM) \$(CXXWARN) -O0 -ggdb -pipe@CXXFLAGS = ${CXXFLAGS} ${OPTIONS} @g" \
+ -e 's/lopenal/lopenal -l alut/' \
+ Makefile.linux || die "sed failed"
+
+ sed -i \
+ -e 's/#browser/browser/g' \
+ -e "s/browser = mozilla/#browser = ${BROWSER}/g" \
+ -e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \
+ el.ini || die "sed failed"
+
+ # Support BSD in the Linux makefile - it's easier
+ use kernel_linux || sed -i \
+ -e 's/^CFLAGS=.*/& -DBSD/' \
+ Makefile.linux || die "sed failed"
+
+ # Clean up library flag order for --as-needed
+# sed -i -e 's/@$(LINK) $(CFLAGS) $(LDFLAGS) -o $(EXE) $(OBJS)/@$(LINK) $(CFLAGS) -o $(EXE) $(OBJS) $(LDFLAGS)/' Makefile.linux
+
+ # Finally, update the server
+ sed -i -e '/#server_address =/ s/.*/#server_address = game.eternal-lands.com/' \
+ el.ini || die "sed failed"
+
+ sed -i -e 's:FEATURES:EL_FEATURES:' make.defaults
+ sed -i -e 's:FEATURES:EL_FEATURES:' Makefile.linux
+
+ if use debug; then
+ sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' make.defaults
+ sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' Makefile.linux
+ fi
+
+ cp Makefile.linux Makefile
+
+ epatch "${FILESDIR}/${PN}-1.9.2-glext.patch"
+# epatch "${FILESDIR}/${PN}-1.9.1-libpng.patch"
+
+# Fix for Gentoo zlib OF redefine
+
+ sed -i '1i#define OF(x) x' `find -name "*.c"` || die "sed failed"
+}
+
+src_compile() {
+ emake || die "make failed"
+
+ if use doc; then
+ emake docs || die "Failed to create documentation, try with USE=-doc"
+ mv ./docs/html/ ../client || die "Failed to move documentation directory"
+ fi
+}
+
+src_install() {
+ doicon "${DISTDIR}/eternal-lands.png" ${PN}.png
+
+ newgamesbin el.x86.linux.bin el \
+ || die "newgamesbin failed"
+ make_desktop_entry el "Eternal Lands" \
+ || die "make_desktop_entry failed"
+ insopts -m 0660
+ insinto "${GAMES_DATADIR}/${PN}"
+
+ doins -r *.ini *.txt commands.lst \
+ || die "doins failed"
+
+ if use doc ; then
+ dohtml -r client/*
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Auto Update is now enabled in Eternal Lands"
+ elog "If an update occurs then the client will suddenly exit"
+ elog "Updates only happen when the game first loads"
+ elog "Please don't report this behaviour as a bug"
+
+ # Ensure that the files are writable by the game group for auto
+ # updating.
+ chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}"
+
+ # Make sure new files stay in games group
+ find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \;
+
+}
diff --git a/games-rpg/eternal-lands/files/eternal-lands-1.9.1-libpng.patch b/games-rpg/eternal-lands/files/eternal-lands-1.9.1-libpng.patch
new file mode 100644
index 000000000000..953ab8ffefd7
--- /dev/null
+++ b/games-rpg/eternal-lands/files/eternal-lands-1.9.1-libpng.patch
@@ -0,0 +1,23 @@
+--- elc.orig/misc.c
++++ elc/misc.c
+@@ -311,7 +311,7 @@ int IMG_SavePNG_RW (SDL_Surface *face, S
+ }
+
+ /* Set error handling. */
+- if (setjmp(png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(png_ptr)))
+ {
+ /* If we get here, we had a problem reading the file */
+ IMG_SetError("Error writing the PNG file");
+@@ -360,10 +360,7 @@ done:
+ if (row_pointers != NULL)
+ free (row_pointers);
+
+- if (info_ptr != NULL && info_ptr->palette != NULL)
+- free (info_ptr->palette);
+-
+- png_destroy_write_struct (&png_ptr, (png_infopp)NULL);
++ png_destroy_write_struct (&png_ptr, &info_ptr);
+
+ return result;
+ }
diff --git a/games-rpg/eternal-lands/files/eternal-lands-1.9.2-glext.patch b/games-rpg/eternal-lands/files/eternal-lands-1.9.2-glext.patch
new file mode 100644
index 000000000000..f096d2fc4253
--- /dev/null
+++ b/games-rpg/eternal-lands/files/eternal-lands-1.9.2-glext.patch
@@ -0,0 +1,11 @@
+--- platform.h.orig 2011-06-18 13:55:09.704489907 -0400
++++ platform.h 2011-06-18 13:55:41.675544567 -0400
+@@ -79,7 +79,7 @@
+ #define GL_GLEXT_LEGACY
+ #include <GL/gl.h>
+ #include <GL/glu.h>
+- #include "glext.h"
++ #include <GL/glext.h>
+ #else // BSD
+ #include <GL/gl.h>
+ #include <GL/glu.h>
diff --git a/games-rpg/eternal-lands/files/eternal-lands-1.9.3-build.patch b/games-rpg/eternal-lands/files/eternal-lands-1.9.3-build.patch
new file mode 100644
index 000000000000..989bf2700d88
--- /dev/null
+++ b/games-rpg/eternal-lands/files/eternal-lands-1.9.3-build.patch
@@ -0,0 +1,314 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sun Jun 24 13:32:38 UTC 2012
+Subject: build system
+
+respect all flags
+respect compiler
+add options for DATADIR, BSD_KERNEL and DEBUG
+use proper pkgconfig calls
+remove needless build types
+rename EXE to "el"
+
+--- elc/Makefile.linux
++++ elc/Makefile.linux
+@@ -3,16 +3,54 @@
+ -include make.conf
+
+ # basic compiling and linking - rarely changed
+-OPTIONS = -DLINUX -DELC $(foreach FEATURE, $(FEATURES), -D$(FEATURE)) -D_7ZIP_ST
+-CFLAGS=$(PLATFORM) $(CWARN) -O0 -ggdb -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES)
+-_CFLAGS=$(PLATFORM) -O2 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES)
+-CXXFLAGS=$(PLATFORM) $(CXXWARN) -O0 -ggdb -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES)
+-_CXXFLAGS=$(PLATFORM) -O3 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES)
+-
+-PNG_SCREENSHOT_LIBS = -lpng
+-LDFLAGS=$(shell sdl-config --libs) $(shell xml2-config --libs) -lSDL_net -lSDL_image -lopenal $(XDIR) -lGL -lGLU -lcal3d -lm $(EXTRA_LIBS) -lz -lpng -lvorbis -lvorbisfile \
+- $(foreach FEATURE, $(FEATURES), $($(FEATURE)_LIBS))
+-_LDFLAGS=$(XDIR) -lGL -lpthread -lstdc++
++CC ?= gcc
++CXX ?= g++
++
++# some options
++DATADIR ?= /usr/share/games/eternal-lands
++
++CPPFLAGS += -DDATA_DIR=\"$(DATADIR)\" \
++ -DLINUX \
++ -DELC \
++ $(foreach FEATURE, $(EL_FEATURES), -D$(FEATURE)) \
++ -D_7ZIP_ST
++
++ifeq ($(BSD_KERNEL),yes)
++CPPFLAGS += -DBSD
++endif
++
++ifeq ($(DEBUG),yes)
++CPPFLAGS += -DMEMORY_DEBUG
++endif
++
++CFLAGS += $(shell sdl-config --cflags) \
++ $(shell xml2-config --cflags) \
++ -fno-strict-aliasing \
++ $(EXTRA_INCLUDES)
++
++CXXFLAGS += $(shell sdl-config --cflags) \
++ $(shell xml2-config --cflags) \
++ -fno-strict-aliasing \
++ $(EXTRA_INCLUDES)
++
++LIBS += $(shell pkg-config --libs x11) \
++ $(shell sdl-config --libs) \
++ $(shell xml2-config --libs) \
++ $(shell pkg-config --libs SDL_net) \
++ $(shell pkg-config --libs SDL_image) \
++ $(shell pkg-config --libs openal) \
++ $(shell pkg-config --libs freealut) \
++ $(shell pkg-config --libs gl) \
++ $(shell pkg-config --libs glu) \
++ $(shell pkg-config --libs cal3d) \
++ $(shell pkg-config --libs libpng) \
++ $(shell pkg-config --libs vorbis) \
++ $(shell pkg-config --libs vorbisfile) \
++ $(shell pkg-config --libs zlib) \
++ -lm \
++ $(EXTRA_LIBS) \
++ $(foreach FEATURE, $(EL_FEATURES), $($(FEATURE)_LIBS)) \
++ -lstdc++
+
+ # This works on Ubuntu 8.04 (LTS) at least
+ # Install these packages in addition to those required for a standard build
+@@ -59,7 +97,7 @@
+ xz/CpuArch.o xz/Delta.o xz/LzFind.o xz/Lzma2Dec.o xz/Lzma2Enc.o \
+ xz/LzmaDec.o xz/LzmaEnc.o xz/Sha256.o xz/Xz.o xz/XzCrc64.o xz/XzDec.o \
+ xz/XzEnc.o \
+- $(foreach FEATURE, $(FEATURES), $($(FEATURE)_COBJ))
++ $(foreach FEATURE, $(EL_FEATURES), $($(FEATURE)_COBJ))
+
+ CXXOBJS=actor_init.o cal3d_wrapper.o context_menu.o optimizer.o sendvideoinfo.o \
+ exceptions/extendedexception.o xml/xmlhelper.o quest_log.o \
+@@ -80,7 +118,7 @@
+ eye_candy/effect_mines.o eye_candy/effect_missile.o \
+ eye_candy/orbital_mover.o eye_candy/kepler_orbit.o \
+ eye_candy/effect_staff.o \
+- $(foreach FEATURE, $(FEATURES), $($(FEATURE)_CXXOBJ))
++ $(foreach FEATURE, $(EL_FEATURES), $($(FEATURE)_CXXOBJ))
+
+ OBJS=$(COBJS) $(CXXOBJS)
+ HEADER_DIRS = . books eye_candy io pawn fsaa engine xz
+@@ -89,24 +127,13 @@
+ DEP_FILES=$(foreach OBJ, $(COBJS), .deps/$(OBJ).P) $(foreach OBJ, $(CXXOBJS), .deps/$(OBJ).P)
+ #(shell echo $OBJ |sed s/\.o/\.P/))
+
+-EXE=el.x86.linux.bin
+-
+-ifndef CC
+-CC=gcc
+-endif
+-ifndef CXX
+-CXX=g++
+-endif
+-ifndef LINK
+-LINK=gcc
+-endif
++EXE=el
+
+ all: $(EXE)
+
+ # the compile targets
+ $(EXE): $(OBJS)
+- @echo " LINK $(EXE)"
+- @$(LINK) $(CFLAGS) -o $(EXE) $(OBJS) $(LDFLAGS)
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(EXE) $(OBJS) $(LIBS)
+
+ #recompile on Makefile or conf change
+ #.depend $(OBJS): Makefile.linux make.conf
+@@ -114,25 +141,19 @@
+ DEPS_MAGIC := $(shell mkdir .deps .deps/io .deps/shader .deps/eye_candy .deps/exceptions .deps/xz .deps/xml .deps/fsaa .deps/engine > /dev/null 2>&1 || :)
+
+ $(COBJS): %.o: %.c Makefile.linux make.conf
+- @echo " CC $@"
+- @if $(CC) $(CFLAGS) -MT '$@' -MD -MP -MF '.deps/$@.pp' -c $< -o $@; then \
++ @echo "$(CC) $(CFLAGS) $(CPPFLAGS) -MT '$@' -MD -MP -MF '.deps/$@.pp' -c $< -o $@"
++ @if $(CC) $(CFLAGS) $(CPPFLAGS) -MT '$@' -MD -MP -MF '.deps/$@.pp' -c $< -o $@; then \
+ mv ".deps/$@.pp" ".deps/$@.P"; \
+ else rm -f ".deps/$@.pp"; exit 1; \
+ fi
+
+ $(CXXOBJS): %.o: %.cpp Makefile.linux make.conf
+- @echo " CXX $@"
+- @if $(CXX) $(CXXFLAGS) -MT '$@' -MD -MP -MF '.deps/$@.pp' -c $< -o $@; then \
++ @echo "$(CXX) $(CXXFLAGS) $(CPPFLAGS) -MT '$@' -MD -MP -MF '.deps/$@.pp' -c $< -o $@"
++ @if $(CXX) $(CXXFLAGS) $(CPPFLAGS) -MT '$@' -MD -MP -MF '.deps/$@.pp' -c $< -o $@; then \
+ mv ".deps/$@.pp" ".deps/$@.P"; \
+ else rm -f ".deps/$@.pp"; exit 1; \
+ fi
+
+-release:
+- @$(MAKE) -f Makefile.linux 'CFLAGS=$(_CFLAGS)' 'CXXFLAGS=$(_CXXFLAGS)'
+-
+-static:
+- @$(MAKE) -f Makefile.linux 'CFLAGS=$(_CFLAGS)' 'CXXFLAGS=$(_CXXFLAGS)' 'LDFLAGS=$(_LDFLAGS)' 'OBJS=$(OBJS) $(STATICLIBS)'
+-
+ clean:
+ rm -f $(OBJS) $(EXE)
+
+@@ -140,8 +161,8 @@
+ cd docs && doxygen Doxyfile
+
+ .depend: $(foreach HEADER_DIR, $(HEADER_DIRS), $(wildcard $(HEADER_DIR)/*.h))
+- $(CC) $(CFLAGS) -MM $(patsubst %.o, %.c, $(COBJS)) >.depend
+- $(CXX) $(CXXFLAGS) -MM $(patsubst %.o, %.cpp, $(CXXOBJS)) >>.depend
++ $(CC) $(CFLAGS) $(CPPFLAGS) -MM $(patsubst %.o, %.c, $(COBJS)) >.depend
++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -MM $(patsubst %.o, %.cpp, $(CXXOBJS)) >>.depend
+
+ make.conf: make.defaults
+ @if (test -f $@ -a '$(UPDATE_CONF)' != 'yes'); \
+@@ -161,7 +182,7 @@
+ echo "\t#endinput" >> $@; \
+ echo "#endif" >> $@; \
+ echo "#define _features_included" >> $@; \
+- for feature in $(FEATURES); do \
++ for feature in $(EL_FEATURES); do \
+ echo "#define $$feature" >> $@; \
+ done
+
+--- elc/make.defaults
++++ elc/make.defaults
+@@ -1,71 +1,82 @@
+ # set this to "no" if you don't want this file to be overwritten
+ UPDATE_CONF=yes
+
++# set to 'yes' for BSD support
++BSD_KERNEL=no
++
++# set to 'yes' to enable debug support
++DEBUG=no
++
+ # tune these for your setup & compile options
+ # IMPORTANT: if you are using a linker that needs libraries in correct order, make sure you list EYE_CANDY before PNG_SCREENSHOT if you use both
+
+ ### Current release default options ###
+-FEATURES += CLUSTER_INSIDES # Group objects into separate clusters for clipping on inside maps
+-FEATURES += CUSTOM_LOOK # allows you to customize your look.
+-FEATURES += CUSTOM_UPDATE # allows autoupdating of custom look information
+-FEATURES += FUZZY_PATHS # Makes Tab Map walking not always follow exaclty the same path
+-FEATURES += NEW_SOUND # Enables extended sound effects system
+-FEATURES += PNG_SCREENSHOT # make screenshots in W3C's PNG format in game, requires libpng
+-FEATURES += TEXT_ALIASES # Text aliases
+-FEATURES += USE_INLINE # enable some optimizations to use inline functions instead of pure function calls
++EL_FEATURES += CLUSTER_INSIDES # Group objects into separate clusters for clipping on inside maps
++EL_FEATURES += CUSTOM_LOOK # allows you to customize your look.
++EL_FEATURES += CUSTOM_UPDATE # allows autoupdating of custom look information
++EL_FEATURES += FUZZY_PATHS # Makes Tab Map walking not always follow exaclty the same path
++EL_FEATURES += NEW_SOUND # Enables extended sound effects system
++EL_FEATURES += PNG_SCREENSHOT # make screenshots in W3C's PNG format in game, requires libpng
++EL_FEATURES += TEXT_ALIASES # Text aliases
++EL_FEATURES += USE_INLINE # enable some optimizations to use inline functions instead of pure function calls
+ # new for 1.9.0 release
+-FEATURES += BANDWIDTH_SAVINGS # enable bandwidth saving changes for message protocol
++EL_FEATURES += BANDWIDTH_SAVINGS # enable bandwidth saving changes for message protocol
+ # new for 1.9.2 release
+-FEATURES += ANIMATION_SCALING # Adds support for animation scaling, depending on the number of animation commands in the actor queue.
+-FEATURES += ENCYCL_NAVIGATION # Adds context menus to encyclopedia windows with search and bookmark functions
+-FEATURES += FSAA # Adds support for full screen anti-aliasing using OpenGL multisampling.
+-FEATURES += NEW_NEW_CHAR_WINDOW # Use the new character creation window; controls always on-screen
+-FEATURES += NEW_TEXTURES # Enables the new texture loading and caching system (http://www.eternal-lands.com/forum/index.php?showtopic=54756)
++EL_FEATURES += ANIMATION_SCALING # Adds support for animation scaling, depending on the number of animation commands in the actor queue.
++EL_FEATURES += ENCYCL_NAVIGATION # Adds context menus to encyclopedia windows with search and bookmark functions
++EL_FEATURES += FSAA # Adds support for full screen anti-aliasing using OpenGL multisampling.
++EL_FEATURES += NEW_NEW_CHAR_WINDOW # Use the new character creation window; controls always on-screen
++EL_FEATURES += NEW_TEXTURES # Enables the new texture loading and caching system (http://www.eternal-lands.com/forum/index.php?showtopic=54756)
+ # new for 1.9.3 release
+-FEATURES += FASTER_MAP_LOAD # Enables optimizations to speed up the process of switching between maps
+-FEATURES += FASTER_STARTUP # An attempt to reduce the startup time of EL somewhat
+-FEATURES += MIDDLE_MOUSE_PASTE # Paste using the middle mouse button from the primary buffer on X systems
++EL_FEATURES += FASTER_MAP_LOAD # Enables optimizations to speed up the process of switching between maps
++EL_FEATURES += FASTER_STARTUP # An attempt to reduce the startup time of EL somewhat
++EL_FEATURES += MIDDLE_MOUSE_PASTE # Paste using the middle mouse button from the primary buffer on X systems
+
+ ### Testing options (these options are possible for the next release and should be tested) ###
+-#FEATURES += ANTI_ALIAS # allows to enable/disable anti-aliasing in el.ini
+-#FEATURES += DYNAMIC_ANIMATIONS # (appears broken) Synchronizes animation to FPS instead of a fixed timer
+-#FEATURES += EXT_ACTOR_DICT # Removes remaining hard-coded actor def dictionaries - requires updated actor defs files (http://el.grug.redirectme.net/actor_defs.zip)
+-#FEATURES += NEW_ALPHA # (undocumented)
+-#FEATURES += USE_SIMD # Enables usage of simd instructions
++#EL_FEATURES += ANTI_ALIAS # allows to enable/disable anti-aliasing in el.ini
++#EL_FEATURES += DYNAMIC_ANIMATIONS # (appears broken) Synchronizes animation to FPS instead of a fixed timer
++#EL_FEATURES += EXT_ACTOR_DICT # Removes remaining hard-coded actor def dictionaries - requires updated actor defs files (http://el.grug.redirectme.net/actor_defs.zip)
++#EL_FEATURES += NEW_ALPHA # (undocumented)
++#EL_FEATURES += USE_SIMD # Enables usage of simd instructions
+
+ ### Machine specific options (fixes or performance enhancements) ###
+-#FEATURES += EL_BIG_ENDIAN # Enable big-endian code (automatically detected for OSX)
+-#FEATURES += NO_PF_MACRO # Use a function instead of a macro for pf_get_tile()
+-#FEATURES += SIMPLE_LOD # enable a simplistic distance culling to improve performance
++#EL_FEATURES += EL_BIG_ENDIAN # Enable big-endian code (automatically detected for OSX)
++#EL_FEATURES += NO_PF_MACRO # Use a function instead of a macro for pf_get_tile()
++#EL_FEATURES += SIMPLE_LOD # enable a simplistic distance culling to improve performance
+
+
+ ### Debug options ###
+-#FEATURES += CONTEXT_MENUS_TEST # Enable "#cmtest" command to help test/demo the context menu code
+-#FEATURES += DEBUG # (undocumented)
+-#FEATURES += DEBUG_XML # Enables missing (optional) XML string property messages
+-#FEATURES += DEBUG_POINT_PARTICLES # (undocumented)
+-#FEATURES += DEBUG_TIME # Fakes the acceleration of time for use in debugging shadows and the like.
+-#FEATURES += DEBUG_MAP_SOUND # Adds (some??) map boundary areas to tab maps and additional logging to stdout
+-#FEATURES += ECDEBUGWIN # press ctrl-alt-c to open the Eye Candy debug window: trigger most effects without casting spells or server side events
+-#FEATURES += EXTRA_DEBUG # (undocumented)
+-#FEATURES += MEMORY_DEBUG # gather information about memory allocation and freeing
+-#FEATURES += MISSILES_DEBUG # Enables debug for missiles feature. It will create a file missiles_log.txt file in your settings directory.
+-#FEATURES += MUTEX_DEBUG # (undocumented)
+-#FEATURES += OPENGL_TRACE # make far more frequent checks for OpenGL errors (requires -DDEBUG to be of any use). Will make error_log.txt a lot larger.
+-#FEATURES += TIMER_CHECK # (undocumented)
+-#FEATURES += _EXTRA_SOUND_DEBUG # Enable debug for sound effects
++#EL_FEATURES += CONTEXT_MENUS_TEST # Enable "#cmtest" command to help test/demo the context menu code
++#EL_FEATURES += DEBUG # (undocumented)
++#EL_FEATURES += DEBUG_XML # Enables missing (optional) XML string property messages
++#EL_FEATURES += DEBUG_POINT_PARTICLES # (undocumented)
++#EL_FEATURES += DEBUG_TIME # Fakes the acceleration of time for use in debugging shadows and the like.
++#EL_FEATURES += DEBUG_MAP_SOUND # Adds (some??) map boundary areas to tab maps and additional logging to stdout
++#EL_FEATURES += ECDEBUGWIN # press ctrl-alt-c to open the Eye Candy debug window: trigger most effects without casting spells or server side events
++#EL_FEATURES += EXTRA_DEBUG # (undocumented)
++
++# gather information about memory allocation and freeing
++ifeq ($(DEBUG),yes)
++EL_FEATURES += MEMORY_DEBUG
++endif
++
++#EL_FEATURES += MISSILES_DEBUG # Enables debug for missiles feature. It will create a file missiles_log.txt file in your settings directory.
++#EL_FEATURES += MUTEX_DEBUG # (undocumented)
++#EL_FEATURES += OPENGL_TRACE # make far more frequent checks for OpenGL errors (requires -DDEBUG to be of any use). Will make error_log.txt a lot larger.
++#EL_FEATURES += TIMER_CHECK # (undocumented)
++#EL_FEATURES += _EXTRA_SOUND_DEBUG # Enable debug for sound effects
+
+
+ ### Other options (Experimental, unfinished, defunct or otherwise unknown) ###
+-#FEATURES += NEW_CURSOR # New coloured cursors made by Emajekral (Experimental) Extract http://users.on.net/~gingerman/sky_cursor-textures.zip into datadir/textures/
+-#FEATURES += PAWN # Experimental, not for release, will need server support to function properly. This *will* eat your cat. You've been warned. Enables the Pawn abstract machine.
+-#FEATURES += UID # use unique ID sent from server for custom looks. (INCOMPLETE)
+-#FEATURES += USE_ACTORS_OPTIMIZER # Enables actor optimizations
+-#FEATURES += USE_BOOST
+-#FEATURES += USE_TR1 # Needs tr1 version of c++ stl, used for NEW_FILE_IO
+-#FEATURES += WRITE_XML # dangerous to use, will wipe out some XML files that are part of the main game download
+-#FEATURES += ZLIBW # Enables being able to write gzip compressed files, requires -lzlib/-lz needed for map_editor
+-#FEATURES += OLD_MISC_OBJ_DIR # if not defined, ./3dobjects/misc_objects/ paths becomes ./3dobjects/
++#EL_FEATURES += NEW_CURSOR # New coloured cursors made by Emajekral (Experimental) Extract http://users.on.net/~gingerman/sky_cursor-textures.zip into datadir/textures/
++#EL_FEATURES += PAWN # Experimental, not for release, will need server support to function properly. This *will* eat your cat. You've been warned. Enables the Pawn abstract machine.
++#EL_FEATURES += UID # use unique ID sent from server for custom looks. (INCOMPLETE)
++#EL_FEATURES += USE_ACTORS_OPTIMIZER # Enables actor optimizations
++#EL_FEATURES += USE_BOOST
++#EL_FEATURES += USE_TR1 # Needs tr1 version of c++ stl, used for NEW_FILE_IO
++#EL_FEATURES += WRITE_XML # dangerous to use, will wipe out some XML files that are part of the main game download
++#EL_FEATURES += ZLIBW # Enables being able to write gzip compressed files, requires -lzlib/-lz needed for map_editor
++#EL_FEATURES += OLD_MISC_OBJ_DIR # if not defined, ./3dobjects/misc_objects/ paths becomes ./3dobjects/
+
+
+
+@@ -86,7 +97,3 @@
+ #EXTRA_INCLUDES=-IC:\\Programme\\Dev-Cpp\\Include
+ #EXTRA_LIBS=-lz
+ #EXTRA_STATICLIBS=libs/zlib.a
+-
+-CC=gcc
+-CXX=g++
+-LINK=gcc
diff --git a/games-rpg/eternal-lands/files/eternal-lands-1.9.3-glbuild.patch b/games-rpg/eternal-lands/files/eternal-lands-1.9.3-glbuild.patch
new file mode 100644
index 000000000000..972abd9b0d2b
--- /dev/null
+++ b/games-rpg/eternal-lands/files/eternal-lands-1.9.3-glbuild.patch
@@ -0,0 +1,25 @@
+--- gl_init.c 2012-02-13 22:01:54.000000000 -0500
++++ gl_init.c 2012-12-02 18:09:41.274014922 -0500
+@@ -27,6 +27,8 @@
+ #include "fsaa/fsaa.h"
+ #endif /* FSAA */
+
++#define APIENTRY
++
+ Uint32 flags;
+
+ int window_width=640;
+--- platform.h 2012-02-13 22:01:54.000000000 -0500
++++ platform.h 2012-12-02 17:32:46.017627957 -0500
+@@ -87,9 +87,10 @@
+ #define APIENTRYP *
+ #elif !defined(BSD)
+ #define GL_GLEXT_LEGACY
++ #include <GL/glew.h>
+ #include <GL/gl.h>
+ #include <GL/glu.h>
+- #include "glext.h"
++ #include <GL/glext.h>
+ #else // BSD
+ #include <GL/gl.h>
+ #include <GL/glu.h>
diff --git a/games-rpg/eternal-lands/files/eternal-lands-1.9.3-minizip.patch b/games-rpg/eternal-lands/files/eternal-lands-1.9.3-minizip.patch
new file mode 100644
index 000000000000..9edb22254502
--- /dev/null
+++ b/games-rpg/eternal-lands/files/eternal-lands-1.9.3-minizip.patch
@@ -0,0 +1,75 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sun Jun 24 16:33:08 UTC 2012
+Subject: unbundle minizip
+
+https://bugs.gentoo.org/show_bug.cgi?id=423327
+applied on top of eternal-lands-1.9.3-build.patch
+
+--- elc/new_update.c
++++ elc/new_update.c
+@@ -5,8 +5,8 @@
+ #include <string.h>
+ #include "md5.h"
+ #include "elc_private.h"
+-#include "io/zip.h"
+-#include "io/unzip.h"
++#include <zip.h>
++#include <unzip.h>
+ #include "io/ziputil.h"
+ #include "io/fileutil.h"
+ #include "io/elfilewrapper.h"
+--- elc/io/ziputil.h
++++ elc/io/ziputil.h
+@@ -8,8 +8,8 @@
+
+ #include <SDL.h>
+ #include "../md5.h"
+-#include "zip.h"
+-#include "unzip.h"
++#include <zip.h>
++#include <unzip.h>
+
+ #ifdef __cplusplus
+ extern "C"
+--- elc/io/elfilewrapper.c
++++ elc/io/elfilewrapper.c
+@@ -1,5 +1,5 @@
+ #include "elfilewrapper.h"
+-#include "unzip.h"
++#include <unzip.h>
+ #include "elpathwrapper.h"
+ #include "fileutil.h"
+ #include <sys/stat.h>
+--- elc/Makefile.linux
++++ elc/Makefile.linux
+@@ -25,11 +25,13 @@
+
+ CFLAGS += $(shell sdl-config --cflags) \
+ $(shell xml2-config --cflags) \
++ $(shell pkg-config --cflags minizip) \
+ -fno-strict-aliasing \
+ $(EXTRA_INCLUDES)
+
+ CXXFLAGS += $(shell sdl-config --cflags) \
+ $(shell xml2-config --cflags) \
++ $(shell pkg-config --cflags minizip) \
+ -fno-strict-aliasing \
+ $(EXTRA_INCLUDES)
+
+@@ -47,6 +49,7 @@
+ $(shell pkg-config --libs vorbis) \
+ $(shell pkg-config --libs vorbisfile) \
+ $(shell pkg-config --libs zlib) \
++ $(shell pkg-config --libs minizip) \
+ -lm \
+ $(EXTRA_LIBS) \
+ $(foreach FEATURE, $(EL_FEATURES), $($(FEATURE)_LIBS)) \
+@@ -80,7 +83,7 @@
+ gamewin.o gl_init.o hud.o help.o highlight.o \
+ ignore.o init.o interface.o items.o io/fileutil.o \
+ io/e3d_io.o io/elc_io.o io/map_io.o io/elpathwrapper.o io/xmlcallbacks.o \
+- io/half.o io/normal.o io/elfilewrapper.o io/unzip.o io/ioapi.o io/zip.o io/ziputil.o \
++ io/half.o io/normal.o io/elfilewrapper.o io/ziputil.o \
+ keys.o knowledge.o langselwin.o lights.o list.o load_gl_extensions.o loginwin.o loading_win.o \
+ main.o manufacture.o map.o mapwin.o memory.o \
+ md5.o mines.o minimap.o misc.o missiles.o multiplayer.o \
diff --git a/games-rpg/eternal-lands/metadata.xml b/games-rpg/eternal-lands/metadata.xml
new file mode 100644
index 000000000000..bae7929e7953
--- /dev/null
+++ b/games-rpg/eternal-lands/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>rich0@gentoo.org</email>
+ <name>Richard Freeman</name>
+</maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>Eternal Lands is a FREE MMORPG (massively multiplayer online
+ role playing game)</longdescription>
+</pkgmetadata>
diff --git a/games-rpg/freedink-data/Manifest b/games-rpg/freedink-data/Manifest
new file mode 100644
index 000000000000..95ea4121c418
--- /dev/null
+++ b/games-rpg/freedink-data/Manifest
@@ -0,0 +1,5 @@
+DIST freedink-data-1.08.20140901.tar.gz 51303165 SHA256 5797a6e3a8d407cc46080206a0f18265231d6cf912b2b3dfc4607cf79052c111 SHA512 cdaa50610ed7e365967f6a84f6d540295ccc85bf4d11b882b49c6b97abe2b375be9880afc1e8ea31cdf22a24365d09861b9f4d1d522cc1ae685f7a8b6b4cad82 WHIRLPOOL 6db5f0f0b14f19f66f3142f168e065aea1f19d19a83de6f1e198654fdc197e4a456b1e18b8858bf2d28c76e76ca685708a5800894c5c797c6dda080b8f7ca5fc
+EBUILD freedink-data-1.08.20140901.ebuild 514 SHA256 4f00c6658fd4ce973a92b5014f287473c2eb22edf72f88321726275aa378a823 SHA512 11649b45ee93dd41635c159131ea1f064188e4718f406013de3908d847710dc07738664bb6c36b38174d3ff93b9c82971c1032d0e80bbdc9721f6d94cb66cdc5 WHIRLPOOL 02448c0986ac2fc5313990826783cf0f348a64dafd5f0331f6a07d210c6e2dc363a794e14a521695643f1b5437474e0d3b7d39ebbcd27ab697cfb70cee56f994
+MISC ChangeLog 2462 SHA256 c24843d416e338fc7ebb7e300d4e60166fae0d43871aa690e4f794eabbaf58f5 SHA512 c36139eb44f4fce39dee3799bc6105cbde61a882e7b0b562458d9e719c72d636c6783ec5e9d6cd4da9f33eee414f06e6d5cbbabd29add3e6d9d8729ac9d39c21 WHIRLPOOL 43bb01407943264632125a683cd3c221f8c86457765a4f378f53f370efc10bf760e4d7fad8a7acd16a09a41138f3a398af9a0cded67c7c3c71f41131748da128
+MISC ChangeLog-2015 1231 SHA256 d357f2020b24016f1d5e9a2e63a182386b303219ff9131e9c1aadee09a75e723 SHA512 fe73ed2d5624a8e523e8f25d9cc26e096af6c64f921261929ae572fcf781be1f51a3503b3e9a4c9b448d51267d22cbca0bd622b57e8e63c15476d3c751d6af4a WHIRLPOOL 92e605e084d7af2f755ab50fc0b0e7db8f44f8ebe47fecee2a16116de7075829f4ad350f3cd36ad7e311cca2d37c187bab92daddf5fa51e36c37da689e91e66c
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-rpg/freedink-data/freedink-data-1.08.20140901.ebuild b/games-rpg/freedink-data/freedink-data-1.08.20140901.ebuild
new file mode 100644
index 000000000000..5c32f121e4b5
--- /dev/null
+++ b/games-rpg/freedink-data/freedink-data-1.08.20140901.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit games
+
+DESCRIPTION="Freedink game data"
+HOMEPAGE="http://www.freedink.org/"
+SRC_URI="mirror://gnu/freedink/${P}.tar.gz"
+
+LICENSE="ZLIB
+ CC-BY-SA-3.0
+ CC-BY-3.0
+ FreeArt
+ GPL-2
+ GPL-3
+ WTFPL-2
+ OAL-1.0.1
+ public-domain"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+src_install() {
+ emake DESTDIR="${D}" DATADIR="${GAMES_DATADIR}" install
+ dodoc README.txt README-REPLACEMENTS.txt
+ prepgamesdirs
+}
diff --git a/games-rpg/freedink-data/metadata.xml b/games-rpg/freedink-data/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-rpg/freedink-data/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/freedink/Manifest b/games-rpg/freedink/Manifest
new file mode 100644
index 000000000000..6d5e5ddae7e4
--- /dev/null
+++ b/games-rpg/freedink/Manifest
@@ -0,0 +1,5 @@
+DIST freedink-108.4.tar.gz 1897701 SHA256 82cfb2e019e78b6849395dc4750662b67087d14f406d004f6d9e39e96a0c8521 SHA512 1496b6a7826bf694a2919add22a8b4b08a4967d8a7fdebf2d599bd99c7a7ce67de6c2b11124423c7aa1f0feb2e7c03ce1cf00252070182936e7481791dafee61 WHIRLPOOL 487f82adc1c36631220f23c6ac6aebaaafb3788bfdfbbf8a4e30d0c77d2a1ff97a9c43d5017fa5d50bfc7c3c36042521f3f7e194c4faa77f836ad45cff845d75
+EBUILD freedink-108.4.ebuild 1228 SHA256 2d76667f5affa981113067d3d7f3fc5c5514bb2c9e45cfd0e6894cd6dc9c3f62 SHA512 2b6d4c82b1e5a81b438bcb81bd73b924f9cbe4b8da7943ee11bc242964298fa5e5420be870550611cfc2ef600e3c3f53029950f7a81bca62ceb3dbdbb2724a7f WHIRLPOOL fb81a40b4a7f03efbc79231d9b5a8bd6744fd26c313bcaa168f18c505f03d6ab514d356c8dd73dfd10afa58e1a8cb1cd449c41442b891e418a2ce9602e2af088
+MISC ChangeLog 2637 SHA256 d4bbc212024a56c9dc483d119d459cf58aa2a32d1acf63703c90b455c8304b56 SHA512 5c427bb9b741bfd0b491b1954a031d5af55a175b127d8dd2ca54b5aa0e9fb5a0bf02163d4d3ea4b13ff34726274691d305d8e334a4e67093c45bf19412d6e952 WHIRLPOOL 859bcf5a852490ccf0494f387125b3156af83143ba22eb37dd6d92062020eba4aaeb76d373f123fd03e7def49eeae02eccc1b83837500077aeba4a9b2d3919eb
+MISC ChangeLog-2015 1750 SHA256 e2c183e1f86c13c913fe3647d61896e97056013239502b00aa9d096a5a6c9e18 SHA512 44fad43dc08302cb8b9baba3e5e61c35c3949207e0cb4e39faf3f27e7bc47671ca35a9db1ad9e630c2c90aa5ac175f155d88022d0a497065b55eea9ea7b729f3 WHIRLPOOL d98c25b2d9c48fe64271f8efe27f347414edb152637d69836e99ad7c6d6d7645f0485ff7a719650b0916ccc00e2d7b8ae2a6aa808ac54a887a6ee9b6370410bc
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-rpg/freedink/freedink-108.4.ebuild b/games-rpg/freedink/freedink-108.4.ebuild
new file mode 100644
index 000000000000..f626f37d95ab
--- /dev/null
+++ b/games-rpg/freedink/freedink-108.4.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit flag-o-matic games
+
+DESCRIPTION="Dink Smallwood is an adventure/role-playing game, similar to Zelda (2D top view)"
+HOMEPAGE="http://www.freedink.org/"
+SRC_URI="mirror://gnu/freedink/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="
+ >=media-libs/fontconfig-2.4
+ >=media-libs/libsdl-1.2[X,sound,joystick,video]
+ >=media-libs/sdl-gfx-2.0
+ >=media-libs/sdl-image-1.2
+ >=media-libs/sdl-mixer-1.2[midi,vorbis,wav]
+ >=media-libs/sdl-ttf-2.0.9"
+RDEPEND="${DEPEND}
+ ~games-rpg/freedink-data-1.08.20140901"
+DEPEND="${DEPEND}
+ dev-libs/check
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_prepare() {
+ sed -i \
+ -e 's#^datarootdir =.*$#datarootdir = /usr/share#' \
+ share/Makefile.in || die
+ # seems like the code is fragile (bug #559548)
+ filter-flags
+ replace-flags -O? -O0
+}
+
+src_configure() {
+ egamesconf \
+ --disable-embedded-resources \
+ --localedir="/usr/share/locale"
+}
+
+src_install() {
+ default
+ dodoc TROUBLESHOOTING
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ einfo
+ elog "optional dependencies:"
+ elog " games-util/dfarc (dmod installer and frontend)"
+ einfo
+}
diff --git a/games-rpg/freedink/metadata.xml b/games-rpg/freedink/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-rpg/freedink/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/freedroid/Manifest b/games-rpg/freedroid/Manifest
new file mode 100644
index 000000000000..569946e21d97
--- /dev/null
+++ b/games-rpg/freedroid/Manifest
@@ -0,0 +1,7 @@
+AUX freedroid-1.0.2-format.patch 762 SHA256 eb8f2b1e378826f0535a30bb64a5d6b1de6778773ffbb35dd165dc4420921eb1 SHA512 cc2a49a22bfd8e574ee466ef837e1c4a32e7529a6275c0abab507e46291c63abbf641975fc08297f63b4a6204c4436a18b053231aeaed0ee40ed86b01217cf47 WHIRLPOOL 6a15899b407a910bf359be260367896c29acec76b49c4c66f44de8524aa9d5ecdd8179949f8e9a15309e051565ca2e1cba7a1fc20a7499f700be05f777b4b979
+DIST freedroid-1.0.2.tar.gz 4819173 SHA256 0934bd29fb2ad0367ea3bdfdce47537179f9af6aa960cbcc897c40da2e1a0ee3 SHA512 cfafa4af86a2007fcf761b51e6c7dcc6dc40f4513057413901fede41b7a436b9c8cf7c3e5c29130e5410fab640ffbdc8100043a442555e862acffe9f33086be1 WHIRLPOOL fc44018e71586ca294796771e263b8f7064db0619b534f4cd8407b1e2c7ddbb8b510090e4fc62f940387efa721231423e5b4e8a3caf958de9a2ee176c4d13010
+EBUILD freedroid-1.0.2-r1.ebuild 841 SHA256 77de8255c12de1558563e4069024da22035cd008f713415e09850d9b9ae698aa SHA512 43ca7bdbdde0e3284d3e76bc7af73002675b1d5d73be26c562c3322ce7a1464f0a04ff3b3bbb577a530e82c613e276bed99a0d1df79dc66d9a8e7ee90c54eb6b WHIRLPOOL f78b4798f34246e48183835938d6e51dc2649781cf8083166005bc5383f7b0e37f3bc8a7b671a49a8e14f944929124be97a9f0347221c4ac5776279a857531c9
+EBUILD freedroid-1.0.2.ebuild 870 SHA256 38c5d30d384dda3ffca05a2551c59011cb49c9a5ef9f62b10cd8881e6aaf5abe SHA512 b8c226b563a2d77e847fdac16d029fb3f82687e30f3efb9e419f4db208d8bf64a889569cffda52a7dc6e295eccc05283f3393bb0c8e180f45288cde1866485b3 WHIRLPOOL 2fcf2484cc3e1b670497bc5587c9082ae30c0e3c62fb386e35241b3477f2179900780e4ec8f614dfff59c14eff460d05e91c4932668132c09fdcb0994fda6bd4
+MISC ChangeLog 3198 SHA256 009e3bc741952cd45b371988fa51f52f9ddacf0fb3a4ad3a8b3269c86fa7585a SHA512 edc2bc26da9d9151f73ddf3d8562fd3b43b25b063223dbef4eef3499a1d497547dc645fbc53216fb9617afac15256b4d0d794f907a019f767ec8b0dab67a38f5 WHIRLPOOL 00e15da5debbe9ff32e7cacab136a8f24fc7ead61f742c52439a4afe3dee6760d1e1addbb8c10ad591b95ba722fd926810c77465805b1ec06dc2d803fd35d12e
+MISC ChangeLog-2015 1532 SHA256 bf6f674e54d0e339147bf21c82e27ebc7cf802e463e5ba47af12fbfeb1614abf SHA512 6f361a6f59ae7d3da31435f18dd3ab870ac7e2c252326e6ddaf199e616feff3a6e390841674ce432d76cfe2ddf1881bc7ef5c223c769b12112a75d3a9cae74cf WHIRLPOOL 150baf587829e42743902ced8ade24595d580f8ecb37e05067f739a2ce20d6838a728d9196f8fcae2d959630b96fd4242e0eae891d98308f0218b331684d4e28
+MISC metadata.xml 332 SHA256 2dc0142f567a577393c977ad1b9375ffaa6f2ab8799efeb0dd6cc9a037a3c539 SHA512 4fe0371b423de98a48fb21ec25d0fc34e393ce7c2f497e815c2f991f65507b2762b1cb68c87742bd2f3714a063828d8764ea2a815e33cba086b102d5ad672932 WHIRLPOOL dc478f46d2185c158234993ab740f3be1356fb37aa6ea8a20e5d58c3ce59b754539adf72dd59f1e56567d83c0c8fc8e8779e1ae1d83f9dd5c793621b05cabdb8
diff --git a/games-rpg/freedroid/files/freedroid-1.0.2-format.patch b/games-rpg/freedroid/files/freedroid-1.0.2-format.patch
new file mode 100644
index 000000000000..4dbf96bda3f0
--- /dev/null
+++ b/games-rpg/freedroid/files/freedroid-1.0.2-format.patch
@@ -0,0 +1,29 @@
+--- a/src/init.c 2015-10-24 17:37:24.431514375 +0200
++++ b/src/init.c 2015-10-24 17:37:43.057157826 +0200
+@@ -554,13 +554,13 @@
+ * following gnu-coding standards for command line interfaces */
+ case 'v':
+ printf ("\n%s %s \n", PACKAGE, VERSION);
+- printf (copyright);
++ printf ("%s", copyright);
+ exit (0);
+ break;
+
+ case 'h':
+ case '?':
+- printf (usage_string);
++ printf ("%s", usage_string);
+ exit (0);
+ break;
+
+--- a/src/misc.c 2015-10-24 17:37:54.368941282 +0200
++++ b/src/misc.c 2015-10-24 17:38:10.202638172 +0200
+@@ -889,7 +889,7 @@
+ if (db_level <= debug_level)
+ {
+ vsnprintf (buffer, 5000, fmt, args);
+- fprintf (stderr, buffer);
++ fprintf (stderr, "%s", buffer);
+ fflush (stderr);
+ }
+
diff --git a/games-rpg/freedroid/freedroid-1.0.2-r1.ebuild b/games-rpg/freedroid/freedroid-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..e6eb377ac6db
--- /dev/null
+++ b/games-rpg/freedroid/freedroid-1.0.2-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Freedroid - a Paradroid clone"
+HOMEPAGE="http://freedroid.sourceforge.net/"
+SRC_URI="mirror://sourceforge/freedroid/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ virtual/jpeg:0
+ media-libs/libpng:0
+ media-libs/libsdl[joystick,sound,video]
+ media-libs/libvorbis
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-mixer[mod,vorbis]
+ sys-libs/zlib"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-format.patch
+)
+
+src_install() {
+ default
+ find "${D}" -name "Makefile*" -exec rm -f '{}' + || die
+ rm -rf "${D}/usr/share/${PN}/"{freedroid.6,mac-osx} || die
+ newicon graphics/paraicon.bmp ${PN}.bmp
+ make_desktop_entry freedroid Freedroid /usr/share/pixmaps/${PN}.bmp
+}
diff --git a/games-rpg/freedroid/freedroid-1.0.2.ebuild b/games-rpg/freedroid/freedroid-1.0.2.ebuild
new file mode 100644
index 000000000000..689d07965419
--- /dev/null
+++ b/games-rpg/freedroid/freedroid-1.0.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Freedroid - a Paradroid clone"
+HOMEPAGE="http://freedroid.sourceforge.net/"
+SRC_URI="mirror://sourceforge/freedroid/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[joystick,sound,video]
+ virtual/jpeg:0
+ sys-libs/zlib
+ media-libs/libpng:0
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-mixer[mod,vorbis]
+ media-libs/libvorbis"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-format.patch
+}
+
+src_install() {
+ default
+ find "${D}" -name "Makefile*" -exec rm -f '{}' +
+ rm -rf "${D}${GAMES_DATADIR}/${PN}/"{freedroid.6,mac-osx} || die
+ newicon graphics/paraicon.bmp ${PN}.bmp
+ make_desktop_entry freedroid Freedroid /usr/share/pixmaps/${PN}.bmp
+ prepgamesdirs
+}
diff --git a/games-rpg/freedroid/metadata.xml b/games-rpg/freedroid/metadata.xml
new file mode 100644
index 000000000000..ca95edad2177
--- /dev/null
+++ b/games-rpg/freedroid/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">freedroid</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/freedroidrpg/Manifest b/games-rpg/freedroidrpg/Manifest
new file mode 100644
index 000000000000..b6e1c2ea43e3
--- /dev/null
+++ b/games-rpg/freedroidrpg/Manifest
@@ -0,0 +1,6 @@
+DIST freedroidRPG-0.16.tar.gz 225570013 SHA256 c11f28b69eed3e8e40528442d9e840847502ccd4d3d95d3f8182abc2b3b18135 SHA512 039ee4bfcd58e29a3cfa26ae7f2bc8aed7c289119476bb8f8486006910cf6a2127ba49f7526fac887392ca9e5320fb1a59ba068834e162348905423908b0755a WHIRLPOOL cc8e812515c9f0ce979558c8307fc2f7d30597c198fecd42e43e927b1969b8cacff0db4eed71a41b4119ddb64829d729593ee4151ca69c776f45b9295cda0978
+EBUILD freedroidrpg-0.16-r1.ebuild 1781 SHA256 99d81a9c1889c277ccd5af5ca03bd6d3272c8f6b4cf7b5db39bb1b173f3c3983 SHA512 2f4df51a1208eb76f03d830d671f8433bdb2a0c03ed99c06fb1af4e1be8e6e4c09dd566f7bf6faddf6dbf81c1c6c20e80087fbd7cd2e3fe51fbacb0d02fa90ec WHIRLPOOL 46170a7423ddcce04536f7c6b6e3c71ebda6a491e2bb59073785c1a007bfbeaf5e7e4e20b2536ea083a5e72e167baf51f37c9134f0e4ddfa60e49f5d66540d82
+EBUILD freedroidrpg-0.16.ebuild 1849 SHA256 8904e9a22f51c6d2b2bb9de144b4f96c8f87a4c858caa6591231a03a9ba606a6 SHA512 5253faa12b168294924505f9e48d7749f3e024b2983cb885ee81e1bf6595a4a47cfc622d99f100601d6e11814d6168dc6fd5259482feecde66b2219c601ffc5e WHIRLPOOL 09fb186d452426a357bd4559ef3a65661b6e39447289f8477202382cf0867d69a708ae030fb720caafad793b3b0cf8967e2cfe59b0fe8657b53f1b539d367702
+MISC ChangeLog 3883 SHA256 07ccf56c9462d7e04523f559e52e18b0bc1d205045f015255f3ffdfde6ca006c SHA512 6145960b95ea0476eda4b220124f2b40b50f8776f2773953b59cb5406c984cdabe703710a675092816365247d9edf28185175c6dee7e0e26ac326c87ce38e4ef WHIRLPOOL 824d1604c6bc4d8a28fd7ccb302f7a07dee0bcab74a16b557e15f6d1725427ad96fedae9c7ef9665f53d81a4f6abfee4e88b513fe0a0e7d01527c6fcfbae7358
+MISC ChangeLog-2015 6136 SHA256 f4e952573eee51ccc04f3e525c9df337b9c4d253f631fbba18b5e2420767e2ae SHA512 1b7ddc2f9efcd15b402de9c29f436a144d1cd5cab9620772783954e9d3c2e2c6d0212a1efc4cdfc57e536921195929831f035bf2f21d56e91675d90004799872 WHIRLPOOL da66923fbcd18457cfb15c1cb53333e7400a061fbd1aed926be343762f176cf4699c529f019f406f76e9adefd0310c73eb74152071057fda79b860e6fea5d6b5
+MISC metadata.xml 2288 SHA256 62a9c1ca4e0c2a25bd3de6ad49bf7ed9b37fa1427a21a340735f3c319b6a7d84 SHA512 196a3711abe685277462235c912a41b46dc8fa5122d611f4f864300262ae888611951451162db87e75eafa7720d662a1fc51e4441b0d9fb730109f6c2c4aadca WHIRLPOOL 14f2133b744a7e6519f4329ef8d19b9699eaf929c45e6835fa8b979b051bc2b17f936f133ca4c4206641ebb9b760d4b5e6901e1623ee3e97af8e2de298721ea9
diff --git a/games-rpg/freedroidrpg/freedroidrpg-0.16-r1.ebuild b/games-rpg/freedroidrpg/freedroidrpg-0.16-r1.ebuild
new file mode 100644
index 000000000000..cdde16dcc8f2
--- /dev/null
+++ b/games-rpg/freedroidrpg/freedroidrpg-0.16-r1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit autotools eutils gnome2-utils python-any-r1
+
+DESCRIPTION="A modification of the classical Freedroid engine into an RPG"
+HOMEPAGE="http://freedroid.sourceforge.net/"
+SRC_URI="ftp://ftp.osuosl.org/pub/freedroid/freedroidRPG-${PV}//freedroidRPG-${PV}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls opengl sound"
+
+RDEPEND="
+ virtual/jpeg:0
+ media-libs/libpng:0
+ media-libs/libsdl[opengl?,sound?,video]
+ >=media-libs/sdl-gfx-2.0.21
+ media-libs/sdl-image[jpeg,png]
+ nls? ( virtual/libintl )
+ opengl? ( virtual/opengl )
+ sound? (
+ media-libs/libogg
+ media-libs/libvorbis
+ media-libs/sdl-mixer[vorbis] )
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ nls? ( sys-devel/gettext )"
+
+pkg_setup() {
+ python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/^dist_doc_DATA/d' \
+ -e '/-pipe/d' \
+ -e '/^SUBDIRS/s/pkgs//' \
+ Makefile.am || die
+ python_fix_shebang src sound
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-fastmath \
+ --with-embedded-lua \
+ --localedir=/usr/share/locale \
+ $(use_enable nls) \
+ $(use_enable opengl) \
+ $(use_enable sound)
+}
+
+src_install() {
+ local i
+
+ default
+ for i in 48 64 96 128
+ do
+ doicon -s ${i} pkgs/freedesktop/icons/hicolor/${i}x${i}/apps/freedroidRPG.png
+ done
+ doicon -s scalable pkgs/freedesktop/icons/hicolor/scalable/apps/freedroidRPG.svg
+ make_desktop_entry freedroidRPG "Freedroid RPG" freedroidRPG
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ echo
+ ewarn "${P} is not compatible with old save games."
+ ewarn "Please start a new character."
+ echo
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/freedroidrpg/freedroidrpg-0.16.ebuild b/games-rpg/freedroidrpg/freedroidrpg-0.16.ebuild
new file mode 100644
index 000000000000..5d4b7de19ba2
--- /dev/null
+++ b/games-rpg/freedroidrpg/freedroidrpg-0.16.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit autotools eutils gnome2-utils python-any-r1 games
+
+DESCRIPTION="A modification of the classical Freedroid engine into an RPG"
+HOMEPAGE="http://freedroid.sourceforge.net/"
+SRC_URI="ftp://ftp.osuosl.org/pub/freedroid/freedroidRPG-${PV}//freedroidRPG-${PV}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls opengl sound"
+
+RDEPEND="media-libs/libsdl[opengl?,sound?,video]
+ virtual/jpeg:0
+ media-libs/libpng:0
+ media-libs/sdl-image[jpeg,png]
+ >=media-libs/sdl-gfx-2.0.21
+ sound? (
+ media-libs/sdl-mixer[vorbis]
+ media-libs/libogg
+ media-libs/libvorbis )
+ x11-libs/libX11
+ opengl? ( virtual/opengl )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ nls? ( sys-devel/gettext )"
+
+pkg_setup() {
+ python-any-r1_pkg_setup
+ games_pkg_setup
+}
+
+src_prepare() {
+ sed -i \
+ -e '/^dist_doc_DATA/d' \
+ -e '/-pipe/d' \
+ -e '/^SUBDIRS/s/pkgs//' \
+ Makefile.am || die
+ python_fix_shebang src sound
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ --disable-fastmath \
+ --with-embedded-lua \
+ --localedir=/usr/share/locale \
+ $(use_enable nls) \
+ $(use_enable opengl) \
+ $(use_enable sound)
+}
+
+src_install() {
+ local i
+
+ default
+ for i in 48 64 96 128
+ do
+ doicon -s ${i} pkgs/freedesktop/icons/hicolor/${i}x${i}/apps/freedroidRPG.png
+ done
+ doicon -s scalable pkgs/freedesktop/icons/hicolor/scalable/apps/freedroidRPG.svg
+ make_desktop_entry freedroidRPG "Freedroid RPG" freedroidRPG
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+ echo
+ ewarn "${P} is not compatible with old save games."
+ ewarn "Please start a new character."
+ echo
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/freedroidrpg/metadata.xml b/games-rpg/freedroidrpg/metadata.xml
new file mode 100644
index 000000000000..d9e96aa7715a
--- /dev/null
+++ b/games-rpg/freedroidrpg/metadata.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription>
+Hello, and welcome to the Freedroid page.
+
+THE CLASSICAL FREEDROID: Freedroid is a clone of the classic game
+"Paradroid" on Commodore 64 with some improvements and extensions to
+the classic version.
+
+In this game, you control a robot, depicted by a small white ball with
+a few numbers within an interstellar spaceship consisting of several
+decks connected by elevators.
+
+The aim of the game is to destroy all enemy robots, depicted by small
+black balls with a few numbers, by either shooting them or seizing
+control over them by creating connections in a short subgame of
+electric circuits.
+
+Development of this game is now complete. The final version came out
+in august 2003 and runs on Linux, Mac OSX, Sharp Zaurus and even that
+strange Windows wannabe of an operating system. Thanks to all who
+helped.
+Minor fixes and maintainance will of course still continue though...
+
+FREEDROID RPG: The Freedroid RPG is an extension/modification of the
+classical freedroid engine into an RPG. The main differences to the
+classical version are as follows:
+* The Tux is the main character of the rpg. He is not displayed as a
+ ball like in Freedroid but rather as an animated character, while
+ other droids and humans in the game are still represented as the balls
+ with some number or code in them.
+* Dialogs and chatting with friendly droids and humans:
+ Multiple-choice menus and voice samples (with subtitles for those
+ without sound).
+* Melee weapons, armour and other items to be equipped have been
+ added.
+* An automap feature was added.
+* Saving and loading of games.
+* A shop to trade things.
+* Controls are different: Mouse can be used to do everything.
+ Joystick is not supported for moving around any more.
+* The archive size (including sound samples) is about 10 times as big
+ as for the classical version. I'd like to appologize to all 56K modem
+ owners at this point.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">freedroid</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/grimrock/Manifest b/games-rpg/grimrock/Manifest
new file mode 100644
index 000000000000..77acf8755ddf
--- /dev/null
+++ b/games-rpg/grimrock/Manifest
@@ -0,0 +1,5 @@
+DIST LegendOfGrimrock-Linux-2013-05-15.sh 316846010 SHA256 005066be6ce12ba342e499369070113c6b66a9bea03c6ecb1e5fd0758eb0c39d SHA512 e4907ddfba9a6923f81f188d1452a1bf37e4bbaab4fb9b4befabe167b5159d35acd6c1939b98dd66e3a8f96775d12703206432f60a86c7b4d070acc3a9392f9c WHIRLPOOL a7a5c70c6622737f9904962b248578261137b0c098e7175e309d3470b798b7297dc8aeb42e36b00f809c20f5f105fdfeb75edecca33e94f0d06650f564f02487
+EBUILD grimrock-20130515.ebuild 2695 SHA256 bdefe77a6790861ba46abdbdb3772702d7297bedabea794b842e713c17d69ed3 SHA512 27e6b13ffa9ce668c136bcad1e33b0014dfed90676c031086191e9793d28a806f142eae9113b5cb8932d15d8e09685f9fa462276b530d51dee6e65ffa2aae3fd WHIRLPOOL e3b7a8c5777711a6b998171c48286b73b0d579dc7f8f1328d047f780511f2ba7100386b85a6c93a3ea7885d6fac012b80a1e83f40ae01324b9ffc8be46899b95
+MISC ChangeLog 3163 SHA256 db75c55bb74a93c715a5b6686275a4354e987ec7cc20bd6e87e09557e57136fa SHA512 aafddd182eea154b5e71fb8d516f88762ff7bf559e649ba0ebe5488745caf9de5a24bcdc1a4240cff9bdb52cead5076b4537d52bb62303f9506e5c0770b07712 WHIRLPOOL 1d4a3c3658c761ace73fe5c41eb1d99b8ae2ac9dc81b04155f286d25dbc4d76517e5c7b260e7212f8a41d7246f99cb40e6f1da3ccb662ba1383801a6466155d5
+MISC ChangeLog-2015 1652 SHA256 91b51db1b03c3970b72aea65265b2d7e651b9082e10eb6a4e7828448d7232ba7 SHA512 3621bbe3cba553bf133e9a809e05880f531e542c2cb2f31304f810e46899cd1d6c3f8fef99aaabba8718a6cc123105ac2cca904f5e22a135b0aa93dda4d8797b WHIRLPOOL 25ec19229a4607fcb907901f8e7955336debcd681b53289f8c05d5a7661f5ef0e3f714a8cc2745c4d116cc6f9e160abb9ca4c7e1c46de9ad57e3d6c32016907b
+MISC metadata.xml 326 SHA256 0c50291b59a587a1ee49919fff23be8e50b5ee75a602649f6cbebdc8d0fa6fcc SHA512 87eee3f514c290aba519dad7fdb335424ebd7ed7bb1cfa8650d293136ad2a6efdb44eff2c1c48973e9a587f282a2114866d9e4d66adb857b61a085d5635ecfd2 WHIRLPOOL 4982d50602f9c8bf69b1276877f81fcec5ff4237612f205d7362ef4a8f694f16034851521a287c4c09f43573b65a72a1de11214fc9626ffbb177613df1534e39
diff --git a/games-rpg/grimrock/grimrock-20130515.ebuild b/games-rpg/grimrock/grimrock-20130515.ebuild
new file mode 100644
index 000000000000..564e6f04474c
--- /dev/null
+++ b/games-rpg/grimrock/grimrock-20130515.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils multilib gnome2-utils unpacker games
+
+TIMESTAMP="${PV:0:4}-${PV:4:2}-${PV:6:2}"
+MY_PN="Grimrock"
+DESCRIPTION="Legend of Grimrock: The Ultimate dungeon crawling RPG + modding engine"
+HOMEPAGE="http://www.grimrock.net/"
+SRC_URI="LegendOfGrimrock-Linux-${TIMESTAMP}.sh"
+
+SLOT="0"
+LICENSE="all-rights-reserved"
+KEYWORDS="-* amd64 x86"
+IUSE="bundled-libs"
+RESTRICT="fetch bindist splitdebug"
+
+QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/${MY_PN}.bin.*
+ ${GAMES_PREFIX_OPT}/${PN}/lib.*"
+
+RDEPEND="
+ app-arch/bzip2
+ media-libs/freetype:2
+ media-libs/ilmbase
+ media-libs/lcms
+ =media-libs/libpng-1.6*
+ media-libs/libraw
+ media-libs/jasper:=
+ media-libs/openexr
+ media-libs/tiff
+ sys-libs/zlib
+ virtual/jpeg:62
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libxcb
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ !bundled-libs? (
+ media-libs/freeimage[png]
+ media-libs/libogg
+ media-libs/libvorbis
+ media-libs/openal
+ sys-libs/zlib[minizip]
+ )"
+DEPEND="app-arch/xz-utils"
+
+S=${WORKDIR}
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+ einfo
+}
+
+src_unpack() {
+ use amd64 && myarch=x86_64 || myarch=x86
+
+ local archivelist=(
+ subarch
+ instarchive_all
+ instarchive_linux_${myarch}
+ deps/SDL2/SDL2_files_linux_${myarch}
+ deps/FreeImage/FreeImage_files_linux_${myarch}
+ deps/libogg/libogg_files_linux_${myarch}
+ deps/minizip/minizip_files_linux_${myarch}
+ deps/openal/openal_files_linux_${myarch}
+ deps/vorbis/vorbis_files_linux_${myarch}
+ )
+
+ unpack_makeself
+
+ local i
+ for i in $(if use bundled-libs ; then echo ${archivelist[@]} ; else echo ${archivelist[@]:0:4} ; fi) ; do
+ mv "${i}" "${i}.tar.xz" || die
+ unpack ./"${i}.tar.xz"
+ done
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+
+ insinto "${dir}"
+ doins ${PN}.{dat,png}
+
+ exeinto "${dir}"
+ doexe "${MY_PN}.bin.${myarch}"
+
+ exeinto "${dir}"/lib
+ doexe $(get_libdir)/libSDL2-2.0.so.0
+ use bundled-libs && {
+ doexe $(get_libdir)/lib{freeimage.so.3,minizip.so.1,ogg.so.0,openal.so.1,vorbisfile.so.3,vorbis.so.0}
+ }
+
+ games_make_wrapper "${PN}" "./${MY_PN}.bin.${myarch}" "${dir}" "${dir}"/lib
+ doicon -s 256 ${PN}.png
+ newicon -s 64 ${MY_PN}.png ${PN}.png
+ make_desktop_entry "${PN}" "Legend of ${MY_PN}"
+
+ dodoc README.linux
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "If you are using opensource drivers you should consider installing:"
+ elog " media-libs/libtxc_dxtn"
+
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/grimrock/metadata.xml b/games-rpg/grimrock/metadata.xml
new file mode 100644
index 000000000000..befc8c80e0b1
--- /dev/null
+++ b/games-rpg/grimrock/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="bundled-libs">Use bundled libraries.</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-rpg/gwiz/Manifest b/games-rpg/gwiz/Manifest
new file mode 100644
index 000000000000..f524ba9b13cf
--- /dev/null
+++ b/games-rpg/gwiz/Manifest
@@ -0,0 +1,7 @@
+AUX gwiz-0.8-buffer.patch 653 SHA256 988047124e5b9b090879514b2316f89203c57574a576c271673657867c9e3d04 SHA512 127bf8b442f437fa1ad373f203aaa388f28e59f570257a6ea44906997ed069c379f7b96879c95a198e420a86653331e73a0d2f54fbb55731383f22f274d5b4ba WHIRLPOOL fec294bd4d2425aee9016180969fa14d803467792c2c0fd9a1df9e16ad2ea4fd2149844f426ece8c373a239c0a378bb31e4e9a5f035559f942fb3b8c7b93028b
+DIST gwiz-0.8.tar.bz2 1141667 SHA256 8b19a5523460068a0e3ed4d9b7ec51de0dfb28418d75ccb00afcd4e13eae4f08 SHA512 3c18cc7e905dd87eab7dbf332b985600bbcc8c2992fbc79d992fb0f00c3095c502f416166f0e3320f18b9e011c26675c42e79375f44225b61aba415509837f20 WHIRLPOOL 2831b664a7b2083a477e80873f31fc6b3d07c60f6a9b1ec27068b32774c69fac03c0e5bcaf2bbf02bd03e8fcfa1c401d5036bbc43309dd4d7c8e454c57af66dd
+EBUILD gwiz-0.8-r1.ebuild 774 SHA256 642a09e0da918e9bb61ea4cedc09783ddc0d39fd175e1ea27b5e0471c7d15ff2 SHA512 9e305c35a0d2efa22c409ffc4898859624644cd4a34a897ba8dcadd640653e5160fd0c4ae95f6efe6c42fe2e890bd9b56e9f4514d39e0fc4f96c98de21b67626 WHIRLPOOL 2d61f17c9f72f82c643affc3538452fc51ba9844e5abd1b6c17d7801695b2d6c474c659c93c36f477ce78b5ccd0cbe043682d942d070579b6513a1ceaa84384a
+EBUILD gwiz-0.8.ebuild 762 SHA256 0eb3884e02a0a53ffc9ef7e95b92e922a40fa860663b824c5e9a267636810472 SHA512 4262f0c0157795f382b3bce93849469b30ac5b5ac38f4fe06500fa15a9871b9761e9803e44b58aa3ee482c789bb88a59635c0497ecbe96e145aa1892ab041aca WHIRLPOOL ce2d0c709dd1f014ce66d5d7fedc143d9d6235cd9e1ebd9a8d615581ea74c6c7d210b79081ca848dc753b4637970859793ed9abe786f4cc7a3dfe02efd77dc6e
+MISC ChangeLog 2858 SHA256 35f9334364d8fb23bf92f464f8b243c90b3097b8d62edaa14179c3b06a9869b5 SHA512 034b0352f11f8a3d470f7e8de14b752fc69ca6fc7b4c072920cf2ea56d73386add0796e5c9d38b86f5dea9f1e444334e5128cfca1e4c15bb9665ab92684340cd WHIRLPOOL b1c9211c05616df16a6d4056aca4a92ec8efaec1f858ffe9f4828c3c47e5d1c06453c0a220ebdedaf1352f9268011675d053a6460ff9f7927b350c84caea93ba
+MISC ChangeLog-2015 1740 SHA256 7caf503d421ed6685c829e28aa9ee37c4345b15622ba03b7a3dd20a7ce6e8512 SHA512 65dc05c105d13b0f7ddfc622ec4bc108ba8468063b0fc67a5106d9ebe2d03d22f0a138fff36cc3e397f43723362757f2286c09bc40b38f255f040e3070af128c WHIRLPOOL c8c335c492aa8bb307086ac27288aa6a003f4f329e02d2bac3fc0771e977d693fab73aaff5e69387ff1d3a02745fd9ec0ea92a52c03c4abce63d7ac9b5d576fa
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-rpg/gwiz/files/gwiz-0.8-buffer.patch b/games-rpg/gwiz/files/gwiz-0.8-buffer.patch
new file mode 100644
index 000000000000..44ee9aec15fb
--- /dev/null
+++ b/games-rpg/gwiz/files/gwiz-0.8-buffer.patch
@@ -0,0 +1,23 @@
+--- a/src/equip.c
++++ b/src/equip.c
+@@ -120,7 +120,7 @@
+ return (i);
+
+ /* if we get this far, there are no equippable items before the current */
+- for (i = 8; i > offset; i--)
++ for (i = 7; i > offset; i--)
+ if (pawn->item[i].usage & USAGE_EQUIPPABLE)
+ return (i);
+ return (-1);
+--- a/src/shop.c
++++ b/src/shop.c
+@@ -290,8 +290,7 @@
+
+ SDL_BlitSurface (name, NULL, area, &dest);
+
+- snprintf (price, sizeof(char)*8, "%d", pawn->item[i].sellfor);
+- price[9] = '\0';
++ snprintf (price, sizeof(price), "%d", pawn->item[i].sellfor);
+ profit = GwizRenderText (price);
+ dest.x = area->w - profit->w;
+ dest.w = profit->w;
diff --git a/games-rpg/gwiz/gwiz-0.8-r1.ebuild b/games-rpg/gwiz/gwiz-0.8-r1.ebuild
new file mode 100644
index 000000000000..f7a462a9a302
--- /dev/null
+++ b/games-rpg/gwiz/gwiz-0.8-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic
+
+DESCRIPTION="clone of old-school Wizardry(tm) games by SirTech"
+HOMEPAGE="http://icculus.org/gwiz/"
+SRC_URI="http://icculus.org/gwiz/${P}.tar.bz2"
+
+KEYWORDS="~alpha ~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.2.3[joystick,video]
+ >=media-libs/sdl-image-1.2.1-r1[png]
+ >=media-libs/sdl-ttf-2.0.4"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-buffer.patch
+)
+
+src_prepare() {
+ default
+
+ append-cflags -std=gnu89 # build with gcc5 (bug #572532)
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog README doc/HOWTO-PLAY" \
+ default
+ newicon pixmaps/gwiz_icon.xpm ${PN}.xpm
+ make_desktop_entry gwiz Gwiz
+}
diff --git a/games-rpg/gwiz/gwiz-0.8.ebuild b/games-rpg/gwiz/gwiz-0.8.ebuild
new file mode 100644
index 000000000000..ddd60d95f866
--- /dev/null
+++ b/games-rpg/gwiz/gwiz-0.8.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic games
+
+DESCRIPTION="clone of old-school Wizardry(tm) games by SirTech"
+HOMEPAGE="http://icculus.org/gwiz/"
+SRC_URI="http://icculus.org/gwiz/${P}.tar.bz2"
+
+KEYWORDS="~alpha amd64 x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.2.3[joystick,video]
+ >=media-libs/sdl-image-1.2.1-r1[png]
+ >=media-libs/sdl-ttf-2.0.4"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-buffer.patch
+ append-cflags -std=gnu89 # build with gcc5 (bug #572532)
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog README doc/HOWTO-PLAY" \
+ default
+ newicon pixmaps/gwiz_icon.xpm ${PN}.xpm
+ make_desktop_entry gwiz Gwiz
+}
diff --git a/games-rpg/gwiz/metadata.xml b/games-rpg/gwiz/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-rpg/gwiz/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-rpg/kqlives/Manifest b/games-rpg/kqlives/Manifest
new file mode 100644
index 000000000000..e839e6271f3e
--- /dev/null
+++ b/games-rpg/kqlives/Manifest
@@ -0,0 +1,7 @@
+AUX kqlives.xpm 1404 SHA256 b1c3d184e75a2af45fc87e0e9fc19318e924c808b6e3b026b535869f09ab73d4 SHA512 32aeaa6e80c906f894773a12fa3bfdd2c52f15b11fe00bd99020d1577441a13573abb02a1fb0f11bb875fc1c61bfdc56285b805a5fd423d9ecc42ceb32eb8e66 WHIRLPOOL 3395c57b14c0e2bdbf2a2856a11313596cd2e6414e2ab6c1a0f83d31508c62d29bb080929843cea84bbd00edc09687d058980c34a9289882b2c96de200f033fc
+DIST kq-0.99.tar.gz 3642143 SHA256 a8742d0a8781bd3626aef17ae382525b0abb4ab194004c9acf9f136b7be2b6fd SHA512 fa343561679baf2201fb7107153ca07b715c1e56c9a4cb17db0f04759dd859436e8daa6a364d62ad57d138dbb5d8c680e35cafecea1a8f7f217ec190bfdd7918 WHIRLPOOL d69cab79f537928ee159e4bb50e87a54fe614996305e98f755d7deda40b9ea74ff4984e63838a0b52e1af0ab2b885481907e11f0e46b760332931136ff6e994c
+EBUILD kqlives-0.99-r1.ebuild 866 SHA256 a53bde9b1f51d99a55843d011c65ddab48e034be209b67631b86afd78c634ed7 SHA512 91d23559953cbc02bb30f50f62a5467b8cf3e90347501fbaf9abc8c73292eb8730fa6dde2d59fd4d627db7b4c300d1287b2d34e41d1008ab0326eecc0af616a0 WHIRLPOOL 12aacc01fefb230469159fb3c11f4e440a859aa00c0e379cb620ac9025d12e7c1d998c8b359dcfb66249f0e8fd1ac8a2b5436d01698755cb5dbc67e17e10075b
+EBUILD kqlives-0.99.ebuild 911 SHA256 880046963bad75410181cd902e02e7938a120f05b9910d9f2b204ee6fe3b601e SHA512 5b94d82a7c7654462c820416dfc2a6dbd08d61c7407cfedaf4f972a6c8cb42e6d45ea58c038f3f8989a8b6f088d5baadd696094fd3f50ea871731106331a6248 WHIRLPOOL 57acd4df34db716644b020311a50818fa7cbfe0fc5d61ce0a0ea926333cdc82385f604eb493290090f314920ae74daab828507e9eeead732d10bc188a861a7ab
+MISC ChangeLog 2840 SHA256 f7bbee4aa94737a95a84fdf4527cd97a8e8f7646778197534e0bb80421e70950 SHA512 da7c32f09540c367011bc2690c379d5394c8b8b97a0421c9ab892088ed6b7b16a98c66db6c39365319fe7561ce76dfcc2c8d796fa12c21cf88eae2eb5277924f WHIRLPOOL 6ca9d586f038fde838d45eefc6fa24f6453c94c4f3b658ccf9ce3e33be9161c71b538a282a0f7ccb0ec84ebcbe974fbf57635f14bd5f6f74c363e69209a22ec8
+MISC ChangeLog-2015 990 SHA256 05b1448fdff9605e8a035284dd9c15629d19b75e8c6ff2c197fec0950378cb4a SHA512 d7ef61043a9fba1789c63c77ef5f83e656c52cdffe48668f5b5ff05442d15ff675c471ee12c78afb0a3bad711752d04e85cbfcc2e7e952ba57c7a89aad655833 WHIRLPOOL 698368d2999c180294cbc5d453f8652b16e4ce8d3e10481db520fce0ce3fae93ddd77e02cc10b80f760b4f179b115c952801062cd4d71d28d9a2b47afbce855c
+MISC metadata.xml 409 SHA256 e349dcb6fa6f59ea7fe4541c2d47952eb3610db346c81fff07db66303554b4fd SHA512 d341ddc4a801b649ae83022f3ea04480f59569b2cf91c106ace77735d1d7902fd10a739f41014c1928aae05f66643826390bdfc7917fbfa7106b3656a286edbc WHIRLPOOL fd53043131f1b49afafdd4b40f4fb7d21ce263c6c1cffe594d99625e0a4d0583db9e98089ba12104dcad8a7a8b6ae79b00b1dbb46b4d2ae0e069740a6c7f841e
diff --git a/games-rpg/kqlives/files/kqlives.xpm b/games-rpg/kqlives/files/kqlives.xpm
new file mode 100644
index 000000000000..58baadb615ed
--- /dev/null
+++ b/games-rpg/kqlives/files/kqlives.xpm
@@ -0,0 +1,48 @@
+/* XPM */
+static char *kq__[] = {
+/* columns rows colors chars-per-pixel */
+"32 32 10 1",
+" c #000000",
+". c #800000",
+"X c #808000",
+"o c #000080",
+"O c #0000FF",
+"+ c #008080",
+"@ c #00FFFF",
+"# c #808080",
+"$ c #C0C0C0",
+"% c None",
+/* pixels */
+"%%$$%%%%%%%%%%%%%%%%%%%%%%%%%%%%",
+"%%$$$%%%%%%%%%%%%%%%%%%%%%%%%$#%",
+"%%%#$$$%%%%%%%%%%%%%%%%%%%%$$#$%",
+"%%%%$$$#$%%%%%%%%%%%%%%%%$$$$%%%",
+"%%%%%#$$$#$%%%%%%%%%%%%$$$$#$%%%",
+"%%%%%%$$$$#$$%%%%%%%%%$$$$$%%%%%",
+"%%%%%%%##$$##$$$$$$%$##$$#$%%%%%",
+"%%%%%%%%$####$$$$$$######%%%%%%%",
+"%%%%%%%%%##$%$$####$$###$%%%%%%%",
+"%%%%%%%%%%$%$oOOOOO##$#%%%%%%%%%",
+"%%%%%%%%%#$##OO+++OOo$#%%%%%%%%%",
+"%%%%%%%%%%%oo++++++OO$$%%%%%%%%%",
+"%%%%%%%%%$$OO++@@++OO$$%%%%%%%%%",
+"%%%%%%%%%$$OO++@@++OO%$%%%%%%%%%",
+"%%%%%%%%%#$ooO+++++Oo%%%%%%%%%%%",
+"%%%%%%%%%##$#OOOOOOo#%$%%%%%%%%%",
+"%%%%%%%%%##$$##ooo#%%#$%%%%%%%%%",
+"%%%%%%%$$####$$$$$%%$$$$$%%%%%%%",
+"%%%%%%%##$%%%###$$$#$$###%%%%%%%",
+"%%%%%$#$$%%%%##$#$$#$%%$##$%%%%%",
+"%%%%%$$%%%%%%###$###$%%%%##%%%%%",
+"%%%%%%%%%%%%%##$$$##$%%%%%%%%%%%",
+"%%%%%%%%%%%%%##$$$$ #%%%%%%%%%%%",
+"%%%%%%%%%%%%%##$$$$ #%%%%%%%%%%%",
+"%%%%%%%%%%%%%##$$$# #%%%%%%%%%%%",
+"%%%%%%%%%%%%%$#XXXX$%%%%%%%%%%%%",
+"%%%%%%%%%%%%%%$XXXX%%%%%%%%%%%%%",
+"%%%%%%%%%%%%%%$XXXX%%%%%%%%%%%%%",
+"%%%%%%%%%%%%%%$.XXX%%%%%%%%%%%%%",
+"%%%%%%%%%%%%%%$.XXX%%%%%%%%%%%%%",
+"%%%%%%%%%%%%%%$XXXX%%%%%%%%%%%%%",
+"%%%%%%%%%%%%%%$XXXX%%%%%%%%%%%%%"
+};
diff --git a/games-rpg/kqlives/kqlives-0.99-r1.ebuild b/games-rpg/kqlives/kqlives-0.99-r1.ebuild
new file mode 100644
index 000000000000..f743549a0f44
--- /dev/null
+++ b/games-rpg/kqlives/kqlives-0.99-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+MY_P=${P/lives}
+
+DESCRIPTION="A console-style role playing game"
+HOMEPAGE="http://kqlives.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cheats nls"
+
+RDEPEND="
+ dev-lang/lua:0
+ >=gnome-base/libglade-2.4
+ media-libs/aldumb
+ media-libs/allegro:0
+ >=x11-libs/gtk+-2.8:2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${MY_P}
+
+src_configure() {
+ econf \
+ $(use_enable cheats) \
+ $(use_enable nls)
+}
+
+src_install() {
+ default
+
+ local x
+ for x in diff draw draw2 dump; do
+ mv -vf "${D}/etc"/map${x} "${D}/etc"/kq-map${x}
+ done
+
+ doicon "${FILESDIR}"/${PN}.xpm
+ make_desktop_entry kq KqLives ${PN}
+}
diff --git a/games-rpg/kqlives/kqlives-0.99.ebuild b/games-rpg/kqlives/kqlives-0.99.ebuild
new file mode 100644
index 000000000000..63bd756be5c5
--- /dev/null
+++ b/games-rpg/kqlives/kqlives-0.99.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+MY_P=${P/lives}
+
+DESCRIPTION="A console-style role playing game"
+HOMEPAGE="http://kqlives.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="cheats nls"
+
+RDEPEND=">=x11-libs/gtk+-2.8:2
+ >=gnome-base/libglade-2.4
+ media-libs/allegro:0
+ media-libs/aldumb
+ dev-lang/lua:0
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${MY_P}
+
+src_configure() {
+ egamesconf \
+ $(use_enable nls) \
+ $(use_enable cheats)
+}
+
+src_install() {
+ default
+
+ local x
+ for x in diff draw draw2 dump; do
+ mv -vf "${D}${GAMES_BINDIR}"/map${x} "${D}${GAMES_BINDIR}"/kq-map${x}
+ done
+
+ doicon "${FILESDIR}"/${PN}.xpm
+ make_desktop_entry kq KqLives ${PN}
+
+ prepgamesdirs
+}
diff --git a/games-rpg/kqlives/metadata.xml b/games-rpg/kqlives/metadata.xml
new file mode 100644
index 000000000000..6cc3c22df52e
--- /dev/null
+++ b/games-rpg/kqlives/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="cheats">Enable cheating mode</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">kqlives</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/lure/Manifest b/games-rpg/lure/Manifest
new file mode 100644
index 000000000000..57b8336f2d5c
--- /dev/null
+++ b/games-rpg/lure/Manifest
@@ -0,0 +1,11 @@
+DIST lure-0.13.1.dat 637824 SHA256 ea047bca769ca8515ec70727ba45a1c494ed0bea5943023d330ab55f592fcd10 SHA512 2e9c3f049a0d77d94ec1f6b231cf2ee04df148115dd2daa8bc8faf717d509843949964bbed990b804bde5788ab20460ce109f166a936ed176797a093b8973f73 WHIRLPOOL 1ff6e966a2f7ecf4f719de5df7a0122f2374de7ebd33fe16ecf4faa7304b0d35217f2b9d80ccbe4bda56c441e0e8fea48d306172580e02de0b07cbcce254b53d
+DIST lure-de-1.1.zip 3717138 SHA256 5e83a6a8646629c55cfd84932b10231af2ff16d96e815ed0ce86564a0b3c186b SHA512 67a0bebe62d343492316351fcf51d928a2323038b915b228322882a98988bdd60dcbce3b39d50c75fb675acc16fd87efbfc4d2a747ba0c6a43b246a689383767 WHIRLPOOL b8eebda32c54c07dbe2e5b787b01e312c7ddeeca7a05d378c7ebd7c3e093c7d5cccc10a35877b15a440fa0a7ba790bd92c0f5cd06dfad57cde46ac285d7e3a2c
+DIST lure-en-1.1.zip 5678861 SHA256 f3178245a1483da1168c3a11e70b65d33c389f1f5df63d4f3a356886c1890108 SHA512 9c178b0df178cf70c3d912300911972589e3ecd44ad478393d423f646da79a6084dc76496dfef740f961ff0d6991d7e5cfb6d9c39e2cf1920c9276386403e281 WHIRLPOOL 369317b34771049b0a913d98302bb047fdc44fee3bdba194250bada15c898b45367d4f5fa0b89cafcf9a9f806432bda262957ed0d204286528ac3f107b4e8ff8
+DIST lure-es-1.1.zip 2176970 SHA256 9306b9faad8c0a8189d3cbbfead511fc4d993655cc845cb8e15369baed2f7bb7 SHA512 744a8d9443a8e4c41c0a07383c7143ff0423702b0893e9e3200b5c8a002d76231c48d9dd7d7076eabcf68c50b1755d2ba71f505122d1cf6a42aae8a825e2db29 WHIRLPOOL b6a90fbcca97941515bedad9fc91dc9d68f3d874f57297aa05e72eb1f2b1b39f554baabb58a9bf105f7f922646823b342518658dffbf1ace23c5fee85a69fcf0
+DIST lure-fr-1.1.zip 3583274 SHA256 2983149f9912a72761b1225e834a41d19aa565689b9027061a0220779694a1f8 SHA512 d2972d1c19da2ff74f72e54290f53e4af89a96b9e647ef6d50c686fd1ff8433020eac78ab24613551be8343b854c80c61a1140fc2ccda3e20dd05f22c6fc7f4a WHIRLPOOL 7d1e9b30dd60f1e7cd3ac7b0bddfaeecb4f61d3a1875ae2a39b61498fde8df6f5b664b3310ea22d45b91d62058aaefefc6896f0717ae75ede748d922c34593d7
+DIST lure-it-1.1.zip 4718011 SHA256 524270b2fb3f1caef621acf4379e3dbb69aed3c8ec1a98b38e94b290d3b046cf SHA512 1af90c8867f6426983fd3eb22651f0f2ab425b1a74110bda0277339ad82c7cffcc9ba9d9790909f5120f8a4d5c2cd82ed1ef9555511fc4c4064dd1563ec75abf WHIRLPOOL 7939a1ced2e98afef93a2ae8ca6cdc02eb1ed56bc259e7b9f7d4b2a6f0338fb6cfba2be7c993de6a5fc552b7ae54df46516b8a1e24f4c4cc05062aea586858db
+EBUILD lure-1.1-r1.ebuild 2825 SHA256 bee152672ac946d246945e7f27bd9cb0ae2a56781390bd6de3ca19bb5c01d0d7 SHA512 a5fbc56953dbd81eab52ee85037b16050689f27a54ffbf177c49065af0049aeccad6bd16076d2b50e0b337012f2ab4a787b9f6f665b03f5b276156d70d0df2a8 WHIRLPOOL 30fad902cdb5dcef6d7f3374a684c10e9fb4919f88fe86ad4374d4ebd162303308293f697691939365368f49a6bf6de8f5b30ec830ec087f5467cec45e3b60b5
+EBUILD lure-1.1.ebuild 2857 SHA256 485645f6024b352a984e800fa59e3e12e9bae26588954a1ca00be825c6a3856b SHA512 aea5d9aa00a4c6082c782ced5917639c6eadb8fe2ff1068b7b20eaf4eb8818009ca8b94a8a11ccf8d4c031348ddbc4425ba0e866538c68aa4da3cdc4df8fda42 WHIRLPOOL ca8c1c61bbc18487d9004a78beb06a3533905025f04faffb2a7f7f1e5c5501b2ca300bf6b80177ea7797ffb6c5fdf4ff772e2d5678401f463a0cbe7f85faf533
+MISC ChangeLog 2415 SHA256 4d48bc8d0eac2baf1d6a45f4e81d9cadd9f13fcb7817b73315f7c411f6587926 SHA512 0004a3441132491e5d07f37c1e3dd3816b0e98391d3910d6251d30ce692ca96ff7fa9185594ce799e3f6d7434b3ffdb8270f2d89da8b15b943aad3cd8bad4a54 WHIRLPOOL 23d59a603ccca9136ad5984e07ed9d3eb344ef98c94d504065b96d0c78d4dd1e71bc3d4e3ad04711516915eec5463209aa69c197fc151d478cfa4544544676a2
+MISC ChangeLog-2015 975 SHA256 5863e4d814a568f50ea461eec86daabd04b2bfc95fe4bc09a82967e5e646425e SHA512 e9a62d3b888b8dd0ce4259c3898c7e82c3144e9a9ec023edc42c14749eade4c2cc5c41d536007bdc9fff6c55623a6e9a991001634b89997389acdfa52c9fbd54 WHIRLPOOL 9556ff2a8ba6ec513069f8482e01f3f84efcea9b49c052c2a0f14ba9462442182652d48093d7e551191ec866029857f5f40cea964a202164d550f0507152201b
+MISC metadata.xml 330 SHA256 0d5c67cb9a53d3220c7278b788f0cb6098e2e2da9fbe32dab98b52bf2e7d3bd6 SHA512 4541c93daab84bd6d0764adccf44bb4986ba02303e731b5b9a7a8060bb88a32c1cef91e2b2910e15915b67cf3ea2b5f31b4e637909d1d0b7c3b627f1134206dc WHIRLPOOL 9f36f51c4682de84bedf3b7757f32ca434702738412ae588f0232a505740d5110d72c13442e4753fbb8f804563c47be02e2f61247c0933895f76e468b3abe0db
diff --git a/games-rpg/lure/lure-1.1-r1.ebuild b/games-rpg/lure/lure-1.1-r1.ebuild
new file mode 100644
index 000000000000..7aeff31daca7
--- /dev/null
+++ b/games-rpg/lure/lure-1.1-r1.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DAT_PV=0.13.1
+DESCRIPTION="Lure of the Temptress"
+HOMEPAGE="http://www.revolution.co.uk/_display.php?id=10"
+SRC_URI="
+ https://raw.githubusercontent.com/scummvm/scummvm/266aef932a8a052df897e4d79b4572e5d169916f/dists/engine-data/lure.dat -> lure-${DAT_PV}.dat
+ !linguas_en? ( !linguas_es? ( !linguas_fr? ( !linguas_de? ( !linguas_it?
+ ( mirror://sourceforge/scummvm/${P}.zip -> ${PN}-en-${PV}.zip ) ) ) ) )
+ linguas_en? ( mirror://sourceforge/scummvm/${P}.zip -> ${PN}-en-${PV}.zip )
+ linguas_es? ( mirror://sourceforge/scummvm/${PN}-es-${PV}.zip )
+ linguas_fr? ( mirror://sourceforge/scummvm/${PN}-fr-${PV}.zip )
+ linguas_de? ( mirror://sourceforge/scummvm/${PN}-de-${PV}.zip )
+ linguas_it? ( mirror://sourceforge/scummvm/${PN}-it-${PV}.zip )"
+
+LICENSE="lure"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+LANGS_IUSE="linguas_en linguas_es linguas_de linguas_fr linguas_it"
+IUSE=${LANGS_IUSE}
+RESTRICT="mirror"
+
+RDEPEND=">=games-engines/scummvm-0.13.1"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+any_linguas() {
+ use linguas_en || use linguas_es || use linguas_de || use linguas_fr || use linguas_it
+}
+
+src_unpack() {
+ local lang
+
+ if any_linguas ; then
+ for lang in ${LANGS_IUSE}
+ do
+ use ${lang} && unpack ${PN}-${lang/linguas_}-${PV}.zip
+ done
+ mv lure lure-en 2> /dev/null
+ else
+ unpack ${PN}-en-${PV}.zip
+ fi
+}
+
+src_prepare() {
+ local lang f
+
+ default
+
+ find . \
+ \( -iname "*exe" \
+ -o -iname "*ega" \
+ -o -iname LICENSE.txt \) \
+ -exec rm -f '{}' +
+ mkdir docs
+ if any_linguas ; then
+ for lang in ${LANGS_IUSE}
+ do
+ mkdir docs/${lang}
+ find lure-${lang/linguas_} \
+ \( -iname "*pdf" \
+ -o -iname README \
+ -o -iname "*txt" \) \
+ -exec mv '{}' docs/${lang} \; 2> /dev/null
+ done
+ else
+ find lure \
+ \( -iname "*pdf" \
+ -o -iname README \
+ -o -iname "*txt" \) \
+ -exec mv '{}' docs \; 2> /dev/null
+ fi
+ for f in $(find docs -type f)
+ do
+ mv ${f} ${f%.*}.$(echo ${f#*.} | tr '[[:upper:]]' '[[:lower:]]') 2> /dev/null
+ done
+}
+
+src_install() {
+ local lang
+
+ if any_linguas ; then
+ for lang in ${LANGS_IUSE}
+ do
+ if use ${lang} ; then
+ lang=${lang/linguas_}
+ insinto "/usr/share/${PN}-${lang}"
+ newins "${DISTDIR}"/lure-${DAT_PV}.dat lure.dat
+ doins -r ${PN}-${lang}/*
+ make_wrapper ${PN}-${lang} "scummvm -q ${lang} -f -p \"/usr/share/${PN}-${lang}\" lure" .
+ make_desktop_entry ${PN}-${lang} "Lure of the Temptress (${lang})" ${PN}
+ docinto linguas_${lang}
+ dodoc docs/linguas_${lang}/*
+ fi
+ done
+ else
+ insinto "/usr/share/${PN}"
+ newins "${DISTDIR}"/lure-${DAT_PV}.dat lure.dat
+ doins -r ${PN}/*
+ make_wrapper ${PN} "scummvm -f -p \"/usr/share/${PN}\" lure" .
+ make_desktop_entry ${PN} "Lure of the Temptress"
+ fi
+}
diff --git a/games-rpg/lure/lure-1.1.ebuild b/games-rpg/lure/lure-1.1.ebuild
new file mode 100644
index 000000000000..d44387746e5f
--- /dev/null
+++ b/games-rpg/lure/lure-1.1.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DAT_PV=0.13.1
+DESCRIPTION="Lure of the Temptress"
+HOMEPAGE="http://www.revolution.co.uk/_display.php?id=10"
+SRC_URI="
+ http://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-0-13-1/dists/engine-data/lure.dat -> lure-${DAT_PV}.dat
+ !linguas_en? ( !linguas_es? ( !linguas_fr? ( !linguas_de? ( !linguas_it?
+ ( mirror://sourceforge/scummvm/${P}.zip -> ${PN}-en-${PV}.zip ) ) ) ) )
+ linguas_en? ( mirror://sourceforge/scummvm/${P}.zip -> ${PN}-en-${PV}.zip )
+ linguas_es? ( mirror://sourceforge/scummvm/${PN}-es-${PV}.zip )
+ linguas_fr? ( mirror://sourceforge/scummvm/${PN}-fr-${PV}.zip )
+ linguas_de? ( mirror://sourceforge/scummvm/${PN}-de-${PV}.zip )
+ linguas_it? ( mirror://sourceforge/scummvm/${PN}-it-${PV}.zip )"
+
+LICENSE="lure"
+SLOT="0"
+KEYWORDS="amd64 x86"
+LANGS_IUSE="linguas_en linguas_es linguas_de linguas_fr linguas_it"
+IUSE=${LANGS_IUSE}
+RESTRICT="mirror"
+
+RDEPEND=">=games-engines/scummvm-0.13.1"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+any_linguas() {
+ use linguas_en || use linguas_es || use linguas_de || use linguas_fr || use linguas_it
+}
+
+src_unpack() {
+ local lang
+
+ if any_linguas ; then
+ for lang in ${LANGS_IUSE}
+ do
+ use ${lang} && unpack ${PN}-${lang/linguas_}-${PV}.zip
+ done
+ mv lure lure-en 2> /dev/null
+ else
+ unpack ${PN}-en-${PV}.zip
+ fi
+}
+
+src_prepare() {
+ local lang f
+
+ find . \
+ \( -iname "*exe" \
+ -o -iname "*ega" \
+ -o -iname LICENSE.txt \) \
+ -exec rm -f '{}' +
+ mkdir docs
+ if any_linguas ; then
+ for lang in ${LANGS_IUSE}
+ do
+ mkdir docs/${lang}
+ find lure-${lang/linguas_} \
+ \( -iname "*pdf" \
+ -o -iname README \
+ -o -iname "*txt" \) \
+ -exec mv '{}' docs/${lang} \; 2> /dev/null
+ done
+ else
+ find lure \
+ \( -iname "*pdf" \
+ -o -iname README \
+ -o -iname "*txt" \) \
+ -exec mv '{}' docs \; 2> /dev/null
+ fi
+ for f in $(find docs -type f)
+ do
+ mv ${f} ${f%.*}.$(echo ${f#*.} | tr '[[:upper:]]' '[[:lower:]]') 2> /dev/null
+ done
+}
+
+src_install() {
+ local lang
+
+ if any_linguas ; then
+ for lang in ${LANGS_IUSE}
+ do
+ if use ${lang} ; then
+ lang=${lang/linguas_}
+ insinto "${GAMES_DATADIR}"/${PN}-${lang}
+ newins "${DISTDIR}"/lure-${DAT_PV}.dat lure.dat
+ doins -r ${PN}-${lang}/*
+ games_make_wrapper ${PN}-${lang} "scummvm -q ${lang} -f -p \"${GAMES_DATADIR}/${PN}-${lang}\" lure" .
+ make_desktop_entry ${PN}-${lang} "Lure of the Temptress (${lang})" ${PN}
+ docinto linguas_${lang}
+ dodoc docs/linguas_${lang}/*
+ fi
+ done
+ else
+ insinto "${GAMES_DATADIR}"/${PN}
+ newins "${DISTDIR}"/lure-${DAT_PV}.dat lure.dat
+ doins -r ${PN}/*
+ games_make_wrapper ${PN} "scummvm -f -p \"${GAMES_DATADIR}/${PN}\" lure" .
+ make_desktop_entry ${PN} "Lure of the Temptress"
+ fi
+ prepgamesdirs
+}
diff --git a/games-rpg/lure/metadata.xml b/games-rpg/lure/metadata.xml
new file mode 100644
index 000000000000..801e2cc48963
--- /dev/null
+++ b/games-rpg/lure/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">scummvm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/manaplus/Manifest b/games-rpg/manaplus/Manifest
new file mode 100644
index 000000000000..e30aa5d50cd9
--- /dev/null
+++ b/games-rpg/manaplus/Manifest
@@ -0,0 +1,8 @@
+DIST manaplus-1.7.9.2.tar.xz 14900648 SHA256 8fcbdf7cc5045e7f0118152774e6e190d27f9e612c440d929d5c02750716542d SHA512 9bb4888d85d133dbd730dfeb49456ef849bae04f9c8e4bd7b5fe1e4541ee4da291c193057e6ca77a7802b5256e977dccec334a5c6cbbcfa424f2faf2a6c2fe91 WHIRLPOOL af70949ae9b985607c2afb3432a1d0757470cf1d4ce896543d099e2b1c0d9ee5a362720cf0edc5ae5cb567a876f8acb7c19cef5fd04aa9db3f17406a1a910877
+DIST manaplus-1.7.9.30.tar.xz 14930020 SHA256 1ae531f2e049a26edbb8f373348c620d2f3761cefb6a49a9a4399e0f40cd9c6a SHA512 5be99c4199de09e05472f4c835466932693f5a86f3bfc7d79426c96adfeb3f6e4e647f511ab0c9c31433e3ed481e6df5a7a83abf50784587b8b95493c1391646 WHIRLPOOL af62630410a1d276d6ff5408aaf4bce3b13c6fd3bc2a2aa09176987175cecc8d0e621dd75c27c5e176abae73ef27651fac60f841861fb17ddb899cd0954d0598
+EBUILD manaplus-1.7.9.2.ebuild 3228 SHA256 9a4653a632ef02844d59b37050b83cf57c4fb3aaa006432e6823f0d140871113 SHA512 8680c8a037649156dc2ebdcb5916310c8456a7d1cb677825b4186e82830d360d4237629758d09512f4cd64f5a56f83d0b9a2fb733536477b87d2e52af2365a89 WHIRLPOOL b2a1a078045508ae8fb58d755e6e5c07e95c40f248a86ff309ca55022784e08bf143ae8ba93bc3fa76f39fdae946c39ead39ee264d305efa46293cc2782f0fc9
+EBUILD manaplus-1.7.9.30.ebuild 3230 SHA256 17cfab1e4a2a803e0ddea4b1dc4f99ddeafd1f239a0ab248422740b2ce237bad SHA512 4db1f628715e6978cdd6d7a59e739ac1b339ff90a18fdf08649f7a68157abbb934efc4fae0e047151a8c9f0979aba6cfe23c8e8c4ad46d52cf1adbdebd6c75aa WHIRLPOOL c995a611e748d0ce0a2acbe7e6eae205f4ac7133c2627cd17997b1be612d2ab3f8c164d205c43c3f766dfe518dd68fffd128f6253fb25d9dbdba632f49fba9a1
+EBUILD manaplus-9999.ebuild 3230 SHA256 17cfab1e4a2a803e0ddea4b1dc4f99ddeafd1f239a0ab248422740b2ce237bad SHA512 4db1f628715e6978cdd6d7a59e739ac1b339ff90a18fdf08649f7a68157abbb934efc4fae0e047151a8c9f0979aba6cfe23c8e8c4ad46d52cf1adbdebd6c75aa WHIRLPOOL c995a611e748d0ce0a2acbe7e6eae205f4ac7133c2627cd17997b1be612d2ab3f8c164d205c43c3f766dfe518dd68fffd128f6253fb25d9dbdba632f49fba9a1
+MISC ChangeLog 7951 SHA256 6ed98bddd928e925c5ceca148903b363395cf203f1b640862c5bbdc6c5768703 SHA512 482013c067aa4a99bcbbe3787aeaa356ae2fbaf78649a4498361b683ddd81f2591d4ab6a3de1574b836858b9a9e750a2f30c5675650b981a7f0343eae21bbf5d WHIRLPOOL 6eb738ed1f502dae3c8131f323e228e4200f498dc643ab71d078c3e569e1f941e3f4c34eb817601302286df75423112e584e6cddb984b12d6ec5b2bc94b66d0a
+MISC ChangeLog-2015 3313 SHA256 bf5ee50beff4935e0aeb7eeb4c8ead18103ba93345dac5cefd4415fb36dd129f SHA512 549a7682f259536c361b9009f8378a89b903fde550f41a2d5426256ab7fc8aa2aa187c95f4d1ff47461536b1b63617fbc49eaf59cd5cbd0b8df734bfd0d935a4 WHIRLPOOL 85d1a9d98d5288948b9e86a7c3121b3532ebfddc69b1d589dfa2f9f9d95e6df6cd12cb2a4e237f8b6f8de4af45cd686c5113c2e8a2a4d20572b715520c2ee22a
+MISC metadata.xml 501 SHA256 3ec80629a14e5c12e93444894fd1b9aa9b03054956c1cee82a850b65d41a8a83 SHA512 12cc5fda141e141100145ccdf97f56b4dfd5e9941348598e88f13b6524133585dcb9c9ee66c74660c6ab1b8c497d5d943ae59547d5e4ed9272c352ed6e4bb1f5 WHIRLPOOL 08c4b54c5148241ff2017a76574165e0977d9726659a642d8b1d7df0065db86c58ea4bbe8f7e0074ba28263339634433322ea5b0a4876c9cc2bf29184be02901
diff --git a/games-rpg/manaplus/manaplus-1.7.9.2.ebuild b/games-rpg/manaplus/manaplus-1.7.9.2.ebuild
new file mode 100644
index 000000000000..26dc7ca27dd2
--- /dev/null
+++ b/games-rpg/manaplus/manaplus-1.7.9.2.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+[[ ${PV} == 9999 ]] && inherit autotools git-r3
+
+DESCRIPTION="OpenSource 2D MMORPG client for Evol Online and The Mana World"
+HOMEPAGE="http://manaplus.evolonline.org"
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/ManaPlus/ManaPlus.git"
+else
+ SRC_URI="http://download.evolonline.org/manaplus/download/${PV}/${P}.tar.xz"
+ KEYWORDS="amd64 x86"
+fi
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="mumble nls opengl pugixml +sdl2 test"
+
+RDEPEND="
+ >=dev-games/physfs-1.0.0
+ media-fonts/dejavu
+ media-fonts/liberation-fonts
+ media-fonts/mplus-outline-fonts
+ media-fonts/wqy-microhei
+ media-libs/libpng:0=
+ net-misc/curl
+ sys-libs/zlib
+ x11-apps/xmessage
+ x11-libs/libX11
+ x11-misc/xdg-utils
+ mumble? ( media-sound/mumble )
+ nls? ( virtual/libintl )
+ opengl? ( virtual/opengl )
+ pugixml? ( dev-libs/pugixml )
+ !pugixml? ( dev-libs/libxml2 )
+ sdl2? (
+ media-libs/libsdl2[X,opengl?,video]
+ media-libs/sdl2-gfx
+ media-libs/sdl2-image[png]
+ media-libs/sdl2-mixer[vorbis]
+ media-libs/sdl2-net
+ media-libs/sdl2-ttf
+ )
+ !sdl2? (
+ media-libs/libsdl[X,opengl?,video]
+ media-libs/sdl-gfx
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-net
+ media-libs/sdl-ttf
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ default
+ if [[ ${PV} == 9999 ]] ; then
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ --localedir=/usr/share/locale
+ --without-internalsdlgfx
+ $(use_with mumble)
+ $(use_enable nls)
+ $(use_with opengl)
+ --enable-libxml=$(usex pugixml pugixml libxml)
+ $(use_with sdl2)
+ $(use_enable test unittests)
+ )
+ CONFIG_SHELL=/bin/bash econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ local destpath="/usr/share/${PN}"
+ dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${destpath}"/data/fonts/dejavusans-bold.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${destpath}"/data/fonts/dejavusans.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf "${destpath}"/data/fonts/dejavusansmono-bold.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSansMono.ttf "${destpath}"/data/fonts/dejavusansmono.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSerifCondensed-Bold.ttf "${destpath}"/data/fonts/dejavuserifcondensed-bold.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSerifCondensed.ttf "${destpath}"/data/fonts/dejavuserifcondensed.ttf
+ dosym /usr/share/fonts/liberation-fonts/LiberationMono-Bold.ttf "${destpath}"/data/fonts/liberationsansmono-bold.ttf
+ dosym /usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf "${destpath}"/data/fonts/liberationsansmono.ttf
+ dosym /usr/share/fonts/liberation-fonts/LiberationSans-Bold.ttf "${destpath}"/data/fonts/liberationsans-bold.ttf
+ dosym /usr/share/fonts/liberation-fonts/LiberationSans-Regular.ttf "${destpath}"/data/fonts/liberationsans.ttf
+ dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-bold.ttf "${destpath}"/data/fonts/mplus-1p-bold.ttf
+ dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-regular.ttf "${destpath}"/data/fonts/mplus-1p-regular.ttf
+ dosym /usr/share/fonts/wqy-microhei/wqy-microhei.ttc "${destpath}"/data/fonts/wqy-microhei.ttf
+}
+
+src_test() {
+ make check
+}
diff --git a/games-rpg/manaplus/manaplus-1.7.9.30.ebuild b/games-rpg/manaplus/manaplus-1.7.9.30.ebuild
new file mode 100644
index 000000000000..2d5897b5d6f1
--- /dev/null
+++ b/games-rpg/manaplus/manaplus-1.7.9.30.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+[[ ${PV} == 9999 ]] && inherit autotools git-r3
+
+DESCRIPTION="OpenSource 2D MMORPG client for Evol Online and The Mana World"
+HOMEPAGE="http://manaplus.evolonline.org"
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/ManaPlus/ManaPlus.git"
+else
+ SRC_URI="http://download.evolonline.org/manaplus/download/${PV}/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="mumble nls opengl pugixml +sdl2 test"
+
+RDEPEND="
+ >=dev-games/physfs-1.0.0
+ media-fonts/dejavu
+ media-fonts/liberation-fonts
+ media-fonts/mplus-outline-fonts
+ media-fonts/wqy-microhei
+ media-libs/libpng:0=
+ net-misc/curl
+ sys-libs/zlib
+ x11-apps/xmessage
+ x11-libs/libX11
+ x11-misc/xdg-utils
+ mumble? ( media-sound/mumble )
+ nls? ( virtual/libintl )
+ opengl? ( virtual/opengl )
+ pugixml? ( dev-libs/pugixml )
+ !pugixml? ( dev-libs/libxml2 )
+ sdl2? (
+ media-libs/libsdl2[X,opengl?,video]
+ media-libs/sdl2-gfx
+ media-libs/sdl2-image[png]
+ media-libs/sdl2-mixer[vorbis]
+ media-libs/sdl2-net
+ media-libs/sdl2-ttf
+ )
+ !sdl2? (
+ media-libs/libsdl[X,opengl?,video]
+ media-libs/sdl-gfx
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-net
+ media-libs/sdl-ttf
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ default
+ if [[ ${PV} == 9999 ]] ; then
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ --localedir=/usr/share/locale
+ --without-internalsdlgfx
+ $(use_with mumble)
+ $(use_enable nls)
+ $(use_with opengl)
+ --enable-libxml=$(usex pugixml pugixml libxml)
+ $(use_with sdl2)
+ $(use_enable test unittests)
+ )
+ CONFIG_SHELL=/bin/bash econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ local destpath="/usr/share/${PN}"
+ dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${destpath}"/data/fonts/dejavusans-bold.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${destpath}"/data/fonts/dejavusans.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf "${destpath}"/data/fonts/dejavusansmono-bold.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSansMono.ttf "${destpath}"/data/fonts/dejavusansmono.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSerifCondensed-Bold.ttf "${destpath}"/data/fonts/dejavuserifcondensed-bold.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSerifCondensed.ttf "${destpath}"/data/fonts/dejavuserifcondensed.ttf
+ dosym /usr/share/fonts/liberation-fonts/LiberationMono-Bold.ttf "${destpath}"/data/fonts/liberationsansmono-bold.ttf
+ dosym /usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf "${destpath}"/data/fonts/liberationsansmono.ttf
+ dosym /usr/share/fonts/liberation-fonts/LiberationSans-Bold.ttf "${destpath}"/data/fonts/liberationsans-bold.ttf
+ dosym /usr/share/fonts/liberation-fonts/LiberationSans-Regular.ttf "${destpath}"/data/fonts/liberationsans.ttf
+ dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-bold.ttf "${destpath}"/data/fonts/mplus-1p-bold.ttf
+ dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-regular.ttf "${destpath}"/data/fonts/mplus-1p-regular.ttf
+ dosym /usr/share/fonts/wqy-microhei/wqy-microhei.ttc "${destpath}"/data/fonts/wqy-microhei.ttf
+}
+
+src_test() {
+ make check
+}
diff --git a/games-rpg/manaplus/manaplus-9999.ebuild b/games-rpg/manaplus/manaplus-9999.ebuild
new file mode 100644
index 000000000000..2d5897b5d6f1
--- /dev/null
+++ b/games-rpg/manaplus/manaplus-9999.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+[[ ${PV} == 9999 ]] && inherit autotools git-r3
+
+DESCRIPTION="OpenSource 2D MMORPG client for Evol Online and The Mana World"
+HOMEPAGE="http://manaplus.evolonline.org"
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/ManaPlus/ManaPlus.git"
+else
+ SRC_URI="http://download.evolonline.org/manaplus/download/${PV}/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="mumble nls opengl pugixml +sdl2 test"
+
+RDEPEND="
+ >=dev-games/physfs-1.0.0
+ media-fonts/dejavu
+ media-fonts/liberation-fonts
+ media-fonts/mplus-outline-fonts
+ media-fonts/wqy-microhei
+ media-libs/libpng:0=
+ net-misc/curl
+ sys-libs/zlib
+ x11-apps/xmessage
+ x11-libs/libX11
+ x11-misc/xdg-utils
+ mumble? ( media-sound/mumble )
+ nls? ( virtual/libintl )
+ opengl? ( virtual/opengl )
+ pugixml? ( dev-libs/pugixml )
+ !pugixml? ( dev-libs/libxml2 )
+ sdl2? (
+ media-libs/libsdl2[X,opengl?,video]
+ media-libs/sdl2-gfx
+ media-libs/sdl2-image[png]
+ media-libs/sdl2-mixer[vorbis]
+ media-libs/sdl2-net
+ media-libs/sdl2-ttf
+ )
+ !sdl2? (
+ media-libs/libsdl[X,opengl?,video]
+ media-libs/sdl-gfx
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-net
+ media-libs/sdl-ttf
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ default
+ if [[ ${PV} == 9999 ]] ; then
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ --localedir=/usr/share/locale
+ --without-internalsdlgfx
+ $(use_with mumble)
+ $(use_enable nls)
+ $(use_with opengl)
+ --enable-libxml=$(usex pugixml pugixml libxml)
+ $(use_with sdl2)
+ $(use_enable test unittests)
+ )
+ CONFIG_SHELL=/bin/bash econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ local destpath="/usr/share/${PN}"
+ dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${destpath}"/data/fonts/dejavusans-bold.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${destpath}"/data/fonts/dejavusans.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf "${destpath}"/data/fonts/dejavusansmono-bold.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSansMono.ttf "${destpath}"/data/fonts/dejavusansmono.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSerifCondensed-Bold.ttf "${destpath}"/data/fonts/dejavuserifcondensed-bold.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSerifCondensed.ttf "${destpath}"/data/fonts/dejavuserifcondensed.ttf
+ dosym /usr/share/fonts/liberation-fonts/LiberationMono-Bold.ttf "${destpath}"/data/fonts/liberationsansmono-bold.ttf
+ dosym /usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf "${destpath}"/data/fonts/liberationsansmono.ttf
+ dosym /usr/share/fonts/liberation-fonts/LiberationSans-Bold.ttf "${destpath}"/data/fonts/liberationsans-bold.ttf
+ dosym /usr/share/fonts/liberation-fonts/LiberationSans-Regular.ttf "${destpath}"/data/fonts/liberationsans.ttf
+ dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-bold.ttf "${destpath}"/data/fonts/mplus-1p-bold.ttf
+ dosym /usr/share/fonts/mplus-outline-fonts/mplus-1p-regular.ttf "${destpath}"/data/fonts/mplus-1p-regular.ttf
+ dosym /usr/share/fonts/wqy-microhei/wqy-microhei.ttc "${destpath}"/data/fonts/wqy-microhei.ttf
+}
+
+src_test() {
+ make check
+}
diff --git a/games-rpg/manaplus/metadata.xml b/games-rpg/manaplus/metadata.xml
new file mode 100644
index 000000000000..474048077e6d
--- /dev/null
+++ b/games-rpg/manaplus/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="sdl2">Use libsdl2 instead of libsdl</flag>
+ <flag name="pugixml">Use <pkg>dev-libs/pugixml</pkg> for XML parsing isntead of <pkg>dev-libs/libxml2</pkg></flag>
+ <flag name="mumble">Enable support for voice chat</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-rpg/metadata.xml b/games-rpg/metadata.xml
new file mode 100644
index 000000000000..69a2c2a773bf
--- /dev/null
+++ b/games-rpg/metadata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The games-rpg category contains role-playing games.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie games-rpg enthält Rollenspiele.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría games-rpg contiene juegos de rol.
+ </longdescription>
+ <longdescription lang="ja">
+ games-rpgカテゴリーにはロール・プレイング・ゲームが含まれています。
+ </longdescription>
+ <longdescription lang="nl">
+ De games-rpg categorie bevat rollenspellen (Role-Playing Games).
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm games-rpg chứa các trò chơi dạng chơi theo lượt (role-playing - RPG).
+ </longdescription>
+ <longdescription lang="it">
+ La categoria games-rpg contiene giochi di ruolo.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria games-rpg contém jogos de RPG (Role-Playing Games).
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria games-rpg zawiera gry RPG.
+ </longdescription>
+</catmetadata>
+
diff --git a/games-rpg/nwmouse/Manifest b/games-rpg/nwmouse/Manifest
new file mode 100644
index 000000000000..1b774000dad4
--- /dev/null
+++ b/games-rpg/nwmouse/Manifest
@@ -0,0 +1,5 @@
+DIST nwmouse-20090906.183839.tar.bz2 86611 SHA256 a0f0f5b897a1281d4c2a2e416404aa9387ad5b69dcd0445393ca8f341b5b4d88 SHA512 a9e9cd31e572ce3722bdd30002616600b7c36931001b7dbae7ee9b0dca5f6fd57e8771d31e70f0f3ea28e454f43fbe2a490d54409de4b24762a8802a286ddbbf WHIRLPOOL b2d5d0321b7167c52842e137650c2feaced477df8d4e40e2e9d21d94566dc98d058d2a56f34dea5ced5dc582fdbe3df196bb7a0c3151b7c54f9eeb6561d4e21e
+EBUILD nwmouse-20090906.183839.ebuild 1509 SHA256 5a18565451011391b062fbde9da7d3b764ebe7ce5ad527e30d82395bc3d8489d SHA512 b4d9bb90794a99bd7a47ae9291326d4713fea559b49b23eb0e6527e2e65802a90652dc00e74cd01be18953b3db272b9aa79ccac639885a0e84d60cca0ece5910 WHIRLPOOL 46f30cf12baffccd4bbbb073ea200c5c3a8cc24bbf63b4c2caaf9f04e4c3f4d2a0302d99812c8527b7318d35dc508dc84306c50b786a624eed8ac134db194c02
+MISC ChangeLog 2482 SHA256 7e3ef73ab7db5a25e33e807c8ffb6a4696a64b47a96bf84151b46a172f9f0b01 SHA512 6a4781e64158414cb15721cf0dfb67c6bdb33f7e79adef5d516ef6f9a02711dc115dec9a49b5243329df527b92c46471021db64407852c8a7b12168fa8f5d5d5 WHIRLPOOL 657ce26d1f6cfba1877083760ab1b126a05308f9b7ff3ec90ce38b4b88da2707d7e516943bd727afb79782650e37278f6d6bc96f8deed59b980d06b1d8001959
+MISC ChangeLog-2015 2330 SHA256 c64215866b8df5c36e12a448ec20022a8beb964e6d46cf810ad929b407487851 SHA512 ad9ecdb6b958d63ba3fd6d2673fe1983604f7759c9caf955c5487534b25ccf411bf7d4a99aaa1f6fb2e96ea4e08b4600ecd9299c0ad4fbc935e0643d663d56a2 WHIRLPOOL 9e3521cf699205485d5f6f40c3d4822e4b2604f81d11e61fa435a3334dcef725483d9080afdd17143aecf9da8002e769ad6ba1c047c8889a0bf7da545f6b49fd
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-rpg/nwmouse/metadata.xml b/games-rpg/nwmouse/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-rpg/nwmouse/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-rpg/nwmouse/nwmouse-20090906.183839.ebuild b/games-rpg/nwmouse/nwmouse-20090906.183839.ebuild
new file mode 100644
index 000000000000..6ed57932a3c9
--- /dev/null
+++ b/games-rpg/nwmouse/nwmouse-20090906.183839.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+DESCRIPTION="Hardware mouse cursors for Neverwinter Nights"
+HOMEPAGE="http://home.roadrunner.com/~nwmovies/"
+SRC_URI="https://dev.gentoo.org/~calchan/distfiles/${P}.tar.bz2
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="nwmovies Artistic"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="strip"
+
+RDEPEND="
+ >=games-rpg/nwn-1.68-r4
+ games-rpg/nwn-data
+ sys-libs/glibc
+ >=dev-libs/elfutils-0.155-r1[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXcursor[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]"
+
+# I've looked at this stuff, and I can't find the problem myself, so I'm just
+# removing the warnings. If someone feels like finding the patch, that would be
+# great and I'll gladly include it.
+dir="${GAMES_PREFIX_OPT}/nwn"
+QA_PREBUILT="${dir:1}/nwmouse.so
+ ${dir:1}/nwmouse/libdis/libdisasm.so"
+
+src_install() {
+ # libelf moved to games-rpg/nwn, see bug #210562
+ exeinto "${dir}"
+ doexe "${PN}.so"
+ exeinto "${dir}/${PN}/libdis"
+ doexe "libdisasm.so"
+ insinto "${dir}/${PN}/cursors"
+ doins -r cursors/*
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "When starting nwn the next time, nwmouse will scan the nwmain"
+ elog "binary for its hooks, store this information in:"
+ elog " ${dir}/nwmouse.ini"
+ elog "and exit. This is normal."
+ elog
+ elog "You will have to remove this file whenever you update nwn."
+}
diff --git a/games-rpg/nwmovies/Manifest b/games-rpg/nwmovies/Manifest
new file mode 100644
index 000000000000..486e1088cb02
--- /dev/null
+++ b/games-rpg/nwmovies/Manifest
@@ -0,0 +1,5 @@
+DIST nwmovies-v4-public.20090223.080954.tar.gz 137697 SHA256 4ce60791183a0623d09b37c9f00ba42a2f7e7d953eba35b090a96cc891254f14 SHA512 35b3697f593e74e2c507c745f5b03da11c65789d2cb6378988bb5f810c1768af7299bd0dd8197a91c928f4438582107300bad8de8d69ede8cb81200ea5d21f0e WHIRLPOOL 896c935ea9b8a8eb6befec4c99406763c17e33aa5b767d20dab7f46938e9009e202f6d1afb5d25e7f4ceec628a50be7e0fcf87d823d06d4e1163f46dfb763bb9
+EBUILD nwmovies-20090223.080954.ebuild 1675 SHA256 1ef2966da6560ce867772fc86019dfcbb540eda92f83338c9e5e05e5c60cb419 SHA512 4ebacdc198ccb546207410f198c2a699bbafba8b04b1a762480549f98bd2e8f175234657247c055fc1beb6a8abbbd9df561752e745e584e7e037866f4f57050c WHIRLPOOL 002787dec8adb060376f47fd94ca0fe1d24be48905e003e4aff819ddf9b9856f6e999fae76e16ac518279446d3a1e18e7d59932bc828df2a1891eedd91e59eb5
+MISC ChangeLog 2451 SHA256 21c0387b3c4483d8c83441d947192e37d5de6db07d5ccdb75e0f021afa1c68ff SHA512 71862044750228be1bf6d74cf07c50b3bb6b75187006f7591f47f12e53a85b4acf734820be119460306021c907594313f66aa274d75eda08e39509c0543d5d18 WHIRLPOOL a68acda0c2bc34f9e66f0e7a9042330c22a7dd660b1ccfab03e1952da595c1d2eb47737285fc9fadf9a2f63c35aee7f0468356e7b45d509c41b6cdd37f2c4913
+MISC ChangeLog-2015 1500 SHA256 4bf6bcac3c784b54f3c404c10cc5a9661c68bda2ceca1201609663811d2bc9da SHA512 b94279fd6a6f8881defc8d6f682e16f0d0bf3a832ff67321ec200ea2df6f829438fe123bb3f1f2c1a6425f032f554c02863113d251743f73ea24c165ffec59ac WHIRLPOOL 1418c4567df71cfc4f82519cda899becc3e6d76404ef9a411748549ccfc986ed13e83441d69887d3a764f8757e4fa04ae0a4da2b753c9726ca244ae55e02ae1b
+MISC metadata.xml 358 SHA256 03963a52c4c892b1a30a99365c197fd37b38d7fc4ea6949010229f2fc3dd5952 SHA512 11cdf14779345e34d0d4d20117cab438e8f90745b2c5f7e6c559f57ce7538e80df9aea9899b3e9ba94ee839e994be8ce15610252d5601e8c766837af2521009a WHIRLPOOL 7874cb3d7ddddf5639f30bd9371f4e920e2c791b663a944f6f258d15379f72f509afbfe437e3c4c3f21c85ecc04fb8bcaa3954b745c88f2ebab48cc0ce8695db
diff --git a/games-rpg/nwmovies/metadata.xml b/games-rpg/nwmovies/metadata.xml
new file mode 100644
index 000000000000..06e69cc12f05
--- /dev/null
+++ b/games-rpg/nwmovies/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>calchan@gentoo.org</email>
+ <name>Denis Dupeyron</name>
+</maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-rpg/nwmovies/nwmovies-20090223.080954.ebuild b/games-rpg/nwmovies/nwmovies-20090223.080954.ebuild
new file mode 100644
index 000000000000..e5e31054a48c
--- /dev/null
+++ b/games-rpg/nwmovies/nwmovies-20090223.080954.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils games
+
+DESCRIPTION="Play Neverwinter Nights movies inside the Linux client"
+HOMEPAGE="http://home.roadrunner.com/~nwmovies/"
+
+SRC_URI="${HOMEPAGE}/${PN}/${PN}-v4-public.${PV}.tar.gz"
+
+LICENSE="nwmovies Artistic"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=">=games-rpg/nwn-data-1.29-r3[videos]"
+RDEPEND="${DEPEND}
+ >=games-rpg/nwn-1.68-r4
+ media-video/binkplayer"
+
+S="${WORKDIR}"
+DESTDIR="${GAMES_PREFIX_OPT}/nwn"
+
+QA_TEXTRELS="opt/nwn/nwmovies/binklib.so opt/nwn/nwmovies.so"
+QA_WX_LOAD="opt/nwn/nwmovies.so"
+QA_EXECSTACK="opt/nwn/nwmovies.so"
+QA_FLAGS_IGNORED="opt/nwn/nwmovies/binklib.so opt/nwn/nwmovies/libdis/libdisasm.so opt/nwn/nwmovies.so"
+
+src_install() {
+ exeinto "${DESTDIR}"
+ doexe nwmovies.so nwmovies.pl || die "Installation failed"
+ exeinto "${DESTDIR}/nwmovies"
+ doexe nwmovies/binklib.so || die "Installation failed"
+ exeinto "${DESTDIR}/nwmovies/libdis"
+ doexe nwmovies/libdis/libdisasm.so || die "Installation failed"
+ insinto "${DESTDIR}"
+ doins nwmovies/*.txt
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "When starting nwn the next time, nwmovies will scan the nwmain"
+ elog "binary for its hooks, store this information in:"
+ elog " \${HOME}/.nwn/\${LANG}/nwmovies.ini"
+ elog "and exit. This is normal."
+ elog
+ elog "You will have to remove this file whenever you update nwn."
+ elog
+ elog "If you have sound issues in NWN only when using nwmovies, then"
+ elog "you may need to properly setup /etc/asound.conf or the equivalent"
+ elog "per-user \${HOME}/.asound.conf, see comment #31 in bug #106789."
+}
diff --git a/games-rpg/nwn-cep/Manifest b/games-rpg/nwn-cep/Manifest
new file mode 100644
index 000000000000..0a71c5c2edde
--- /dev/null
+++ b/games-rpg/nwn-cep/Manifest
@@ -0,0 +1,8 @@
+DIST CEP168.rar 1022033 SHA256 925f52ca60553c1120c707c302c4adc4ae8040ace8d10a263c8e55f2f85aac2c SHA512 04c1c1bbfeeaab7118d256be30f4b599e0e066174c0c8f525b7621f767724a5262400ac1cf2ca47861feb7963524d5433c5dcd192f76cae798e0d0e0afd15980 WHIRLPOOL 82f03f128e53f162860ac2ab62ac5d6c7fe73a3a3d8c2164f1cb48a917cf851878df1971d7a786c0a8ce6d1c3ea2affee89af51d884514b447a519a189cd5d9b
+DIST CEPv2_full.rar 409636694 SHA256 27a0523b5a36e047e84ad10ebd26326f91ec63a2faf0893fe9252799b35ff500 SHA512 ea008717dfa56944aabf4f33698f06dbfaa87c8aab9414ca9ffa1c39990160e41eee1f8be8fb766ccc97ed8709aa7773017dc1c29f14683117de28b0bc30becb WHIRLPOOL f9382d1d956b3cd6f6b6cfc97f535e0a66c3b88debd1179bd4c65679a5ebfc1bbd70d7ec5b7d4a45c1d174fdbecb13d16a776c9dd5b3a0a54b8c81ea84ffb460
+DIST cepv152_man.rar 167701243 SHA256 e98a202cac83e290cd0223bb01168c65dc1a88b8397ccc018f1883f18d99b707 SHA512 d0d6b780c0a62c3d5fd741145fdadf6936407d7f1fea103a2b08419bae85633f6fe8d84c84e5d4bf559379037afda06a55b260ccdb6f6857fa303acd593b5e57 WHIRLPOOL d0c87988d83d8386e6536b2f47e6cdc8a9a19fb893dfc653977b16cb6408b4ecce49dd3f948150af0b4ca9a1c7a34181739bf82f94bb2703f61aaa515a314693
+EBUILD nwn-cep-1.68-r1.ebuild 1466 SHA256 9411942204290a6e9c03110588bef7f6cc0acb0f7bbb6aeec9803dd4f62590a5 SHA512 279488f7020b12eacc567cb53f129b0ffad1d73626c48e79f0a52ddbcf4624ab98985df356406bdcd2740f4955193b3853a0780b05e150316769969ea182b7cd WHIRLPOOL e57be0dd178ab89287272a0c5e604c5c35b27cee74a7978a1d67e99ac0772dda3c5135cf294ae8ddf79c118b0e28f796a9e96d394d1447e8dc27fb0f4688f637
+EBUILD nwn-cep-2.0.ebuild 1068 SHA256 2af6a43cefb5bf05b00669c08f81d634f7ceed7621475fed0b1b2ad26a7acfb0 SHA512 cdf0a5cbf4fc3f04bcfd4b5c3b32a1a60142c32fb7140375fd645355145ff8cb84d964dabfd9314ce885b2b2a94e67a5a55cede442636ee833312075f70cc1f5 WHIRLPOOL 0bab5f17f60035aa19f656434bb977f05e6424cd0fe59febc7f1395fcb2f4e93ce585eff9f418e1fc8d0a798c3dcb69a245a7962f447d4d099ce6cb7f95c3fd5
+MISC ChangeLog 2480 SHA256 0ac4499772347379abf2404a95eb58fd254ce575572aeb07a86bb353cdd61621 SHA512 eaaae4529d08c77a4cc9159b20cdde7e7ef1d93a7374caaa7ddb0fbad3e9d98ec88602181ae785fbf56e6ef826180ff2bf45069bb1a096d2dcfa51932b66d6a9 WHIRLPOOL ec25212081a39bdffb0a60750c13de6ab6d82bb779f79e4c7569078948aeee1c57a9711501a07b3ffb820cb14416af57b0dd5e32c8f61b76b284cbd20fe52ec2
+MISC ChangeLog-2015 3533 SHA256 93e4dcadf18daea1364d3dfb7e5ecd461897c6f422d0c2a5f9c4bc3c00f281ce SHA512 bbf458ee6ba148aa9946abbaf3c1aa72bd65d72e0f4cc8ef7aba2443fed7d5d8e72ecffadbc58c62ca5afbb489b8856781f37753511ac43625abb4d83ab04183 WHIRLPOOL d3353942c1935367bdee3dc566fd0d94124ba2142f5f844e4269a6956b8a582a992c6484a8b1f4edd2ece6a09481b490626fb549154674fe9a8c2f8b1a2fddb7
+MISC metadata.xml 414 SHA256 e2b4f3a2f9c189f905cfcb509cf28fd610e29383e8fe8af50740c06d98be085a SHA512 2734af4b017e24b804ad44b30bb0371dcd9a891bfec90ae28b8243d5b9482dcfa2675bc7c86767bdd9116a28f62c6e41e707f176267135f46ff408dc9ca124d2 WHIRLPOOL 590853bd75092950074765db63084a4d6d68acf3cbbfcda026e1b7f0948295b4d67aa8a4f0d9f1e783fd3ba3f13bf4527d872198bba0989ab05fcabb3aa887d4
diff --git a/games-rpg/nwn-cep/metadata.xml b/games-rpg/nwn-cep/metadata.xml
new file mode 100644
index 000000000000..33e862d8026e
--- /dev/null
+++ b/games-rpg/nwn-cep/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>calchan@gentoo.org</email>
+ <name>Denis Dupeyron</name>
+ <description>maintainer</description>
+ </maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/nwn-cep/nwn-cep-1.68-r1.ebuild b/games-rpg/nwn-cep/nwn-cep-1.68-r1.ebuild
new file mode 100644
index 000000000000..1cffc8d5ea40
--- /dev/null
+++ b/games-rpg/nwn-cep/nwn-cep-1.68-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit games unpacker
+
+DESCRIPTION="The Community Expansion Pack for Neverwinter Nights"
+HOMEPAGE="http://nwn.bioware.com/players/cep.html"
+SRC_URI="http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/hakpaks/6057/cepv152_man.rar
+ http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/hakpaks/6974/CEP168.rar"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="mirror bindist"
+
+DEPEND=""
+RDEPEND=">=games-rpg/nwn-1.68"
+
+pkg_setup() {
+ games_pkg_setup
+ if ! has_version 'games-rpg/nwn-data[hou,sou]' ; then
+ eerror "${P} requires NWN v1.68, Shadows of Undrentide, and Hordes of"
+ eerror "the Underdark. Please make sure you have all three before using"
+ eerror "this patch."
+ die "Requirements not met"
+ fi
+}
+
+src_install() {
+ dodir "${GAMES_PREFIX_OPT}"/nwn/{hak,tlk,texturepacks,modules,cep}
+
+ # Using mv below instead of doins due to large file sizes
+ mv *.hak HotU/*.hak "${D}/${GAMES_PREFIX_OPT}"/nwn/hak/ || die "Installing hak files failed"
+ mv *.tlk "${D}/${GAMES_PREFIX_OPT}"/nwn/tlk/ || die "Installing tlk files failed"
+ mv *.erf "${D}/${GAMES_PREFIX_OPT}"/nwn/texturepacks/ || die "Installing erf files failed"
+ mv *.mod "${D}/${GAMES_PREFIX_OPT}"/nwn/modules/ || die "Installing mod files failed"
+ mv *.pdf *.txt "${D}/${GAMES_PREFIX_OPT}"/nwn/cep/ || die "Installing documentation failed"
+ prepgamesdirs
+}
diff --git a/games-rpg/nwn-cep/nwn-cep-2.0.ebuild b/games-rpg/nwn-cep/nwn-cep-2.0.ebuild
new file mode 100644
index 000000000000..86c4614aed7f
--- /dev/null
+++ b/games-rpg/nwn-cep/nwn-cep-2.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils games unpacker
+
+DESCRIPTION="High quality custom content addon for Neverwinter Nights"
+HOMEPAGE="http://nwvault.ign.com/cep/"
+SRC_URI="http://vnfiles.ign.com/nwvault.ign.com/fms/files/hakpaks/7000/CEPv2_full.rar"
+
+LICENSE="all-rights-reserved"
+SLOT="2"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="mirror bindist"
+
+DEPEND=""
+RDEPEND=">=games-rpg/nwn-1.68"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/nwn
+
+pkg_setup() {
+ games_pkg_setup
+ if ! has_version 'games-rpg/nwn-data[hou,sou]' ; then
+ eerror "${P} requires NWN v1.68, Shadows of Undrentide, and Hordes of"
+ eerror "the Underdark. Please make sure you have all three before using"
+ eerror "this patch."
+ die "Requirements not met"
+ fi
+}
+
+src_install() {
+ local i
+ for i in hak tlk erf
+ do
+ insinto "${dir}"/${i}
+ doins *.${i} || die "${i} failed"
+ done
+ insinto "${dir}"/modules
+ doins *.mod || die "mod failed"
+ insinto "${dir}"/cep
+ doins *.pdf || die "pdf failed"
+ prepgamesdirs
+}
diff --git a/games-rpg/nwn-data/Manifest b/games-rpg/nwn-data/Manifest
new file mode 100644
index 000000000000..211c41bd8f3e
--- /dev/null
+++ b/games-rpg/nwn-data/Manifest
@@ -0,0 +1,11 @@
+DIST nwclient129.tar.gz 5504342 SHA256 3d75e07f4d44fde789481240d02c07a7a7e0599bc2300d8a73f98f4c752da80e SHA512 79329eb6ed552008170a0306be224dd7c8db7a2b67f4c9749c2fbbc5977a0b058ab7a90a7a063301e9b410d0f5bbb5f91a4ae2f58a8c13586c2881afe2053d43 WHIRLPOOL 00edbec2d0087ed13ae241f78d82ec1f21deb32f61fbd677c03456474f6001e6c7cd3b797a258ef0e201731f25fa786a1bf0581005b4b0a825753a289a4f9799
+DIST nwfrench129.tar.gz 357777520 SHA256 9a5ddcbc8ca443cb5bbcacb76587b171d37441906a1319155bba35f1bfffa9e0 SHA512 bc43da1bd628c88ee9d7c02820d91cc026e36c7531fdf0da6e741dc6b94f1d1d95478e9169b9808368a4e6e0b3a54f3f287063a70fa1ec949f8b7f1e60ce4c7e WHIRLPOOL a0afb51ed3fdcbb37edcc0721b18cce21509d43e270cf0c983b08de55e3e0f05ebfe959b3842bd50178399d7b5d4bd6649dd87953a08a43b1fed733a1ec30407
+DIST nwgerman129.tar.gz 381832822 SHA256 950f730121a90fef2fd5a0810c329a04d1697a7b5f859e240e3307d31050e6e0 SHA512 b817123c5d66ac5420b83355e11bb29756bb2f75a2df8c7667048c6422e4f9c27595121a8bce3d072b027624fb550b65c83f20da96d5edcdb8f7dec822a266e4 WHIRLPOOL 7e30880b7aef31b74a01529a36b7f5b884813773dc617f12efa0f82bc9287c2850ac70c9918835362af93eb45a9afa5b27f2c779c9106abe8f8740f29a6b46d6
+DIST nwitalian129.tar.gz 3926804 SHA256 7a57c45ce2d0a712198dba40ddc2ab4788c817b79c20a6e99733ea842a13f974 SHA512 465728f66e5e3f5d0633408dfb41f0b11308f3b7fc421f512d2c38a3e18db9d2451c552db85a0d7514f9b5c4a76b4745d79eb6a69a2a5a06a16a0b6d050f00c7 WHIRLPOOL cac3325219c541577ee865647a4846c5fb6a4f78f9497fcf0397565b9915c6375246c8b486270c0e644b5ad8634b0c85f311cd5506572385e27fb2c10260b0e4
+DIST nwn.png 4296 SHA256 9703cb47b32d6bf0202198ab490395046d2ef4ffdde22dca91748a966134e139 SHA512 a79cc5e66317b3b0afa190c66d0dab15edf94a8da238e12eb2cbdbfcafa91d950519ad4209f1cb60cc2507120f6c363db18788226d70a77441412567f9b798c6 WHIRLPOOL 2d457ecf6fe85b0fa651f5d4d3bcf8c686aa00113f962cab1dc62cf62789affbd5192fdd0084f7a1cdfdb427a1e8e49aebd18daf8baf76172afe8135d193cd8b
+DIST nwresources129.tar.gz 1212356127 SHA256 4da35c38c63d7cbe40047833103fe0d56f417d1895fb572d52c23a873619f537 SHA512 3a38ee8b192136d9dd2f35c6abd2f3a7bbf711ac6819cb7960c292d5ddae225bd177ff2864e35becd1dfbfaaba8de224d4179c0cf4f0dc0be764e0e9170abc37 WHIRLPOOL d4ae0f294cbfc4a4b0922c82b4022258f212f0d956de4f52b123aff408f9c3e3541d9b8f0efd56890aa2062e8611b750de1347643be88657e9864efd04ebd83f
+DIST nwspanish129.tar.gz 3912516 SHA256 100833e91e3f729a473de3372019e1086aac444f3c90c799af43d16833b7a1ed SHA512 990c626168dc0bff6786760a5f1140ec0226c13d5a35248f27987c475f547f153647a7d6562dcf0c7765e98fa17b2681d1231365d04ad8cc8071740be42110de WHIRLPOOL 8f829b9717567c775bf503299f054d9338d9143711d3ab32a85736e0d4a758dabac942b5b410111dfe744f6e845e2a8932ad9421f1aaee615e21995fb7526e27
+EBUILD nwn-data-1.29-r5.ebuild 20584 SHA256 40582a810f336178bfeb0638cb50ff4b5f4e0529e06e312e4a924ed83c67ca56 SHA512 3695289702c40ea4d7bddf9a6914b3fd164bf58e18af9ae879f31cf30052ea75276924f7efe60fce3e96b95e16a3e9e73542095e8559f0b96a652b4597356387 WHIRLPOOL 3e4b2f06c0ca7452c63ad1d4a12ff1a106bac068434b814012c1406eccc273772384c96782976e79ed3b3344fbb1bfc733a1dcb969606c717a080d0ae3f3b050
+MISC ChangeLog 2435 SHA256 07de6b4a3baf99090fdf0c0a07bca980360566739a7772a855549807090a6bac SHA512 e682a03a82eba0327038b18466d77e0baa7497b41590672db71fe879f8bf29cc90b540194905dbc8e0d234be95e518f43b7e83a624df3202f4238f9f9a3eed9e WHIRLPOOL bab57f5202b8e71473578b005507bc92c3b612369bb3a3685190db34a93e6715cead6abd66710f18eb0dc2233ad7dd06903804a7a0195967b87d5640df6ebbe8
+MISC ChangeLog-2015 8716 SHA256 c073adc4f72df58abc80e72b645eb4a0b752111b094826b533c690ac5964182a SHA512 94a595628eb37fed93270ab8ec9e1db6bf2d3cb839959ad04008d62301ab64b79d42b2abc50fb3a104157373173f6cdff0e5a46661c071a2cf801005be49814c WHIRLPOOL 43b284d91986cf50516b13ce4cd9b57b6bbe6605e813433c7d9af322d6664dd2a4012d52b83795cfff3d660788c0e3610b903bc6c6696e678344006641dce559
+MISC metadata.xml 661 SHA256 e71a981a9745ff94c83c13b41e46b48ba4e5cedb714bcfa031eda0f61d2f0af8 SHA512 6edd2851e2b8ac8a3c1744aa93a921ed44f9cef8329d0766928f81273e40091e96f13abd60606e46afc0f8d7d74690daf4c9867a637a00827088342b0a322497 WHIRLPOOL 379f93411ea9100addfff0e9a3fdac95f348ca6814caa0410edefdb20276a623d4e71f24e3ab39b6de13002d92befa411fb020be1f32c551a53b0a348dde0eda
diff --git a/games-rpg/nwn-data/metadata.xml b/games-rpg/nwn-data/metadata.xml
new file mode 100644
index 000000000000..38a7ce4c43b3
--- /dev/null
+++ b/games-rpg/nwn-data/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>calchan@gentoo.org</email>
+ <name>Denis Dupeyron</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="hou">Install the Hordes of the Underdark expansion pack</flag>
+ <flag name="nowin">For those people who cant grab the 1.2 gigs of data files from a windows partition</flag>
+ <flag name="sou">Installs the Shadows of Undrentide expension pack</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-rpg/nwn-data/nwn-data-1.29-r5.ebuild b/games-rpg/nwn-data/nwn-data-1.29-r5.ebuild
new file mode 100644
index 000000000000..eda7cf751c8c
--- /dev/null
+++ b/games-rpg/nwn-data/nwn-data-1.29-r5.ebuild
@@ -0,0 +1,654 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+CDROM_OPTIONAL="yes"
+inherit eutils cdrom games
+
+# 3-in-1 DVD - NWN, SoU, HotU (1 disk)
+# Diamond DVD - NWN, SoU, HotU (1 disk)
+# Platinum CD/DVD - NWN, SoU, HotU (4 disks/1 disk)
+# Deluxe CD - NWN, SoU, HotU (5 disks)
+# Gold CD - NWN, SoU (4 disks)
+# Original CD - NWN (1 disk)
+
+LANGUAGES="linguas_fr linguas_it linguas_es linguas_de linguas_en"
+
+MY_PV=${PV//.}
+CLIENT_BASEURL="http://nwdownloads.bioware.com/neverwinternights/linux"
+UPDATE_BASEURL="http://files.bioware.com/neverwinternights/updates/linux"
+
+NOWIN_SRC_URI="${UPDATE_BASEURL}/nwresources${MY_PV}.tar.gz
+ http://bsd.mikulas.com/nwresources${MY_PV}.tar.gz
+ http://163.22.12.40/FreeBSD/distfiles/nwresources${MY_PV}.tar.gz"
+
+LINGUAS_SRC_URI="linguas_fr? (
+ ${UPDATE_BASEURL}/nwfrench${MY_PV}.tar.gz )
+ linguas_it? (
+ ${UPDATE_BASEURL}/nwitalian${MY_PV}.tar.gz )
+ linguas_es? (
+ ${UPDATE_BASEURL}/nwspanish${MY_PV}.tar.gz )
+ linguas_de? (
+ ${UPDATE_BASEURL}/nwgerman${MY_PV}.tar.gz )"
+
+DESCRIPTION="Neverwinter Nights Data Files"
+HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html"
+SRC_URI="${CLIENT_BASEURL}/${MY_PV}/nwclient${MY_PV}.tar.gz
+ nowin? ( ${NOWIN_SRC_URI} ${LINGUAS_SRC_URI} )
+ !nowin? ( cdinstall? ( ${LINGUAS_SRC_URI} ) )
+ mirror://gentoo/nwn.png"
+
+LICENSE="NWN-EULA"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="cdinstall hou nowin sou videos ${LANGUAGES}"
+RESTRICT="strip mirror"
+
+RDEPEND=""
+DEPEND="cdinstall? (
+ games-util/biounzip
+ app-arch/unshield )
+ app-arch/unzip
+ app-arch/p7zip
+"
+
+QA_PREBUILT="${GAMES_PREFIX_OPT:1}/nwn/lib/libSDL-1.2.so.0.0.5
+ ${GAMES_PREFIX_OPT:1}/nwn/miles/msssoft.m3d
+ ${GAMES_PREFIX_OPT:1}/nwn/miles/libmss.so.6.5.2
+ ${GAMES_PREFIX_OPT:1}/nwn/miles/mssmp3.asi
+ ${GAMES_PREFIX_OPT:1}/nwn/miles/mssdsp.flt"
+
+S=${WORKDIR}/nwn
+
+dir=${GAMES_PREFIX_OPT}/nwn
+Ddir=${D}/${dir}
+
+NWN_SET=
+
+# This is my fun section where I try to determine which CD/DVD set we have.
+# Expect this to be very messy and ugly, and hopefully it all works as we want
+# it to on all of the various media.
+get_nwn_set() {
+ # First we check to see if we have CD_ROOT defined already. If we do,
+ # this will make our lives so much easier.
+ if [[ -n "${CD_ROOT}" ]]
+ then
+ if [[ -f "${CD_ROOT}"/data5.cab ]]
+ then
+ NWN_SET="3in1_dvd"
+ einfo "Neverwinter Nights 3-in-1 DVD found..."
+ elif [[ -f "${CD_ROOT}"/KingmakerSetup.exe ]]
+ then
+ NWN_SET="diamond_dvd"
+ einfo "Neverwinter Nights Diamond DVD found..."
+ elif [[ -f "${CD_ROOT}"/ArcadeInstallNWNXP213f.EXE ]]
+ then
+ NWN_SET="platinum_cd"
+ einfo "Neverwinter Nights Platinum DVD/CD set found..."
+ elif [[ -f "${CD_ROOT}"/ArcadeInstallNWNXP1_12d.EXE ]]
+ then
+ NWN_SET="gold_cd"
+ einfo "Neverwinter Nights Gold CD set found..."
+ elif [[ -f "${CD_ROOT}"/ArcadeInstallNWN109.exe ]]
+ then
+ NWN_SET="original_cd"
+ einfo "Neverwinter Nights Original/Deluxe CD set found..."
+ fi
+ # Now we check to see if we have CD_ROOT_1 set, which means we have a CD
+ # set, or even a DVD set.
+ elif [[ -n "${CD_ROOT_1}" ]]
+ then
+ if [[ -f "${CD_ROOT_1}"/data5.cab ]]
+ then
+ NWN_SET="3in1_dvd"
+ einfo "Neverwinter Nights 3-in-1 DVD found..."
+ elif [[ -f "${CD_ROOT_1}"/KingmakerSetup.exe ]]
+ then
+ NWN_SET="diamond_dvd"
+ einfo "Neverwinter Nights Diamond DVD found..."
+ elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWNXP213f.EXE ]]
+ then
+ NWN_SET="platinum_cd"
+ einfo "Neverwinter Nights Platinum DVD/CD set found..."
+ elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWNXP1_12d.EXE ]]
+ then
+ NWN_SET="gold_cd"
+ einfo "Neverwinter Nights Gold CD set found..."
+ elif [[ -f "${CD_ROOT_1}"/ArcadeInstallNWN109.exe ]]
+ then
+ NWN_SET="original_cd"
+ einfo "Neverwinter Nights Original/Deluxe CD set found..."
+ fi
+ # OK. Neither were set, so now we're going to start our detection and try
+ # to figure out what we have to work from.
+ else
+ local mline=
+ for mline in $(cat /etc/mtab | egrep -e '(iso|cdrom|udf)' | awk '{print $2}')
+ do
+ if [[ -f "${mline}"/data5.cab ]]
+ then
+ NWN_SET="3in1_dvd"
+ einfo "Neverwinter Nights 3-in-1 DVD found..."
+ elif [[ -f "${mline}"/KingmakerSetup.exe ]]
+ then
+ NWN_SET="diamond_dvd"
+ einfo "Neverwinter Nights Diamond DVD found..."
+ elif [[ -f "${mline}"/ArcadeInstallNWNXP213f.EXE ]]
+ then
+ NWN_SET="platinum_cd"
+ einfo "Neverwinter Nights Platinum DVD/CD set found..."
+ elif [[ -f "${mline}"/ArcadeInstallNWNXP1_12d.EXE ]]
+ then
+ NWN_SET="gold_cd"
+ einfo "Neverwinter Nights Gold CD set found..."
+ elif [[ -f "${mline}"/ArcadeInstallNWN109.exe ]]
+ then
+ NWN_SET="original_cd"
+ einfo "Neverwinter Nights Original/Original CD set found..."
+ fi
+ done
+ fi
+}
+
+get_cd_set() {
+ while `[[ -z "${NWN_SET}" ]]`
+ do
+ echo "Please insert your first Neverwinter Nights CD/DVD into your drive and"
+ echo "press any key to continue"
+ read -n 1
+ get_nwn_set
+ done
+ # Here is where we start our CD/DVD detection for changing disks.
+ export CDROM_NAME_1="CD1" CDROM_NAME_2="CD2" CDROM_NAME_3="CD3"
+ case "${NWN_SET}" in
+ 3in1_dvd)
+ einfo "Both Shadows of Undrentide and Hordes of the Underdark will"
+ einfo "be installed from your DVD along with Neverwinter Nights."
+ touch .metadata/sou || die "touch sou"
+ touch .metadata/hou || die "touch hou"
+ touch .metadata/orig || die "touch orig"
+ cdrom_get_cds data5.cab
+ ;;
+ diamond_dvd)
+ einfo "Both Shadows of Undrentide and Hordes of the Underdark will"
+ einfo "be installed from your DVD along with Neverwinter Nights."
+ touch .metadata/sou || die "touch sou"
+ touch .metadata/hou || die "touch hou"
+ touch .metadata/orig || die "touch orig"
+ cdrom_get_cds KingmakerSetup.exe
+ ;;
+ platinum_cd)
+ einfo "Both Shadows of Undrentide and Hordes of the Underdark will"
+ einfo "be installed from your CDs along with Neverwinter Nights."
+ touch .metadata/orig || die "touch orig"
+ touch .metadata/sou || die "touch sou"
+ touch .metadata/hou || die "touching hou"
+ export CDROM_NAME_4="CD4"
+ cdrom_get_cds ArcadeInstallNWNXP213f.EXE \
+ disk2.zip disk3.zip disk4.zip
+ ;;
+ gold_cd)
+ einfo "Shadow of Undrentide will be installed from your CDs along"
+ einfo "with the original Neverwinter Nights. If you have the"
+ einfo "Hordes of the Underdark expansion, it will be installed after."
+ touch .metadata/orig || die "touch orig"
+ touch .metadata/sou || die "touch sou"
+ export CDROM_NAME_4="CD4"
+ if use hou
+ then
+ einfo "You will also need the HoU CD for this installation."
+ export CDROM_NAME_5="HoU"
+ cdrom_get_cds ArcadeInstallNWNXP1_12d.EXE disk2.zip \
+ disk3.zip disk4.zip ArcadeInstallNWNXP213f.EXE
+ else
+ cdrom_get_cds ArcadeInstallNWNXP1_12d.EXE disk2.zip \
+ disk3.zip disk4.zip
+ fi
+ ;;
+ original_cd)
+ einfo "We will be installing the original Neverwinter Nights. If"
+ einfo "you also have the Shadows of Undrentide or Hordes of the"
+ einfo "Underdark expansions, they will be installed afterwards."
+ touch .metadata/orig || die "touch orig"
+ if use sou && use hou
+ then
+ einfo "You will also need the SoU and HoU CDs for this installation."
+ export CDROM_NAME_4="SoU" CDROM_NAME_5="HoU"
+ cdrom_get_cds ArcadeInstallNWN109.exe disk2.bzf \
+ movies/NWNintro.bik NWNSoUInstallGuide.rtf \
+ ArcadeInstallNWNXP213f.EXE
+ elif use sou
+ then
+ einfo "You will also need the SoU CD for this installation."
+ export CDROM_NAME_4="SoU"
+ cdrom_get_cds ArcadeInstallNWN109.exe disk2.bzf \
+ movies/NWNintro.bik NWNSoUInstallGuide.rtf
+ elif use hou
+ then
+ einfo "You will also need the HoU CD for this installation."
+ export CDROM_NAME_4="HoU"
+ cdrom_get_cds ArcadeInstallNWN109.exe disk2.bzf \
+ movies/NWNintro.bik ArcadeInstallNWNXP213f.EXE
+ else
+ cdrom_get_cds ArcadeInstallNWN109.exe disk2.bzf \
+ movies/NWNintro.bik
+ fi
+ ;;
+ esac
+}
+
+src_unpack() {
+ mkdir -p "${S}"
+ cd "${S}"
+ # We create this .metadata directory so we can keep track of what we have
+ # installed without needing to keep all of these multiple USE flags in all
+ # of the ebuilds.
+ mkdir -p .metadata || die "Creating .metadata"
+ # Since we don't *always* want to do this, we check for USE=cdinstall
+ if use cdinstall
+ then
+ # Here, we determine which CD/DVD set that we have. This will seem a
+ # bit odd, since we'll be doing the detection a few times.
+ get_nwn_set
+ # Now that we know what we're looking for, let's look for the media.
+ get_cd_set
+
+ case ${NWN_SET} in
+ 3in1_dvd)
+ mkdir -p "${S}"
+ cd "${S}"
+ einfo "Unpacking files..."
+ # We don't give the user the option to install SoU/HotU. While some
+ # people might complain about this, most newer NWN stuff requires
+ # them both anyway, so it makes no sense not to install them.
+ unshield x "${CDROM_ROOT}"/data1.hdr || die "unpacking"
+ # We have to adjust the files after unpacking the cab file.
+ rm -rf _*
+
+ mv -f App_Executables/{ambient,data,modules,music,texturepacks} .
+ mv -f App_Executables/{dm,local}vault .
+ mv -f App_Executables/*.key .
+ mv -f App_Executables/nwm .
+ if use videos
+ then
+ mv -f App_Executables/movies .
+ fi
+ mkdir -p utils/nwupdateskins/
+ mv -f App_Executables/utils/nwupdateskins/*.bmp utils/nwupdateskins/
+ rm -rf App_Executables/
+ ;;
+ diamond_dvd)
+ # This is probably the simplest NWN to install.
+ mkdir -p "${S}"
+ cd "${S}"
+ einfo "Unpacking files..."
+ unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking"
+ # I think these are not needed. Can someone verify this?
+# unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking"
+# unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/Data_linux.zip || die "unpacking"
+ # We don't give the user the option to install SoU/HotU. While some
+ # people might complain about this, most newer NWN stuff requires
+ # them both anyway, so it makes no sense not to install them.
+ unzip -qo "${CDROM_ROOT}"/data/XP1.zip
+ unzip -qo "${CDROM_ROOT}"/data/XP2.zip
+ 7z x "${CDROM_ROOT}/KingmakerSetup.exe" -xr0\!*PLUGINSDIR* -xr\!*.exe -xr\!*.dat &> /dev/null || die "unpacking"
+ use videos || rm -rf \$0/movies
+ cp -rf \$0/* ./
+ rm -rf \$0
+ ;;
+ platinum_cd)
+ # This one isn't too bad, either. Luckily, everything is in a ZIP.
+ mkdir -p "${S}"
+ cd "${S}"
+ einfo "Unpacking files..."
+ unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking"
+ unshield x "${CDROM_ROOT}"/data2.cab || die "unpacking"
+ # We have to adjust the files after unpacking the cab file.
+ mkdir -p miles/
+ mkdir -p ambient/
+ mkdir -p utils/nwupdateskins/
+ mv -f NWN_Platinum/Miles/* miles/
+ mv -f NWN_Platinum/ambient/*.wav ambient/
+ mv -f NWN_Platinum/docs .
+ mv -f NWN_Platinum/modules .
+ mv -f NWN_Platinum/nwm .
+ mv -f NWN_Platinum/utils/nwupdateskins/*.bmp utils/nwupdateskins/
+ rm -rf NWN_Platinum/
+ rm -rf _*
+ # If we have the DVD, we're done. If not, we need to switch CDs and
+ # unpack the files on them.
+ if [[ $(du -b "${CDROM_ROOT}"/Data_Shared.zip | awk '{print $1}') -lt 700000000 ]]
+ then
+ cdrom_load_next_cd
+ einfo "Unpacking files..."
+ unzip -qo "${CDROM_ROOT}"/disk2.zip || die "unpacking"
+ cdrom_load_next_cd
+ einfo "Unpacking files..."
+ unzip -qo "${CDROM_ROOT}"/disk3.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/Data_Linux.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/language_data.zip || die "unpacking"
+ cdrom_load_next_cd
+ einfo "Unpacking files..."
+ unzip -qo "${CDROM_ROOT}"/disk4.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/xp1.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/xp1_data.zip || die "unpacking"
+ fi
+ ;;
+ gold_cd)
+ # Variety of ZIP's off 4 CD's
+ mkdir -p "${S}"
+ cd "${S}"
+ einfo "Unpacking files..."
+ einfo "Copying files from CD1"
+ cp "${CDROM_ROOT}"/Data_Shared.zip . || die "unpacking"
+ cp "${CDROM_ROOT}"/Language_data.zip . || die "unpacking"
+ cp "${CDROM_ROOT}"/Language_update.zip . || die "unpacking"
+ # Yay cd switching
+ cdrom_load_next_cd
+ unzip -qo "${CDROM_ROOT}"/disk2.zip || die "unpacking"
+ cdrom_load_next_cd
+ unzip -qo "${CDROM_ROOT}"/disk3.zip || die "unpacking"
+ cdrom_load_next_cd
+ unzip -qo "${CDROM_ROOT}"/disk4.zip || die "unpacking"
+ # Amazingly enough, the order of operations matter.
+ unzip -qo "${S}"/Data_Shared.zip || die "unpacking"
+ unzip -qo "${S}"/Language_data.zip || die "unpacking"
+ unzip -qo "${S}"/Language_update.zip || die "unpacking"
+ rm -f Data_Shared.zip
+ rm -f Language_data.zip
+ rm -f Language_update.zip
+ # Expansion pack
+ if use hou
+ then
+ rm -f xp1patch.key data/xp1patch.bif override/*
+ cdrom_load_next_cd
+ einfo "Unpacking files..."
+ unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking"
+ touch .metadata/hou || die "touching hou"
+ fi
+ ;;
+ original_cd)
+ # Now, we need to create our directories, since we know we'll end up
+ # needing them for our install.
+ mkdir -p ambient data dmvault docs lib localvault miles modules \
+ music nwm override texturepacks scripttemplates
+
+ # Handle NWN CD1
+ mkdir "${S}"/disc1_tmp
+ cd "${S}"/disc1_tmp
+ einfo "Unpacking files..."
+ unshield x ${CDROM_ROOT}/data1.cab || die "unpacking files"
+ rm -f miles/Mss32.dll
+ mv -f */* .
+ cd "${S}"
+
+ mv -f disc1_tmp/*.bif data
+ mv -f disc1_tmp/dungeonmaster.bic dmvault
+ mv -f disc1_tmp/*.bic localvault
+ mv -f disc1_tmp/*.{pdf,txt} docs
+ mv -f disc1_tmp/*.erf texturepacks
+ mv -f disc1_tmp/chitin.key .
+ rm -rf disc1_tmp
+
+ # NWN CD2
+ cdrom_load_next_cd
+ biounzip ${CDROM_ROOT}/disk2.bzf . || die "unpacking files"
+
+ # NWN CD3
+ cdrom_load_next_cd
+ einfo "Copying files from cd..."
+ for i in ambient data music
+ do
+ cp ${CDROM_ROOT}/${i}/* "${S}"/${i} || die "error copying data"
+ chmod -x "${S}"/${i}/*
+ done
+ if use videos
+ then
+ mkdir -p "${S}"/movies
+ cp ${CDROM_ROOT}/movies/* "${S}"/movies || die "error copying data"
+ chmod -x "${S}"/movies/*
+ fi
+
+ # Now, we install HoU and SoU, if necessary
+ if use sou
+ then
+ cdrom_load_next_cd
+ einfo "Unpacking files..."
+ unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/Data_Linux.zip || die "unpacking"
+ touch .metadata/sou || die "touching sou"
+ fi
+ if use hou
+ then
+ cdrom_load_next_cd
+ if use sou && use hou
+ then
+ rm -f xp1patch.key data/xp1patch.bif override/*
+ fi
+ einfo "Unpacking files..."
+ unzip -qo "${CDROM_ROOT}"/Data_Shared.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/Language_data.zip || die "unpacking"
+ unzip -qo "${CDROM_ROOT}"/Language_update.zip || die "unpacking"
+ touch .metadata/hou || die "touching hou"
+ fi
+ ;;
+ esac
+ fi
+ # We unpack this for all media sets.
+ unpack nwclient${MY_PV}.tar.gz
+ if use nowin
+ then
+ if (use sou || use hou) && ! use cdinstall ; then
+ ewarn "If you really want to install SoU and/or HoU, you must"
+ ewarn "emerge with USE=cdinstall."
+ die "SoU and/or HoU require USE=cdinstall."
+ fi
+ cd "${WORKDIR}"
+ unpack nwresources${MY_PV}.tar.gz \
+ || die "unpacking nwresources${MY_PV}.tar.gz"
+ cd "${S}"
+ fi
+
+ rm -rf override/*
+ for a in ${A}
+ do
+ currentlocale=""
+ if [[ -z ${a/*german*/} ]]
+ then
+ currentlocale=de
+ elif [[ -z ${a/*spanish*/} ]]
+ then
+ currentlocale=es
+ elif [[ -z ${a/*italian*/} ]]
+ then
+ currentlocale=it
+ elif [[ -z ${a/*french*/} ]]
+ then
+ currentlocale=fr
+ fi
+ if [[ -n "$currentlocale" ]]
+ then
+ touch ".metadata/linguas_$currentlocale"
+ mkdir -p $currentlocale
+ cd ${currentlocale}
+ unpack ${a} || die "unpacking ${a}"
+ cd ..
+ fi
+ done
+ if use linguas_en
+ then
+ touch ".metadata/linguas_en"
+ fi
+ # These files aren't needed and come from the patches (games-rpg/nwn)
+ rm -f data/patch.bif patch.key
+ rm -f data/xp1patch.bif xp1patch.key
+
+ # Rename nwn.ini to avoid overwriting it every time
+ mv nwn.ini nwn.ini.default
+
+ sed -i -e 's,/bin/sh,/bin/bash,g' -e '\:^./nwmain .*:i \
+'"dir='${dir}';LINGUAS='${LINGUAS}'"';LANG="${LANG/_*}" \
+die() { \
+ echo "$*" 1>&2 \
+ exit 1 \
+} \
+cd "${dir}" || die "cd ${dir}" \
+if [[ -d "$LANG" ]] \
+then \
+ p=${HOME}/.nwn/${LANG} \
+elif [[ -d "en" ]] \
+then \
+ LANG=en \
+ p=${HOME}/.nwn/${LANG} \
+else \
+ LANG="" \
+ p=${HOME}/.nwn \
+ for i in ${LINGUAS} \
+ do \
+ if [ -z "${LANG}" -a -r ".metadata/linguas_$i" -a -d "$i" ] \
+ then \
+ LANG=$i \
+ p=${HOME}/.nwn \
+ fi \
+ done \
+fi \
+mkdir -p "${p}" \
+find "${p}" -type l -delete \
+for i in * ; do \
+ if [[ ! -f ".metadata/linguas_${i}" && ${i: -4} != ".ini" ]] \
+ then \
+ cp -rfs ${dir}/${i} ${p}/. || die "copy ${i}" \
+ fi \
+done \
+if [[ -n "$LANG" ]] \
+then \
+ cd "${LANG}" || die "cd ${LANG}" \
+ for i in * ; do \
+ cp -rfs ${dir}/${LANG}/${i} ${p}/. || die "copy ${LANG}/${i}" \
+ done \
+fi \
+cd "${p}" || die "cd ${p}" \
+if [[ -r ./nwmovies.so ]]; then \
+ export LD_PRELOAD=./nwmovies.so:$LD_PRELOAD \
+ export SDL_AUDIODRIVER=alsa \
+fi \
+if [[ -r ./nwmouse.so ]]; then \
+ export XCURSOR_PATH="$(pwd)" \
+ export XCURSOR_THEME=nwmouse \
+ export LD_PRELOAD=./nwmouse.so:$LD_PRELOAD \
+fi \
+ ' "${S}"/nwn || die "sed nwn"
+}
+
+src_install() {
+ dodir "${dir}"
+ mkdir -p "${S}"/dmvault "${S}"/hak "${S}"/portraits "${S}"/localvault
+ rm -rf "${S}"/dialog*.{tlk,TLK} "${S}"/*/dialog*.{tlk,TLK} \
+ "${S}"/dmclient "${S}"/nwmain "${S}"/nwserver \
+ "${S}"/SDL-1.2.5 "${S}"/fixinstall
+ # Remove the softlink to the built-in SDL library so that we don't have to re-install
+ # this whole thing whenever we need to update to a different custom SDL
+ rm "${S}"/lib/libSDL-1.2.so.0
+ if ! use videos
+ then
+ rm -rf "${S}"/movies/*
+ fi
+ mv "${S}"/* "${Ddir}"
+ mv "${S}"/.metadata "${Ddir}"
+ keepdir "${dir}"/servervault
+ keepdir "${dir}"/scripttemplates
+ keepdir "${dir}"/saves
+ keepdir "${dir}"/portraits
+ keepdir "${dir}"/hak
+ cd "${Ddir}"
+ for d in ambient data dmvault hak localvault movies music override portraits
+ do
+ if [[ -d ${d} ]]
+ then
+ ( cd ${d}
+ for f in $(find . -name '*.*') ; do
+ lcf=$(echo ${f} | tr [:upper:] [:lower:])
+ if [[ ${f} != ${lcf} ]] && [[ -f ${f} ]]
+ then
+ mv ${f} ${lcf}
+ fi
+ done )
+ fi
+ done
+
+ doicon "${DISTDIR}"/nwn.png
+
+ prepgamesdirs
+ chmod -R g+rwX "${Ddir}/saves" "${Ddir}/localvault" "${Ddir}/dmvault" \
+ 2>&1 > /dev/null || die "could not chmod"
+ chmod g+rwX "${Ddir}" || die "could not chmod"
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! use cdinstall && ! use nowin ; then
+ elog "The NWN linux client data is now installed."
+ elog "Proceed with the following steps in order to get it working:"
+ elog "1) Copy the following directories/files from your installed and"
+ elog " patched (1.68) Neverwinter Nights to ${dir}:"
+ elog " ambient/"
+ elog " data/"
+ elog " dmvault/"
+ elog " hak/"
+ elog " localvault/"
+ elog " modules/"
+ if use videos
+ then
+ elog " movies/"
+ fi
+ elog " music/"
+ elog " portraits/"
+ elog " saves/"
+ elog " servervault/"
+ elog " texturepacks/"
+ elog " chitin.key"
+ elog "2) Remove some files to make way for the patch"
+ elog " rm ${dir}/music/mus_dd_{kingmaker,shadowgua,witchwake}.bmu"
+ elog " rm ${dir}/override/iit_medkit_001.tga"
+ elog " rm ${dir}/data/patch.bif"
+ if use sou
+ then
+ elog " rm ${dir}/xp1patch.key ${dir}/data/xp1patch.bif"
+ fi
+ if use hou
+ then
+ elog " rm ${dir}/xp2patch.key ${dir}/data/xp2patch.bif"
+ fi
+ elog "3) Chown and chmod the files with the following commands"
+ elog " chown -R ${GAMES_USER}:${GAMES_GROUP} ${dir}"
+ elog " chmod -R g+rwX ${dir}"
+ echo
+ elog "Or try emerging with USE=nowin and/or USE=cdinstall."
+ echo
+ else
+ einfo "The NWN linux client data is now installed."
+ echo
+ fi
+ if use cdinstall && ! use nowin ; then
+ ewarn "Some/all demo modules will be missing. You can copy them manually into :"
+ ewarn "${dir}/modules"
+ ewarn "or emerge with USE=nowin."
+ fi
+ if ! use cdinstall && use nowin && use videos
+ then
+ ewarn "Some/all movies will be missing. You can copy them manually into :"
+ ewarn "${dir}/movies"
+ ewarn "or emerge with USE=cdinstall and/or USE=-nowin."
+ fi
+ elog "This is only the data portion, you will also need games-rpg/nwn to"
+ elog "play Neverwinter Nights."
+ echo
+}
diff --git a/games-rpg/nwn-penultima/Manifest b/games-rpg/nwn-penultima/Manifest
new file mode 100644
index 000000000000..f2e7546fede6
--- /dev/null
+++ b/games-rpg/nwn-penultima/Manifest
@@ -0,0 +1,10 @@
+DIST Penultima_0_Penultima_City.zip 328125 SHA256 6040fc52ccd9ab21f2e3fc8aa596357c325c264932d7a4776ed2edb1424f23aa SHA512 2b2f9e7e72642baa6784bd010cee5aed947ee69670a18fe574a2bb458c890b3145f10417b6df9393b9cb715cac8e34673c75359b9a3e97b1c7b596f2ff8796da WHIRLPOOL a4ccfcb93db827dac6062e4a3aa02829920e2b0a600598e2997ed34a33fb77f7d5b71581bd564292957bde9e4505657e90777b38995b8dc3ceb269ed23fd409f
+DIST Penultima_1_Pest_Control.zip 175522 SHA256 46cd4c3c3ffc4797fc17f5a22ac15ce848d2f339ae41e6b19eee2cd0fcb9974f SHA512 fe6937846ec190a6decb68040d485565e184e6725399491385a03f538db89ae1f653669dbeb7594dbf82d938375f41d56e4540d564a5d87781843c1971f121e9 WHIRLPOOL 54b71dac89e16de23f164dfa4c6463941155ecc46c6cd364665f43af19b9f0a59469611b8d5de11a224d6770c6f2d7b5c3215644d52f026faa845ae054f30d89
+DIST Penultima_2_Deweys_Decimal.zip 372994 SHA256 2331bf16cd927048ee159aac869601aa5cd4e9465d3dc8562e6fff0b72f93537 SHA512 7bdd96bc7013a903ae1e098156436b6fe342fc14ffc620c94055cfc40640fa4494ba2e759fa91ec2dc96c5ea4c86aa4d01298c5f153039ea56485d86f4859659 WHIRLPOOL 42fe175dd832eebf4ad60cec76cd99323dd9da172602b092ca1fbb9782cc3a98374a0b8b816e25222727ea2fcb0918504532ceb1f7694c3ac20966b714c0c337
+DIST Penultima_3_Hazard_Pay.zip 385090 SHA256 3907374ad0bbf57acd8239bcfa4b3676c23ba8b63c0b743076d697ccc83c7e0a SHA512 9650683713b7fa07a9397ba3f0c2279852266d0d93692968ace90385dc079df8d302951dc60ad140712bfb742886d7eb773d9034ace884d48fc837ff86e15602 WHIRLPOOL 9d3a8714d2289535c82b027b49301844e7491a619f8f89c1b6f0f253c2d1708ec011ee5c6a69a76c4a72883f41d1811e25291fc90e505af08ebb26b190057ac1
+DIST Penultima_4_Clucking_Hositle.zip 309353 SHA256 c58b61a7bfff5961a583aeca13f5823d68f96f3828dafae6bc391a60191a7edb SHA512 57919023bf6ab4041976f2517b56a2eb94ab1b09d3de5cff133d3b3943e09501be8170a94c8e61d74dacbf25971153ef2478cacde23a6f1a1285b35e0461adef WHIRLPOOL 46faff5dea5eb11fb9b27f5f372310137f96718dd2b9950bc6ad8b18a8d7e967ad1389de67cc8138e541f4d17ea85b509e8e3a577d5519bed7f2d50abfe8299b
+DIST Penultima_5_Home_Sweet_Home.zip 418774 SHA256 220c2275446bb796931b9c4828e34ff419b5667c99656fd5f12cf16b06322e87 SHA512 6aa0dcef9ae572daba480a723d9de6eca4f282b6ab15dd5198177dbe105db0f361f54854ac2bf89e73167f15c5c8d3c4890e5bb22b878178c28bd4372cb790ff WHIRLPOOL 0498ec1e8eb47d888df22a99ec8c93e861edad0eef2bc6eafe45e0c09bd66c90ea9e33d7062fd4f7780542c4784a8898e857bd3ce81e51433e82f40d19bb7367
+EBUILD nwn-penultima-1-r1.ebuild 1146 SHA256 0f740a0ed8c6169615321b4ff6e747ff9d3d4ebe81702bfc9eca06f69f1ab7a4 SHA512 ac4fdace3862b92550aaa84cb58a943901009bd8c6846834e78754afd5ec0227ec24b41ca648148b48deb490191f5c01ac3b08d377068762687f0881e2d6f37d WHIRLPOOL f493ab2146b6a6dc43ee181a406ea90202520d4e6f27842ad26385a79a3d4487b269c6f86216b08fc444cdf28094baa18e81b28e95518feebd9de95d501d3c53
+MISC ChangeLog 2777 SHA256 6be731edbd9d8fb10a127d0e8e12ededf7a6f4d63d34a09b62fcf8ce6fdde67f SHA512 bf49c07f6499e8759f079c3137f32b50ed4f5ae91171261f0ced8fb5c19c7828a55d217cd6ba59294b17a0a0e7383eee2e0d915c1c87a462883f45ff11faf0ac WHIRLPOOL 4eb528f2262d699defde001e8a4f1ce6869ea277ea360d479c24f1de1d7971858207bd0ee333bd6267b68b0b1c27154e3fc00a83dc1114613b446915e3f7a9e0
+MISC ChangeLog-2015 891 SHA256 74878c4484e1f07a62b65d528a447c7d243c498b5f9b33177761ab8143fba952 SHA512 5a3bcd38918b1655a3de414bd0e5a156d2996fc02395b2b564f889c88ef11adbb3f35caa1ecf1534cf5ee3e2ca7ee8ff9b10126babd1fc8ab7cb20b2e46aedbc WHIRLPOOL ea1ae677a36a079f42093744aac1a9eed14bf889ed65ee9c0999c4238a7f0027161e51e0e2938d0c49dc5cf37070b7b98e800a55d1b039e16b0b67d30de0e28a
+MISC metadata.xml 372 SHA256 2a05f4171dab1162d18de997ac48b050afa89b8f2cb72ada910aecc70520489c SHA512 282ad350342d3c54a14bb40f771be77d9450ae883cc23b9427282c88e330be5e635d8aa99d320c80a24b2eb1cf6cff5a0ec52aeb6fd5ee8c45d9ca6b1e21bea7 WHIRLPOOL 1cc3b120a6231250fbee434424dd3d6cd1862166928b15608bf5ec598cc18c6932607cc968792e80b84de055b43559a04e247b338b0b4e72df1d5bc8ddef2744
diff --git a/games-rpg/nwn-penultima/metadata.xml b/games-rpg/nwn-penultima/metadata.xml
new file mode 100644
index 000000000000..4352d122dab9
--- /dev/null
+++ b/games-rpg/nwn-penultima/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>calchan@gentoo.org</email>
+ <name>Denis Dupeyron</name>
+ </maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/nwn-penultima/nwn-penultima-1-r1.ebuild b/games-rpg/nwn-penultima/nwn-penultima-1-r1.ebuild
new file mode 100644
index 000000000000..42efb99f0f35
--- /dev/null
+++ b/games-rpg/nwn-penultima/nwn-penultima-1-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+DESCRIPTION="A parodic fantasy module for Neverwinter Nights"
+HOMEPAGE="http://pixelscapes.com/penultima"
+SRC_URI="http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1661/Penultima_0_Penultima_City.zip
+ http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1665/Penultima_1_Pest_Control.zip
+ http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1667/Penultima_2_Deweys_Decimal.zip
+ http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1669/Penultima_3_Hazard_Pay.zip
+ http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1671/Penultima_4_Clucking_Hositle.zip
+ http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1673/Penultima_5_Home_Sweet_Home.zip"
+
+# redistributable per http://stefangagne.com/penultima/modules.html
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="games-rpg/nwn"
+
+src_install() {
+ insinto "${GAMES_PREFIX_OPT}"/nwn/modules
+ doins *.mod
+
+ insinto "${GAMES_PREFIX_OPT}"/nwn/penultima
+ doins *.txt
+
+ prepgamesdirs
+}
diff --git a/games-rpg/nwn-penultimarerolled/Manifest b/games-rpg/nwn-penultimarerolled/Manifest
new file mode 100644
index 000000000000..30fde573357d
--- /dev/null
+++ b/games-rpg/nwn-penultimarerolled/Manifest
@@ -0,0 +1,9 @@
+DIST PR0_and_PR1_Penultima_ReRolled_Starter_Pack_v1.4.zip 3020678 SHA256 6e0ef8e3be1ca628fc0e6c29b1a0082a970623308fa3f72064dedfba490f432a SHA512 24666de2bc628c43a31082d96c81417f555b279d8ad294034796f181216ed00fe4dc518a110e29a05395e855c0ad77741a0458ca73a8b7ab3a2f277a508f1c32 WHIRLPOOL c006d986de7e84e0813a6f327aadd919aea1ace1ea3ddae1c0e33aeefbde5b883f8ec46a164270bed1f170f34ed56f4c23e3b65a50c6ed7937cd1cce696be416
+DIST PR2_Below_the_R00t.v1.zip 433938 SHA256 58744d9a07eb0ebe4909f8b6be7be699d132dea62a20ee99ab227bae65061d1b SHA512 3859032b8a8f14f793fb7cd02cc48b74ec4c28d7d2de040cec6906679ab80b060d9c2c44dda3c1182e757b5f88ef89e54a7aa1d3e241bbec89cc3733ea2bdc21 WHIRLPOOL 5627e9a19222321bd2f548a7ccf14a312d6b3a1fdfc93f88ff2caf4fcf1b3cd262939f9fa04f2b6157f812a38912ba4eee1a92c13b914168c436427f249310ad
+DIST PR3_Homeland_Security.v1.4.zip 479645 SHA256 6f79f5ae168db226b60661fa0e26e94db6bf9e5aae1a478eddeee32fba0f8804 SHA512 e7dd540fdb34fd0ab351b67843fa838dea7c82d1bbe5c8e456877b7940cadb45eb2edea7d418602a1a717290ce1365e883a241e41cc7b9a49b4921a2193ce687 WHIRLPOOL d9dd26f5abb9112472ebb6c9558685d2f7196cb0b8b646f0be526a75ce4d629c881169322c5b44d87078d7b70b2222a53541467d86b51413628c2bd7fa55d613
+DIST PR4_Pastor_of_Muppets.v1.1.zip 1719811 SHA256 216df86a743557997e32425e84ab058f10e0e28424a46127e5c8c244eb71d203 SHA512 07b8fdeaf75a72168f2dc00e59071d36b93f3320a62bc4218e2cfb2fa34f78826cf15ab1d8835a89c64121e31bf83ee520e244c046b0d2010260fddd04d2c0a2 WHIRLPOOL 5bfd986674d484c8766e7bfdd9e0a59ee28ce7f82c21d9e3691da4290e7914c4e8943f8eb9786f14b26176705eddd513b4a0b5ea2589d706448501cca2445da6
+DIST PR5_The_Saving_Throw.v1.1.zip 3813986 SHA256 f6a4dafb669cbec4e5c840b0f7492223e80708cfa6e0e0ad5334ced38a3e52d8 SHA512 9047968c3578fdb4afb87e4403d2e9da193dc31c3748c1405072b9fc8dd5cc062679dbf4f9e55388d68cd56662c7c6e6686381cd2ab4f084278ffa378e64874f WHIRLPOOL 09a94239dadc34a5cfd8b9951333e95312529af45b35131fc34ed79196d15aaa6a241e72c13ad6f6dbaff8cb78a8bbd34c0c05962c55b92ffb85d26d900e2dc3
+EBUILD nwn-penultimarerolled-1.ebuild 1354 SHA256 3476ee267de947088bcb8e11747e85869783b6c8ce3aa4bf34c12d4b13c9091d SHA512 f71ce7977b5458dd50e93c076ecefb9567af582d037bcbcd726fa601524cf12f603e60b4198f6394b30954b7d8852cf6ba9712541dd3ea0783e35989466223d1 WHIRLPOOL 4b25b85d10ff3411abba2889312dc63e8362c48335a9cf6addf1055ceb582e5b9c7fc29af4a8f612b232f0d0998da81f918bda26cbff9867eb3de53e6adc0e3b
+MISC ChangeLog 2462 SHA256 c01b84f5bbb0d81bf1b84ec0358621a30525ac5b9caa1dcaee1994b62b8848bc SHA512 3b5d2d99993309bc15ea7f19a5edfb4b891c54b776433a76da3c105271cbd6a82c5df2a8e936150e5d434fdf47c24c85bb9813dd16cbc80afcb4bc20104a259c WHIRLPOOL 07d49c8e012edb37ca8df9a6a16e0adbf9ff4a61bf21dd24dd50fb9e5ed7ee4c74c3062aa97c1013da72bc2c579c7751c425c43b07d65b581c9c03ec31ec7dc0
+MISC ChangeLog-2015 630 SHA256 6b3b2ef222e7c3e915752dfeaf14577c3e7d42f59c9f929bc9e9f8318ab13b65 SHA512 0a752a65992184e54343ac37daf8dfd107d5e86a8efd20182532ade1d0ba5688530528309cd01652e23097c330a309e3c72894b9b27012bf2e36708ad6692b5f WHIRLPOOL 7ff23093932bb5b12fb3bfbbd969ea065e9d798e42e020f20db64d9787fb2b27c5df25fdcd6b2a4a0ce4e1953382b05e5fa6ba123680ef1e97efdcb66668da48
+MISC metadata.xml 372 SHA256 2a05f4171dab1162d18de997ac48b050afa89b8f2cb72ada910aecc70520489c SHA512 282ad350342d3c54a14bb40f771be77d9450ae883cc23b9427282c88e330be5e635d8aa99d320c80a24b2eb1cf6cff5a0ec52aeb6fd5ee8c45d9ca6b1e21bea7 WHIRLPOOL 1cc3b120a6231250fbee434424dd3d6cd1862166928b15608bf5ec598cc18c6932607cc968792e80b84de055b43559a04e247b338b0b4e72df1d5bc8ddef2744
diff --git a/games-rpg/nwn-penultimarerolled/metadata.xml b/games-rpg/nwn-penultimarerolled/metadata.xml
new file mode 100644
index 000000000000..4352d122dab9
--- /dev/null
+++ b/games-rpg/nwn-penultimarerolled/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>calchan@gentoo.org</email>
+ <name>Denis Dupeyron</name>
+ </maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/nwn-penultimarerolled/nwn-penultimarerolled-1.ebuild b/games-rpg/nwn-penultimarerolled/nwn-penultimarerolled-1.ebuild
new file mode 100644
index 000000000000..069543b5617e
--- /dev/null
+++ b/games-rpg/nwn-penultimarerolled/nwn-penultimarerolled-1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit games
+
+DESCRIPTION="A parodic fantasy module for Neverwinter Nights"
+HOMEPAGE="http://pixelscapes.com/penultima"
+SRC_URI="http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1674/PR0_and_PR1_Penultima_ReRolled_Starter_Pack_v1.4.zip
+ http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1675/PR2_Below_the_R00t.v1.zip
+ http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1676/PR3_Homeland_Security.v1.4.zip
+ http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1677/PR4_Pastor_of_Muppets.v1.1.zip
+ http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/modules/1678/PR5_The_Saving_Throw.v1.1.zip"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="games-rpg/nwn"
+
+src_install() {
+ insinto "${GAMES_PREFIX_OPT}"/nwn/modules
+ doins *.mod || die "Installing modules failed"
+
+ insinto "${GAMES_PREFIX_OPT}"/nwn/hak
+ doins *.hak || die "Installing hak files failed"
+
+ insinto "${GAMES_PREFIX_OPT}"/nwn/music
+ doins *.bmu || die "Installing music failed"
+
+ insinto "${GAMES_PREFIX_OPT}"/nwn/movies
+ doins *.bik || die "Installing movies failed"
+
+ insinto "${GAMES_PREFIX_OPT}"/nwn/penultima_rerolled
+ doins *.html *.jpg || die "Installing documentation failed"
+
+ prepgamesdirs
+}
diff --git a/games-rpg/nwn-shadowlordsdreamcatcherdemon/Manifest b/games-rpg/nwn-shadowlordsdreamcatcherdemon/Manifest
new file mode 100644
index 000000000000..d495eb3652a4
--- /dev/null
+++ b/games-rpg/nwn-shadowlordsdreamcatcherdemon/Manifest
@@ -0,0 +1,5 @@
+DIST ShadowlordsDreamcatcherDemon.exe 157055254 SHA256 6f1197ae79da447e72d1d894d51265c534f5406583e1e8905907396a488cf62c SHA512 8ac3b47df35c2ee3baba6ca27e027cf5f8f83e7583e342725741a4721462621bf6b8f65d8337cfefc51cc0420d0d0d8d2acc2255793a7705f35b3d56d3a933dd WHIRLPOOL e23fb9ff3112e0514d36d59ee9405f6d635facfd206db86ee9bb668333b2a9ac68fe2a7ab766dce6d3987fac4a6696173abb33583cff8c7cf49a75c1af2908e1
+EBUILD nwn-shadowlordsdreamcatcherdemon-1.ebuild 1151 SHA256 aedbc93e2be87be23904c55f8e8835e7a757285d964f5f0e92f513f819b8a273 SHA512 13fccdee0ce6e1a04274778c82c9959a5287bee3b85799b51497d1f80a15237a013536d63d8ac8eebd7c8121c8607f42489710c9460e24b3590ed9d1775aad8f WHIRLPOOL 66a34b0b5173f297e3d58c4508bba5b91c970c75548b4e2d37e013d0da2f0a4d5a43d52d8470fa605528eec4914b142637134e40368303bb0a522e23d2a9bb93
+MISC ChangeLog 2495 SHA256 476c0046f283d7b3c7b12171d7b87a26b2e2d43946d035c4a458728cf1585d4c SHA512 1a86adcd26600d74997b7e79e756b3ce6f7fd0f64af09a0d2960a601998070c3b2248b8c2b9781720c752b3b252bacfde2b21bd97d8371fe69767c59daf0aaf5 WHIRLPOOL 55ae99a74593a249c55291c8816145b4a3f6e9b6c92dd3ab977a96d3f40553d3d815a901e71247f6dc785e7df17a2ef0eeabfa417863af8088016f67ee148b32
+MISC ChangeLog-2015 593 SHA256 5ed3736b114a7b886a415ca463b21c0be7ae85cd399bae550974b84316ac4a73 SHA512 fd31b7b81f1d20aedec13ef7feeefeac6c5e0caf153a7352e1dce97f3d5eff994cd107e4379e5b6c53438c9d6dff8617ac51b8e21dff403e8777bd4fee741fed WHIRLPOOL ffacf32b33873a1331b6e4efd0e8d34d6fa9fd9d6707e2331085f83c3f5fda7641f494470525c25d9bb309a4b9fa10105759ee9a716c0efb3524575c0d2a4894
+MISC metadata.xml 372 SHA256 2a05f4171dab1162d18de997ac48b050afa89b8f2cb72ada910aecc70520489c SHA512 282ad350342d3c54a14bb40f771be77d9450ae883cc23b9427282c88e330be5e635d8aa99d320c80a24b2eb1cf6cff5a0ec52aeb6fd5ee8c45d9ca6b1e21bea7 WHIRLPOOL 1cc3b120a6231250fbee434424dd3d6cd1862166928b15608bf5ec598cc18c6932607cc968792e80b84de055b43559a04e247b338b0b4e72df1d5bc8ddef2744
diff --git a/games-rpg/nwn-shadowlordsdreamcatcherdemon/metadata.xml b/games-rpg/nwn-shadowlordsdreamcatcherdemon/metadata.xml
new file mode 100644
index 000000000000..4352d122dab9
--- /dev/null
+++ b/games-rpg/nwn-shadowlordsdreamcatcherdemon/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>calchan@gentoo.org</email>
+ <name>Denis Dupeyron</name>
+ </maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/nwn-shadowlordsdreamcatcherdemon/nwn-shadowlordsdreamcatcherdemon-1.ebuild b/games-rpg/nwn-shadowlordsdreamcatcherdemon/nwn-shadowlordsdreamcatcherdemon-1.ebuild
new file mode 100644
index 000000000000..c2c02c04ce5d
--- /dev/null
+++ b/games-rpg/nwn-shadowlordsdreamcatcherdemon/nwn-shadowlordsdreamcatcherdemon-1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit games
+
+DESCRIPTION="The bundled Shadowlords, Dreamcatcher, and Demon campaigns by Hall-of-Famer Adam Miller"
+HOMEPAGE="http://www.adamandjamie.com/mod/nwn_campaign.aspx"
+SRC_URI="http://vnfiles.ign.com/nwvault.ign.com/fms/files/modules/4273/ShadowlordsDreamcatcherDemon.exe"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror bindist"
+
+DEPEND="app-arch/p7zip"
+RDEPEND="games-rpg/nwn"
+
+src_unpack() {
+ 7z x "${DISTDIR}/ShadowlordsDreamcatcherDemon.exe" || die "Unpacking failed"
+}
+
+src_install() {
+ insinto "${GAMES_PREFIX_OPT}"/nwn/modules
+ doins *.mod || die "Installing modules failed"
+
+ insinto "${GAMES_PREFIX_OPT}"/nwn/hak
+ doins *.hak || die "Installing hak files failed"
+
+ insinto "${GAMES_PREFIX_OPT}"/nwn/music
+ doins *.bmu || die "Installing music failed"
+
+ insinto "${GAMES_PREFIX_OPT}"/nwn/movies
+ doins *.bik || die "Installing movies failed"
+
+ insinto "${GAMES_PREFIX_OPT}"/nwn/shadowlords_dreamcatcher_demon
+ doins *.txt || die "Installing documentation failed"
+
+ prepgamesdirs
+}
diff --git a/games-rpg/nwn/Manifest b/games-rpg/nwn/Manifest
new file mode 100644
index 000000000000..e25a3c847ba2
--- /dev/null
+++ b/games-rpg/nwn/Manifest
@@ -0,0 +1,25 @@
+AUX fixinstall 2534 SHA256 9a8724de422b26fc02620323745cf78846b6781902b9a7160ae1fa438e2d783a SHA512 694f1f9fb26df89fe9a583f5f103404c153acc006e48c2fdaed5dad9670595f7132c15f798e93f757c10f966199aaee51d1d4ac462e9b2887397b2b607fd7f70 WHIRLPOOL e1f6d5db05c434cd0289da6bffb7106cc8a5bc5895f8e374a880304f6f246d1ef607966c6a8dbfe655bd4d38806a7690a50379ee6ba3d1be24d76668b39c0889
+DIST English_linuxclient168_orig.tar.gz 130569338 SHA256 03687bff0469cb08a7e5a14316e076a6bfe698121ccee4e2116f0bf119988092 SHA512 b1eaf7fb3f009b544ad05bde5c4f817c515bad770752ba7a454acef38bb7bc45bb276c93052b61cbf34a52439fac597842da563a85d6c5f4fe4040d6d2528578 WHIRLPOOL 31500340f5325f5e3460c6c247aa49d6a819892c63fb8cba9e238ef8251ea8ff799771923d6e703f4917147feab7e182ea0d2aff61524cea2a1e6d7829086ba9
+DIST English_linuxclient168_xp1.tar.gz 134673662 SHA256 e78716a83add4980674f86fd648d374b6086365620bde478b678edfdd4e7e82c SHA512 2893b377667df9d071d121a627b774302d40da8dcb11d48e8977ca43a8865adf1d99b39ec161401b1f2ffe200402a2c4db594bd1e713bfe7e4cea85eb8ecbd3b WHIRLPOOL ce3aeeeb2ba01d9a28d25630aec5a1f1448f7c3cef042a39cae4ae03e4905c0e09d21a86295c8d1582a34ec8761abe2e953a0e4ad5cbe5987780b3e48919ad9c
+DIST English_linuxclient168_xp2.tar.gz 120144829 SHA256 b8d69ad68c3e3ddf2332176ffd1494682bd9f9d254531720327a62be44e1ac2c SHA512 09f05067aa245399bf9e96c3fbe68f8bbe913b5a68744ea91b5db006a5a01e190fcd0170675e84aae208bff0fbdb47e50eccc9e931b07cb2d461e6fee9e17f4a WHIRLPOOL 57f0083aa116a6fea2c495b5b5014c77ff5e68d1d0e7749473db9fac0be70ea6a71ab47543b7123f3140967cadcfe70943ccc6b0a942bccb5f7aeebd0685acfa
+DIST English_linuxclient169_orig.tar.gz 473297170 SHA256 50932f9647ea7968dbb8f7ab1fc6478035fff0826379a45762c1de8e46d1d2b0 SHA512 e24c0a44e41c97e313aeae1f001ee9ab15d97432b754246bc38b79d8adb7b372f5063a45c378fcf2ea07835f46ed20d02cca727bd7f9ce3800ab36e0ccc4b30c WHIRLPOOL 098a9d80f923971e19f036b93b0bc3ad550c7bb72e1efb1fd850ceacfc61a8159c9cabbf74ce91c9c3435a346e8aa5a80020427d1abd83f02b948616cbb753dd
+DIST English_linuxclient169_xp1.tar.gz 477419208 SHA256 678254a1dbc52c5c3fa628410e3231b05afa3a612433729e7ef12d41bea8fc16 SHA512 c3ba7feba019f62a7a9e2925a7b76c53465d6c64743c9a1e3b9bb34b91b807979fbb9c842b175d4bbd3d6f7c176a6a4446bd58c6c4b50780f1883c376b93e670 WHIRLPOOL e6f6d69d65986b593db100dac06d0f6314fc3b1fe9f6adda148c149f826415580a91a2026d200f96c9eb2f551f92c84256d6bf64275f682265735242123b80c0
+DIST English_linuxclient169_xp2.tar.gz 506025948 SHA256 09715e2b95c025ef7f00d218deec1b1edce501530d8cba51d61097c69699763f SHA512 9a44c60f6d319b0559889c9bfc78656d93e0780527329e6ccd7cf2bafe61c4b9e7d8ea6d3988b06a1ce44b8eec26f4cf773f0ab900ab6f034d1451e1b68ef7fe WHIRLPOOL 295c1deeed6ab3209017dc9ac4e4595396faaa1e08cfaedeffd97a5777684b099512c46e5d3bade0bcab9666cc0df3fb65213caffff38b4cca60b8e4a42b41ec
+DIST French_linuxclient168_orig.tar.gz 131090499 SHA256 f32ed5a759a0a6b49d8f9ef39e313d49a8931725c0d5a61d3a8737d125902315 SHA512 cbbe5c14308a3ab7c67eaa2d5c015e20db871fd758edd21431a32da93ebd6a00b168fa80fe26039b84ab95adb299da2746cae78cd33c75e27ed0be3c6aa37cec WHIRLPOOL 047dc8feb8c26629c17931967136f4beb523dad61d772de8c92950b245dc85560c3782f38b1054924092b94c4b209e0b6eaa7c322127929573d7b5954c7c1c17
+DIST French_linuxclient168_xp1.tar.gz 151199720 SHA256 b9f8fe388519bc824bd2b0198a6c51b93d8a3534d16718b164b6c983fea08f9a SHA512 a0a23822a37e49654959fe10221fdc805bd05911efc17528fd4d11c92b43584f2f4667c1bfaecd82b4bec36fbc66e7f62ff820fc95c847de23d606b0d9f5900b WHIRLPOOL 51d97af81521c922b0cda564cc5ac0b361b3703b135d26bfb7d36023ae7db4b0973ceb022ee7bf31f9f850b535232b904c90604ba5cea3253018abeea138a097
+DIST French_linuxclient168_xp2.tar.gz 133316339 SHA256 7cc11a8cc7a613714c8d01c42b061baad874001da479db1d26903f494894e98a SHA512 6d6902d914cb4fada93f871af68bb6196f4c3250521ab1ddfc79cdab48db6ad01da2ce2c7acbe285bd95203f695ca8b27ccdcf0d4e53925d217dea1b7f6b0eec WHIRLPOOL 413a140c373490cf56ba477b694dece0a5700965d812fe0d6c2165c7ccf1a75b0793a946499eac4ee6d9d12e54d7f2c6c6113f78b540a7f281a7267d33f1bb0d
+DIST German_linuxclient168_orig.tar.gz 131790824 SHA256 d0850968fe68cdabfa3138810387dd4be0bf4338173dc02a46cd5ed7c4348b45 SHA512 193a4a43d784c31c3897ec14a3ce73156c50744c178aa4feebae90fee609a8b1922b32626fa8befabaa2b6773080e31efd5a24194a00a8a65cae9e1daaa2a364 WHIRLPOOL 58bdb9fe96c7e0eec9e059c6bc45e5a4df08882b200e6c817729e1348c11c95a7d30e5df5e8bacf6d063f6c82eff6df14b23c712c628730654b9a59a27dc0ff9
+DIST German_linuxclient168_xp1.tar.gz 152951618 SHA256 11e0b929547860309007298e1851d368d445b7dc8ceab17cece33d51342bfdd8 SHA512 ab47b84089d9406f809f1b2c376acc4054595b187b8bfeccc03e6fbd38c5adf72f4b2da72dd09e74ec37f7ec43cb120561f23f1ccfd0349a1620c99bc45e10f8 WHIRLPOOL 61005dd6de831b71a12d56a67272134e0047600d984add7fd53a8efa7e6b95da0ecd5e4b7f2829d5dca7f74311f08ee4dceffb68d5615a8064f6494f4315d100
+DIST German_linuxclient168_xp2.tar.gz 134425276 SHA256 5d8fe43b751dd9372f45a1193cbf21da04b99fa5c735e5286d7306cf325f796d SHA512 e2573d2982f9445871c9cf6351fb8be6a9bf1b4421f3156639e60deda9b3f0c4020f9b54382f5aba18c098bae72c6804e8f98176a8f3151a079190b184af80b2 WHIRLPOOL c6ea6fc621eada2f84efee5bfea88e7db45d24182577f4a09f5ff76b87902c7bdba2a1db70b769c602d7a1a21d363133ea9a381e129de87858545706a7e85395
+DIST Italian_linuxclient168_orig.tar.gz 132705873 SHA256 650235b4ac464f7bdc873aaf8404ec51deef6e8a7c780a9bb237782c1575f95b SHA512 83381c6abb4f7507cd6367fa0221a5895121f377d00b38eb8b1e1305b59c19821593e9df808e19384fccd1a8177983b1f1e76fc120794c4fc8fd12347f3351e5 WHIRLPOOL 1f01b09bdb4991bd10441be8195d8ea5973ed98c29741a1655104c3e3ae76c0713e291f8f10ec2a451e5a06d2cbd48e8be85caba00fdfaa85e62936fbf543c10
+DIST Italian_linuxclient168_xp1.tar.gz 143425395 SHA256 52da3063290f564c64905b0806201ad9623a62d99f38adae39e3eb0f5970eb94 SHA512 893541a33f302911cfc33a8b9f843d75bf95dcb940436cdc067000499edfc8be1505efaeab60f80b5e054e3baaf156b6605f8c2f41e24adc04866f46a021ad0b WHIRLPOOL 48dbf9ec567602ef4ebd64792673d4eaf5186af4d708e50e74f9c183af8de256047698d5ea40fd7425ce412295fb900676e7c003bd796400f553e1d2f8e83ec6
+DIST Italian_linuxclient168_xp2.tar.gz 133867117 SHA256 8a8f87034ccda517e2c69dea61f6fe799a0e1ef5ced6eab2081980da988f49d8 SHA512 28f16224983b4ab7612a6884b47cf7a451b515725c1d04570b793a416320677f1d780b38ad06c8a9d92b96c2290583d7842aad6475f25c9a63ee0f62bdf80881 WHIRLPOOL f506afb369d1071ac7c91944656088a9a1623024f24117fdf5b8c59eb26306f58d3aa4345bf4a0cdc7ebe412bf5bfd4fe907d9fdd222ceac37c7f04c9d6a01dd
+DIST Spanish_linuxclient168_orig.tar.gz 132704890 SHA256 01bfd907735a69112fc1847e82269ed2a3d00760a9906dd24819269e53173f13 SHA512 526ca6eb4356bc0b0e5153a55f8d59e144b3946844e334028ea21fae75b95f276cfc48ce684493e96c22fe687ccb0624dd14d679f219055fb39a05b2555ebe3f WHIRLPOOL f94a926398221441a395355729288293ab337e6abf55a23a7b2d2b1f0419af06b52a6de7c0c41a1da6d8185a4eb7cd00df74d1db2c819ed7daadf1af8466fa07
+DIST Spanish_linuxclient168_xp1.tar.gz 143415370 SHA256 c74faed185b87a0f187f4e1bcf873ec3810a1fd8dba026b81bcf421e1ca121d9 SHA512 7ffc6468d94e44725ea43b2be7fc36588ea881d7b2fad80af6eba855d1364c39b28be41e24088c52318ce9c8ea9fd177321db0038dc2866d97897c3fde89e258 WHIRLPOOL 7bfae910e40799c5926f2f7ab142395e6b24a4ca2c163f7bc021de83ef6f848081397e8fad8b0c7e559f428a6a3b587142991dc4e9eb7946533ef4cc76ba6d02
+DIST Spanish_linuxclient168_xp2.tar.gz 133862305 SHA256 b4d4efb0eb5d3395e42e665b518f3cec19c690b0f7f57783ecaa2e6aa8b70a5e SHA512 289165f18d4474b285e31cd6ef3b72cf36cab339352d39f797ac1dfbb45d21b1ea5f0505534c5ec9693a588dec9ece5df85b32fd2441816703845d0abd0fa857 WHIRLPOOL fd2bf1df42fa9fcf6e709b990acc2767d6b67b115279b74cdb052b226574a5e375333583104a8496b32d466150ecc1297c7c9a39863d1a493762e97ffab7b05f
+DIST nwn-libs-1.tar.bz2 250395 SHA256 8cf73b69f5c254125713b0bf8dcb89e3320eee5a3339df11d6d18d8381b36f31 SHA512 9a1941f232a0d2cf890660b8e383068f37cb573023c751e57e77cd803290425d9169844c9c550fa7f2a242ba7e7fe499d0f07a618acde9d2d02eab57495e948f WHIRLPOOL 740ce19b2292f961feab1d8829f1128f9e81613885fad5bab014dff7f975563265e4bfecc405b69a409472281cee213e0675696f3173ffd8f48e32a15c40b0ee
+EBUILD nwn-1.68-r6.ebuild 5926 SHA256 263cb1451c51965c16b682a6cf608e91ecfa911828c53d5b33545db9cf407dc9 SHA512 14a7cfec7b838826a47f2cea82b785b2237d258f6d09cf2218d6dbeff04cbeb6dc4c98e0fc42100d92ddd9b7ba250cfc539ec13289673bfc015589c111cfe3c6 WHIRLPOOL 0ad787e91a815c2eb3f421731dbd5d5f95270b97e4ea640cda606827ea07e18390d936dfecb1e7d7826fd95462fbe196abd17077e0ea048f8cd715a642c00f00
+EBUILD nwn-1.69-r1.ebuild 3069 SHA256 01ec95c2332ea4adb7c66510d6eea17a7a67341a00dc02eb25c867441402524d SHA512 cbae44521509d46e4164477c7c980a44994655d58d02e3b3cbe697fe0dccbb12b9efe9413d2a0bc7ae0905c5c1fe5944bc9dabf48e86cb47380ae51c3e25e1a8 WHIRLPOOL e40f8a0cd6e1177dc1ef48cb19eac073b9df3fc4289a3e04c402467b25142edfa8711fa71b577131ad83d3ee2474cb5c1f1a80e599c9f0734989fbc429d97701
+MISC ChangeLog 2718 SHA256 b1e0598aae073b21e9631e50260419a99cf562cc27525f562c95f892dc5cab9e SHA512 a225f223b4669e1e93457fd83d47364275ee676b7dff42c15f9d369d5c31c065502949bd2b3e4e7743e04febfa16738fbd2a3adc5c61d3488d8b171a353fe440 WHIRLPOOL 6915f69ffaf8f0f5401bd48a3cd4defc4555a96427f15f02d1b53cdeabb75f8145487c921176d467a8b18a895a42bb88b386a36d6809398531a42d950e47e2d7
+MISC ChangeLog-2015 14405 SHA256 7347509c6483be990ce3ac6d5dd202c1fdb4232d341fabc563560b16cdcd45a7 SHA512 e135d1839438f4e91fb9bb51261197600dc8ee1e30fec86bf76ab8e749f2a015f6439f9e84d04bb8d090aea5690d9dca06a296919eeeaa7707e8327263c3e765 WHIRLPOOL 7b2cd1c7db96dc8d8df4db16c44ee7c326a46b0adf36b579ee910295d28b1291c3df97b1f4428ff5f716425acc460b10ba1b79c9cc0d470cd63a3f2fd72fc130
+MISC metadata.xml 548 SHA256 c027853f9eee5a0940e42d7d673efa76154596b42fe1f94e53aedc8a99ef794f SHA512 c090f1a2540d8f94f1ac3120378e87a22607e7a0fddb8e1d755869e2f19385dabd6512aa36d59983d7c7d9879e284dc9f18efc6a642265d3718254cad7816a2d WHIRLPOOL 7ed36874b6d54e50f070d643524a16ff83edadeac7ec8b9cf31b125ec2d2a2013e1607661de54293e221b0541d2fb4a0c1d19bf0e164553f451f7b14849d4bf4
diff --git a/games-rpg/nwn/files/fixinstall b/games-rpg/nwn/files/fixinstall
new file mode 100644
index 000000000000..c324b61bf89e
--- /dev/null
+++ b/games-rpg/nwn/files/fixinstall
@@ -0,0 +1,107 @@
+#!/bin/bash
+# Initial version by Bioware
+# Modified to match the gentoo setup
+# 03/27/2003 phoen][x <phoenix@gentoo.org>
+
+cd GENTOO_DIR/nwn || exit 1
+
+aRequiredDirs=(ambient data music override miles nwm)
+aRequiredFiles=(chitin.key dialog.tlk nwmain)
+aLCDirs=(ambient data dmvault hak localvault music override portraits)
+aProblemFiles=()
+aWritables=(nwn.ini nwnplayer.ini nwncdkey.ini saves localvault tempclient currentgame dmvault)
+
+printf "Checking for required files\n\n"
+
+for d in ${aRequiredDirs[@]} ; do
+ if [[ -d $d ]] ; then
+ printf "PASSED: $d directory exists\n"
+ else
+ printf "FAILED: $d directory missing\n"
+ exit 1
+ fi
+done
+
+for f in ${aRequiredFiles[@]} ; do
+ if [[ -f $f ]] ; then
+ printf "PASSED: $f exists\n"
+ else
+ printf "FAILED: $f missing\n"
+ exit 1
+ fi
+done
+
+printf "\nFixing case\n\n"
+
+if [[ -f dialog.TLK ]] ; then
+ mv dialog.TLK dialog.tlk
+fi
+
+if [[ -f dialogF.TLK ]] ; then
+ mv dialogF.TLK dialogf.tlk
+fi
+
+for d in ${aLCDirs[@]} ; do
+ if [[ -d $d ]] ; then
+ printf "$d\n"
+ cd $d
+
+ for f in $(find . -name '*.*') ; do
+ lcf=$(echo $f | tr [:upper:] [:lower:])
+ if [[ $f != $lcf ]] && [[ -f $f ]] ; then
+ mv $f $(echo $f | tr [:upper:] [:lower:])
+ fi
+ printf .
+ done
+
+ cd ..
+ printf "\n"
+ fi
+done
+
+defIFS=$IFS
+IFS='|'
+
+if [[ -d saves ]] ; then
+ cd saves
+ for d in $(find . -name '* - *' -type d -printf "%f|") ; do
+ printf "saves/$d\n"
+ cd "$d"
+
+ [[ -f Portrait.tga ]] && mv Portrait.tga portrait.tga
+ [[ -f Screen.tga ]] && mv Screen.tga screen.tga
+
+ cd ..
+ done
+ cd ..
+fi
+
+IFS=$defIFS
+
+printf "\nChecking for problem files\n\n"
+
+for f in ${aProblemFiles[@]} ; do
+ if [[ -e $f ]] ; then
+ printf "WARNING: $f exists, deleting this file is recommended\n"
+ fi
+done
+
+printf "\nFixing permissions\n\n"
+
+chown GENTOO_USER:GENTOO_GROUP GENTOO_DIR/nwn/ -R
+chmod g+rwX GENTOO_DIR/nwn/ -R
+
+# 1.65-specific fixes to permissions
+[ -e GENTOO_DIR/nwn/data/patch.bif ] && \
+ chmod a-x GENTOO_DIR/nwn/data/patch.bif 2>&1 > /dev/null
+chmod a-x GENTOO_DIR/nwn/nwm/Chapter1.nwm 2>&1 > /dev/null
+chmod a-x GENTOO_DIR/nwn/nwm/Chapter1E.nwm 2>&1 > /dev/null
+chmod a-x GENTOO_DIR/nwn/nwm/Chapter2.nwm 2>&1 > /dev/null
+chmod a-x GENTOO_DIR/nwn/nwm/Chapter2E.nwm 2>&1 > /dev/null
+chmod a-x GENTOO_DIR/nwn/nwm/Chapter3.nwm 2>&1 > /dev/null
+chmod a-x GENTOO_DIR/nwn/nwm/Chapter4.nwm 2>&1 > /dev/null
+chmod a-x GENTOO_DIR/nwn/nwm/Prelude.nwm 2>&1 > /dev/null
+[ -e GENTOO_DIR/nwn/patch.key ] && \
+ chmod a-x GENTOO_DIR/nwn/patch.key 2>&1 > /dev/null
+
+printf "\nYou are ready to run Neverwinter Nights.\n\n"
diff --git a/games-rpg/nwn/metadata.xml b/games-rpg/nwn/metadata.xml
new file mode 100644
index 000000000000..b2df6d63dc3e
--- /dev/null
+++ b/games-rpg/nwn/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>calchan@gentoo.org</email>
+ <name>Denis Dupeyron</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="hou">Install the Hordes of the Underdark expansion pack</flag>
+ <flag name="sou">Installs the Shadows of Undrentide expension pack</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-rpg/nwn/nwn-1.68-r6.ebuild b/games-rpg/nwn/nwn-1.68-r6.ebuild
new file mode 100644
index 000000000000..2cea7587ff1e
--- /dev/null
+++ b/games-rpg/nwn/nwn-1.68-r6.ebuild
@@ -0,0 +1,235 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+LANGUAGES="linguas_fr linguas_it linguas_es linguas_de linguas_en"
+
+MY_PV=${PV//.}
+PATCH_URL_BASE=http://files.bioware.com/neverwinternights/updates/linux/${MY_PV}
+PACKAGE_NAME=_linuxclient${MY_PV}_orig.tar.gz
+SOU_NAME=_linuxclient${MY_PV}_xp1.tar.gz
+HOU_NAME=_linuxclient${MY_PV}_xp2.tar.gz
+
+DESCRIPTION="Epic role-playing game set in a huge medieval fantasy world of Dungeons and Dragons"
+HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html"
+SRC_URI="https://dev.gentoo.org/~calchan/distfiles/nwn-libs-1.tar.bz2
+ linguas_fr? (
+ !sou? ( !hou? ( ${PATCH_URL_BASE}/French${PACKAGE_NAME} ) )
+ sou? ( ${PATCH_URL_BASE}/French${SOU_NAME} )
+ hou? ( ${PATCH_URL_BASE}/French${HOU_NAME} ) )
+ linguas_it? (
+ !sou? ( !hou? ( ${PATCH_URL_BASE}/Italian${PACKAGE_NAME} ) )
+ sou? ( ${PATCH_URL_BASE}/Italian${SOU_NAME} )
+ hou? ( ${PATCH_URL_BASE}/Italian${HOU_NAME} ) )
+ linguas_en? (
+ !sou? ( !hou? ( ${PATCH_URL_BASE}/English${PACKAGE_NAME} ) )
+ sou? ( ${PATCH_URL_BASE}/English${SOU_NAME} )
+ hou? ( ${PATCH_URL_BASE}/English${HOU_NAME} ) )
+ linguas_es? (
+ !sou? ( !hou? ( ${PATCH_URL_BASE}/Spanish${PACKAGE_NAME} ) )
+ sou? ( ${PATCH_URL_BASE}/Spanish${SOU_NAME} )
+ hou? ( ${PATCH_URL_BASE}/Spanish${HOU_NAME} ) )
+ linguas_de? (
+ !sou? ( !hou? ( ${PATCH_URL_BASE}/German${PACKAGE_NAME} ) )
+ sou? ( ${PATCH_URL_BASE}/German${SOU_NAME} )
+ hou? ( ${PATCH_URL_BASE}/German${HOU_NAME} ) )
+ !linguas_en? (
+ !linguas_es? (
+ !linguas_de? (
+ !linguas_fr? (
+ !linguas_it? (
+ !sou? ( !hou? ( ${PATCH_URL_BASE}/English${PACKAGE_NAME} ) )
+ sou? ( ${PATCH_URL_BASE}/English${SOU_NAME} )
+ hou? ( ${PATCH_URL_BASE}/English${HOU_NAME} ) ) ) ) ) )"
+
+LICENSE="NWN-EULA"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="sou hou ${LANGUAGES}"
+RESTRICT="mirror strip"
+
+RDEPEND="
+ >=games-rpg/nwn-data-1.29-r3
+ !<games-rpg/nwmouse-0.1-r1
+ x11-libs/libXext[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]
+"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/nwn
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+die_from_busted_nwn-data() {
+ local use=$*
+ ewarn "You must emerge games-rpg/nwn-data with USE=$use. You can fix this"
+ ewarn "by doing the following:"
+ echo
+ elog "mkdir -p /etc/portage"
+ elog "echo 'games-rpg/nwn-data $use' >> /etc/portage/package.use"
+ elog "emerge --oneshot games-rpg/nwn-data"
+ die "nwn-data requires USE=$use"
+}
+
+pkg_setup() {
+ games_pkg_setup
+ if use sou
+ then
+ has_version "games-rpg/nwn-data[sou]" || die_from_busted_nwn-data sou
+ fi
+ if use hou
+ then
+ has_version "games-rpg/nwn-data[hou]" || die_from_busted_nwn-data hou
+ fi
+
+ strip-linguas de en es fr it
+}
+
+src_unpack() {
+ mkdir -p "${S}"
+ cd "${S}"
+ mkdir -p .metadata
+ for a in ${A}
+ do
+ if [ -z "${a/*libs*}" ]
+ then
+ unpack "${a}"
+ fi
+
+ if [ -z "${a/*orig*}" ]
+ then
+ currentlocale=""
+ if [ -z "${a/*German*/}" ]
+ then
+ currentlocale=de
+ elif [ -z "${a/*English*/}" ]
+ then
+ currentlocale=en
+ elif [ -z "${a/*Spanish*/}" ]
+ then
+ currentlocale=es
+ elif [ -z "${a/*Italian*/}" ]
+ then
+ currentlocale=it
+ elif [ -z "${a/*French*/}" ]
+ then
+ currentlocale=fr
+ fi
+ if [ -n "$currentlocale" ]
+ then
+ mkdir -p "${currentlocale}"
+ cd "${currentlocale}"
+ unpack "${a}"
+ cd ..
+ fi
+ fi
+ done
+ use sou && (
+ for a in ${A}
+ do
+ if [ -z "${a/*$SOU_NAME}" ]
+ then
+ currentlocale=""
+ if [ -z "${a/*German*/}" ]
+ then
+ currentlocale=de
+ elif [ -z "${a/*English*/}" ]
+ then
+ currentlocale=en
+ elif [ -z "${a/*Spanish*/}" ]
+ then
+ currentlocale=es
+ elif [ -z "${a/*Italian*/}" ]
+ then
+ currentlocale=it
+ elif [ -z "${a/*French*/}" ]
+ then
+ currentlocale=fr
+ fi
+ if [ -n "$currentlocale" ]
+ then
+ mkdir -p "${currentlocale}"
+ cd "${currentlocale}"
+ rm -f data/patch.bif patch.key
+ unpack "${a}"
+ cd ..
+ fi
+ fi
+ done )
+ use hou && (
+ for a in ${A}
+ do
+ if [ -z "${a/*$HOU_NAME}" ]
+ then
+ currentlocale=""
+ if [ -z "${a/*German*/}" ]
+ then
+ currentlocale=de
+ elif [ -z "${a/*English*/}" ]
+ then
+ currentlocale=en
+ elif [ -z "${a/*Spanish*/}" ]
+ then
+ currentlocale=es
+ elif [ -z "${a/*Italian*/}" ]
+ then
+ currentlocale=it
+ elif [ -z "${a/*French*/}" ]
+ then
+ currentlocale=fr
+ fi
+ if [ -n "$currentlocale" ]
+ then
+ mkdir -p "${currentlocale}"
+ cd "${currentlocale}"
+ rm -f data/patch.bif patch.key data/xp1patch.bif xp1patch.key override/*
+ unpack "${a}"
+ cd ..
+ fi
+ fi
+ done )
+}
+
+src_install() {
+ dodir "${dir}"
+ exeinto "${dir}"
+ doexe "${FILESDIR}"/fixinstall
+ sed -i \
+ -e "s:GENTOO_USER:${GAMES_USER}:" \
+ -e "s:GENTOO_GROUP:${GAMES_GROUP}:" \
+ -e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \
+ -e "s:override miles nwm:miles:" \
+ -e "s:chitin.key dialog.tlk nwmain:chitin.key:" \
+ -e "s:^chmod a-x:#chmod a-x:" \
+ "${Ddir}"/fixinstall || die
+ if use hou || use sou
+ then
+ sed -i \
+ -e "s:chitin.key patch.key:chitin.key:" \
+ "${Ddir}"/fixinstall || die
+ fi
+ fperms ug+x "${dir}"/fixinstall || die
+ mv "${S}"/* "${Ddir}"
+ mv "${S}"/.metadata "${Ddir}"
+ games_make_wrapper nwn ./nwn "${dir}" "${dir}"
+ make_desktop_entry nwn "Neverwinter Nights"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "The included custom libSDL is patched to enable the following key sequences:"
+ elog " * Left-Alt & Enter - Iconify Window"
+ elog " * Right-Alt & Enter - Toggle between FullScreen/Windowed"
+ elog " * Left-Control & G - Disable the mouse grab that keeps the cursor inside the NWN window"
+ elog " * Right-Control & G - Re-enable the mouse grab to keep the cursor inside the NWN window"
+ elog
+ elog "The NWN linux client is now installed."
+ elog "Proceed with the following step in order to get it working:"
+ elog "Run ${dir}/fixinstall as root"
+}
diff --git a/games-rpg/nwn/nwn-1.69-r1.ebuild b/games-rpg/nwn/nwn-1.69-r1.ebuild
new file mode 100644
index 000000000000..fad03c3ec81c
--- /dev/null
+++ b/games-rpg/nwn/nwn-1.69-r1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+MY_PV=${PV//.}
+PATCH_URL_BASE=http://files.bioware.com/neverwinternights/updates/linux/${MY_PV}/English_linuxclient${MY_PV}_
+
+DESCRIPTION="role-playing game set in a huge medieval fantasy world of Dungeons and Dragons"
+HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html"
+SRC_URI="https://dev.gentoo.org/~calchan/distfiles/nwn-libs-1.tar.bz2
+ !sou? ( !hou? ( ${PATCH_URL_BASE}orig.tar.gz ) )
+ sou? ( !hou? ( ${PATCH_URL_BASE}xp1.tar.gz ) )
+ hou? ( ${PATCH_URL_BASE}xp2.tar.gz )"
+
+LICENSE="NWN-EULA"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="sou hou"
+RESTRICT="mirror strip"
+
+QA_FLAGS_IGNORED="/opt/nwn/en/nwserver /opt/nwn/en/nwmain /opt/nwn/lib/libSDL-1.2.so.0.11.2 /opt/nwn/lib/libelf.so.1"
+
+NWN_DATA=">=games-rpg/nwn-data-1.29-r3[sou?,hou?"
+
+# ${P} requires games-rpg/nwn-data emerged with at least LINGUAS=en or none at all
+RDEPEND="
+ || (
+ ${NWN_DATA},linguas_en]
+ ${NWN_DATA},-linguas_fr,-linguas_de,-linguas_es,-linguas_it]
+ )
+ !<games-rpg/nwmouse-0.1-r1
+ x11-libs/libXext[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]
+"
+DEPEND=""
+
+S=${WORKDIR}/nwn
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+src_unpack() {
+ mkdir -p "${S}"/en
+ cd "${S}"/en
+ unpack ${A}
+ mv lib ..
+}
+
+src_install() {
+ exeinto "${dir}"
+ doexe "${FILESDIR}"/fixinstall
+ sed -i \
+ -e "s:GENTOO_USER:${GAMES_USER}:" \
+ -e "s:GENTOO_GROUP:${GAMES_GROUP}:" \
+ -e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \
+ -e "s:override miles nwm:miles:" \
+ -e "s:chitin.key dialog.tlk nwmain:chitin.key:" \
+ -e "s:^chmod a-x:#chmod a-x:" \
+ "${Ddir}"/fixinstall || die "sed"
+ if use hou || use sou
+ then
+ sed -i \
+ -e "s:chitin.key patch.key:chitin.key:" \
+ "${Ddir}"/fixinstall || die "sed"
+ fi
+ fperms ug+x "${dir}"/fixinstall || die "perms"
+ mv "${S}"/* "${Ddir}"
+ games_make_wrapper nwn ./nwn "${dir}" "${dir}"
+ make_desktop_entry nwn "Neverwinter Nights"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "The included custom libSDL is patched to enable the following key sequences:"
+ elog " * Left-Alt & Enter - Iconify Window"
+ elog " * Right-Alt & Enter - Toggle between FullScreen/Windowed"
+ elog " * Left-Control & G - Disable the mouse grab that keeps the cursor inside the NWN window"
+ elog " * Right-Control & G - Re-enable the mouse grab to keep the cursor inside the NWN window"
+ elog
+ elog "The NWN linux client is now installed."
+ elog "Proceed with the following step in order to get it working:"
+ elog "Run ${dir}/fixinstall as root"
+ echo
+ ewarn "This version supports only english, see http://nwn.bioware.com/support/patch.html"
+ ewarn "If you were playing with a different language you may want to backup your ~/.nwn and do:"
+ ewarn " mv ~/.nwn/<language> ~/.nwn/en"
+ ewarn "If it does not work, try removing ~/.nwn, start nwn then quit, and re-import all you"
+ ewarn "need (saves, etc...) in ~/.nwn/en, but please do not file a bug."
+}
diff --git a/games-rpg/openglad/Manifest b/games-rpg/openglad/Manifest
new file mode 100644
index 000000000000..a8b11aacb913
--- /dev/null
+++ b/games-rpg/openglad/Manifest
@@ -0,0 +1,10 @@
+AUX 0.98-gladpack.c.patch 511 SHA256 c0ea59e9bfacf08b8a8bd874ef23eaa6b4f7f55ac622426030f043271ee45026 SHA512 ea9fca36e2fef7157a2d2b81541d8fd7be1cad6087349927874aa3950001e3e02f2d21ce3793cd5c600236b21e64e0ed86839c41a39e5ba458c1714220ad2f01 WHIRLPOOL 2cd6267f67e7bdc184cf20a02aa76ceaf7ff2f90274aa49227d3d0e7dc176764b06d1b0c8428d048e65330ba663aa37e5759767e8519aee1c8d6aecaa24a0bc9
+AUX openglad-0.98-gcc43.patch 205 SHA256 7358923b1e8d745bf905551c5271207cd648675282c22a5ee4f885cbcd015de3 SHA512 c7f6b4602234f7119dea119a6fd7c2edd07af856dd711195a942d291063912c46a202f446db8183eb62cc0a2aea3586bb3a2b8e1140d4d915be1fd6e166eb4d1 WHIRLPOOL 0e4346b2a3db8007e88653620468105e586d477b5119e070d600fb5383d4c83896bba355587f0934a380c394c67d9cb4303265849c5304c85f9d6d2f2306b70d
+AUX openglad-0.98-ovfl.patch 381 SHA256 5b450f66984d940e9940458651e9a9e530dae24ad9d18ca4d95c39d23ea477c0 SHA512 00ac89d9cf223ac8db111b30ce7838b892f318ac8c8a93522afa719a98887c386eb95c788a912c4bfce99ef804a8395b3c2260b9ec22454651e6f2539d1833e8 WHIRLPOOL 3ab14dc52994f0433c0bde1251343fd872f89f03db2307b71b11857bdc191027f9140fd36fc5b1c4e172a785acad4d76961ca0854fea021a0d9db0781d93db83
+DIST openglad-0.98.tar.gz 724106 SHA256 a3df9f8ea8827f56a9b38611c3f5c3a11aaec865a95d37cef90617d6b6efb844 SHA512 3f9165fbf8fff081a862bfe81401a3b2ac227da58b84409beee8b0441f88b1a6deb3d24a1af6e71bd3a3484fc90de5574950fd54be82d837021a07f06302f0e1 WHIRLPOOL caa12af504bf4dc64a24b6512097c149d300e3be20845568c187ae70b8af85de2e523f4c1585cb6beb25e0fad80665794955564b5fe2634abc8322f5b61c8004
+DIST openglad.png 5593 SHA256 04fd6707bda5a7f42e11f1f441a6410709d38f5f6d5d124bf1ab0bb44fad5f1c SHA512 27419fcbbbf8640718968304a4824101860736c2091f494defcd111b5cc252856b5373c0e7a2bca1c79f9c7551012b0ba04577f9ed97769e436637ee25f5caeb WHIRLPOOL 2ac11719d1ac537d677e980bd5207a9c7b271f23ecdaa335d0e9cfbe8c855496ca3dd93d46d8ffe903f83c322a2c970291213448b411ded66d85eac95d747c7a
+EBUILD openglad-0.98-r1.ebuild 868 SHA256 4ffe55f730cf5c0853c3c67b392b610871dde308cd69e36b6b43b9b4f747a0ee SHA512 20fc6585c53de645d5a0b12858819cd28a2174a4f67518f245d33a8c6a8647ef69ccee4954df15365966ffa613a7c3bc3fe92b1e16b7cd5789c9af0e9bb7555e WHIRLPOOL dea49c928f1af925d2daa54f09d0725010a5f10ae90c00d0d29378a0b2749f98badf3ac043b3e4f310efa908571440266d25100feb682905ef731ca52bf49c59
+EBUILD openglad-0.98.ebuild 927 SHA256 2ab0ebde3e684891b4d39420b5d314cc58930afdacfe6230f5e058e17e7b994b SHA512 81faa6fb974ced17813cc3aeb32486e52e6239ebbac8aa723664c5d20ae1ce65c8b617c9be66fe5a2a10ddaa6acf5f632ee1a22e4c4944dc3b804cf6fbb20cae WHIRLPOOL c2d289357393d045a58c32f4b1aae675c14f97287fe0f2e398bf4672e2eb49462c48c11a3e46c35034f058cd95f7f7eb0829dde72d2e58a567ae9f551eebc635
+MISC ChangeLog 3005 SHA256 763ec1fbe9f80d5fd1847183e4ab5344592cdad92fb3552abb26f0eaa086c59d SHA512 fdfc902dda585439918b1fa6333f43011b375a51f6f8d3bbaf122177b37d1c19fdbfed2d614d55ba6ade4a3b396d1a2058dc4ce2027e255cf117f82458074ca0 WHIRLPOOL fcc5d1f9a04c539421368a15b87946b5136f7e7a6a710edf81baa42f62fec2247a15fa5b34ff800ebd6b46c91bb49b8205b624e7721f7aefaec75edffdf630d2
+MISC ChangeLog-2015 1398 SHA256 f5acfa4a8653ad8837fc12249e56b87b83941f808554871a44eb76b915873de0 SHA512 44f7226c7e0c53564a7530d91d8012d3498a5eeb6a47ee177495ea3094a74018eae2e7c347e3e79db8ec9b1b5b40611875177527e734ee7d6a9191db40da7de4 WHIRLPOOL 3de7c4e1bacba905b16482252ed1740685724efc7944fbfca44bcecabf3762cc7454dde0f329a06199f98160734e49978dcfa326d4d1cc67c3b9b9025ac2e352
+MISC metadata.xml 332 SHA256 bb455f967b909a8dbd9821d481e445a2c83347bfd0ab368543e7a823c259389c SHA512 b751058cb6393309c0635329d5fd5236b013d2e07d5e2e2a7fdffcb50ee8dd60e8b0157d161ba498e01140106f91f3b2052a43737be12214f7f065ebd9f6d07d WHIRLPOOL 8afa67515b5ed5ac02ff96c88398f9d3ed514ed04bd9f08281d7e603d2adcf0df7d4b5fddfb2eabcbbc1f4310abd8d850be47551a581f43a7f169ad6811d4fd9
diff --git a/games-rpg/openglad/files/0.98-gladpack.c.patch b/games-rpg/openglad/files/0.98-gladpack.c.patch
new file mode 100644
index 000000000000..b4f5de9e3995
--- /dev/null
+++ b/games-rpg/openglad/files/0.98-gladpack.c.patch
@@ -0,0 +1,13 @@
+--- openglad-0.98/util/gladpack.c 2002-09-14 18:37:50.000000000 +1000
++++ openglad-0.98/util/gladpack.c 2003-12-06 12:42:31.393812945 +1100
+@@ -9,8 +9,8 @@
+
+ int main(int argc, char **argv)
+ {
+- if (argc > 1 && !strcmp(argv[1], "p")) pack(argc, argv);
+- else if (argc > 1 && !strcmp(argv[1], "u")) unpack(argc, argv);
++ if (argc > 1 && !strcmp(argv[1], "p")) return pack(argc, argv);
++ else if (argc > 1 && !strcmp(argv[1], "u")) return unpack(argc, argv);
+ else
+ {
+ printf("Usage: gladpack (p|u) ...\n");
diff --git a/games-rpg/openglad/files/openglad-0.98-gcc43.patch b/games-rpg/openglad/files/openglad-0.98-gcc43.patch
new file mode 100644
index 000000000000..9f46ce8e5b95
--- /dev/null
+++ b/games-rpg/openglad/files/openglad-0.98-gcc43.patch
@@ -0,0 +1,11 @@
+--- a/src/parser.cpp
++++ b/src/parser.cpp
+@@ -23,6 +23,8 @@
+ #include <iostream>
+ #include <fstream>
+ #include <string>
++#include <cstring>
++#include <cstdlib>
+ #include "parser.h"
+
+ using namespace std;
diff --git a/games-rpg/openglad/files/openglad-0.98-ovfl.patch b/games-rpg/openglad/files/openglad-0.98-ovfl.patch
new file mode 100644
index 000000000000..8ec89d22559d
--- /dev/null
+++ b/games-rpg/openglad/files/openglad-0.98-ovfl.patch
@@ -0,0 +1,11 @@
+--- a/src/screen.cpp 2011-07-23 21:35:34.385063301 +0200
++++ b/src/screen.cpp 2011-07-23 21:35:59.948063312 +0200
+@@ -2383,7 +2383,7 @@
+ short listsize;
+ short i;
+ walker * new_guy;
+- char newgrid[12] = "grid.pix"; // default grid
++ char newgrid[13] = "grid.pix"; // default grid
+ char new_scen_type; // read the scenario type
+ char oneline[80];
+ char numlines, tempwidth;
diff --git a/games-rpg/openglad/metadata.xml b/games-rpg/openglad/metadata.xml
new file mode 100644
index 000000000000..b093b0fee1ec
--- /dev/null
+++ b/games-rpg/openglad/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">snowstorm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/openglad/openglad-0.98-r1.ebuild b/games-rpg/openglad/openglad-0.98-r1.ebuild
new file mode 100644
index 000000000000..8d38d5ca0ff0
--- /dev/null
+++ b/games-rpg/openglad/openglad-0.98-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="An SDL clone of Gladiator, a classic RPG game"
+HOMEPAGE="http://snowstorm.sourceforge.net/"
+SRC_URI="mirror://sourceforge/snowstorm/${P}.tar.gz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ media-libs/libsdl[joystick,sound,video]
+ media-libs/sdl-image
+ media-libs/sdl-mixer"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc43.patch
+ "${FILESDIR}"/${PV}-gladpack.c.patch
+ "${FILESDIR}"/${P}-ovfl.patch
+)
+
+src_configure() {
+ econf \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --datadir=/usr/share/${PN}
+}
+
+src_install() {
+ emake install \
+ DESTDIR="${D}" \
+ docdir="${D}"/usr/share/doc/${PF}
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry openglad OpenGladiator
+}
diff --git a/games-rpg/openglad/openglad-0.98.ebuild b/games-rpg/openglad/openglad-0.98.ebuild
new file mode 100644
index 000000000000..2501658088af
--- /dev/null
+++ b/games-rpg/openglad/openglad-0.98.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="An SDL clone of Gladiator, a classic RPG game"
+HOMEPAGE="http://snowstorm.sourceforge.net/"
+SRC_URI="mirror://sourceforge/snowstorm/${P}.tar.gz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/sdl-mixer
+ media-libs/sdl-image
+ media-libs/libsdl[joystick,sound,video]"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PV}-gladpack.c.patch \
+ "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-ovfl.patch
+}
+
+src_configure() {
+ egamesconf \
+ --prefix=/usr \
+ --bindir="${GAMES_BINDIR}" \
+ --datadir="${GAMES_DATADIR}/${PN}"
+}
+
+src_install() {
+ emake install \
+ DESTDIR="${D}" \
+ docdir="${D}"/usr/share/doc/${PF}
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry openglad OpenGladiator
+ prepgamesdirs
+}
diff --git a/games-rpg/pcgen/Manifest b/games-rpg/pcgen/Manifest
new file mode 100644
index 000000000000..908a37a41b69
--- /dev/null
+++ b/games-rpg/pcgen/Manifest
@@ -0,0 +1,6 @@
+DIST pcgen-6.04.01-full.zip 68679438 SHA256 0cdd57d6aca91c6c590bd1bfbadae8c0e85fd2f48c5855351dcd8777814011c2 SHA512 37e76e9bca3defe803459f898d3c51015cb4c4f69905c4179b78b1b26977b7d720ef413b3f5b2ef4252aa98f732075b9567c4f4822c61d169a5a0a6e2c78c0d4 WHIRLPOOL 04394868f9fc152ceef205e6b2fdc77d061b5b8437c56b105a1dedca96044c77e9f4a33535f750ca026b3387accea8fef2cb45ea146a7989102248721315d40f
+EBUILD pcgen-6.04.01-r1.ebuild 842 SHA256 cb681d334eed909c54bd5d0e49dfd559340fc7a062c9457b32975294f1fbc69a SHA512 03ee28a1f12050b8cbbc1498a9f218983955ab6ecb2d5b10a60880bef6eb45eeb4032462b7afb733bcab705f18ffdcf68e5896a7d47b65d745b16665eb9800b6 WHIRLPOOL 4a1fa28f8c942629b4a8cc1edd52373a0d5ce6148836e0dc5e77b2fc5b459a3360b02d3035125aea1e3d79224e996bf795cbfcc38361d32db0e18104441bbb80
+EBUILD pcgen-6.04.01.ebuild 900 SHA256 beebb59b632dc92512cb0c4e696ab3d0f932489bad273f71dc3c54e10cfe9529 SHA512 3a38ebabab6cc63e91888aaffe3751fb8b976fb91c83923118fe64df007f2bdb49b888806241e0a0baa555b4136ad36730fc7ae4ce0820c62f06e6c6fbd5f1fc WHIRLPOOL dd15b2bb96c5e1740d13e253d93d04d9df65c02c0e18097a8c6269c718b8b1999cf4c9119d96ceeae1156f87960fbedd86f065e74625a6e2c77de8bc064edef2
+MISC ChangeLog 2680 SHA256 dd512afddbdb8b7d7df0be1a8a2b087a08546fcebf4f3e053ad40299aea06520 SHA512 a02681686df9bda182bcf4d3a6361aba39ccce3bd8119489e5cd23842c02628f8970f1a233651a30f3b92486bb7e7937675460e65ccb7ca1d440123d8176634c WHIRLPOOL f1d16b02248084ddee322f3b6379e442241d2faa25f2e880779847f0d6a399200e34796b9b8ecf0c84b6ab4362c6e7d83126b3e91314aefe00977f9bc76fae5a
+MISC ChangeLog-2015 4653 SHA256 31aab098f165cd63055fd0513dac3cbcf166f3713412028a371f6132278919a2 SHA512 e6fc103e1d76c194d18f722bc88d58eec22864407446fda0586be6574dba17798dec419eaf31cee39656b7bcfb6da317049aa5ceeb37caaeb982901eb64ad207 WHIRLPOOL 96313bedfb665ef4c778eb2a2f31f0809b7ce234cfe6611743b776b899a38543ee3210afe39c5756382e05dbe9c17e151ed29771c3fc3ff9e1fb1c0d168c5b39
+MISC metadata.xml 328 SHA256 cf1ac5579414c1787aafaf3e5069971c3fb1752706aff6b860eac14e8c38dd9a SHA512 cd3e9ca2c51782031b89444cc5c3eda37537c04467753e9a6bd5c2e5357d5ba3077ed6aee0adeac6dd91c829c7fded3077fb8d39ab8e80d87e3dc62af5605cb7 WHIRLPOOL e490723f3b20f9f3df128ff4242e2768a9b17c0fc5bac19306e41e33dea69650cbb44cbbd7c6059c6e39c8a3d3497a19eb446449cf85f531359737dddc75b31e
diff --git a/games-rpg/pcgen/metadata.xml b/games-rpg/pcgen/metadata.xml
new file mode 100644
index 000000000000..e2b2929d7fb9
--- /dev/null
+++ b/games-rpg/pcgen/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">pcgen</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/pcgen/pcgen-6.04.01-r1.ebuild b/games-rpg/pcgen/pcgen-6.04.01-r1.ebuild
new file mode 100644
index 000000000000..45e32d2039b7
--- /dev/null
+++ b/games-rpg/pcgen/pcgen-6.04.01-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2-utils
+
+DESCRIPTION="D&D character generator"
+HOMEPAGE="http://pcgen.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pcgen/${P}-full.zip"
+
+LICENSE="LGPL-2.1 OGL-1.0a"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.6"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ default
+
+ rm -vf *.bat || die
+ sed "/dirname/ c\cd \"\/usr\/share\/${PN}\"" pcgen.sh > "${T}"/${PN} || die
+}
+
+src_install() {
+ dobin "${T}"/${PN}
+ insinto /usr/share/${PN}
+ doins -r *
+ newicon -s 128 system/sponsors/pcgen/pcgen_128x128.png ${PN}.png
+ make_desktop_entry ${PN} PCGen
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/pcgen/pcgen-6.04.01.ebuild b/games-rpg/pcgen/pcgen-6.04.01.ebuild
new file mode 100644
index 000000000000..3bd6d680ec22
--- /dev/null
+++ b/games-rpg/pcgen/pcgen-6.04.01.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit gnome2-utils games
+
+DESCRIPTION="D&D character generator"
+HOMEPAGE="http://pcgen.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pcgen/${P}-full.zip"
+
+LICENSE="LGPL-2.1 OGL-1.0a"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.6"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ rm -vf *.bat
+ sed "/dirname/ c\cd \"${GAMES_DATADIR}\/${PN}\"" pcgen.sh > "${T}"/${PN} || die
+}
+
+src_install() {
+ dogamesbin "${T}"/${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r *
+ newicon -s 128 system/sponsors/pcgen/pcgen_128x128.png ${PN}.png
+ make_desktop_entry ${PN} PCGen
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/penumbra-collection/Manifest b/games-rpg/penumbra-collection/Manifest
new file mode 100644
index 000000000000..06573ceec671
--- /dev/null
+++ b/games-rpg/penumbra-collection/Manifest
@@ -0,0 +1,5 @@
+DIST PenumbraCollection-1.1.sh 949267761 SHA256 e0fdbdbb7e3766629cabd3903675a2f54f1a5206f67d590dd1553576338f3dab SHA512 9e9f604fffd4efd8ab21bdb56fb4f9dbeeee8e5375b83b88a24521a9bbb45ee7060c467aef47f06d551d51a4fdd0a51be5c5416060a87342ea281026ba24c7ae WHIRLPOOL 553034458f2d7e5584ed97ee4111a65cb789854ae1ff9ecb6651d8b66996198d9a869fa7455eaebf18ab1110973734f6f1e977d8187fb9d796407267253552d7
+EBUILD penumbra-collection-1.1.ebuild 5472 SHA256 bd33f0c485894bf371333ba36d65a0ffedbc3bcf306018df0f6279647f4f0f61 SHA512 534865e7324b4bf55d772c1ce9e17fe38e8d7114dad96049fc85064f09c1c860aef5a7e010a322cc5cea75cc17698b40f6eb8c11f4d7e19078c677e21d00f456 WHIRLPOOL 3339e53b36a07db39c0f01a18b4dfd716c4068c5d76ab34d8073d7956691a5937ace0168701214c71c107621b30513364b000f26daead62088d89ef9c05c4301
+MISC ChangeLog 2853 SHA256 8f175c43965dc642291c92a34ecbc7069e419d538077994e323a3a0c0ee8447a SHA512 125fef90a7d1eaf313aaee6ef1311aab6f71d2e37ff16dc316952b38742e9bccb8e98b18096371582ca946f12e7fa639a992d57020626253bd1ccb91d0c394a9 WHIRLPOOL 0b89509c6c4083266f8434570a1ad6d434c92af979ea9bab02c77a0397545725d48354d40c41581b763e4c87e13e683bbd4e0c4c2b88a23ad35bea505f2bf60b
+MISC ChangeLog-2015 1578 SHA256 08bec5faf4653f559981215d792ed811279afd393d94b71a9fdc878c8998f066 SHA512 a976fa461b8421ef1f557a8b6a3a28053dcf39854a73ccc5959dc7cc716879daa2af02a0d7dbd03f59b05a4f5b48f59a281c0d623f6b5e72992f250d92ec8c8c WHIRLPOOL d1ea2b1b8a65015ee306ca39f033d4beb08df8af9eacd847297117019c72f63750e3e0571d7c2c1355b431c858edb155ae2f49b4a66d763be3e1a75d8c826fa9
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-rpg/penumbra-collection/metadata.xml b/games-rpg/penumbra-collection/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-rpg/penumbra-collection/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/penumbra-collection/penumbra-collection-1.1.ebuild b/games-rpg/penumbra-collection/penumbra-collection-1.1.ebuild
new file mode 100644
index 000000000000..642d9b4d44ed
--- /dev/null
+++ b/games-rpg/penumbra-collection/penumbra-collection-1.1.ebuild
@@ -0,0 +1,193 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker gnome2-utils games
+
+MY_PN="PenumbraCollection"
+
+DESCRIPTION="Scary first-person adventure game trilogy which focuses on story, immersion and puzzles"
+HOMEPAGE="http://www.penumbragame.com/"
+SRC_URI="${MY_PN}-${PV}.sh"
+
+LICENSE="PENUMBRA-COLLECTION"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="fetch"
+
+RDEPEND="
+ x11-libs/fltk:1
+ media-gfx/nvidia-cg-toolkit[abi_x86_32(-)]
+ >=media-libs/fontconfig-2.10.92[abi_x86_32(-)]
+ >=media-libs/freealut-1.1.0-r3[abi_x86_32(-)]
+ >=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
+ >=media-libs/libogg-1.3.1[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r5[X,sound,video,opengl,abi_x86_32(-)]
+ >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)]
+ >=media-libs/sdl-image-1.2.12-r1[gif,jpeg,png,abi_x86_32(-)]
+ >=media-libs/sdl-ttf-2.0.11-r1[abi_x86_32(-)]
+ virtual/glu[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ x11-libs/libXft[abi_x86_32(-)]
+ x11-libs/libXrender[abi_x86_32(-)]"
+DEPEND="app-arch/xz-utils"
+
+gamedir=${GAMES_PREFIX_OPT}/${MY_PN}
+INSTALL_KEY_FILE=${gamedir}/collectionkey
+
+QA_PREBUILT="${gamedir}/Overture/penumbra.bin
+ ${gamedir}/BlackPlague/requiem.bin
+ ${gamedir}/BlackPlague/blackplague.bin"
+
+if [[ $ARCH == amd64 ]] ; then
+ QA_PREBUILT="${QA_PREBUILT}
+ ${gamedir}/BlackPlague/lib/libfltk.so.1.1
+ ${gamedir}/BlackPlague/lib/libCgGL.so
+ ${gamedir}/BlackPlague/lib/libCg.so
+ ${gamedir}/Overture/lib/libfltk.so.1.1
+ ${gamedir}/Overture/lib/libCgGL.so
+ ${gamedir}/Overture/lib/libCg.so"
+fi
+
+S=${WORKDIR}/${MY_PN}
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+ einfo
+}
+
+src_unpack() {
+ unpack_makeself
+
+ mv subarch subarch.tar.lzma || die
+ unpack ./subarch.tar.lzma
+
+ mv instarchive_all instarchive_all.tar.lzma || die
+ unpack ./instarchive_all.tar.lzma
+}
+
+src_install() {
+ local destDir episodeDir library directory
+ # perform instalation for each episode; note that Requiem is extension of
+ # Black Plague so it has no dedicated directory at this level
+ for episodeDir in Overture BlackPlague; do
+ destDir="${gamedir}/${episodeDir}"
+
+ insinto "${destDir}"
+
+ # install every directory recursively except lib
+ for directory in \
+ $(find ${episodeDir}/* -maxdepth 0 -type d ! -name lib); do
+ doins -r "${directory}"
+ done
+
+ # amd64 does not provide some libs, use bundled ones
+ if use amd64 ; then
+ exeinto "${gamedir}/${episodeDir}/lib"
+ for library in \
+ libfltk.so.1.1 \
+ libCgGL.so \
+ libCg.so; do
+ doexe ${episodeDir}/lib/${library}
+ done
+ fi
+
+ doins ${episodeDir}/*.cfg
+
+ exeinto "${destDir}"
+ doexe ${episodeDir}/openurl.sh ${episodeDir}/*.bin
+
+ # make sure that cache files are newer than models otherwise the game
+ # tries to regenerate them which sometimes causes a crash (as reported
+ # in bug #278326 comment #6)
+ touch "${D}/${destDir}"/core/*cache/*
+ done
+
+ newicon -s 64 Overture/penumbra.png penumbra-overture.png
+ newicon -s 64 BlackPlague/penumbra.png penumbra-blackplague.png
+ newicon -s 64 BlackPlague/requiem.png penumbra-requiem.png
+
+ games_make_wrapper penumbra-overture ./penumbra.bin \
+ "${gamedir}/Overture" "${gamedir}/Overture/lib"
+ games_make_wrapper penumbra-blackplague ./blackplague.bin \
+ "${gamedir}/BlackPlague" "${gamedir}/BlackPlague/lib"
+ games_make_wrapper penumbra-requiem ./requiem.bin \
+ "${gamedir}/BlackPlague" "${gamedir}/BlackPlague/lib"
+
+ make_desktop_entry penumbra-overture "Penumbra: Overture" \
+ penumbra-overture
+ make_desktop_entry penumbra-blackplague "Penumbra: Black Plague" \
+ penumbra-blackplague
+ make_desktop_entry penumbra-requiem "Penumbra: Requiem" \
+ penumbra-requiem
+
+ docinto Overture
+ dodoc Overture/CHANGELOG.txt Overture/Manual.pdf Overture/README.linux
+ docinto BlackPlague
+ dodoc BlackPlague/Manual.pdf BlackPlague/README.linux
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+
+ if [[ -f "${INSTALL_KEY_FILE}" ]] ; then
+ einfo "The installation key file already exists: ${INSTALL_KEY_FILE}"
+ else
+ ewarn "You MUST run this before playing the game:"
+ ewarn " emerge --config ${PN}"
+ ewarn "To enter your installation key."
+ fi
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ einfo "If you uninstalled ${PN} you might want to remove the keyfile as well in"
+ einfo " ${INSTALL_KEY_FILE}"
+}
+
+pkg_config() {
+ local key1 key2
+
+ ewarn "Your installation key is NOT checked for validity here."
+ ewarn "Make sure you type it in correctly."
+ ewarn "If you CTRL+C out of this, the game will not run!"
+ echo
+ einfo "The key format is: XXXX-XXXX-XXXX-XXXX"
+ while true ; do
+ einfo "Please enter your key:"
+ read key1
+ if [[ -z "${key1}" ]] ; then
+ echo "You entered a blank key. Try again."
+ continue
+ fi
+ einfo "Please re-enter your key:"
+ read key2
+ if [[ -z "${key2}" ]] ; then
+ echo "You entered a blank key. Try again."
+ continue
+ fi
+
+ if [[ "${key1}" == "${key2}" ]] ; then
+ echo "${key1}" | tr '[:lower:]' '[:upper:]' > "${INSTALL_KEY_FILE}"
+ echo -e "// Do not give this file to ANYONE.\n// Frictional Games Support will NEVER ask for this file" \
+ >> "${INSTALL_KEY_FILE}"
+ einfo "Created ${INSTALL_KEY_FILE}"
+ break
+ else
+ eerror "Your installation key entries do not match. Try again."
+ fi
+ done
+}
diff --git a/games-rpg/queen/Manifest b/games-rpg/queen/Manifest
new file mode 100644
index 000000000000..bdebcf940e4e
--- /dev/null
+++ b/games-rpg/queen/Manifest
@@ -0,0 +1,12 @@
+DIST FOTAQ_Fr_Talkie_1.0.zip 64531589 SHA256 9e670686c538191a1acf3bd09ef83a11262d23247b9258ec1495b39931790543 SHA512 c53180eabb797e5a857ef97d0e70f880a0c729fbbf6443e67ea21ec6af36f69e7039b8341b21c1e998064cfdae916f6a799bce7b38038e83bc91aee16737f797 WHIRLPOOL 124c5d9181e20e80fcd599bf1d1efb287feeca1837c8ce55ab71e3c59d532929937aeaf04f17a4eb9926d590455fa62a8beb8ff9edea2a171f72659b58006071
+DIST FOTAQ_Ger_talkie-1.0.zip 75938507 SHA256 6e2826993a94864c1dd3d299369cb320a119cede4be14bf3f59b0471fa20768f SHA512 65b6ae3fec052d616b52efb9eb74017587e39c0aa27a96f46b733b5caf2039193e6e1a99b873cdd8efe9d67b70fb0c48067731ba2d146350ed2fcf4551963837 WHIRLPOOL ec4126a41e8f3ab6e74d74b3b3b10cf953875d186e53f2bb45b31d5e9fcaae8ca538a255642ae3488e6cfd597249010c3420ed87f1d785a19be66e3b26c64739
+DIST FOTAQ_Heb_talkie.zip 66213122 SHA256 18d00305642f7f426c95ff76fbf7f4a24e23d61f8144f9acdddcd0ff75f49f34 SHA512 497c4b9a08dbb1abb3eec69f540ec06a4b66c681fe9c032e58307e7fe1fb31391eb6f1001fe0e0b429542c512f43786e518d101912c97cef33d2deda35c1670e WHIRLPOOL 603d2756ec6ef8c6036f3142e40a5217e1b6074171bcb8b4411a08494ed81d2b7f267a752364f4666add7967f69cdc4aa283156cb60ceb802048ebec956f46bd
+DIST FOTAQ_It_Talkie_1.0.zip 65091076 SHA256 8d6c1a0f3bf4fbdf943e39fdb54951d3434bccc896d851ea94eedf4cc1f1e6c0 SHA512 01ce230232d0288fed5af55c2cb7f06cf31e89cabcb6547ba6f284eee794beaafbeb3182bc391bf209ce5d58189b82afbca126d167a9f986db4b4816fc69b90e WHIRLPOOL 89cf269738b2fc4844075a59fbebf49f9fde5955e538d72cb6745c0e2d097fd910f1eb5c20d247b575399e732f7df5acb20d6441617511b29fb4d2894fee8950
+DIST FOTAQ_Talkie-1.1.zip 33744817 SHA256 a25cdd5e003a0a5e402af99b218cc7ea81ad032cb36b8c05df3bd1167038d8a8 SHA512 b543c863b557de24250adde78badc7b12a0de5aabb484f50d6b682c3ec7f710e991614254d2cfae960280f984ba2889703d42d51d20746080a9b7bb2996063b1 WHIRLPOOL 7cf5edd5486695019495aaf48b00718a1fed64c9bdd9c38ba09866c738dd545fd48ab026d570acffa8b47aebfdc358da65a76cb207cdc11022a0f78af92ecd16
+DIST cat-queen.png 1099 SHA256 227074e9b259a0c0bb95220d33fed26521433079b988c700db5348003a7c0829 SHA512 009f30e2f9abbc803cd47314d8ff53009898640c12a26cb155b7e0b29c0a2bdaa06cf97fca6ca6f8b428300d63ca8200f627695a3f0b71585374a4a2b63ed2df WHIRLPOOL dde73b1401f746a680fd473a66fd8b1afe3a3d94254e283e560bee6741bf6a8c2be69e5af7752f8de5fdd6e180f24be47256fa29d315864bc68387552a1a5429
+DIST queen-readme.txt 5351 SHA256 815ce5fe1f12f0c92dbe3b08e087e449ea7ed323dd16190c1161d75c7f691a03 SHA512 ed2b5bc18896f9eeadea7526a70ad0a115bda229d1074d8c3a5a64228a7089cc20c6e296d82dc482634ab9bde06a07635d10ee68f47420f00625e0f5c29ef6ad WHIRLPOOL 2ccc64ffebaee9e383c9f461e63bbb1d3c3fe4aca5001e0afd652ae786476b0daebc8fc1bb8d765f0503b7b24568ec5902c080059f1e1d003d771a046d356902
+DIST queen.1.bz2 90404210 SHA256 824e0ac315707bbf8d2c857771268ad961b45ecd3945e32c4706179823deaaf0 SHA512 f931584c141403019dcd91c43c8610c23cf39b37272440517c75cd4946da005d7fabcdd76fce2ec7504f35ec02727bede7d6a98381bd4f0c6a8d65b3c4363278 WHIRLPOOL df0d9fbedb98527e9a997431528150cbaedfc2c5d452aa144b783d7b8ad6508b801dbaa03f93a4d1eddc10f03340f6059b3c5e0254be98dd09b7abe4f59c6d1a
+EBUILD queen-1.ebuild 3431 SHA256 5a4fcc298f94f776d86bde437c7655314f9ee978572718a4befb91f4c8c620e3 SHA512 7cb9ec963fbc0c651b44834e602ead315d0dc1fcf22f580c9982bc7d7d475c1d019f9aa955534e98f61c1985b44d4b7bb8efe42b5442af74ceeb2f238d25d10f WHIRLPOOL 86ea19e518172c98603b54b770caa175a436ea688d0ea58644a036b2216de01a1b030ee0b515186d5bf30158faafce9068835622a4dfb8953b433bf96141d167
+MISC ChangeLog 2660 SHA256 f537af2951b4c31819eaf9de5df088e67f649bf4e68870cde8fceeed270a6da0 SHA512 922cbe517cd47c0f92596ab54cb09ce8e24f18461f70ff75f473b4ade92b01d923b5ed48a79c8a4286eaa2cb4b1533305be567c9af129b897b6530c882e2d039 WHIRLPOOL ed6dd060137ade1a0818e7defce10e2cda5a7511f759277cf8ac5e410ba820bdd6592e6143d9900163dc2bfd53ee921cced316e8885128a7348821ed604266d7
+MISC ChangeLog-2015 1618 SHA256 ae15f50f0250284b8abec95332a6f74fd652fcd28fe0bafdf49eb60152c8c272 SHA512 33ea9840bf1e1e754029cc930ffb7f2330d1c3da60190b1356e3af63c207196aee8caedafea81540bfa09fb477f74fc308e0b4d4ddcb7e28963dc66acb809726 WHIRLPOOL e4f971641ac07d1aa584060609dcdf1e1250a10a669dda386897a1de341689bffa2cb590ae027e6cd5ca09dbc154b95f7aab0d34dc6fd92a81b7ed5915cb80a3
+MISC metadata.xml 330 SHA256 0d5c67cb9a53d3220c7278b788f0cb6098e2e2da9fbe32dab98b52bf2e7d3bd6 SHA512 4541c93daab84bd6d0764adccf44bb4986ba02303e731b5b9a7a8060bb88a32c1cef91e2b2910e15915b67cf3ea2b5f31b4e637909d1d0b7c3b627f1134206dc WHIRLPOOL 9f36f51c4682de84bedf3b7757f32ca434702738412ae588f0232a505740d5110d72c13442e4753fbb8f804563c47be02e2f61247c0933895f76e468b3abe0db
diff --git a/games-rpg/queen/metadata.xml b/games-rpg/queen/metadata.xml
new file mode 100644
index 000000000000..801e2cc48963
--- /dev/null
+++ b/games-rpg/queen/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">scummvm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/queen/queen-1.ebuild b/games-rpg/queen/queen-1.ebuild
new file mode 100644
index 000000000000..0823cf56a4ea
--- /dev/null
+++ b/games-rpg/queen/queen-1.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Flight of the Amazon Queen - a 2D point-and-click adventure game set in the 1940s"
+HOMEPAGE="http://scummvm.sourceforge.net/"
+SF_BASE_URL="mirror://sourceforge/scummvm/"
+LYS_BASE_URL="http://www.lysator.liu.se/~zino/scummvm/queen/"
+FILE_DE="FOTAQ_Ger_talkie-1.0.zip"
+FILE_EN="FOTAQ_Talkie-1.1.zip"
+FILE_FR="FOTAQ_Fr_Talkie_1.0.zip"
+FILE_HE="FOTAQ_Heb_talkie.zip"
+FILE_IT="FOTAQ_It_Talkie_1.0.zip"
+SRC_URI="
+ l10n_de? (
+ ${SF_BASE_URL}${FILE_DE}
+ ${LYS_BASE_URL}readme.txt -> queen-readme.txt
+ )
+ l10n_en? (
+ mp3? ( ${SF_BASE_URL}${FILE_EN} )
+ !mp3? (
+ ${LYS_BASE_URL}queen.1.bz2
+ ${LYS_BASE_URL}readme.txt -> queen-readme.txt
+ )
+ )
+ l10n_fr? ( ${SF_BASE_URL}${FILE_FR} )
+ l10n_he? (
+ ${SF_BASE_URL}${FILE_HE}
+ ${LYS_BASE_URL}readme.txt -> queen-readme.txt
+ )
+ l10n_it? ( ${SF_BASE_URL}${FILE_IT} )
+ http://www.scummvm.org/images/cat-queen.png
+"
+
+LICENSE="queen"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE="mp3 l10n_de +l10n_en l10n_fr l10n_he l10n_it"
+REQUIRED_USE="|| ( l10n_de l10n_en l10n_fr l10n_he l10n_it )"
+
+RDEPEND="
+ l10n_de? ( games-engines/scummvm[vorbis] )
+ l10n_en? ( games-engines/scummvm[mp3?] )
+ l10n_fr? ( games-engines/scummvm[vorbis] )
+ l10n_he? ( games-engines/scummvm[vorbis] )
+ l10n_it? ( games-engines/scummvm[vorbis] )
+"
+DEPEND="${RDEPEND}
+ l10n_de? ( app-arch/unzip )
+ l10n_en? ( mp3? ( app-arch/unzip ) )
+ l10n_fr? ( app-arch/unzip )
+ l10n_he? ( app-arch/unzip )
+ l10n_it? ( app-arch/unzip )
+"
+
+S=${WORKDIR}
+
+src_unpack() {
+ if use l10n_de ; then
+ mkdir de
+ unpack ${FILE_DE}
+ mv queen.1c de/queen.1c
+ rm COPYING
+ cp "${DISTDIR}"/queen-readme.txt de/readme.txt
+ fi
+ if use l10n_en ; then
+ mkdir en
+ if use mp3 ; then
+ unpack ${FILE_EN}
+ mv queen.1c en/queen.1c
+ mv readme.txt en/readme.txt
+ else
+ unpack queen.1.bz2
+ mv queen.1 en/queen.1
+ cp "${DISTDIR}"/queen-readme.txt en/readme.txt
+ fi
+ fi
+ if use l10n_fr ; then
+ mkdir fr
+ unpack ${FILE_FR}
+ mv queen.1c fr/queen.1c
+ mv readme.txt fr/readme.txt
+ fi
+ if use l10n_he ; then
+ mkdir he
+ unpack ${FILE_HE}
+ mv queen.1c he/queen.1c
+ rm COPYING
+ cp "${DISTDIR}"/queen-readme.txt he/readme.txt
+ fi
+ if use l10n_it ; then
+ mkdir it
+ unpack ${FILE_IT}
+ mv queen.1c it/queen.1c
+ mv readme.txt it/readme.txt
+ fi
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r *
+ newicon "${DISTDIR}"/cat-queen.png queen.png
+ if use l10n_de ; then
+ games_make_wrapper queen-de "scummvm -f -p \"${GAMES_DATADIR}/${PN}/de\" queen" .
+ make_desktop_entry ${PN}-de "Flight of the Amazon Queen (German)" queen
+ fi
+ if use l10n_en ; then
+ games_make_wrapper queen-en "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en\" queen" .
+ make_desktop_entry ${PN}-en "Flight of the Amazon Queen (English)" queen
+ fi
+ if use l10n_fr ; then
+ games_make_wrapper queen-fr "scummvm -f -p \"${GAMES_DATADIR}/${PN}/fr\" queen" .
+ make_desktop_entry ${PN}-fr "Flight of the Amazon Queen (French)" queen
+ fi
+ if use l10n_he ; then
+ games_make_wrapper queen-he "scummvm -f -p \"${GAMES_DATADIR}/${PN}/he\" queen" .
+ make_desktop_entry ${PN}-he "Flight of the Amazon Queen (Hebrew)" queen
+ fi
+ if use l10n_it ; then
+ games_make_wrapper queen-it "scummvm -f -p \"${GAMES_DATADIR}/${PN}/it\" queen" .
+ make_desktop_entry ${PN}-it "Flight of the Amazon Queen (Italian)" queen
+ fi
+ prepgamesdirs
+}
diff --git a/games-rpg/runescape-launcher/Manifest b/games-rpg/runescape-launcher/Manifest
new file mode 100644
index 000000000000..1ad3f34f2251
--- /dev/null
+++ b/games-rpg/runescape-launcher/Manifest
@@ -0,0 +1,5 @@
+DIST runescape-launcher_2.2.4_amd64.deb 3013304 SHA256 c57c84286c50959d47dfff54490d87849d12830cccd703373917720822e002de SHA512 f19b693036ef1cc93d4c3f233ebbae31ef26d696875acd4dd0383f96127f09ce077c8256f37fc07243df063f4cc38211c5ab766ae798680ba4ad59e6c674e426 WHIRLPOOL d7140eb9fdee033c545df4298607b2578436bc7b52d6acf7aef51bc8205d387408b142794daee5c07f9d7f7903af89b2d6f83e803329972a4324ebacf5a9f54f
+EBUILD runescape-launcher-2.2.4-r1.ebuild 1609 SHA256 72bf9ae58afbdd1267806b112e0fb4b8963f26bda96c09b8254136af693c1945 SHA512 49705e967c3b2608405271ad94a763ab52498e41ecdd9032bac4a7c67c95db4ff16b3e6bdc8addd6286edd5384bf373d18c415d499d6d7ada5240e4a8f27e4b6 WHIRLPOOL acaeddbae7da71c71ba13a1c14098e7b529942f1fa48ad1572c00691975ea39287a1d560ea0004dab2a1c2c1eeacaac459fc120df3c40e833bbbd5a14696adaf
+EBUILD runescape-launcher-2.2.4.ebuild 1630 SHA256 d750cd0ef7d2cccdf94df5687859683a78d4a3ca3c67f9f1d5317be36f6ab2dd SHA512 591dda99980773af571ac5ac2b1e533e926752f667864055560b0259a6258cb438eef6b3bd0726e6a15f09311e3747f88e5b295cc1bb31178741eba96aede58b WHIRLPOOL b5f9d0bed695c467d030eabcaa2b07e89c8d7218733e6a282e16f74d28f71b027c0f0058d052e40bb8f2d773dda7438a5af225e1b95c58a964c781a303e59cb1
+MISC ChangeLog 848 SHA256 777a461927e94835280e43f1276c43255f8ce0812efbf26716be4afe6bdb10f1 SHA512 d260ad17ced22242c16f942495b6032a0730ba524d7d16f513c2b19eefb590ff20ba9eb60620d641708d1065c328c67f3654a7d31f816503d5705eac9aaf129f WHIRLPOOL 3a5c4011ab8f280c02b466a05f9a67d6c8a612fea4e6433be5a7b6f9a031ffc80b7e383f42e103ce52ee3bdbca3b022bb5a3b359280b8813c7a13e20e4cbb9cf
+MISC metadata.xml 363 SHA256 136ae514d6abfc2eb4cde6ca6991f4f71dc39fd655d7e4e70a52e760a1de9def SHA512 c0b7f88e26968ff9cc1657152682755bdcdcd5dbe2490c54ca871f166e50cfff171b8a9a96c7fe09c97b39311c5be826ac5561d64a48152f0b4e4d1fa585e9df WHIRLPOOL c8027180a4307ae3a4d300588ee248b821f17672289fb48be7b3d94b7c637b5cee9a7a28a642ad5c036b8266ef622e97599afadb26c7079830da7fd1b46e495b
diff --git a/games-rpg/runescape-launcher/metadata.xml b/games-rpg/runescape-launcher/metadata.xml
new file mode 100644
index 000000000000..d030cf30027d
--- /dev/null
+++ b/games-rpg/runescape-launcher/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>jscinoz@jscinoz.so</email>
+ <name>Jack Coulter</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/runescape-launcher/runescape-launcher-2.2.4-r1.ebuild b/games-rpg/runescape-launcher/runescape-launcher-2.2.4-r1.ebuild
new file mode 100644
index 000000000000..f84a65137ff4
--- /dev/null
+++ b/games-rpg/runescape-launcher/runescape-launcher-2.2.4-r1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit unpacker xdg gnome2-utils
+
+DESCRIPTION="Official RuneScape NXT client launcher"
+HOMEPAGE="http://www.runescape.com"
+
+SRC_URI="http://content.runescape.com/downloads/ubuntu/pool/non-free/r/${PN}/${PN}_${PV}_amd64.deb"
+
+QA_PREBUILT="/opt/runescape-launcher/runescape"
+
+SLOT="0"
+
+IUSE="kde"
+
+KEYWORDS="-* ~amd64"
+
+LICENSE="RuneScape-EULA"
+RESTRICT="bindist mirror strip"
+
+S="${WORKDIR}"
+
+RDEPEND="
+ media-libs/libpng:1.2
+ >=media-libs/libsdl2-2.0.2
+ >=media-libs/glew-1.10.0:0/1.10
+ >=media-libs/libvorbis-1.3.2
+ >=net-misc/curl-7.35.0
+"
+DEPEND=""
+
+src_prepare() {
+ # Fix path in launcher script
+ sed -i "s:/usr/share/games/$PN:/opt/$PN:" usr/bin/$PN || die
+
+ # Add missing trailing semicolon to .desktop MimeType entry
+ sed -i '/MimeType=/{/;$/!{s/$/;/}}' usr/share/applications/${PN}.desktop || die
+
+ # Fix path to launcher script
+ sed -i "s:/usr/bin/$PN:/opt/bin/$PN:" usr/share/applications/${PN}.desktop || die
+
+ xdg_src_prepare
+
+ eapply_user
+}
+
+src_install() {
+ into /opt
+ dobin usr/bin/$PN
+ dodoc usr/share/doc/$PN/*
+
+ exeinto /opt/$PN
+ doexe usr/share/games/$PN/runescape
+
+ insinto /usr/share/applications
+ doins usr/share/applications/${PN}.desktop
+
+ insinto /usr/share/icons
+ doins -r usr/share/icons/hicolor
+
+ if use kde ; then
+ insinto /usr/share/kde4
+ doins -r usr/share/kde4/services
+ fi
+}
+
+pkg_preinst() {
+ xdg_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/runescape-launcher/runescape-launcher-2.2.4.ebuild b/games-rpg/runescape-launcher/runescape-launcher-2.2.4.ebuild
new file mode 100644
index 000000000000..b1049fa39eea
--- /dev/null
+++ b/games-rpg/runescape-launcher/runescape-launcher-2.2.4.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit unpacker xdg gnome2-utils
+
+DESCRIPTION="Official RuneScape NXT client launcher"
+HOMEPAGE="http://www.runescape.com"
+
+SRC_URI="http://content.runescape.com/downloads/ubuntu/pool/non-free/r/${PN}/${PN}_${PV}_amd64.deb"
+
+QA_PREBUILT="/opt/runescape-launcher/runescape"
+
+SLOT="0"
+
+IUSE="kde"
+
+KEYWORDS="-* ~amd64"
+
+LICENSE="RuneScape-EULA"
+RESTRICT="bindist mirror strip"
+
+S="${WORKDIR}"
+
+RDEPEND="
+ media-libs/libpng:1.2
+ >=media-libs/libsdl2-2.0.2
+ >=media-libs/glew-1.10.0:0/1.10
+ >=media-libs/libvorbis-1.3.2
+ >=net-libs/webkit-gtk-2.4.8:2
+ >=net-misc/curl-7.35.0
+"
+
+src_prepare() {
+ # Fix path in launcher script
+ sed -i "s:/usr/share/games/$PN:/opt/$PN:" usr/bin/$PN || die
+
+ # Add missing trailing semicolon to .desktop MimeType entry
+ sed -i '/MimeType=/{/;$/!{s/$/;/}}' usr/share/applications/${PN}.desktop || die
+
+ # Fix path to launcher script
+ sed -i "s:/usr/bin/$PN:/opt/bin/$PN:" usr/share/applications/${PN}.desktop || die
+
+ xdg_src_prepare
+
+ eapply_user
+}
+
+src_install() {
+ into /opt
+ dobin usr/bin/$PN
+ dodoc usr/share/doc/$PN/*
+
+ exeinto /opt/$PN
+ doexe usr/share/games/$PN/runescape
+
+ insinto /usr/share/applications
+ doins usr/share/applications/${PN}.desktop
+
+ insinto /usr/share/icons
+ doins -r usr/share/icons/hicolor
+
+ if use kde ; then
+ insinto /usr/share/kde4
+ doins -r usr/share/kde4/services
+ fi
+}
+
+pkg_preinst() {
+ xdg_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/soltys/Manifest b/games-rpg/soltys/Manifest
new file mode 100644
index 000000000000..fb21a869dc61
--- /dev/null
+++ b/games-rpg/soltys/Manifest
@@ -0,0 +1,8 @@
+DIST cat-soltys.png 1917 SHA256 a10d0cc945fe15592744d65586cf359a6c571996a59341e1015f73a316b8e75a SHA512 c2df23275372582300d3d87d2b629548dabf61ad9d031cb352f4167d956d5126926efee41b24f48040390177b6f28e1b432ff5049bb66858316cce37106aaca8 WHIRLPOOL 869332a97160227613cb11419d64b4ffaac7de086147d6deda1821cab0defa56ec8990885ffa2a55d28eb80e90ab9d9a8fc970cbdc3786738b5cd9bcc282c7bf
+DIST soltys-en-v1.0.zip 3484518 SHA256 87b89e654b8a5b8ebe342cb4c5c6049ab9a43a5efb474d9c49bafb77dcce48f6 SHA512 92637d760033c044b3979dfe21f617db0b2cf98c48587e058910f877b38e0887fed8102782f1dfac85bc8eefa68d3791d7ff2d6074396bea2728a128e37cee1d WHIRLPOOL 8993489ef8db9e0c16e240ae14e8c29a4ad56f5413d575ae947f9ba26a94a82cfc78e2a4371aebfea2ddebaed5f29a13838ad1eb8ee7218cb77c3c23f9d3416c
+DIST soltys-es-v1.0.zip 3527349 SHA256 913db60d16a3c7faa2f8d02a09ea925792614bfebdc46c6df8f89ac277a35302 SHA512 eac3aa60e274720f65504ffe5bc18f99401a24c5775c3bc6eb893aef2af7e02055eb52e3da162f124babe5b611f93ff5444aca6e2ea26e5baa98a2131dd49da0 WHIRLPOOL 6870bd20f9064a80008ce192e4f4fc32431d513f43b65829a22421ae585331d99b9fa0c42f5cf86a85b5dfc106146278c484eafb7b68e41d4a5171ea39b7d4dc
+DIST soltys-pl-v1.0.zip 3483638 SHA256 c865520e3752183cf5f0d062712b40dc21efc602eaa4c88952906b61979c81a7 SHA512 b8c04366d360eb4b7f296718ae46a2e417b676f9bddd6fb8555069d8972ae2ff1706c67fc473a52a5009cb433ff58db377e5f02ff6b27e68e35d2a89c8108f24 WHIRLPOOL 07429bd52db303e5e97fee67778b9086cf7c0633b17684807d0ccf07d63229bbafa1dc50fa73c47911fedd8fb3a605a5931feff4436eb5215d5b9febd0ad7987
+EBUILD soltys-1.0-r1.ebuild 1899 SHA256 b3f3eafbdbf64977c3bc13ee836e6868877b492daffe5c545343c8e62e6fa7d5 SHA512 1fcfdb1226af6a8cf3a67e7440530461c4e694b68674adaae7a8a07cb10513e860640902888b72c4a68c0929e01cececafd3c8963fa27e6e7fed9dca7f50c18f WHIRLPOOL 2154da301647b350858fd6db37511eb3a075239a2d31fdfcdaaf22a0bf005ed90a7e7f98dc6da954a3e5977255c7ca0190ada5156de8cb96b5d6ce0dba688c25
+MISC ChangeLog 2563 SHA256 e64bc688204855289c468277d79d20640c9ec06f29c19fa49b40b491281c302f SHA512 d8bcf8d396ec87505573b98b4232175c7e5efaf7e070171ccabfab19b77a76976817a05ea0b53c7876686c7f2fc6c047b3e7247c571fe129ce05a4660c9f6b10 WHIRLPOOL 68a12ada878f864e78cfe5104752ad229ebb28cd200dd8cb0cb5cc1db2cc1b626fa45819714c536608392d011cf0fedf1ab95d9767d4661c9a34efa274e323f8
+MISC ChangeLog-2015 799 SHA256 6df1d7e91c03493891e66f1cd6085c117215de07a32f0f483276085adfff272d SHA512 33897f5006247ac9526b6f95b06620748fb25ca481f143ef714e60504e5cac53395397c027e0892b6c8704d6439b6ac0512405b195518f2ddee1e52b1a579b15 WHIRLPOOL 2043c87eae0f95de02d14cbee691c2e2db9a235236355137052acb1b383045b7f6391f7b54d13012766bf6c70068c957d38953ff62f1cb7064350b25fe42c6c5
+MISC metadata.xml 330 SHA256 0d5c67cb9a53d3220c7278b788f0cb6098e2e2da9fbe32dab98b52bf2e7d3bd6 SHA512 4541c93daab84bd6d0764adccf44bb4986ba02303e731b5b9a7a8060bb88a32c1cef91e2b2910e15915b67cf3ea2b5f31b4e637909d1d0b7c3b627f1134206dc WHIRLPOOL 9f36f51c4682de84bedf3b7757f32ca434702738412ae588f0232a505740d5110d72c13442e4753fbb8f804563c47be02e2f61247c0933895f76e468b3abe0db
diff --git a/games-rpg/soltys/metadata.xml b/games-rpg/soltys/metadata.xml
new file mode 100644
index 000000000000..801e2cc48963
--- /dev/null
+++ b/games-rpg/soltys/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">scummvm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/soltys/soltys-1.0-r1.ebuild b/games-rpg/soltys/soltys-1.0-r1.ebuild
new file mode 100644
index 000000000000..eca84feee1a0
--- /dev/null
+++ b/games-rpg/soltys/soltys-1.0-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit unpacker eutils games
+
+DESCRIPTION="Classic adventure game"
+HOMEPAGE="http://wiki.scummvm.org/index.php/Soltys"
+SRC_URI="l10n_en? ( mirror://sourceforge/scummvm/${PN}-en-v${PV}.zip )
+ l10n_es? ( mirror://sourceforge/scummvm/${PN}-es-v${PV}.zip )
+ l10n_pl? ( mirror://sourceforge/scummvm/${PN}-pl-v${PV}.zip )
+ !l10n_en? ( !l10n_es? ( !l10n_pl? ( mirror://sourceforge/scummvm/${PN}-en-v${PV}.zip ) ) )
+ http://www.scummvm.org/images/cat-soltys.png"
+
+LICENSE="Soltys"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="l10n_en l10n_es l10n_pl"
+
+RDEPEND=">=games-engines/scummvm-1.5"
+DEPEND="$(unpacker_src_uri_depends)"
+
+S=${WORKDIR}
+
+src_unpack() {
+ if use l10n_en || ( ! use l10n_en && ! use l10n_es && ! use l10n_pl ) ; then
+ mkdir -p en || die
+ unpacker ${PN}-en-v${PV}.zip
+ mv vol.{cat,dat} en/ || die
+ fi
+ if use l10n_es ; then
+ mkdir -p es || die
+ unpacker ${PN}-es-v${PV}.zip
+ mv soltys-es-v1-0/vol.{cat,dat} es/ || die
+ fi
+ if use l10n_pl ; then
+ mkdir -p pl || die
+ unpacker ${PN}-pl-v${PV}.zip
+ mv vol.{cat,dat} pl/ || die
+ fi
+}
+
+src_prepare() {
+ rm -rf license.txt soltys-es-v1-0
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r *
+ newicon "${DISTDIR}"/cat-soltys.png soltys.png
+ if use l10n_en || ( ! use l10n_en && ! use l10n_es && ! use l10n_pl ) ; then
+ games_make_wrapper soltys-en "scummvm -f -p \"${GAMES_DATADIR}/${PN}/en\" soltys" .
+ make_desktop_entry ${PN}-en "Soltys (English)" soltys
+ fi
+ if use l10n_es ; then
+ games_make_wrapper soltys-es "scummvm -f -p \"${GAMES_DATADIR}/${PN}/es\" soltys" .
+ make_desktop_entry ${PN}-es "Soltys (Español)" soltys
+ fi
+ if use l10n_pl ; then
+ games_make_wrapper soltys-pl "scummvm -f -p \"${GAMES_DATADIR}/${PN}/pl\" soltys" .
+ make_desktop_entry ${PN}-pl "Soltys (Polski)" soltys
+ fi
+ prepgamesdirs
+}
diff --git a/games-rpg/sumwars/Manifest b/games-rpg/sumwars/Manifest
new file mode 100644
index 000000000000..206d5e8d9f2e
--- /dev/null
+++ b/games-rpg/sumwars/Manifest
@@ -0,0 +1,6 @@
+DIST sumwars-0.5.8-src.tar.bz2 107811288 SHA256 2f432d5f84708447507f6686b847b8538de373cd951f5842cfec5a09aba0aabf SHA512 ccf156f4484b0aeb8984631321d6691dc180ad63fdfa59d92aaa05ada3e871fc10656f32f9ba1b65abe7342e1481e14ca01f025ffc0ec5797cd8e91d97240cf1 WHIRLPOOL 18658095acc19856f5f70e992ec81e66e86fc52a4480dc0b3b161cab9ed589e12717394f1859682954b5a62edb2241d6c005170a1a6ac0cd6c558f0f29bc1723
+EBUILD sumwars-0.5.8-r1.ebuild 1917 SHA256 5112d93702939ccc0b468f78e52e4bc6e780a6f210245b0f7b6894c191a270e5 SHA512 35ec46e0888370d1d896c154089e9d65dba0a86ff81decbc6dc2bb6c0478b1bc6b45e2062586d3b272ad7d20a2925189755a0ffe64ba708182a98fa93224eb73 WHIRLPOOL 12aecc0244ded8c92395d1cc5a5ffae7932e73af0b7dae241afc5d7e4ad84ad8e8e796c9bafea84bf0c855d49962e243bc3de46dc820337f8485cbc803cb0b10
+EBUILD sumwars-0.5.8.ebuild 1995 SHA256 79f3f497b4ed6d2365e65ede88379f6f94f8230896b19a6d7eb4549b74946f0a SHA512 e5ad82c208ebe7823207f4305dd8cdc8f2d753a8baabb20eb4f1eaa32796649a14109e69d263b5474a8f7f9813a292ef716fd7f24caf3ff4e79498f3ab99c081 WHIRLPOOL 578df7619f57d3a50513223b3a168f0fb7c8fbe3e32cd08929363892c5a00e4d9cf86db9592c280263cf4a3b3c6536d333dee09be49a2d02b69a8e921bc4c882
+MISC ChangeLog 3302 SHA256 84b6eb4f9221d08f130b3a89511366298f7db426054d8f4ba8312f01db9c37a3 SHA512 d6f554179c1e8148924358f64c248547011be73fb01d386ccb15f1c8af8e63f690ad3004990a8ee500350618e84b5648fc14b1c607f2432fa93e0d5fb65ca287 WHIRLPOOL aea028663c95e3c724430c2c2ebfae0b23d6d882f4b6ed113d74667c45a300a0502b3eaa63cd861a058e18eda8c5f9820326b272fd9cfef0f51bd96ce0ac94be
+MISC ChangeLog-2015 2389 SHA256 80d942664293b48a544c8147f24d0e53ee807cca532114874ec100c5c67ce505 SHA512 a500cee3eddc98a825499de1b772296ac7d891112e0f897ffe8a404ffdaa0a59533cfe1a16326b86bfbc3277e5d833ef879c21959a7b4629de8a5f542ee138cf WHIRLPOOL 60c1fe89341f7da051bf55cb66d6de205fdd075cb67b5dbfa959dc12d83dd9204bfa62ca67d059f183f2427210eecb10c95afbf5534708d7bcaef30d6851dc8a
+MISC metadata.xml 806 SHA256 b05d3c04b3d1f17cdc1f8bff34a6588c0822e7bc74c417f6b0befadb21092852 SHA512 783a6f9a5a1636808cce24f57cb3fc1236e71c3d92cbf29df3bf8e49c826104db85ce20d085ae05617f08462de0d960c7e3405f4e58988e0dcd4cee4a80353a2 WHIRLPOOL 52574ae109756774edd9929eb7e85db1b0cb9f6231d07283f4ad566651b996c9536feb34ec8bff0b149686211ea75bd03bc927d12ae2fdcc8e9b08bf65bbbdb4
diff --git a/games-rpg/sumwars/metadata.xml b/games-rpg/sumwars/metadata.xml
new file mode 100644
index 000000000000..7e3930639d45
--- /dev/null
+++ b/games-rpg/sumwars/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>protogenes@web.de</email>
+ <name>Michael Kunz</name>
+ <description>Proxy maintainer. CC him on bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <changelog>http://sumwars.org/mantis/changelog_page.php</changelog>
+ <bugs-to>https://sumwars.org/mantis/index.php</bugs-to>
+ <remote-id type="sourceforge">sumwars</remote-id>
+ </upstream>
+ <use>
+ <flag name="tools">Builds editor tools</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-rpg/sumwars/sumwars-0.5.8-r1.ebuild b/games-rpg/sumwars/sumwars-0.5.8-r1.ebuild
new file mode 100644
index 000000000000..caba1802db8a
--- /dev/null
+++ b/games-rpg/sumwars/sumwars-0.5.8-r1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils eutils flag-o-matic gnome2-utils
+
+DESCRIPTION="a multi-player, 3D action role-playing game"
+HOMEPAGE="http://sumwars.org"
+SRC_URI="mirror://sourceforge/sumwars/${P//_/-}-src.tar.bz2"
+
+LICENSE="GPL-3 CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+tools debug"
+
+LANGS="de en it pl pt ru uk"
+for L in ${LANGS} ; do
+ IUSE="${IUSE} l10n_${L}"
+done
+unset L
+
+RDEPEND="
+ >=dev-games/cegui-0.8[ogre]
+ >=dev-games/ogre-1.7.4-r1[freeimage,opengl]
+ dev-games/ois
+ dev-games/physfs
+ >=dev-lang/lua-5.1:0
+ >=dev-libs/tinyxml-2.6.2-r2
+ media-libs/freealut
+ media-libs/openal
+ media-libs/libogg
+ media-libs/libvorbis
+ >=net-libs/enet-1.3.0
+ x11-libs/libX11
+ x11-libs/libXrandr
+ tools? ( dev-libs/boost )"
+DEPEND=${RDEPEND}
+
+S=${WORKDIR}/${PN}-${PV%_*}
+
+src_configure() {
+ # QA
+ append-flags -fno-strict-aliasing
+
+ use debug && CMAKE_BUILD_TYPE=Debug
+
+ local l langs
+ for l in ${LANGS}; do
+ if use l10n_${l}; then
+ langs="${langs} ${l}"
+ fi
+ done
+
+ [[ -z "${langs}" ]] && langs="en"
+
+ # configure sumwars with cmake
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX=""
+ -DSUMWARS_BUILD_TOOLS="$(usex tools)"
+ -DSUMWARS_DOC_DIR="/usr/share/doc/${PF}"
+ -DSUMWARS_EXECUTABLE_DIR="/usr/bin"
+ -DSUMWARS_LANGUAGES="${langs}"
+ -DSUMWARS_NO_ENET=ON
+ -DSUMWARS_NO_TINYXML=ON
+ -DSUMWARS_PORTABLE_MODE=OFF
+ -DSUMWARS_POST_BUILD_COPY=OFF
+ -DSUMWARS_RANDOM_REGIONS=ON
+ -DSUMWARS_SHARE_DIR="/usr/share/${PN}"
+ -DSUMWARS_STANDALONE_MODE=OFF
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ newicon -s 128 share/icon/SumWarsIcon_128x128.png ${PN}.png
+ make_desktop_entry ${PN} "Summoning Wars"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/sumwars/sumwars-0.5.8.ebuild b/games-rpg/sumwars/sumwars-0.5.8.ebuild
new file mode 100644
index 000000000000..562f16e5fe30
--- /dev/null
+++ b/games-rpg/sumwars/sumwars-0.5.8.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils eutils flag-o-matic gnome2-utils games
+
+DESCRIPTION="a multi-player, 3D action role-playing game"
+HOMEPAGE="http://sumwars.org"
+SRC_URI="mirror://sourceforge/sumwars/${P//_/-}-src.tar.bz2"
+
+LICENSE="GPL-3 CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+tools debug"
+
+LANGS="de en it pl pt ru uk"
+for L in ${LANGS} ; do
+ IUSE="${IUSE} l10n_${L}"
+done
+unset L
+
+RDEPEND="
+ >=dev-games/cegui-0.8[ogre]
+ >=dev-games/ogre-1.7.4-r1[freeimage,opengl]
+ dev-games/ois
+ dev-games/physfs
+ >=dev-lang/lua-5.1:0
+ >=dev-libs/tinyxml-2.6.2-r2
+ media-libs/freealut
+ media-libs/openal
+ media-libs/libogg
+ media-libs/libvorbis
+ >=net-libs/enet-1.3.0
+ x11-libs/libX11
+ x11-libs/libXrandr
+ tools? ( dev-libs/boost )"
+DEPEND=${RDEPEND}
+
+S=${WORKDIR}/${PN}-${PV%_*}
+
+src_configure() {
+ # QA
+ append-flags -fno-strict-aliasing
+
+ use debug && CMAKE_BUILD_TYPE=Debug
+
+ local l langs
+ for l in ${LANGS}; do
+ if use l10n_${l}; then
+ langs="${langs} ${l}"
+ fi
+ done
+
+ [[ -z "${langs}" ]] && langs="en"
+
+ # configure sumwars with cmake
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX=""
+ -DSUMWARS_LANGUAGES="${langs}"
+ -DSUMWARS_NO_TINYXML=ON
+ -DSUMWARS_NO_ENET=ON
+ -DSUMWARS_DOC_DIR="/usr/share/doc/${PF}"
+ -DSUMWARS_EXECUTABLE_DIR="${GAMES_BINDIR}"
+ -DSUMWARS_SHARE_DIR="${GAMES_DATADIR}/${PN}"
+ -DSUMWARS_STANDALONE_MODE=OFF
+ -DSUMWARS_POST_BUILD_COPY=OFF
+ -DSUMWARS_PORTABLE_MODE=OFF
+ -DSUMWARS_RANDOM_REGIONS=ON
+ $(cmake-utils_use tools SUMWARS_BUILD_TOOLS)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ newicon -s 128 share/icon/SumWarsIcon_128x128.png ${PN}.png
+ make_desktop_entry ${PN} "Summoning Wars"
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/to-the-moon/Manifest b/games-rpg/to-the-moon/Manifest
new file mode 100644
index 000000000000..c7218f7ce3b0
--- /dev/null
+++ b/games-rpg/to-the-moon/Manifest
@@ -0,0 +1,5 @@
+DIST ToTheMoon_linux_1389114090.sh 75823678 SHA256 8272e4693dcf553f4285de4c46e89e1e2e4d5a59a088396b7ea188f935407970 SHA512 bed844f143ef9c3ff8fe93da186422e84d259229874c331315d8f1c7538fd6c417d6ca1aeecbe6c2a664fad98aff51f4723227d0ef07612acf29f86313f9aa1a WHIRLPOOL a3ebaed2e50636d2692ba1b893001cdb327c650d2b5336e928c6f6b74d3a382ed1c392b748e61d7037aa08f4029a524b5b83933f77da57177a9e1bc968385087
+EBUILD to-the-moon-0.ebuild 2511 SHA256 c1255d7a8d294ade068ef2557190b4d381323714fb4602546fde0f77b08ecae3 SHA512 9b7ae680a818efee13a9edbffdec2f62cd9c2c2542dee8b8afb39c76fae48af470bb743398dfb5d646b8c1073b58e9829bdaa3c09abbdbfade993b01817da51c WHIRLPOOL e05e17c97f5a4bbb8c3c0ce3a1a259cbca9b291e5fc031959fc02908c4bc91df1a77f667b3f162db27531202a81025f7fe7f6ad769d917de15500705e2708327
+MISC ChangeLog 2825 SHA256 b4f426ff0f9d748a823657458c6ad82c9525a465d2aafaaaa333545e6a658a7c SHA512 ddb8ceda2e4ef389fca9bce1fd9fcf9604c8fbe6da9c6d1fcbb1d755791120c24727fa11e6a5c458922b261e4e40061418b327bc4f8f25c0e8fdb23ded83e2d3 WHIRLPOOL 5d19609bb03c1088de5d23e0c781aec0a3b746da86e90c3ec59a4db544e0bd7a0315ccf3d6c8aeb17f4af3ae2c32999e19cbc808c6f862251a2205adf4fd585b
+MISC ChangeLog-2015 947 SHA256 ad99393ec5dda5373c4dfb0956760a3d42f14404fda12a039f147e977df3865a SHA512 1edda25bca66d89431e936200b826ebe22bb0394c51b1773b8dc589b86d7d042705f44b0da75183dbed9e9491e50fb421468af68936171d015a53d4194353c3e WHIRLPOOL 81fb8041c84a6f4b276289f7900012a9c08aa5569ffed1906cbf6c2dbd73268b1fc6d0fad5d1affafd8d5418c2b33f21a095245b108a9ebcf6f1d3c37833b1f6
+MISC metadata.xml 325 SHA256 63a0ddff73c7cff99a8fa85f846c6488d6860e5a93e2232de4cfbbc3c09c9305 SHA512 a8068b353b7597ae988ad3fd9855339beb981eb11a392483129346d2ee51d658934fb772e8b3f3062e1d14d553e73de9f6bc2f456b4bf5de15902257c22e69ce WHIRLPOOL ff5c30b3c1f2ca47cd7ef698875c36bfc25bc752be756a895478611d3424aa28242ab6795955ce700d0e50ef8c7e865628503d4956e4fc208834171de91eea73
diff --git a/games-rpg/to-the-moon/metadata.xml b/games-rpg/to-the-moon/metadata.xml
new file mode 100644
index 000000000000..451145245bfb
--- /dev/null
+++ b/games-rpg/to-the-moon/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="bundled-libs">Use bundled libraries</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-rpg/to-the-moon/to-the-moon-0.ebuild b/games-rpg/to-the-moon/to-the-moon-0.ebuild
new file mode 100644
index 000000000000..2a2197ed25e6
--- /dev/null
+++ b/games-rpg/to-the-moon/to-the-moon-0.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: unbundling sdl-sound breaks the game
+
+EAPI=5
+
+inherit eutils unpacker gnome2-utils games
+
+MY_PN=ToTheMoon
+DESCRIPTION="Indie Adventure RPG, two doctors traversing the memories of a dying man to fulfill his last wish"
+HOMEPAGE="http://freebirdgames.com/games/to-the-moon"
+SRC_URI="${MY_PN}_linux_1389114090.sh"
+
+LICENSE="all-rights-reserved bundled-libs? ( LGPL-2 LGPL-2.1 ZLIB )"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="bundled-libs"
+RESTRICT="fetch bindist splitdebug"
+
+QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/${MY_PN}.bin*"
+if [[ ${ARCH} == "amd64" ]] ; then
+ QA_PREBUILT="${QA_PREBUILT} ${GAMES_PREFIX_OPT}/${PN}/lib64/*"
+else
+ QA_PREBUILT="${QA_PREBUILT} ${GAMES_PREFIX_OPT}/${PN}/lib/*"
+fi
+
+RDEPEND="
+ !bundled-libs? (
+ dev-libs/libsigc++:2
+ >=media-libs/libsdl2-2.0.1[X,joystick,opengl,sound,threads,video]
+ media-libs/openal
+ media-libs/sdl2-image[png]
+ media-libs/sdl2-ttf
+ )
+ sys-libs/zlib
+ virtual/opengl"
+
+S=${WORKDIR}/data
+
+pkg_nofetch() {
+ einfo
+ einfo "Please buy & download \"${SRC_URI}\" from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move/link it to \"${DISTDIR}\""
+ einfo
+}
+
+src_unpack() {
+ # mojo stuff inside makeself archive, unpack_makeself fails
+ local lastline=$(( $(grep -a -h -n -m 1 -F -e "Extra newline, because in very rare cases (OpenSolaris) stub is directly added after script" "${DISTDIR}/${A}" | cut -d':' -f1) + 1 ))
+ [[ ${lastline} ]] || die "no last line"
+ local offset=$(head -n ${lastline} "${DISTDIR}/${A}" | wc -c)
+ [[ ${offset} ]] || die "no offset"
+ dd ibs=${offset} skip=1 if="${DISTDIR}/${A}" of="${T}"/moon.zip || die
+ unpack_zip "${T}"/moon.zip
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+ local libsuffix=$(usex amd64 "64" "")
+ local arch=$(usex amd64 "x86_64" "x86")
+
+ insinto "${dir}"
+ doins -r noarch/{Audio,Data,Fonts,Graphics,Game.ini,mkxp.conf,ToTheMoon.png}
+
+ exeinto "${dir}"
+ doexe ${arch}/${MY_PN}.bin.${arch}
+
+ exeinto "${dir}/lib${libsuffix}"
+ if use bundled-libs ; then
+ doexe ${arch}/lib${libsuffix}/*
+ else
+ doexe ${arch}/lib${libsuffix}/libSDL_sound-1.0.so.1
+ fi
+
+ games_make_wrapper ${PN} "./${MY_PN}.bin.${arch}" "${dir}" "${dir}/lib${libsuffix}"
+ make_desktop_entry ${PN} "To the Moon"
+ newicon -s 32 noarch/${MY_PN}.png ${PN}.png
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/twclone/Manifest b/games-rpg/twclone/Manifest
new file mode 100644
index 000000000000..06c2cd26cc91
--- /dev/null
+++ b/games-rpg/twclone/Manifest
@@ -0,0 +1,7 @@
+AUX twclone-0.14-format.patch 2700 SHA256 104517bdfe111d1b78dd6e2f42370f70cfbfda856c4c72faea355e8fc8ceccc8 SHA512 ee5f7aebe920270194bb28ff9d788d040c50c3dffcfc4f2b05ccb05c61e8e1bef53b6e030cd1be9291121ad33e6345cbcb99c02f79d7eccc7a5c009556a636b3 WHIRLPOOL 205fc4b0ba56f8c976a8b00f7f7839891afb8fb9f6a503a432b923bf00efa2a4c6e81780b6104a2b7b56e51f8aeaec0dc15ff0f12183637156bc7484a43133e2
+DIST twclone-source-0.14.tar.gz 163065 SHA256 3fa3bca53db9115555633a19671c89fdd7021a6b7f9061365386e131270b6cbc SHA512 66a63e2cc5fe82fb5a5b1f887c9eb3bf8b89044f7f7d489b67e5bb15a21426a5a0eb27b53ab59c05c784fc6fb7ffaadcfc5453fc55943959db859a053adb7843 WHIRLPOOL 660c8ac33f6f0315ccd6eca67f7f61bf2ebc160a1dbbec28f860dce37b51f662dfa45f3f61ab63f62e1ded5e4c1e32c35a105d70fc254e66c3cce70f9a462507
+EBUILD twclone-0.14-r1.ebuild 556 SHA256 448858d755d775346f0f1ce9e5574a9e27a9c0045fe0c4fe256e1be927917cf4 SHA512 18f5be3eb6e6d0fef5eddfccf4f7b2344aeb2dae7cec2a05160da1ae785a2ec43578f21547ff71c7b6aac9a9457ca7702c2edcb3af90d68d3532cc7007121d32 WHIRLPOOL 370c0a1252641f655c5a25f5f4f6a812e79a993315236d29083aa047641fc29e01746b0f070651cd8ab486489d544a0de96ec4b140668ab4b2d26971915ec861
+EBUILD twclone-0.14.ebuild 611 SHA256 e1e62ab6a458d3fb8896a4b154fc35a1bf23453aaa9490f1e6f385df0621d3e1 SHA512 3b046b8324efb8b35a61dd628f8d2b05daded830dc7d35cd693f7864b8efcbf90d69345e14d91ba64f1dea3b5acade51b6a1522886db3f791cdfa255ab7835f2 WHIRLPOOL 29662192c6cd50241638ccbd8d75c0935c7754acd81e29bfd12297a59dc560a0a61c207491bc4b680b9ca1cd627595924e3984428b270c3ad4f95e261c1ed2df
+MISC ChangeLog 3036 SHA256 e58428a8287f7ce8ee2a3c82f89f8be74f8152e6af134190c375318b4acc8baa SHA512 b72237108ed1dfed903e372f808f1ce16f3c893ca9711e9cdda08e915bb8361bda0a04160d9ae3d658de343f553d6398ff172fe0c6a979715d212ba9ea0f4e98 WHIRLPOOL 1a9511343f88fdc8af339e50f7daea84588d08872229a72506859b9577fdcf9064cec6c0119e321e2663d937cbac64abdaffc017161b834674b5875a9240eaf8
+MISC ChangeLog-2015 739 SHA256 8e0293472d5a8627e9ccb1f4742f52a0605c18f31e00b8d3a99bf8dd3bb71a8f SHA512 50d04e7222fd4985e275390f5c427e65a2d022ba38e888cfe21edbf055956ccebb401f0b8c0d048a6e37a99f2e2de7d1938d791f00c23649aeb926b248de7a53 WHIRLPOOL 5bbf2adfe006b84bfe6ec26c6538c8f81292bf484be878a54c5ed693270b737131506dca528c7a7060e74f3971b6fd47f17ba6500ae455b14ef8f4f4416c1c55
+MISC metadata.xml 687 SHA256 4ac84207da432eaccd9d36829e1f4e24f295c368b276354be9c73653eca09d00 SHA512 376bb763d716ad1cb9513b72f9b301b013339aad3d3df02124d14e653275b322dc18ff4c7d87899a424b2d75cb09f090b516845d6e3e7f46f91e98273abf7320 WHIRLPOOL dbc6db9655151d584c553dc4a8bcf01f1c88105fdd5600d35b097b297cbba4553d9c60f4c469e37229a46bc937ee56fe23ea9535274707057ad949f3f91f3e1f
diff --git a/games-rpg/twclone/files/twclone-0.14-format.patch b/games-rpg/twclone/files/twclone-0.14-format.patch
new file mode 100644
index 000000000000..d9d1a1c52516
--- /dev/null
+++ b/games-rpg/twclone/files/twclone-0.14-format.patch
@@ -0,0 +1,75 @@
+--- a/bigbang.c 2015-10-27 09:21:51.172611109 +0100
++++ b/bigbang.c 2015-10-27 09:25:41.117233447 +0100
+@@ -530,13 +530,11 @@
+ planetfile = fopen ("./planets.data", "w");
+ for (loop = 1; loop <= 299 - strlen(terraInfo); loop++)
+ strcat(terraInfo, " ");
+- strcat(terraInfo, "\n");
+- fprintf (planetfile, terraInfo);
++ fprintf (planetfile, "%s\n", terraInfo);
+ sprintf (ferrinfo, "%d:%d:Ferringhi:1:-2:Unknown:1000:1000:1000:0:0:0:0:3:100000:20:30:10:0:0:0:0:", 2, ferringhiSector);
+ for (loop = 1; loop <= 299 - strlen(ferrinfo); loop++)
+ strcat(ferrinfo, " ");
+- strcat(ferrinfo, "\n");
+- fprintf(planetfile, ferrinfo);
++ fprintf(planetfile, "%s\n", ferrinfo);
+ randomPlanetInfo = malloc (sizeof (strNameLength));
+ if (numRandomPlanets > 0)
+ {
+@@ -552,8 +550,7 @@
+ , c, tempint, randomname (randomPlanetInfo), randomnum(1,5));
+ for (loop = 1; loop <= 299 - strlen(ferrinfo); loop++)
+ strcat(ferrinfo, " ");
+- strcat(ferrinfo, "\n");
+- fprintf(planetfile, ferrinfo);
++ fprintf(planetfile, "%s\n", ferrinfo);
+
+ c++;
+ }
+@@ -616,10 +613,9 @@
+ fileline = strcat (fileline, ":");
+ if (sectorlist[x]->nebulae != NULL)
+ fileline = strcat (fileline, sectorlist[x]->nebulae);
+- fileline = strcat (fileline, ":\n");
+ /* Later put in whitespace buffer for saving */
+ /* Not needed until user created beacons put in */
+- fprintf (file, fileline);
++ fprintf (file, "%s:\n", fileline);
+ }
+ fclose (file);
+ free (fileline);
+@@ -646,8 +642,7 @@
+ len = (int) strlen (fileline);
+ for (y = 0; y <= 99 - len; y++)
+ strcat (fileline, " ");
+- strcat (fileline, "\n");
+- fprintf (file, fileline);
++ fprintf (file, "%s\n", fileline);
+ }
+ fclose (file);
+
+--- a/config.c 2015-10-27 09:30:00.091283678 +0100
++++ b/config.c 2015-10-27 09:30:25.068806593 +0100
+@@ -140,9 +140,8 @@
+
+ for (loop=0; loop < 199 - strlen(buffer); loop++)
+ strcat(buffer, " ");
+- strcat(buffer, "\n");
+
+- fprintf(configfile, buffer);
++ fprintf(configfile, "%s\n", buffer);
+
+ fclose(configfile);
+ free(buffer);
+--- a/planet.c 2015-10-27 09:31:44.867282757 +0100
++++ b/planet.c 2015-10-27 09:32:17.083667674 +0100
+@@ -59,8 +59,7 @@
+ addint(stufftosave, planets[index]->citdl->upgradestart, ':', BUFF_SIZE);
+ for (loop=0; loop< 399 - strlen(stufftosave); loop++)
+ strcat(stufftosave, " ");
+- strcat(stufftosave, "\n");
+- fprintf(planetfile, stufftosave);
++ fprintf(planetfile, "%s\n", stufftosave);
+ }
+ }
+ fclose(planetfile);
diff --git a/games-rpg/twclone/metadata.xml b/games-rpg/twclone/metadata.xml
new file mode 100644
index 000000000000..56bd9d00cd1f
--- /dev/null
+++ b/games-rpg/twclone/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription>
+How many of you remeber the BBS days back in the late 80's and early 90's?
+Back when you would call in play games and go on with your life? Well I'm
+trying to duplicate one of those old games. It was called Trade Wars
+2002(Created by Martech Software). So I decided to make a game similar to it
+that runs in Linux.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">twclone</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/twclone/twclone-0.14-r1.ebuild b/games-rpg/twclone/twclone-0.14-r1.ebuild
new file mode 100644
index 000000000000..95f7c5550971
--- /dev/null
+++ b/games-rpg/twclone/twclone-0.14-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P="${PN}-source-${PV}"
+DESCRIPTION="Clone of BBS Door game Trade Wars 2002"
+HOMEPAGE="http://twclone.sourceforge.net/"
+SRC_URI="mirror://sourceforge/twclone/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-format.patch
+)
+
+src_install() {
+ DOCS="AUTHORS ChangeLog PROTOCOL README TODO" \
+ default
+ cd "${D}/usr/bin"
+ for f in * ; do
+ mv {,${PN}-}${f}
+ done
+}
diff --git a/games-rpg/twclone/twclone-0.14.ebuild b/games-rpg/twclone/twclone-0.14.ebuild
new file mode 100644
index 000000000000..36b7d7a1f33c
--- /dev/null
+++ b/games-rpg/twclone/twclone-0.14.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+MY_P="${PN}-source-${PV}"
+DESCRIPTION="Clone of BBS Door game Trade Wars 2002"
+HOMEPAGE="http://twclone.sourceforge.net/"
+SRC_URI="mirror://sourceforge/twclone/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-format.patch
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog PROTOCOL README TODO" \
+ default
+ cd "${D}/${GAMES_BINDIR}"
+ for f in * ; do
+ mv {,${PN}-}${f}
+ done
+ prepgamesdirs
+}
diff --git a/games-rpg/vendetta-online-bin/Manifest b/games-rpg/vendetta-online-bin/Manifest
new file mode 100644
index 000000000000..efbfb4e11000
--- /dev/null
+++ b/games-rpg/vendetta-online-bin/Manifest
@@ -0,0 +1,8 @@
+AUX vendetta 113 SHA256 7ecb725e93f3fe5acec5cb025b0b1d05a451990bf7c6652c183e48b12fc4770a SHA512 a6b21095a87585ce9e96e87941f651ce3a6bbb123bff7d49d3c00a9b7dbab9864151a00adcae168d9949a28e83a4057916091516278245cfa925111197096a95 WHIRLPOOL 789052fa13316050de6e2840b6239687ffd6aef0d7b4a273e68e7160719a5f04de854666c0ee1e725217454f257bf5c810f194101ff7255107365b91e8db4c18
+DIST vendetta-online-bin-1.8.296-amd64.sh 235822235 SHA256 fcd0e96d1e48f49289ef00d3e8a9f05013389916012c0c8d5ace18af83b348ab SHA512 f57b8da6b2364df7ca78c0a8df66cadbc568927376548f95b49da5d641d49a155315583d4323599f59e982b0569b972311fa4717e11dab48e4da95ab235d05a4 WHIRLPOOL 320aaaae6cdcbe799036ead0c50cc97e808eda018d4d5475c01c89eb499cf7adfb3ef704b1ce2eb0a90ba39dfabdf500c6685bdf36b6051d4ae4122468fb3009
+DIST vendetta-online-bin-1.8.296-x86.sh 235890404 SHA256 93693050c1431b6cd7ad77972b0995b76696d2e4ef3fd17246fa09a4ae764c20 SHA512 909e4960fe85c7bc71cf1530cd8fd9fa096b28c9ba621e3c16e14d1264858939e859fad182e76301322eb45b7c451bd21d87a90274eefb9e71e1fd1eb1f498b0 WHIRLPOOL fc85dfbd059773b68201d5294a30cc1b6a05d7be43c7497c05d07d84be8b9b245da7e6d584541f8a47231fbf975b1c550399e3fa80457c9475700410aa4b1fb7
+EBUILD vendetta-online-bin-1.8.296-r1.ebuild 1452 SHA256 18a73d1299afa9cfc3b8ce714b40540054bbf4259d2635bced1aec5cdc8fe36f SHA512 3cdc2a120b8148cec7a7de3bf5eeeb7446b05142bf3933c56e537665ebc3e4189573e44d6f16657d2a9c28c7cd28432f715d1a3805dd8573f767efb9f6169abb WHIRLPOOL 8ca16affca7f84da53f3fc263bb4a8d7c22b83acff708d30364a6f4191350824b69e9ee2d3637530d8d39e522953f91aefa1f1499206e574ed92f6db2bee48d8
+EBUILD vendetta-online-bin-1.8.296.ebuild 1104 SHA256 76576d43a15df8e0d192321698baa364da8fccb5e49ab7be51565dd7a6ad3333 SHA512 116d98fab94ab59569748d09e68b335c420479f2c6fc462cdd4b1806c03e9565257bce597baa56bf56c0c47526c70809a4a0f3ec08d194624b59e009e8f56aef WHIRLPOOL 828ca76cbdc9d267bc2ff496caaca66f241f18a9a64ad4a482bfe40842a3c897486a618646c4c10f6a8a5bf79c366efbe84ea8e2054d150a9baa952474f93782
+MISC ChangeLog 2884 SHA256 c0c26bc01871e46d207dbff82a9a3e362d7853f99706f7a0f034a9f8230a0a21 SHA512 e408cab66a2ebd1147e409c30f446613e5c29cb5a67893de421daee5bc1e7f648f172b815a82708001422366c1b3047b1a782b2106862413f0ef61a7275c5c0c WHIRLPOOL 0969298b475b8578dc6f1b4c4b8096158818b1a7bb1201fd4f23040679795024baba86fd7360a1e0daabc4628a8670286b9c7a9649c7197cae9119985c7a7816
+MISC ChangeLog-2015 3008 SHA256 c686d2290c7d35251139b562311171d576aec892803267e340aabd368545fafd SHA512 6c8d6304c2d0fd50e129697f7fd9c14c945f8d6f1ec53f1865f22d169104c71c09b4abba6ef79026274f5a3b0c95118ef53c15ec52e50387c2dad0aef1a91b7a WHIRLPOOL 0702475f465812319777465bb40e6c4003989c6eea692ae898bdab16e89e0c56e82579e51b6229cd438cbf1a5f5f36efa1c5bc71ffdd28205a45369276924fec
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-rpg/vendetta-online-bin/files/vendetta b/games-rpg/vendetta-online-bin/files/vendetta
new file mode 100644
index 000000000000..113f5d0925b1
--- /dev/null
+++ b/games-rpg/vendetta-online-bin/files/vendetta
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ ! -e ~/.vendetta ] ; then
+ cp -vR "DATADIR"/install ~/.vendetta
+fi
+
+exec "DATADIR"/vendetta "$@"
diff --git a/games-rpg/vendetta-online-bin/metadata.xml b/games-rpg/vendetta-online-bin/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-rpg/vendetta-online-bin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.296-r1.ebuild b/games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.296-r1.ebuild
new file mode 100644
index 000000000000..529b60d6aa07
--- /dev/null
+++ b/games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.296-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit eutils unpacker
+
+DESCRIPTION="Space-based MMORPG"
+HOMEPAGE="http://www.vendetta-online.com/"
+SRC_URI="amd64? (
+ http://mirror.cle.vendetta-online.com/vendetta-linux-amd64-installer.sh
+ -> ${P}-amd64.sh
+ )
+ x86? (
+ http://mirror.cle.vendetta-online.com/vendetta-linux-ia32-installer.sh
+ -> ${P}-x86.sh
+ )"
+
+LICENSE="guild"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror strip"
+
+DEPEND="dev-util/patchelf"
+RDEPEND="virtual/opengl
+ x11-libs/gtk+:2"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack_makeself
+}
+
+src_prepare() {
+ # Won't do much good since this is a -bin, but there's no bin_prepare :)
+ default
+
+ # scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.'
+ for file in install/drivers/{gkvc.so,soundbackends/libalsa_linux_amd64.so,soundbackends/libpulseaudio_linux_amd64.so}
+ do
+ patchelf --set-rpath '$ORIGIN' $file || die
+ done
+}
+
+src_install() {
+ local dir=/opt/${PN}
+
+ insinto "${dir}"
+ doins -r * || die "doins failed"
+ fperms +x "${dir}"/{vendetta,install/{media.rlb,update.rlb,vendetta}} \
+ || die "fperms failed"
+
+ sed \
+ -e "s:DATADIR:${dir}:" \
+ "${FILESDIR}"/vendetta > "${T}"/vendetta \
+ || die "sed failed"
+
+ dobin "${T}"/vendetta
+ newicon install/manual/images/ships.valkyrie.jpg ${PN}.jpg
+ make_desktop_entry vendetta "Vendetta Online" /usr/share/pixmaps/${PN}.jpg
+}
diff --git a/games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.296.ebuild b/games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.296.ebuild
new file mode 100644
index 000000000000..a8039ca9257a
--- /dev/null
+++ b/games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.296.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+DESCRIPTION="Space-based MMORPG"
+HOMEPAGE="http://www.vendetta-online.com/"
+SRC_URI="amd64? (
+ http://mirror.cle.vendetta-online.com/vendetta-linux-amd64-installer.sh
+ -> ${P}-amd64.sh
+ )
+ x86? (
+ http://mirror.cle.vendetta-online.com/vendetta-linux-ia32-installer.sh
+ -> ${P}-x86.sh
+ )"
+
+LICENSE="guild"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="mirror strip"
+
+RDEPEND="virtual/opengl
+ x11-libs/gtk+:2"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack_makeself
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+
+ insinto "${dir}"
+ doins -r * || die "doins failed"
+ fperms +x "${dir}"/{vendetta,install/{media.rlb,update.rlb,vendetta}} \
+ || die "fperms failed"
+
+ sed \
+ -e "s:DATADIR:${dir}:" \
+ "${FILESDIR}"/vendetta > "${T}"/vendetta \
+ || die "sed failed"
+
+ dogamesbin "${T}"/vendetta
+ newicon install/manual/images/ships.valkyrie.jpg ${PN}.jpg
+ make_desktop_entry vendetta "Vendetta Online" /usr/share/pixmaps/${PN}.jpg
+
+ prepgamesdirs
+}
diff --git a/games-rpg/wasteland2/Manifest b/games-rpg/wasteland2/Manifest
new file mode 100644
index 000000000000..8d8b570c9a4e
--- /dev/null
+++ b/games-rpg/wasteland2/Manifest
@@ -0,0 +1,5 @@
+DIST gog_wasteland_2_1.9.0.13.tar.gz 10959158010 SHA256 0f6bf4f806de3233a11ec1049f96d779f8d013dc38f296d101466701fa931728 SHA512 8b5ed19ffee9505efaf03f7ef3ba55dbdbbeda68b7961e92c22776bbb7e842df8c5e5ee727967e79dec753fd03d39f0a1c98e380e540971834b56066b6a79929 WHIRLPOOL d53f4636606c03a5977b9603495f61aaedc3f1851a1ca2bd8b4b2bda6feff8de0f9ec488fa10b052870fbfbea875673f2fe27fafd92ee0c663b0ae158171c2ee
+EBUILD wasteland2-1.9.0.13.ebuild 2097 SHA256 0a86115d9719ca5d20cbf179e6d05f3f2f7818e08dd16f237b51ed97124bc2c8 SHA512 c9d1a13ba2603f8961bd23934c17551ee7a257ab1caae0cf168f6079ff651a8ada2f9e4a5a588862ebd4d07a790f8493b39af9b7578c1bd9224b5e99a7a97633 WHIRLPOOL 445f8695104933d742371561c57147f13154d8c1b006860b7ef5b658e9d3c9cdcc9259c8f0c2c57bced35184753d1534ead39ef0f25e40cccd8f2e584b7c5365
+MISC ChangeLog 2567 SHA256 da657e2c54c7592ab5edf9eefe7d8e00d73d0b61142134b1cc0ac4c4d89c7012 SHA512 a3fc5ee1f39e1b97884b3eb251966869aab77bcfbabd079575088fbab05ff9371fd46fc579249af0183a8b172ae214e578d2a6fc3e9fb864ace22242680038db WHIRLPOOL 05ffdc8b438ef132ee627f0c1f681f20a62b0ba27621c1a6617ccf7fd7ed3254a016f30442dbf0098a3cb5d1b5cbdcd9c3be6d3a251717eef124ce1aa5293a1e
+MISC ChangeLog-2015 1084 SHA256 91ed832fd3cc52e34e019f28c1242ad3856451f59bca29547d04626492e483b4 SHA512 feb8d9822ce15a298fc01b187ee076806b8d9db22c494ffdbfafb7ff0db7f6f06255668af6cdf2fc3163c7e1c90348dae7c28411fc15af3b867e135d07fd4c54 WHIRLPOOL ae7b3c7e3810a2b9084a6c4b9ffea9fb5f2cfa2d4107b784f2d414aea5a9410018f676379355326df4fdd201e3441a48dcdf899f726d60748f0a7cea066b0b6b
+MISC metadata.xml 252 SHA256 0dd0e558bb7ccc4f24cb9c9c43790c108e559f3462861b2ff6eb267a345beaab SHA512 90798aff93ec7e3881b882e7b10bb1680e8cb7d82b0ef4280e562ab0c9e8a2daba8afe57333dc64697322267a4b651c00ee9b4fdeb56278ff70c073da7b91638 WHIRLPOOL c6c72f145f4ccc4863ad4c1a236eac601fb00f0e9550568f98d5e6f5eeb16f361b4c18eac8d80a1534e398fac595a6819a86297164be0818d04de6d643f01d7c
diff --git a/games-rpg/wasteland2/metadata.xml b/games-rpg/wasteland2/metadata.xml
new file mode 100644
index 000000000000..3c186688e265
--- /dev/null
+++ b/games-rpg/wasteland2/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-rpg/wasteland2/wasteland2-1.9.0.13.ebuild b/games-rpg/wasteland2/wasteland2-1.9.0.13.ebuild
new file mode 100644
index 000000000000..30b318d91a41
--- /dev/null
+++ b/games-rpg/wasteland2/wasteland2-1.9.0.13.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils gnome2-utils check-reqs games
+
+DESCRIPTION="Direct sequel to 1988's Wasteland, the first-ever post-apocalyptic computer RPG and the inspiration behind the Fallout series"
+HOMEPAGE="https://wasteland.inxile-entertainment.com/"
+SRC_URI="gog_wasteland_2_${PV}.tar.gz"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="bindist fetch mirror"
+
+QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/*"
+
+RDEPEND="
+ >=dev-libs/atk-2.12.0-r1[abi_x86_32(-)]
+ >=dev-libs/glib-2.40.0-r1:2[abi_x86_32(-)]
+ >=media-libs/fontconfig-2.10.92:1.0[abi_x86_32(-)]
+ >=media-libs/freetype-2.5.3-r1:2[abi_x86_32(-)]
+ >=x11-libs/cairo-1.12.16-r2[abi_x86_32(-)]
+ >=x11-libs/gdk-pixbuf-2.30.8:2[abi_x86_32(-)]
+ >=x11-libs/gtk+-2.24.24:2[abi_x86_32(-)]
+ >=x11-libs/pango-1.36.5[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)]
+ >=virtual/glu-9.0-r1[abi_x86_32(-)]
+ virtual/opengl
+"
+
+S="${WORKDIR}/Wasteland 2"
+
+CHECKREQS_DISK_BUILD="22000M"
+CHECKREQS_DISK_USR="21600M"
+
+pkg_nofetch() {
+ einfo
+ einfo "Please buy Wasteland 2"
+ einfo "from https://www.gog.com/ and"
+ einfo "download \"${SRC_URI}\""
+ einfo "and move/link it to \"${DISTDIR}\""
+ einfo
+ einfo "This ebuild was tested with the CLASSICAL edition."
+ einfo "If it works with the deluxe edition too, please"
+ einfo "open a bug report. If not, open a bug report too."
+ einfo
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+
+ # over 20GB of data
+ dodir "${dir}"
+ mv game/WL2_Data "${D%/}${dir}"/ || die
+ exeinto "${dir}"
+ doexe game/WL2
+
+ games_make_wrapper ${PN} ./WL2 "${dir}"
+ newicon -s 256 support/gog-wasteland-2.png ${PN}.png
+ make_desktop_entry ${PN} "Wasteland 2"
+
+ dodoc docs/*.pdf
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/wastesedge/Manifest b/games-rpg/wastesedge/Manifest
new file mode 100644
index 000000000000..dc1ea74c4e66
--- /dev/null
+++ b/games-rpg/wastesedge/Manifest
@@ -0,0 +1,6 @@
+DIST wastesedge-src-0.3.5.tar.gz 10749912 SHA256 f872a2dc89ca454523f5b55c7fc8b29986dae8bc72f52647a6e1dab3f2a30674 SHA512 d4c77eb1bde2c28002e4f56a6bfa5f816ea53de7061b5e60635f15c670ff45c3a18e3316b92007f74033a62538503f14b67e1175cf22c718c22ca1021dc7af3b WHIRLPOOL 38695ec20bb171a47af8d691e52c07f4eb4331798b790bf4d93cf56bcbb3846a91daa88fee9d9e659ef8f2ccb2e54065e988ceb7683fb24656e4c24ff50b7c7c
+EBUILD wastesedge-0.3.5-r1.ebuild 926 SHA256 8bcb548bb0c192a5a1fad1aab2f975a1d61eea6d277d042f51b6c1f647a8fe26 SHA512 d150ce0a36aafd7b5e304b2c24e38ced6fc20734512aa9c6f2aaa9b3906a8d9be2df36854bcc6be86bf52b722644b235a87f3e3eab0e2285a01c4d73d20a2cf8 WHIRLPOOL 38876aa12089c7f7cf6ba05b1533a4d0a28e9a7d9d9af0045952de63b686005eb54c50866be6515bd57f3d455a2ca82fe158d932e4a52051768fce310ef31298
+EBUILD wastesedge-0.3.5.ebuild 1018 SHA256 739b5e034081cef1b6b6cf8821422cb819ff489c1bf38fb02bf8c7c3d9d90075 SHA512 93ee07c629e67767aaa0a8502f66619c76510d92ab682971091061dddfbd25fca537a7ebcd33776281406f769d360ff4b375add796269c29fd25666f30d3998a WHIRLPOOL a2073996aaff599c8547593c40aac34e7c0096f8a6fee4c5db8b014efecec5c4562b382e27f1798c4f37228759c56c667599b6c8a8f68b75ecceefa283307abc
+MISC ChangeLog 3025 SHA256 546a0b68422463a709de6cf152eb34d2acbb251d4119239301ec3f992de5799c SHA512 a59aa7b87c74a457ec5d5c96a84bd7cef5a42310ac461001bff70ca20cc48d5850bd211269a5234f1719550408df526cbe6e02d1f14938a2dab5309895bb1d3d WHIRLPOOL 4584c8548e2a7d63a1d3de2304fc8b568cc4da0c61e8a6dae9094088e635c638c91624be5383fba2b8f140e8cffddf8a19737a310186a7cc07344879a250d638
+MISC ChangeLog-2015 2939 SHA256 25e89cc4903b620582cbc8b9d4d19b83a3e545722332475339b475dec0ae490f SHA512 6d7f62f152d95b6a6b382290314244a76fc72809e3f98bc67c3849b28f96db71913e8064beb53bb9b794c53c5660948539de86cec7235454a76038d9ad99b86a WHIRLPOOL 6d58e9cccf46def3956908fe7a6d2c72aa0b25de6e436ee5826f7405a73945ac63258067a093ec8fcc9b5a0c97ffdaad2808b0519f0e06feb62de80c221b3247
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-rpg/wastesedge/metadata.xml b/games-rpg/wastesedge/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-rpg/wastesedge/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-rpg/wastesedge/wastesedge-0.3.5-r1.ebuild b/games-rpg/wastesedge/wastesedge-0.3.5-r1.ebuild
new file mode 100644
index 000000000000..2f28fcfac7b9
--- /dev/null
+++ b/games-rpg/wastesedge/wastesedge-0.3.5-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1
+
+DESCRIPTION="role playing game to showcase the adonthell engine"
+HOMEPAGE="http://adonthell.linuxgames.com/"
+SRC_URI="https://savannah.nongnu.org/download/adonthell/${PN}-src-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="userpriv"
+
+RDEPEND="${PYTHON_DEPS}
+ >=games-rpg/adonthell-0.3.5-r2[${PYTHON_USEDEP}]
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_configure(){
+ econf \
+ $(use_enable nls) \
+ --with-adonthell-binary="/usr/bin/adonthell"
+}
+
+src_install(){
+ emake DESTDIR="${D}" pixmapdir=/usr/share/pixmaps install
+ dodoc AUTHORS ChangeLog NEWS PLAYING README
+ make_desktop_entry adonthell-wastesedge "Waste's Edge" wastesedge_32x32
+}
diff --git a/games-rpg/wastesedge/wastesedge-0.3.5.ebuild b/games-rpg/wastesedge/wastesedge-0.3.5.ebuild
new file mode 100644
index 000000000000..03434dcc8f9e
--- /dev/null
+++ b/games-rpg/wastesedge/wastesedge-0.3.5.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1 games
+
+DESCRIPTION="role playing game to showcase the adonthell engine"
+HOMEPAGE="http://adonthell.linuxgames.com/"
+SRC_URI="https://savannah.nongnu.org/download/adonthell/${PN}-src-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="userpriv"
+
+RDEPEND="${PYTHON_DEPS}
+ =games-rpg/adonthell-0.3.5-r1[${PYTHON_USEDEP}]
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ games_pkg_setup
+}
+
+src_configure(){
+ egamesconf \
+ $(use_enable nls) \
+ --with-adonthell-binary="${GAMES_BINDIR}/adonthell"
+}
+
+src_install(){
+ emake DESTDIR="${D}" pixmapdir=/usr/share/pixmaps install
+ dodoc AUTHORS ChangeLog NEWS PLAYING README
+ make_desktop_entry adonthell-wastesedge "Waste's Edge" wastesedge_32x32
+ prepgamesdirs
+}
diff --git a/games-rpg/xu4/Manifest b/games-rpg/xu4/Manifest
new file mode 100644
index 000000000000..ec8f2a18d991
--- /dev/null
+++ b/games-rpg/xu4/Manifest
@@ -0,0 +1,12 @@
+AUX 0.9-savegame.patch 1716 SHA256 037c9b842a54dab15b55a020aa62e993749cfa09a7530ce4f0b3b5916de3ee05 SHA512 b6484a2abc6b32933157cf3e7875d2863473bc863076efa3c4398dbd28cc037cbac2e376c5ce4bbd6c7fabdb2c0bc907be872e2167f6a00f4ca311ea8301ad77 WHIRLPOOL d4b88f394f8e6714b794006966c17c9f013d244afe5e2092039f3908177b4067c330c82757d4a0fc9b3d66470207f46bebea010fd88d1b10a8bb22cb9afd3211
+AUX xu4-0.9-ldflags.patch 1721 SHA256 47e68b383a1f965aa05f8dfcd015c064f7b0c289928d4e2f4ac8d35789096bf2 SHA512 1e0c3b8f6595f9b9f7fecda9264460cd67e289a7a0ba19fc181473546e3db4b2cadde825be46f27fdfec9b872fb6cb6ea8e474a890f25677b49b85093ffa957c WHIRLPOOL db78bf4b327522d28a6a2c34f373311f7b8e47a990cbe554c7242edd3b8c0b44f83eb4e0f6f4863bdde9328fbe166c1cec24e5fd079da10e99458e661212939d
+AUX xu4-0.9-warnings.patch 454 SHA256 b578ccf7d860281d7bcae48b816b4116ffdc55d4051377841ff00ab6c5176270 SHA512 0a92b7510789a55c712f8d9a2130ac4d9cdf6e2403201c258d24c121fdae6e0d932504677715bea062652ee6aff7b27ec6419c578cb5fe56406b1965c387b361 WHIRLPOOL ca80134861d5a08d820daa54bd6446a54b4ca942a314791fcc5c13774ac18b5cb106451dce3fdaa2cdc0a70a7e6373af413c3fa0c1039a5bb7c85c6e7b7ea08d
+AUX xu4-0.9-zip.patch 4980 SHA256 ac35017606c7812ea6851441be41ace71c2c1ba7ba287f029032a0fcb87850aa SHA512 b531fd545f1827cff61eec4f5b60bb9b98e4b907c02a9477c269f75e3cccaf1741189abe47a1dcac6205c3fffadff7b13e57bfd80e2ac771f38546ef7c21a85c WHIRLPOOL 30e7cb2f0e855e79621f135a644b713b57c72c52b88da90d7bb3a596610a62b2aab48676b6f1b3f56013782294735d5ad1d31f49d561d47d80620277b1b8ebe3
+DIST u4upgrad.zip 632072 SHA256 400ac37311f3be74c1b2d7836561b2ead2b146f5162586865b0f4881225cca58 SHA512 4832d8cfd266d3ccc5eab5184bd2b6b9acd4c0203478873fb5e11704d95104dd9285a7752bad77f873d4f8603673184ae9421964509b948ec69944a4ceadd083 WHIRLPOOL 3d9c320efe24b29edca1f0d917dcaad1da7c1c6246c753b2366ada81552f43113bd57f335ca79adf2283cdab6ba24bf0c09aeb7802a33d3fdec5e0bbe1782d01
+DIST ultima4-1.01.zip 537487 SHA256 ec84ef08e9e38156622300065aa62260276fc8f1c1ff2774f7916e7c10db40dc SHA512 c86c29d51e21b93992316552fbaaec948e7e8048fea484f003f43ac82211f82fa587fb15db991cddf744f2c3ff0fc4d411cd51cc7650e13a5b520c4dc620518c WHIRLPOOL f3acdc021449e3b55adc7d0ea967c8f77cdd813a0f9316042ae8e906eb105b6297f19efc90fffbd9be747bca7d6b0ea4b0bbdc1729c906076e89498558250155
+DIST xu4-0.9.tar.gz 320090 SHA256 26d7a957411e98474d3a06a0bf63a683208d3c35c0cf7afe90db992a934b0bf3 SHA512 6c0b27472074d96a5f76e024c800bed89c57c29dbd760278c819ad8b024362480bda5f1584eb9fe64fd6f6cae0b3b8d8571c8cf533f25b842471803acd7cea8d WHIRLPOOL 428ee87920850e16ce411e0a2bd1656a68a61644d96349bf727cbedd041e6fe3c8c134e960eaf5205d0d3f9deeccd9de23cab2186567fbd8c80b382ac5c9f812
+EBUILD xu4-0.9-r1.ebuild 1664 SHA256 40620aed727e2786d33ec86cbb395c3a96af816f5720316d6ee6dd7898a1680a SHA512 558b73be5403e28590790461f416cd7179dd57ea6303a5cc55de678eaefb9bb40f394a04bc1e836219f165eb172f6fddff15213fb17b344ff52032c635bb12c1 WHIRLPOOL 954226846ec2973f3e55d01bb1c34a96a3060897273e809f804d248486e423bf9d62c104a12e8cf0a8b091a66587ef9ec02043aa4f3e622bda84c4eea50b651d
+EBUILD xu4-0.9.ebuild 1668 SHA256 e2c5fa56701994882e81f793c274ceaea7fb0b07b467f4f8bf6a02f15480710f SHA512 ebb44b47fd229dd51d16eaa3ab781643342623d3f83b08871908f4be6b664ade40310ff7bde171c6e810cdded41d4df5d21ed355df71028f409b7ad4adfe5fa7 WHIRLPOOL 324a24052a0f8b0a84e710c1be8dacb4139aa6c68afef50c8cff2a611ed7158477406be79e55e6fbf51b45c3d93888ce363d400101b079f0c47e603eb7639f4c
+MISC ChangeLog 2884 SHA256 ee7ea9f7d60e9429799b9d72ee14514859ee3db20896bd985f51853b17cd6185 SHA512 c9f7ba0254c2d59f56b7af249891bad058053813b2b1ce3a971a4c30650a187c151ce94e84262c1ce832e3fb5f146743f543d8b1153374b6f3731dad2b94124c WHIRLPOOL c7059ded904016ddc6797a085162703f6285e240f4ccb8438dc694c9ba26ac0d7bffe2f5087e34b3a07f1b3b478ace86b0cc2fcbcf83728c878968b81df0a842
+MISC ChangeLog-2015 1524 SHA256 58fbaf770cd8d0d6cd59b6fa53a4dca14d71c42e8a3d0ffcf21e300b2cd26d1d SHA512 8284077b0e96e75fe46cde4f82fa85502c7a2614f81145be0c7f61d1e48441e1a17501df6d78a2ed126a04a3352773c7341d83a529bd468892f18065f5d7b81e WHIRLPOOL 7773d81936b0933646f419697d3ef1bd33ab6ae169f6a5ffe5888d8f461bd0aaa06967e93299d407c5658c9003c06bd1ebf2732ba3d4cd3c7254c99211b47dbc
+MISC metadata.xml 326 SHA256 af1ff43b8bb2f449ce3b742b226c002fc867c9c1170aaba5497ee8a658e44df8 SHA512 cdeb23df21e2a0ad4994adffe0ecf7fdca9fb886b6afc13483a80ffd481c9a031c2039894c86693b1ecf9652f882c2816e7091a3d6dd9ad76013b563e8780ec3 WHIRLPOOL c75c07e9c0f801ad68bf5d0b35c972f9d297dc95511c92b0d28966fbd338eece3f3e02366cda4810a0f6aa4ca3bb3de67ad9c9aa1a0cfe500100aae4f65f7007
diff --git a/games-rpg/xu4/files/0.9-savegame.patch b/games-rpg/xu4/files/0.9-savegame.patch
new file mode 100644
index 000000000000..96d16360f37c
--- /dev/null
+++ b/games-rpg/xu4/files/0.9-savegame.patch
@@ -0,0 +1,76 @@
+--- a/src/savegame.c.
++++ b/src/savegame.c
+@@ -21,23 +21,24 @@
+ char *partySavFilename() {
+ char *fname;
+
+-#if defined(MACOSX)
+ char *home;
+
+ home = getenv("HOME");
+ if (home && home[0]) {
+ fname = (char *) malloc(strlen(home) +
++#if defined(MACOSX)
+ strlen(MACOSX_USER_FILES_PATH) +
++#endif
++strlen("/.u4/") +
+ strlen(PARTY_SAV_BASE_FILENAME) + 2);
+ strcpy(fname, home);
++#if defined(MACOSX)
+ strcat(fname, MACOSX_USER_FILES_PATH);
+- strcat(fname, "/");
++#endif
++ strcat(fname, "/.u4/");
+ strcat(fname, PARTY_SAV_BASE_FILENAME);
+ } else
+ fname = strdup(PARTY_SAV_BASE_FILENAME);
+-#else
+- fname = strdup(PARTY_SAV_BASE_FILENAME);
+-#endif
+
+ return fname;
+ }
+@@ -45,24 +45,24 @@
+ char *monstersSavFilename() {
+ char *fname;
+
+-#if defined(MACOSX)
+ char *home;
+
+ home = getenv("HOME");
+ if (home && home[0]) {
+ fname = (char *) malloc(strlen(home) +
++#if defined(MACOSX)
+ strlen(MACOSX_USER_FILES_PATH) +
++#endif
++strlen("/.u4/") +
+ strlen(MONSTERS_SAV_BASE_FILENAME) + 2);
+ strcpy(fname, home);
++#if defined(MACOSX)
+ strcat(fname, MACOSX_USER_FILES_PATH);
+- strcat(fname, "/");
++#endif
++ strcat(fname, "/.u4/");
+ strcat(fname, MONSTERS_SAV_BASE_FILENAME);
+ } else
+ fname = strdup(MONSTERS_SAV_BASE_FILENAME);
+-#else
+- fname = strdup(MONSTERS_SAV_BASE_FILENAME);
+-#endif
+-
+ return fname;
+ }
+
+--- a/src/u4.c
++++ b/src/u4.c
+@@ -38,6 +38,10 @@
+ osxInit(argv[0]);
+ #endif
+
++ if (getenv("HOME")) {
++ chdir(getenv("HOME"));
++ mkdir(".u4", 0777);
++ }
+ settingsRead();
+
+ for (i = 1; i < (unsigned int)argc; i++) {
diff --git a/games-rpg/xu4/files/xu4-0.9-ldflags.patch b/games-rpg/xu4/files/xu4-0.9-ldflags.patch
new file mode 100644
index 000000000000..7f1e5cd922d7
--- /dev/null
+++ b/games-rpg/xu4/files/xu4-0.9-ldflags.patch
@@ -0,0 +1,35 @@
+--- a/src/Makefile.common
++++ b/src/Makefile.common
+@@ -68,25 +68,25 @@
+ mkutils:: dumpsavegame$(EXEEXT) lzwenc$(EXEEXT) lzwdec$(EXEEXT) rleenc$(EXEEXT) rledec$(EXEEXT) tlkconv$(EXEEXT)
+
+ $(MAIN): $(OBJS)
+- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
+
+ dumpsavegame$(EXEEXT) : util/dumpsavegame.o savegame.o io.o names.o
+- $(CC) $(CFLAGS) -o dumpsavegame util/dumpsavegame.o savegame.o io.o names.o
++ $(CC) $(LDFLAGS) $(CFLAGS) -o dumpsavegame util/dumpsavegame.o savegame.o io.o names.o
+
+ lzwenc$(EXEEXT) : util/lzwenc.o lzw/hash.o util/pngconv.o
+- $(CC) $(CFLAGS) -o lzwenc util/lzwenc.o lzw/hash.o util/pngconv.o -lpng -lz
++ $(CC) $(LDFLAGS) $(CFLAGS) -o lzwenc util/lzwenc.o lzw/hash.o util/pngconv.o -lpng -lz
+
+ lzwdec$(EXEEXT) : util/lzwdec.o lzw/lzw.o lzw/u4decode.o lzw/hash.o util/pngconv.o
+- $(CC) $(CFLAGS) -o lzwdec util/lzwdec.o lzw/lzw.o lzw/u4decode.o lzw/hash.o util/pngconv.o -lpng -lz
++ $(CC) $(LDFLAGS) $(CFLAGS) -o lzwdec util/lzwdec.o lzw/lzw.o lzw/u4decode.o lzw/hash.o util/pngconv.o -lpng -lz
+
+ rleenc$(EXEEXT) : util/rleenc.o util/pngconv.o
+- $(CC) $(CFLAGS) -o rleenc util/rleenc.o util/pngconv.o -lpng -lz
++ $(CC) $(LDFLAGS) $(CFLAGS) -o rleenc util/rleenc.o util/pngconv.o -lpng -lz
+
+ rledec$(EXEEXT) : util/rledec.o rle.o util/pngconv.o
+- $(CC) $(CFLAGS) -o rledec util/rledec.o rle.o util/pngconv.o -lpng -lz
++ $(CC) $(LDFLAGS) $(CFLAGS) -o rledec util/rledec.o rle.o util/pngconv.o -lpng -lz
+
+ tlkconv$(EXEEXT) : util/tlkconv.o
+- $(CC) $(CFLAGS) -o tlkconv util/tlkconv.o $(shell xml2-config --libs)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o tlkconv util/tlkconv.o $(shell xml2-config --libs)
+
+ clean:: cleanutil
+ rm -rf *~ */*~ $(OBJS) $(MAIN)
diff --git a/games-rpg/xu4/files/xu4-0.9-warnings.patch b/games-rpg/xu4/files/xu4-0.9-warnings.patch
new file mode 100644
index 000000000000..e52b610e61d4
--- /dev/null
+++ b/games-rpg/xu4/files/xu4-0.9-warnings.patch
@@ -0,0 +1,26 @@
+--- a/src/u4.c
++++ b/src/u4.c
+@@ -3,6 +3,8 @@
+ */
+
+ #include <stdio.h>
++#include <sys/stat.h>
++#include <sys/types.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
+ #include <string.h>
+--- a/u4.desktop
++++ b/u4.desktop
+@@ -1,9 +1,8 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+ Name=Ultima 4
+ Comment=Ultima 4 (xu4)
+ Exec=u4
+-Icon=u4.png
+-Terminal=0
++Icon=u4
++Terminal=false
+ Type=Application
+-Categories=Application;Game;RolePlaying;
++Categories=Game;RolePlaying;
diff --git a/games-rpg/xu4/files/xu4-0.9-zip.patch b/games-rpg/xu4/files/xu4-0.9-zip.patch
new file mode 100644
index 000000000000..a8d2c58971c9
--- /dev/null
+++ b/games-rpg/xu4/files/xu4-0.9-zip.patch
@@ -0,0 +1,144 @@
+--- a/src/unzip.c
++++ b/src/unzip.c
+@@ -493,7 +493,7 @@
+ /*
+ Get Info about the current file in the zipfile, with internal only info
+ */
+-local int unzlocal_GetCurrentFileInfoInternal OF((unzFile file,
++local int unzlocal_GetCurrentFileInfoInternal _Z_OF((unzFile file,
+ unz_file_info *pfile_info,
+ unz_file_info_internal
+ *pfile_info_internal,
+--- a/src/unzip.h
++++ b/src/unzip.h
+@@ -8,7 +8,7 @@
+ Encryption and multi volume ZipFile (span) are not supported.
+ Old compressions used by old PKZip 1.x are not supported
+
+- THIS IS AN ALPHA VERSION. AT THIS STAGE OF DEVELOPPEMENT, SOMES API OR STRUCTURE
++ THIS IS AN ALPHA VERSION. AT THIS STAGE _Z_OF DEVELOPPEMENT, SOMES API OR STRUCTURE
+ CAN CHANGE IN FUTURE VERSION !!
+ I WAIT FEEDBACK at mail info@winimage.com
+ Visit also http://www.winimage.com/zLibDll/unzip.htm for evolution
+@@ -111,7 +111,7 @@
+ tm_unz tmu_date;
+ } unz_file_info;
+
+-extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1,
++extern int ZEXPORT unzStringFileNameCompare _Z_OF ((const char* fileName1,
+ const char* fileName2,
+ int iCaseSensitivity));
+ /*
+@@ -124,7 +124,7 @@
+ */
+
+
+-extern unzFile ZEXPORT unzOpen OF((const char *path));
++extern unzFile ZEXPORT unzOpen _Z_OF((const char *path));
+ /*
+ Open a Zip file. path contain the full pathname (by example,
+ on a Windows NT computer "c:\\zlib\\zlib111.zip" or on an Unix computer
+@@ -135,14 +135,14 @@
+ of this unzip package.
+ */
+
+-extern int ZEXPORT unzClose OF((unzFile file));
++extern int ZEXPORT unzClose _Z_OF((unzFile file));
+ /*
+ Close a ZipFile opened with unzipOpen.
+ If there is files inside the .Zip opened with unzOpenCurrentFile (see later),
+ these files MUST be closed with unzipCloseCurrentFile before call unzipClose.
+ return UNZ_OK if there is no problem. */
+
+-extern int ZEXPORT unzGetGlobalInfo OF((unzFile file,
++extern int ZEXPORT unzGetGlobalInfo _Z_OF((unzFile file,
+ unz_global_info *pglobal_info));
+ /*
+ Write info about the ZipFile in the *pglobal_info structure.
+@@ -150,7 +150,7 @@
+ return UNZ_OK if there is no problem. */
+
+
+-extern int ZEXPORT unzGetGlobalComment OF((unzFile file,
++extern int ZEXPORT unzGetGlobalComment _Z_OF((unzFile file,
+ char *szComment,
+ uLong uSizeBuf));
+ /*
+@@ -163,20 +163,20 @@
+ /***************************************************************************/
+ /* Unzip package allow you browse the directory of the zipfile */
+
+-extern int ZEXPORT unzGoToFirstFile OF((unzFile file));
++extern int ZEXPORT unzGoToFirstFile _Z_OF((unzFile file));
+ /*
+ Set the current file of the zipfile to the first file.
+ return UNZ_OK if there is no problem
+ */
+
+-extern int ZEXPORT unzGoToNextFile OF((unzFile file));
++extern int ZEXPORT unzGoToNextFile _Z_OF((unzFile file));
+ /*
+ Set the current file of the zipfile to the next file.
+ return UNZ_OK if there is no problem
+ return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
+ */
+
+-extern int ZEXPORT unzLocateFile OF((unzFile file,
++extern int ZEXPORT unzLocateFile _Z_OF((unzFile file,
+ const char *szFileName,
+ int iCaseSensitivity));
+ /*
+@@ -189,7 +189,7 @@
+ */
+
+
+-extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,
++extern int ZEXPORT unzGetCurrentFileInfo _Z_OF((unzFile file,
+ unz_file_info *pfile_info,
+ char *szFileName,
+ uLong fileNameBufferSize,
+@@ -215,20 +215,20 @@
+ from it, and close it (you can close it before reading all the file)
+ */
+
+-extern int ZEXPORT unzOpenCurrentFile OF((unzFile file));
++extern int ZEXPORT unzOpenCurrentFile _Z_OF((unzFile file));
+ /*
+ Open for reading data the current file in the zipfile.
+ If there is no error, the return value is UNZ_OK.
+ */
+
+-extern int ZEXPORT unzCloseCurrentFile OF((unzFile file));
++extern int ZEXPORT unzCloseCurrentFile _Z_OF((unzFile file));
+ /*
+ Close the file in zip opened with unzOpenCurrentFile
+ Return UNZ_CRCERROR if all the file was read but the CRC is not good
+ */
+
+
+-extern int ZEXPORT unzReadCurrentFile OF((unzFile file,
++extern int ZEXPORT unzReadCurrentFile _Z_OF((unzFile file,
+ voidp buf,
+ unsigned len));
+ /*
+@@ -242,17 +242,17 @@
+ (UNZ_ERRNO for IO error, or zLib error for uncompress error)
+ */
+
+-extern z_off_t ZEXPORT unztell OF((unzFile file));
++extern z_off_t ZEXPORT unztell _Z_OF((unzFile file));
+ /*
+ Give the current position in uncompressed data
+ */
+
+-extern int ZEXPORT unzeof OF((unzFile file));
++extern int ZEXPORT unzeof _Z_OF((unzFile file));
+ /*
+ return 1 if the end of file was reached, 0 elsewhere
+ */
+
+-extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
++extern int ZEXPORT unzGetLocalExtrafield _Z_OF((unzFile file,
+ voidp buf,
+ unsigned len));
+ /*
diff --git a/games-rpg/xu4/metadata.xml b/games-rpg/xu4/metadata.xml
new file mode 100644
index 000000000000..4bc2f4a79c26
--- /dev/null
+++ b/games-rpg/xu4/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">xu4</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/xu4/xu4-0.9-r1.ebuild b/games-rpg/xu4/xu4-0.9-r1.ebuild
new file mode 100644
index 000000000000..69fd4ed87d0b
--- /dev/null
+++ b/games-rpg/xu4/xu4-0.9-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="A remake of the computer game Ultima IV"
+HOMEPAGE="http://xu4.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xu4/${P}.tar.gz
+ mirror://sourceforge/xu4/ultima4-1.01.zip
+ mirror://sourceforge/xu4/u4upgrad.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/libxml2
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer[timidity]"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/u4
+
+src_unpack() {
+ # xu4 will read the data files right out of the zip files
+ # but we want the docs from the original.
+ unpack ${P}.tar.gz
+ cp "${DISTDIR}"/{ultima4-1.01.zip,u4upgrad.zip} . || die
+ cd "${WORKDIR}" || die
+ mv ultima4-1.01.zip ultima4.zip || die
+ mkdir u4-dos || die
+ cd u4-dos || die
+ unzip -q ../ultima4.zip || die
+}
+
+PATCHES=(
+ "${FILESDIR}/${P}-ldflags.patch"
+ "${FILESDIR}/${PV}-savegame.patch"
+ "${FILESDIR}/${P}-warnings.patch"
+ "${FILESDIR}/${P}-zip.patch"
+)
+src_prepare() {
+ default
+
+ sed -i \
+ -e "s:/usr/local/lib/u4:/usr/$(get_libdir)/u4:" src/u4file.c \
+ || die
+ sed -i \
+ -e 's:-Wall:$(E_CFLAGS):' src/Makefile \
+ || die
+}
+
+src_compile() {
+ emake -C src \
+ DEBUGCFLAGS= \
+ E_CFLAGS="${CFLAGS}" \
+ bindir="/usr/bin" \
+ datadir="/usr/share" \
+ libdir="/usr/$(get_libdir)"
+}
+
+src_install() {
+ emake -C src \
+ DEBUGCFLAGS= \
+ E_CFLAGS="${CFLAGS}" \
+ bindir="${D}/usr/bin" \
+ datadir="${D}/usr/share" \
+ libdir="${D}/usr/$(get_libdir)" \
+ install
+ dodoc AUTHORS README doc/*txt "${WORKDIR}/u4-dos/ULTIMA4/"*TXT
+ insinto "/usr/$(get_libdir)/u4"
+ doins "${WORKDIR}/"*zip
+}
diff --git a/games-rpg/xu4/xu4-0.9.ebuild b/games-rpg/xu4/xu4-0.9.ebuild
new file mode 100644
index 000000000000..3822179cfa59
--- /dev/null
+++ b/games-rpg/xu4/xu4-0.9.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A remake of the computer game Ultima IV"
+HOMEPAGE="http://xu4.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xu4/${P}.tar.gz
+ mirror://sourceforge/xu4/ultima4-1.01.zip
+ mirror://sourceforge/xu4/u4upgrad.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+RDEPEND="dev-libs/libxml2
+ media-libs/sdl-mixer[timidity]
+ media-libs/libsdl[sound,video]"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/u4
+
+src_unpack() {
+ # xu4 will read the data files right out of the zip files
+ # but we want the docs from the original.
+ unpack ${P}.tar.gz
+ cp "${DISTDIR}"/{ultima4-1.01.zip,u4upgrad.zip} . || die
+ cd "${WORKDIR}"
+ mv ultima4-1.01.zip ultima4.zip
+ mkdir u4-dos
+ cd u4-dos
+ unzip -q ../ultima4.zip || die
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-savegame.patch" \
+ "${FILESDIR}"/${P}-ldflags.patch \
+ "${FILESDIR}"/${P}-zip.patch \
+ "${FILESDIR}"/${P}-warnings.patch
+ sed -i \
+ -e "s:/usr/local/lib/u4:$(games_get_libdir)/u4:" src/u4file.c \
+ || die
+ sed -i \
+ -e 's:-Wall:$(E_CFLAGS):' src/Makefile \
+ || die
+}
+
+src_compile() {
+ emake -C src \
+ DEBUGCFLAGS= \
+ E_CFLAGS="${CFLAGS}" \
+ bindir="${GAMES_BINDIR}" \
+ datadir="/usr/share" \
+ libdir="$(games_get_libdir)"
+}
+
+src_install() {
+ emake -C src \
+ DEBUGCFLAGS= \
+ E_CFLAGS="${CFLAGS}" \
+ bindir="${D}${GAMES_BINDIR}" \
+ datadir="${D}/usr/share" \
+ libdir="${D}$(games_get_libdir)" \
+ install
+ dodoc AUTHORS README doc/*txt "${WORKDIR}/u4-dos/ULTIMA4/"*TXT
+ insinto "$(games_get_libdir)/u4"
+ doins "${WORKDIR}/"*zip
+ prepgamesdirs
+}
diff --git a/games-rpg/zsdx/Manifest b/games-rpg/zsdx/Manifest
new file mode 100644
index 000000000000..a9ed542da5de
--- /dev/null
+++ b/games-rpg/zsdx/Manifest
@@ -0,0 +1,5 @@
+DIST zsdx-1.9.0.tar.gz 20757184 SHA256 140fb9b7de4937fdac6ff14d8339cc4314c7d4607339340fd17b520c4e87ae08 SHA512 2fc540d19856734050674945dd4903f254b325cab08ae0199722ae014447523ad9e979b54ddfd59d5cbc290b783481c79d5e155115c90f24feab5587d52804ee WHIRLPOOL 976c4b1c20480359383876054c5d3bebb94a13391bff02d6e81366e0bfddbe640678f738c8653999fa9db59d007bba1b5e7a27fca281df41c1547eebda67d084
+EBUILD zsdx-1.9.0.ebuild 1332 SHA256 5ad9c9eba99733a19fee23416df1593b02997fb369e7dda7ca7fc30eedd8812f SHA512 ac6c0f3b90d21389852ecea6afd12b806bd2a22baa41b3d757a3c5cc8bfd0bdda0c446851046547575aa00d964686745898e584881f166e757f48db888c92c86 WHIRLPOOL bef0b98d93dc0b49ab3befbe757ee3470e0d6186c30931b3be8d858c395a8f2ed063bd3391abaeee6a58002a89181713acd61d2df3748d052133b60b8f9d137c
+MISC ChangeLog 2812 SHA256 d1c3de818b09a1d671fd6bb2ca34f051eaaffb61f0aa7f96761aa1a8c7d2cfdb SHA512 8e165d426308105cba72f83b680fd54d97d4d5c316ba8b9d3fa0d58c747f268dc8d3759e6fe448cc3579534fa180c61ff18bed03f16330b94ec74a7e388758c6 WHIRLPOOL 26f295c268e61d4d71c82e46fe6c181ee404f207c7f0f5a2e78bf9ee0bc651445c07d80600306813d7e438d39c4d616ef83d04ccf06b7eb9f6575db4c38355d7
+MISC ChangeLog-2015 1689 SHA256 c7ee07214e1b92f51d557d3cb5766bee2c0e3e13822a7bb9c8ac3cdf49ae2a6b SHA512 5ce0c725f398c8e0a603c69f992d76173755bf2b45f5938f7bee7514172ef52728809702464c568a4ebc10c154edb5d714b8f593169f0d113f2ea212081ab4aa WHIRLPOOL 6a4a6e4d3e655d05a1faea50866703352ff588ee0e36fd70978e3d2586d4348d9e4dff906e6ccd948e3d78039ca26a73774ee7fe90906ddb0693d2b20fd4c87b
+MISC metadata.xml 333 SHA256 eaf87fab9d549d14186dc99147c342cf78eb5cd6850195953c2edcc0b9d53f0d SHA512 8135204b08f68188a8dc178b3083600e01a860b043cbc26415a111f6b23030cc067754dff74d77ac476e757caece3d44688f12126e81c17eaff74e4840f59ec9 WHIRLPOOL 568f63a9cef7245ee1539c74eebb8b93fc7f10326196b1b2c183aa74df7bdb2b94094f402cc1f1375ef0200ca3dcd26e7f686d9add576449232116886931ddd5
diff --git a/games-rpg/zsdx/metadata.xml b/games-rpg/zsdx/metadata.xml
new file mode 100644
index 000000000000..733429dcbd22
--- /dev/null
+++ b/games-rpg/zsdx/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">christopho/zsdx</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/zsdx/zsdx-1.9.0.ebuild b/games-rpg/zsdx/zsdx-1.9.0.ebuild
new file mode 100644
index 000000000000..03d8adc566db
--- /dev/null
+++ b/games-rpg/zsdx/zsdx-1.9.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils gnome2-utils games
+
+DESCRIPTION="A free 2D Zelda fangame"
+HOMEPAGE="http://www.solarus-games.org/"
+SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}.tar.gz"
+
+LICENSE="all-rights-reserved CC-BY-SA-3.0 GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="mirror"
+
+RDEPEND=">=games-engines/solarus-1.3.0
+ <games-engines/solarus-1.4.0"
+DEPEND="app-arch/zip"
+
+DOCS=( ChangeLog readme.txt )
+
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSOLARUS_INSTALL_DATAROOTDIR="${GAMES_DATADIR}"
+ -DSOLARUS_INSTALL_BINDIR="${GAMES_BINDIR}"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ newicon -s 48 build/icons/${PN}_icon_48.png ${PN}.png
+ newicon -s 256 build/icons/${PN}_icon_256.png ${PN}.png
+
+ # install proper wrapper script
+ rm -f "${ED%/}${GAMES_BINDIR}"/${PN}
+ games_make_wrapper ${PN} "solarus \"${GAMES_DATADIR}/solarus/${PN}\""
+
+ make_desktop_entry "${PN}" "Zelda: Mystery of Solarus DX"
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/zsxd/Manifest b/games-rpg/zsxd/Manifest
new file mode 100644
index 000000000000..9dcde7bbd686
--- /dev/null
+++ b/games-rpg/zsxd/Manifest
@@ -0,0 +1,6 @@
+DIST zsxd-1.9.0.tar.gz 3706125 SHA256 2ac95c1389706e989cd37b3ce75cb8c94e19832b6d138cd53abd490eb7fd8ff6 SHA512 cecb8b4ff40b7129bb516cf71e9bbbc92e10ace944c735eb2885dbf0e0b8adef80491c1874ee91efb2c9779b819d0217639fe85f9e3a085c980af6a2972e571e WHIRLPOOL b927e6d96c5201b7af48a8bee6b387a2a1c168525685753d363618a4e167510024f18ba70f097dfdb91938be6180b405dbed7f469f3f5133cdcf53532f6b3126
+EBUILD zsxd-1.9.0-r1.ebuild 1221 SHA256 0898ae25477838bdbe3bf1bdcab8b95505e8fb337cce7c1da603b2ad2db73515 SHA512 8ad18d02ef616549686d705f085f3d2145f37c03330e01e5021a6b4df6e57e1bf62cf815c1652429318d0adc1b1eef408e27335a66fb9acf35799682f9ae4f1f WHIRLPOOL a77e63459026555f6449bd3a6c451935fedeb53dc337db55f8f37362a7b07a63026d254ccab01f18526d3caf35cead4dee4ebbd585b4fad0a86d1295aa708d56
+EBUILD zsxd-1.9.0.ebuild 1279 SHA256 24ecc7ad1cea3fe09caae640343f99c2814257170218ac7e29c9023e85724f11 SHA512 900e46436db63dfb89746ba9dbb89454931c795118df48b0d7ec5fdc5d226beb3a88f9884546750b73602e78c6b8f5bdd10b6e9453012ee8507e0517c9241089 WHIRLPOOL 111f0f106e39155c3be36e095255fab71ba1aef9e6f05313ec12db58b4fa140c18ec7c02a2dc5a763de04dc607005827194c6e96dd8e4530d32cdfde31e23ed6
+MISC ChangeLog 3079 SHA256 3c43eb4ecc19503dcb2063084122f186336cb36fc28504f2d10f9379c97448d3 SHA512 d8251ed372cd5fad6c715844c480a52d78f84f285952403a7894941c317ffec3c0187705453e3829ceec1aa0b4b64a2a0a1a5406bffadd0c7a757938230c43ef WHIRLPOOL d5351d9a2f69aff6d2ca49874d1aa0cf2a9767bf399496bf6d3b70e376c75bfda885c0db5b0a4ec7b301fda7d97ec68985829b88b522bdff936e5a75906a4075
+MISC ChangeLog-2015 1848 SHA256 f1658466b181173e6a64561dae94242f32f702392a55dce3768852aeb64d4ba7 SHA512 17cdf602c10af7b6379f444988c2b9d28b1afef5adfee2799dd595660bb63b4684a740800634a65864b9f2a525db8bd89c7c05853bdbb219147fd447908e55e1 WHIRLPOOL c0c00971ad3b154ad4aed668bd97f2c31eb83b6a0cccc5be11ecf6cb2946b26da6df825cd8e0e8e0434372572212f7c54406f49734d2d837f1366671a1c5ea0d
+MISC metadata.xml 333 SHA256 ba0191c740fe22dd85e04be35ef1c8010abd5223b13377536a58d7bd320b69e6 SHA512 bb078fd150a98e9326870e54347db0f9962d1f00707d7dcae5814808946e1ca673c45073d9bf886d6cb1d456e3ece9a236c6bb1b8448c3b9d9ef583acdf731f4 WHIRLPOOL ecfe38ddc5a1d3477f062e039cb614d476c5900e44e414d36992311e0a7b695cb3ed467612fed9d0424a4ef0e8ea3250e2ed19f7e663e992734ee73dd2c2c8a4
diff --git a/games-rpg/zsxd/metadata.xml b/games-rpg/zsxd/metadata.xml
new file mode 100644
index 000000000000..742803c605cd
--- /dev/null
+++ b/games-rpg/zsxd/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">christopho/zsxd</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-rpg/zsxd/zsxd-1.9.0-r1.ebuild b/games-rpg/zsxd/zsxd-1.9.0-r1.ebuild
new file mode 100644
index 000000000000..76a8fc0fe7f1
--- /dev/null
+++ b/games-rpg/zsxd/zsxd-1.9.0-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils gnome2-utils cmake-utils
+
+DESCRIPTION="A free 2D Zelda fangame parody"
+HOMEPAGE="http://www.solarus-games.org/"
+SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}.tar.gz"
+
+LICENSE="all-rights-reserved CC-BY-SA-3.0 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror bindist"
+
+RDEPEND=">=games-engines/solarus-1.3.1-r1
+ <games-engines/solarus-1.4.0"
+DEPEND="app-arch/zip"
+
+DOCS=( ChangeLog readme.txt )
+
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSOLARUS_INSTALL_DATAROOTDIR="/usr/share"
+ -DSOLARUS_INSTALL_BINDIR="/usr/bin"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ newicon -s 48 build/icons/${PN}_icon_48.png ${PN}.png
+ newicon -s 256 build/icons/${PN}_icon_256.png ${PN}.png
+
+ # install proper wrapper script
+ rm -f "${ED%/}/usr/bin/${PN}
+ make_wrapper ${PN} "solarus \"/usr/share/solarus/${PN}\"
+
+ make_desktop_entry "${PN}" "Zelda: Mystery of Solarus XD"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
diff --git a/games-rpg/zsxd/zsxd-1.9.0.ebuild b/games-rpg/zsxd/zsxd-1.9.0.ebuild
new file mode 100644
index 000000000000..cef44d509ffa
--- /dev/null
+++ b/games-rpg/zsxd/zsxd-1.9.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils gnome2-utils cmake-utils games
+
+DESCRIPTION="A free 2D Zelda fangame parody"
+HOMEPAGE="http://www.solarus-games.org/"
+SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}.tar.gz"
+
+LICENSE="all-rights-reserved CC-BY-SA-3.0 GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="mirror bindist"
+
+RDEPEND="=games-engines/solarus-1.3.1"
+DEPEND="app-arch/zip"
+
+DOCS=( ChangeLog readme.txt )
+
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSOLARUS_INSTALL_DATAROOTDIR="${GAMES_DATADIR}"
+ -DSOLARUS_INSTALL_BINDIR="${GAMES_BINDIR}"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ newicon -s 48 build/icons/${PN}_icon_48.png ${PN}.png
+ newicon -s 256 build/icons/${PN}_icon_256.png ${PN}.png
+
+ # install proper wrapper script
+ rm -f "${ED%/}${GAMES_BINDIR}"/${PN}
+ games_make_wrapper ${PN} "solarus \"${GAMES_DATADIR}/solarus/${PN}\""
+
+ make_desktop_entry "${PN}" "Zelda: Mystery of Solarus XD"
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}