summaryrefslogtreecommitdiff
path: root/games-engines
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-engines
reinit the tree, so we can have metadata
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/exult/Manifest4
-rw-r--r--games-engines/exult/exult-9999.ebuild59
-rw-r--r--games-engines/exult/metadata.xml11
-rw-r--r--games-engines/frobtads/Manifest8
-rw-r--r--games-engines/frobtads/frobtads-1.2.2.ebuild47
-rw-r--r--games-engines/frobtads/frobtads-1.2.3-r1.ebuild47
-rw-r--r--games-engines/frobtads/frobtads-1.2.3.ebuild48
-rw-r--r--games-engines/frobtads/metadata.xml12
-rw-r--r--games-engines/frotz/Manifest8
-rw-r--r--games-engines/frotz/files/frotz-2.43-glibc2.10.patch29
-rw-r--r--games-engines/frotz/files/frotz-2.43-ldflags.patch20
-rw-r--r--games-engines/frotz/frotz-2.43-r1.ebuild52
-rw-r--r--games-engines/frotz/frotz-2.43.ebuild50
-rw-r--r--games-engines/frotz/metadata.xml11
-rw-r--r--games-engines/gargoyle/Manifest6
-rw-r--r--games-engines/gargoyle/files/gargoyle-2011.1-desktopfile.patch31
-rw-r--r--games-engines/gargoyle/gargoyle-2011.1.ebuild123
-rw-r--r--games-engines/gargoyle/metadata.xml11
-rw-r--r--games-engines/gemrb/Manifest6
-rw-r--r--games-engines/gemrb/gemrb-0.8.3-r1.ebuild72
-rw-r--r--games-engines/gemrb/gemrb-0.8.3.ebuild79
-rw-r--r--games-engines/gemrb/metadata.xml11
-rw-r--r--games-engines/love/Manifest9
-rw-r--r--games-engines/love/files/love-0.8.0-freetype2.patch34
-rw-r--r--games-engines/love/love-0.7.2-r1.ebuild43
-rw-r--r--games-engines/love/love-0.8.0.ebuild54
-rw-r--r--games-engines/love/love-9999.ebuild57
-rw-r--r--games-engines/love/metadata.xml12
-rw-r--r--games-engines/metadata.xml32
-rw-r--r--games-engines/nazghul/Manifest6
-rw-r--r--games-engines/nazghul/metadata.xml11
-rw-r--r--games-engines/nazghul/nazghul-0.7.1-r1.ebuild43
-rw-r--r--games-engines/nazghul/nazghul-0.7.1.ebuild47
-rw-r--r--games-engines/odamex/Manifest11
-rw-r--r--games-engines/odamex/files/1-odamex-0.7.0-install-rules.patch89
-rw-r--r--games-engines/odamex/files/2-odamex-0.7.0-cmake-options.patch110
-rw-r--r--games-engines/odamex/files/3-odamex-0.7.0-wad-search-path.patch67
-rw-r--r--games-engines/odamex/files/4-odamex-0.7.0-odalauncher-bin-path.patch58
-rw-r--r--games-engines/odamex/files/odamex-0.7.0-gcc6.patch39
-rw-r--r--games-engines/odamex/files/odamex-0.7.0-miniupnpc.patch35
-rw-r--r--games-engines/odamex/metadata.xml38
-rw-r--r--games-engines/odamex/odamex-0.7.0.ebuild116
-rw-r--r--games-engines/openmw/Manifest5
-rw-r--r--games-engines/openmw/metadata.xml26
-rw-r--r--games-engines/openmw/openmw-0.41.0.ebuild134
-rw-r--r--games-engines/openxcom/Manifest7
-rw-r--r--games-engines/openxcom/metadata.xml11
-rw-r--r--games-engines/openxcom/openxcom-1.0.0-r1.ebuild65
-rw-r--r--games-engines/openxcom/openxcom-1.0.0.ebuild72
-rw-r--r--games-engines/openxcom/openxcom-9999.ebuild75
-rw-r--r--games-engines/qtads/Manifest5
-rw-r--r--games-engines/qtads/metadata.xml11
-rw-r--r--games-engines/qtads/qtads-2.1.7.ebuild51
-rw-r--r--games-engines/renpy/Manifest14
-rw-r--r--games-engines/renpy/files/renpy-6.17.7-multiple-abi.patch245
-rw-r--r--games-engines/renpy/files/renpy-6.99.12.4-compat-infinite-loop.patch42
-rw-r--r--games-engines/renpy/files/renpy-6.99.12.4-compat-style.patch43
-rw-r--r--games-engines/renpy/files/renpy-6.99.12.4-compat-window.patch51
-rw-r--r--games-engines/renpy/files/renpy-6.99.12.4-multiple-abi.patch357
-rw-r--r--games-engines/renpy/files/renpy.1163
-rw-r--r--games-engines/renpy/metadata.xml30
-rw-r--r--games-engines/renpy/renpy-6.17.7.ebuild110
-rw-r--r--games-engines/renpy/renpy-6.99.12.4-r1.ebuild116
-rw-r--r--games-engines/renpy/renpy-6.99.12.4-r3.ebuild108
-rw-r--r--games-engines/residualvm/Manifest6
-rw-r--r--games-engines/residualvm/metadata.xml11
-rw-r--r--games-engines/residualvm/residualvm-0.2.1-r1.ebuild81
-rw-r--r--games-engines/residualvm/residualvm-0.2.1.ebuild88
-rw-r--r--games-engines/scummvm-tools/Manifest7
-rw-r--r--games-engines/scummvm-tools/files/scummvm-tools-1.8.0-binprefix.patch11
-rw-r--r--games-engines/scummvm-tools/metadata.xml11
-rw-r--r--games-engines/scummvm-tools/scummvm-tools-1.8.0-r1.ebuild58
-rw-r--r--games-engines/scummvm-tools/scummvm-tools-1.8.0.ebuild57
-rw-r--r--games-engines/scummvm/Manifest9
-rw-r--r--games-engines/scummvm/metadata.xml16
-rw-r--r--games-engines/scummvm/scummvm-1.8.0.ebuild109
-rw-r--r--games-engines/scummvm/scummvm-1.8.1-r1.ebuild107
-rw-r--r--games-engines/scummvm/scummvm-1.9.0.ebuild102
-rw-r--r--games-engines/solarus/Manifest6
-rw-r--r--games-engines/solarus/metadata.xml15
-rw-r--r--games-engines/solarus/solarus-1.3.1-r1.ebuild54
-rw-r--r--games-engines/solarus/solarus-1.3.1.ebuild55
-rw-r--r--games-engines/stratagus/Manifest9
-rw-r--r--games-engines/stratagus/files/stratagus-2.3.0-debug.patch19
-rw-r--r--games-engines/stratagus/files/stratagus-2.3.0-doc.patch11
-rw-r--r--games-engines/stratagus/metadata.xml15
-rw-r--r--games-engines/stratagus/stratagus-2.3.0.ebuild71
-rw-r--r--games-engines/stratagus/stratagus-2.4.1.ebuild69
-rw-r--r--games-engines/xzip/Manifest6
-rw-r--r--games-engines/xzip/metadata.xml8
-rw-r--r--games-engines/xzip/xzip-1.8.2-r2.ebuild33
-rw-r--r--games-engines/xzip/xzip-1.8.2-r3.ebuild31
-rw-r--r--games-engines/zoom/Manifest6
-rw-r--r--games-engines/zoom/metadata.xml8
-rw-r--r--games-engines/zoom/zoom-1.1.5-r1.ebuild28
-rw-r--r--games-engines/zoom/zoom-1.1.5.ebuild29
96 files changed, 4543 insertions, 0 deletions
diff --git a/games-engines/exult/Manifest b/games-engines/exult/Manifest
new file mode 100644
index 000000000000..cc0d642d16db
--- /dev/null
+++ b/games-engines/exult/Manifest
@@ -0,0 +1,4 @@
+EBUILD exult-9999.ebuild 1415 SHA256 7dde1c430a483f8c25bb5690f057abe6fb9d5e02fb4f97cf9f70e65da621ca17 SHA512 7d69f55f767108938dd242ce837a72fd39105607602fb4d2adfff5277aedb8927b97bccf1d6a73d9c78715ce68ad3ef3abd255d2415e1ec5ffe957c7a38d0acc WHIRLPOOL fd8b9a85f4c7b4a4a1c3395ad772e96f7746babaf7a0eb8f7f253878f128914ca3023f2f0011f42f4175230ad9aca6f9e1038a663c153bc247ebc750fe97f46d
+MISC ChangeLog 2970 SHA256 813e0f86e7e1a7d62e5761401fd35981a3293ae3394dc8d634e11ead7f16e6df SHA512 6e2768953de867e2d772916c87db75cc7884776967d7cb89dd1ae4bc483161b4aa95df6d03e644bca4f079c18212f409cb2ade0df396a7c1a017e881e670429c WHIRLPOOL 2c97414481a83ecd44e17b444815ac7b9f536b8fbeeebc9c37086a6647c68c8da63d1140e29fc119b648f9183bbf581b1e485a161ceba56094dd49060ea19dd2
+MISC ChangeLog-2015 4977 SHA256 72015aada4d390f5c4f00bb4bceaafa07f6c7cc1879f193ffa18bbac43895537 SHA512 756ab573775a3c76ff786b6df1e7ff4c46e099ab7521c247c0ea037c5b1d46f4baddf86190844e378bd22b370ca37b99d46286abd421c6592c68460c08b8d160 WHIRLPOOL aa5100ecf1308b49c00fe244046c1fb2b7a7c0725a392fe54e3267aa6b7c9aa7066201e13e3ca4d7384609df2f9356b83b2f381877bb284610e39ae67c186cab
+MISC metadata.xml 328 SHA256 c469e2687500a789f5d8ca6f3fb6c611b8f46b2a0ca6f1684af6d06aadb94df9 SHA512 bf9ebdd6a99230e6cb155d0dc42b0d94aa1d15b64afc93420210b6763a46a4c8ab3f18cbc83e54068dc7c62df73baf28ee3cbc13a34c7824a724041ac13be16e WHIRLPOOL 2655b22826ed218ef80f224e86748fe8e290b61657243c06b652f6ed055f7130f198b60bbf8ac2392a9a251191b54710d78288cd790a2511a7081c2de3226894
diff --git a/games-engines/exult/exult-9999.ebuild b/games-engines/exult/exult-9999.ebuild
new file mode 100644
index 000000000000..81e6b1ed1572
--- /dev/null
+++ b/games-engines/exult/exult-9999.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+ESVN_REPO_URI="https://svn.code.sf.net/p/exult/code/exult/trunk/"
+inherit autotools multilib eutils subversion games
+
+DESCRIPTION="an Ultima 7 game engine that runs on modern operating systems"
+HOMEPAGE="http://exult.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="timidity zlib"
+
+DEPEND=">=media-libs/libpng-1.2.43-r2:0
+ games-misc/exult-sound
+ media-libs/libsdl[sound,video,X]
+ timidity? ( >=media-sound/timidity++-2 )
+ zlib? ( sys-libs/zlib )"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${P/_/}
+
+src_unpack() {
+ subversion_src_unpack
+}
+
+src_prepare() {
+ subversion_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ --x-libraries="/usr/$(get_libdir)" \
+ --disable-tools \
+ --disable-opengl \
+ --enable-mods \
+ --with-desktopdir=/usr/share/applications \
+ --with-icondir=/usr/share/pixmaps \
+ $(use_enable timidity timidity-midi) \
+ $(use_enable zlib zip-support)
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog NEWS FAQ README README.1ST" \
+ default
+ # no need for this directory for just playing the game
+ #rm -rf "${D}${GAMES_DATADIR}/${PN}/estudio"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "You *must* have the original Ultima7 The Black Gate and/or"
+ elog "The Serpent Isle installed."
+ elog "See documentation in /usr/share/doc/${PF} for information."
+}
diff --git a/games-engines/exult/metadata.xml b/games-engines/exult/metadata.xml
new file mode 100644
index 000000000000..c1a873a06ee8
--- /dev/null
+++ b/games-engines/exult/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">exult</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-engines/frobtads/Manifest b/games-engines/frobtads/Manifest
new file mode 100644
index 000000000000..ea57ccc6ed89
--- /dev/null
+++ b/games-engines/frobtads/Manifest
@@ -0,0 +1,8 @@
+DIST frobtads-1.2.2.tar.gz 5213193 SHA256 f2802f6b8b2fb1e2a2c46cdec92b32e7135b6aceb3054a588eb9ebb9434a186e SHA512 14c0c8a624632b00a7615e643f592eac2d6a0a523f9e019527e9ae8f04402cc4ee1568417bacbfdfd31df6452536a65e012ba0f0d3cced8ba6901988e7a5bc42 WHIRLPOOL ffdd10df65bdd11512c115d8ef0a9a990fa31220628b437eb351eddd2a260fd51d838096cd9860c737861f941e18c148b85a15388c2544e047f6f2ef589ae9b3
+DIST frobtads-1.2.3.tar.gz 5227704 SHA256 88c6a987813d4be1420a1c697e99ecef4fa9dd9bc922be4acf5a3054967ee788 SHA512 4efb888860edda24bb5a5812967d0b863614558e9839cf0cfabc649ab0175719bf663de5e725034ba160c015d269dbe2df046cf47ad1019e668bf5b1fb564d7d WHIRLPOOL 47f23a3d8adbaea2c450c794923a23c516db7aecc1334aa2907dca77c2dabfd3a9707a9b7a3c1bd06cac3df648a33a9543ad1f3401eeb45d765ac845a76884bb
+EBUILD frobtads-1.2.2.ebuild 1081 SHA256 b56b5d85866d7329621397fc8fecf33a48fb93c62aeb7d08cf356d3679ce2a12 SHA512 cdc720ad1c3d10c4019b5c2c889de7d9871d742c807e39f6c1dfe5dc87e11dd7a96635d191e8c640e41755060cec1a54b5351ca979beaab1f3cfe9cf7eb6a646 WHIRLPOOL b7bb774ba19fc571762fd39087dde9c406de3c2938fb0fb899212e28c7cec868df6456f6d0139434ca22c92c40e26ad9956fb651a873b2119912d14e90db4d83
+EBUILD frobtads-1.2.3-r1.ebuild 1092 SHA256 45ad60b06b69e78beded4b6cbaf4d82b34ee4bb3447bc5b62d9608dea0f66657 SHA512 51c18855aadd6577a9b792e407e675b572c5b09fce42aca9b608a03bf42173b48b96184e623175bde857d51068e9c288eaf40dcd98cecb41cf93c71d81526264 WHIRLPOOL 024e2638a98abc95485b54f650607c091c98c0491ef335ba92a04fd8969a239c76d804059b0fe354676e6b39acc142686284c699b4e3ca06eef49d6eab242980
+EBUILD frobtads-1.2.3.ebuild 1116 SHA256 cd87d91502dc94230a054ae333191341d53579bbff5bee9ef2e978c8dd7141df SHA512 a905d0ef2b513523eb31417e5a610cf3aec077a16d3b14e8952ae5fa7995f8328af5ef1a8c2306fed40d5c31410b245a6821e7b860d9f1c7582ed82833c4ba0d WHIRLPOOL b0f3d9ed3a3aa3b1564ee7d189421173973b706fd0a8f770c667c01e7d586df46f55b8b4e02f15b6add04af9192df40a532ff7f509e3e58ca4ef41655a017916
+MISC ChangeLog 3439 SHA256 9d9da59e461c492308879070cbab5b9118d5c7c40fb6920e835bc79c3439c1eb SHA512 854927b2a57ea125cc3f5abff4582206ef323ad839c84d1582df8b0a10bbe89fb8121ed71101f722404f585801d59b6382272af76ba34c83e4ee53d7085b1a60 WHIRLPOOL cafbda3e64473a740970c6254f49a7457c51bb26be06d3bda95c4a9861f47c4f070e56b3bd9948d366df64c56b1baf652443b45d5190b1c570305104196c4d8b
+MISC ChangeLog-2015 1935 SHA256 d74a9eb7a02dac09476cd40fe91da2845d0080f5b61fe507b0ef2648c349449b SHA512 a2614eb1255997352409beb0b448ad90d016eea658332934a5637577fbb1e23efab15b54842a34bcbf7a58594d6c2da7f8f6d4261036e3390bd129ce388393fa WHIRLPOOL f0b5098e199f0398bcc004e3e9ff21212fb9821cb1b690c0cdadd19e6eb5cc6c8906b80b58e9089903a492cecb897cbf681710966d4bd49970e7d35db83cdd07
+MISC metadata.xml 394 SHA256 6219311c611d6a883ee4ac231c3b37152140bc01621cd5157c4877716444febb SHA512 591c0df18a2e4e1469e1f95dce9c74f3b66261377b88ec9dde79c56094253a5579427a2fa836fb1c2926344b95a471b7d13bda4a53f4c6a064b06c61d89e1ab3 WHIRLPOOL dfac2316742ac33589be118d65fc9e19d9939221ce5303ca697c5b657904235bca7fb89a06b3056b08560d7d8c32e82354ff1631abf412947200186caff7029d
diff --git a/games-engines/frobtads/frobtads-1.2.2.ebuild b/games-engines/frobtads/frobtads-1.2.2.ebuild
new file mode 100644
index 000000000000..af7561faf323
--- /dev/null
+++ b/games-engines/frobtads/frobtads-1.2.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic games
+
+DESCRIPTION="Curses-based interpreter and development tools for TADS 2 and TADS 3 text adventures"
+HOMEPAGE="http://www.tads.org/frobtads.htm"
+SRC_URI="http://www.tads.org/frobtads/${P}.tar.gz"
+
+LICENSE="TADS2 TADS3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug tads2compiler tads3compiler"
+
+RESTRICT="!tads3compiler? ( test )"
+
+RDEPEND="net-misc/curl
+ sys-libs/ncurses:0"
+DEPEND=${RDEPEND}
+
+DOCS=( doc/{AUTHORS,BUGS,ChangeLog.old,NEWS,README,SRC_GUIDELINES,THANKS} )
+
+src_configure() {
+ append-cxxflags -fpermissive
+ egamesconf \
+ $(use_enable debug t3debug) \
+ $(use_enable debug error-checking) \
+ $(use_enable tads2compiler t2-compiler) \
+ $(use_enable tads3compiler t3-compiler)
+}
+
+src_test() {
+ emake -j1 sample
+ ./frob -i plain -p samples/sample.t3 <<- END_FROB_TEST
+ save
+ testsave.sav
+ restore
+ testsave.sav
+ END_FROB_TEST
+ [[ $? -eq 0 ]] || die "Failed to run test game"
+}
+
+src_install() {
+ default
+ prepgamesdirs
+}
diff --git a/games-engines/frobtads/frobtads-1.2.3-r1.ebuild b/games-engines/frobtads/frobtads-1.2.3-r1.ebuild
new file mode 100644
index 000000000000..e52f20f44bb3
--- /dev/null
+++ b/games-engines/frobtads/frobtads-1.2.3-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 flag-o-matic
+
+DESCRIPTION="Curses-based interpreter and development tools for TADS 2 and TADS 3 text adventures"
+HOMEPAGE="http://www.tads.org/frobtads.htm"
+SRC_URI="http://www.tads.org/frobtads/${P}.tar.gz"
+
+LICENSE="TADS2 TADS3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug tads2compiler tads3compiler"
+
+RESTRICT="!tads3compiler? ( test )"
+
+RDEPEND="net-misc/curl
+ sys-libs/ncurses:0"
+DEPEND=${RDEPEND}
+
+DOCS=( doc/{AUTHORS,BUGS,ChangeLog.old,NEWS,README,SRC_GUIDELINES,THANKS} )
+
+src_configure() {
+ append-cxxflags -fpermissive
+ append-libs $(curl-config --libs)
+ econf \
+ $(use_enable debug error-checking) \
+ $(use_enable debug t3debug) \
+ $(use_enable tads2compiler t2-compiler) \
+ $(use_enable tads3compiler t3-compiler)
+}
+
+src_test() {
+ emake -j1 sample
+ ./frob -i plain -p samples/sample.t3 <<- END_FROB_TEST
+ save
+ testsave.sav
+ restore
+ testsave.sav
+ END_FROB_TEST
+ [[ $? -eq 0 ]] || die "Failed to run test game"
+}
+
+src_install() {
+ default
+}
diff --git a/games-engines/frobtads/frobtads-1.2.3.ebuild b/games-engines/frobtads/frobtads-1.2.3.ebuild
new file mode 100644
index 000000000000..c1eb578a9623
--- /dev/null
+++ b/games-engines/frobtads/frobtads-1.2.3.ebuild
@@ -0,0 +1,48 @@
+# 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="Curses-based interpreter and development tools for TADS 2 and TADS 3 text adventures"
+HOMEPAGE="http://www.tads.org/frobtads.htm"
+SRC_URI="http://www.tads.org/frobtads/${P}.tar.gz"
+
+LICENSE="TADS2 TADS3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug tads2compiler tads3compiler"
+
+RESTRICT="!tads3compiler? ( test )"
+
+RDEPEND="net-misc/curl
+ sys-libs/ncurses:0"
+DEPEND=${RDEPEND}
+
+DOCS=( doc/{AUTHORS,BUGS,ChangeLog.old,NEWS,README,SRC_GUIDELINES,THANKS} )
+
+src_configure() {
+ append-cxxflags -fpermissive
+ append-libs $(curl-config --libs)
+ egamesconf \
+ $(use_enable debug t3debug) \
+ $(use_enable debug error-checking) \
+ $(use_enable tads2compiler t2-compiler) \
+ $(use_enable tads3compiler t3-compiler)
+}
+
+src_test() {
+ emake -j1 sample
+ ./frob -i plain -p samples/sample.t3 <<- END_FROB_TEST
+ save
+ testsave.sav
+ restore
+ testsave.sav
+ END_FROB_TEST
+ [[ $? -eq 0 ]] || die "Failed to run test game"
+}
+
+src_install() {
+ default
+ prepgamesdirs
+}
diff --git a/games-engines/frobtads/metadata.xml b/games-engines/frobtads/metadata.xml
new file mode 100644
index 000000000000..89569b770284
--- /dev/null
+++ b/games-engines/frobtads/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="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="tads2compiler">Build TADS2 compiler</flag>
+ <flag name="tads3compiler">Build TADS3 compiler</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-engines/frotz/Manifest b/games-engines/frotz/Manifest
new file mode 100644
index 000000000000..827f93b0f158
--- /dev/null
+++ b/games-engines/frotz/Manifest
@@ -0,0 +1,8 @@
+AUX frotz-2.43-glibc2.10.patch 859 SHA256 1c8c487a4b4492adabab6551941ba621b2880cf8173aeef3002b20ae1c96db3b SHA512 467477b2740667b1f8356845f7ec30a8318120313dc2bbfa2bcbde2c9cde77269349b6e7076397a7c837d9a1e72aa8fe59007fd73bd0de14b6c8244514fb81d2 WHIRLPOOL b5960ec6f44187964329155f2c61f5dcb64b7e65a820570cbfa328796ad883017254b548926d6144b11a796e781339bb0355b05879a44637cd58cd649abddca5
+AUX frotz-2.43-ldflags.patch 665 SHA256 af72e5c23a41714e8f1a5a1c14e429c01aa49ab90b06a490fd1a9a7db32ba373 SHA512 9d750679169daa67fcd6580edd5dd53f80ab490e2637d524be9525f99764b5203242a9f9e93262d9c1abcc6d62b994f7d943040931b30ab2ce1ac9a6b772e107 WHIRLPOOL 1bf83d6f6333eb75e6da3e1dc507c5c8b261c5c6fc99e94251d65f2d95626f6c773cadb2fa7982d6239d1e6384256b57e10bce11bc0c8b170d295dfaff748dbf
+DIST frotz-2.43.tar.gz 160771 SHA256 f831eae9182e4a1407a34cb1098a4f5ad5ad6c6632e34eed734b9601a06a764b SHA512 654f2ca2d1a625df8f88b5629e09a873668cea42688acdf154636b066b94fc9d70b7f45acb33a71d234c19b59c394c63aee38d6224245b3b329210e6b4a58409 WHIRLPOOL af75842ed8693895d564cbaa4fa3d7b095a4470101728179a7d8659876e1043d98274330d2f7efbe0fd1443ea68ad2fcb49efe4b3e6a6dede6f3e9f4e574de5c
+EBUILD frotz-2.43-r1.ebuild 1075 SHA256 f46ef6ba88890ad3957f545a75b6045962e20402bd0b9e787692f45e67830d95 SHA512 00953652ed45fe80f9332758e5399afbbb479d2ef74f1e4e50e7eddda4566e57b4aaf2d51649f792f91abc75a580b8e3ccd677a3fc9bf1af5f07f2c710ad7e16 WHIRLPOOL aab4b98a71b3ebb786a51877f40adc05b72347b29fb26962efffdb7a3c25ba910f30959c5848fca5bf596e20c2ab730313107a983b8d2c7710246a5f31a1bc9d
+EBUILD frotz-2.43.ebuild 1140 SHA256 1c6f50bbeb85e64111fc5c22fcd0f0a49779c0fc08131e5d8c26c2b2ce9e86bf SHA512 303517a1b49ad434885169a76a8326ed1fbc44bd8237c8328efc09e420dd03dc00975e91ae3a546a0f71aaa88509c6fbadc00c10c3d118dcba6dedac2130343d WHIRLPOOL 7a25c98e868e07317a469b44604c5aa2fb2c88909961ccddaacaef060f66191d79d150357578ac3992ae46c3638a3aaf1b05e115e338b3d6cc21579ef9255324
+MISC ChangeLog 3502 SHA256 1aee9449d57afe65088a80bdbb1684c4024aef29050e338d38f5832da6a63748 SHA512 b8b551ead611c67e0af1f415c64b5563872d02063c6da714f722e3dd4555d12e5ac49cebe384c8be43b9b96f442fa22276037a4dde875a8ac31569997806f9e9 WHIRLPOOL 58ad4231252dcc0559195337cec7fd2d343e3ad5fb0fef0df69b2c34d4e74715be2fa70e11dc786ab6216af40c6f6e8bc42b3ea44813503446e246ce91406e14
+MISC ChangeLog-2015 2665 SHA256 9bdd16e732f5182f3d36aac132b95b5bcd2ab6dfbcb9fd6c688d71834a18f284 SHA512 c1e47290e4db029c074a90288360af95afc8deca08f12024d78d8e290f4ecd7bdae3c1f91ec786205ceb1015d10183878d76f14607f3f4bc974bac16688f354a WHIRLPOOL 4ab95a72f7ef5e16366dc54a092784e2572228c294d792c1a3a376ec0175560e9d30c4c9900eaf63b728bbc0ccafaf37590c9f29ff3ea86faf96524f7206e387
+MISC metadata.xml 328 SHA256 5909fede921421cda889a61c578ac47a0126135b24336833e5d900cbf3fdce4d SHA512 37fcc943d9d2700b5d88e71666af1a3ebe5baf905095d864066ebe20ac7edd54bfcafacc31684ae1eeed5197096cecbfec57c01ff5be1b567af1cc21c7294d6a WHIRLPOOL 251535805a826ec2e64b8d6d0811d532799dfdd265389939a372ee8e8a171d8af11f03be90ca561015a335d4e2f72188f82a39aceb1d72f920ed121af6d7cff5
diff --git a/games-engines/frotz/files/frotz-2.43-glibc2.10.patch b/games-engines/frotz/files/frotz-2.43-glibc2.10.patch
new file mode 100644
index 000000000000..3f2639ec47d0
--- /dev/null
+++ b/games-engines/frotz/files/frotz-2.43-glibc2.10.patch
@@ -0,0 +1,29 @@
+--- a/src/dumb/dumb_input.c
++++ b/src/dumb/dumb_input.c
+@@ -79,7 +79,7 @@
+ /* Read one line, including the newline, into s. Safely avoids buffer
+ * overruns (but that's kind of pointless because there are several
+ * other places where I'm not so careful). */
+-static void getline(char *s)
++static void get_line(char *s)
+ {
+ int c;
+ char *p = s;
+@@ -203,7 +203,7 @@
+ fputs(prompt, stdout);
+ else
+ dumb_show_prompt(show_cursor, (timeout ? "tTD" : ")>}")[type]);
+- getline(s);
++ get_line(s);
+ if ((s[0] != '\\') || ((s[1] != '\0') && !islower(s[1]))) {
+ /* Is not a command line. */
+ translate_special_chars(s);
+@@ -265,7 +265,7 @@
+ if (!*current_page)
+ break;
+ printf("HELP: Type <return> for more, or q <return> to stop: ");
+- getline(s);
++ get_line(s);
+ if (!strcmp(s, "q\n"))
+ break;
+ }
diff --git a/games-engines/frotz/files/frotz-2.43-ldflags.patch b/games-engines/frotz/files/frotz-2.43-ldflags.patch
new file mode 100644
index 000000000000..c8b4e35eee20
--- /dev/null
+++ b/games-engines/frotz/files/frotz-2.43-ldflags.patch
@@ -0,0 +1,20 @@
+--- a/Makefile 2010-10-04 14:13:37.000000000 +0200
++++ b/Makefile 2010-10-04 14:14:06.000000000 +0200
+@@ -162,7 +162,7 @@
+ $(NAME): $(NAME)-curses
+
+ $(NAME)-curses: soundcard.h $(COMMON_TARGET) $(CURSES_TARGET)
+- $(CC) -o $(BINNAME)$(EXTENSION) $(TARGETS) $(LIB) $(CURSES) \
++ $(CC) $(LDFLAGS) -o $(BINNAME)$(EXTENSION) $(TARGETS) $(LIB) $(CURSES) \
+ $(SOUND_LIB)
+
+ all: $(NAME) d$(NAME)
+@@ -170,7 +170,7 @@
+ dumb: $(NAME)-dumb
+ d$(NAME): $(NAME)-dumb
+ $(NAME)-dumb: $(COMMON_TARGET) $(DUMB_TARGET)
+- $(CC) -o d$(BINNAME)$(EXTENSION) $(COMMON_TARGET) \
++ $(CC) $(LDFLAGS) -o d$(BINNAME)$(EXTENSION) $(COMMON_TARGET) \
+ $(DUMB_TARGET) $(LIB)
+
+ .SUFFIXES:
diff --git a/games-engines/frotz/frotz-2.43-r1.ebuild b/games-engines/frotz/frotz-2.43-r1.ebuild
new file mode 100644
index 000000000000..08d19d78526c
--- /dev/null
+++ b/games-engines/frotz/frotz-2.43-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Curses based interpreter for Z-code based text games"
+HOMEPAGE="http://frotz.sourceforge.net/"
+SRC_URI="http://www.ifarchive.org/if-archive/infocom/interpreters/frotz/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa oss"
+
+DEPEND="sys-libs/ncurses:0
+ alsa? ( oss? ( media-libs/alsa-oss ) )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-glibc2.10.patch
+ "${FILESDIR}"/${P}-ldflags.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/^CC /d' \
+ Makefile \
+ || die
+}
+
+src_compile() {
+ local OPTS="CONFIG_DIR=/etc"
+ use oss && OPTS="${OPTS} SOUND_DEFS=-DOSS_SOUND SOUND_DEV=/dev/dsp"
+ emake ${OPTS} all
+}
+
+src_install () {
+ dobin {d,}frotz
+ doman doc/*.6
+ dodoc AUTHORS BUGS ChangeLog HOW_TO_PLAY README TODO \
+ doc/{frotz.conf-big,frotz.conf-small}
+}
+
+pkg_postinst() {
+ echo
+ elog "Global config file can be installed in /etc/frotz.conf"
+ elog "Sample config files are in /usr/share/doc/${PF}"
+ echo
+}
diff --git a/games-engines/frotz/frotz-2.43.ebuild b/games-engines/frotz/frotz-2.43.ebuild
new file mode 100644
index 000000000000..3ad31ea944a1
--- /dev/null
+++ b/games-engines/frotz/frotz-2.43.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Curses based interpreter for Z-code based text games"
+HOMEPAGE="http://frotz.sourceforge.net/"
+SRC_URI="http://www.ifarchive.org/if-archive/infocom/interpreters/frotz/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="alsa oss"
+
+DEPEND="sys-libs/ncurses:0
+ alsa? ( oss? ( media-libs/alsa-oss ) )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e '/^CC /d' \
+ Makefile \
+ || die
+ epatch \
+ "${FILESDIR}"/${P}-glibc2.10.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+}
+
+src_compile() {
+ local OPTS="CONFIG_DIR=${GAMES_SYSCONFDIR}"
+ use oss && OPTS="${OPTS} SOUND_DEFS=-DOSS_SOUND SOUND_DEV=/dev/dsp"
+ emake ${OPTS} all
+}
+
+src_install () {
+ dogamesbin {d,}frotz
+ doman doc/*.6
+ dodoc AUTHORS BUGS ChangeLog HOW_TO_PLAY README TODO \
+ doc/{frotz.conf-big,frotz.conf-small}
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ echo
+ elog "Global config file can be installed in ${GAMES_SYSCONFDIR}/frotz.conf"
+ elog "Sample config files are in /usr/share/doc/${PF}"
+ echo
+}
diff --git a/games-engines/frotz/metadata.xml b/games-engines/frotz/metadata.xml
new file mode 100644
index 000000000000..051541926fbb
--- /dev/null
+++ b/games-engines/frotz/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">frotz</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-engines/gargoyle/Manifest b/games-engines/gargoyle/Manifest
new file mode 100644
index 000000000000..85df2c67725e
--- /dev/null
+++ b/games-engines/gargoyle/Manifest
@@ -0,0 +1,6 @@
+AUX gargoyle-2011.1-desktopfile.patch 1265 SHA256 b9f0eba5af34a7703c2d3bd38e216f82fd86cbf1acdb94267aaa06ba8b9a222f SHA512 ed31bc711b52b5d231f130956d7d07cb9080747e6d53c85b379aa413582f8e4ffe825298bc86180ec7d1eadff5e6bffc6e49b3ff7a2607f612dcf81a6c1af22e WHIRLPOOL b80e185d019ae88e256c14700c510a1ca81a9d7dbd081c9b685c7e5149d743d53d0a54606f295e8e35a074ba46753ea3ac1fe9fa10dd995910a872fa6d48b5fc
+DIST gargoyle-2011.1-sources.zip 11291660 SHA256 8642ac38add31d47bfd531d4121dc1e956d06895a9352ce573b5007e9cae4634 SHA512 65159580cf3494944f841c44320135580557258e37ad5523ae3ea30555c19834a2793231a8e42c217e5c1d055d50ed6a20d372d6302e880a2818bc4ea59b226f WHIRLPOOL 19e572d52ec6436c5b41d767e45d509bd965a0d4009b4445db08e79125eabb20636374bbb818ef7115a1ca9ac983a29cb2eaa3848a22e17d5e7d26284200b86f
+EBUILD gargoyle-2011.1.ebuild 3215 SHA256 2ef730e6810adb4744565fe13ca4370728535d6edaa5ba437b35269406ba4716 SHA512 0abedf358314f7130b749694d2ebba0ed452f595e077b35f993d5e9b62d8f071993597525ee25ffc70318e5bd4fb1df78a4e97cdc0cc7429bf2855a5f8fdf8c7 WHIRLPOOL 5ad0d9edee85660aac82dbfbf43590bc61e0bea3db3341872eabe181436ecdc5fcd0fe1d2743625c950906489e3491605cb3cbb907d721627dad1c66c8327178
+MISC ChangeLog 2948 SHA256 49ad20a8ea717148bf6f9260d8d391de03fcfd5400ec5302bce799187f5a1930 SHA512 7e310b5f4280b223984deb107acb98beb2bab41e94c0c62e4f14d5ce45907fcb91fd6c9acea57e3b8f808f397df7c37f8c5af3d9ad0fe099ff845b39805ffcc4 WHIRLPOOL a60a9ad4b27d9860240633d1f7912f2f13ade20d1e033faf81d3011bcb1050cdc05e26ebe0d1b5e3e4a756645055943461dc6ba3c709fbcdd422ab497487835f
+MISC ChangeLog-2015 4134 SHA256 1db1d93fab4bf891b5b126fe09b391c58e5c7df55504b7fdb02d41f5e00c8f6e SHA512 8f5102579edb859946ae556d2e2b54c943d0e90f8ff1cbc12718d3d8d8c25d3818389799458dbadbd586410eecfc0e89775e1779909c493c38dad150e3d62a8b WHIRLPOOL ce6280e7339f8792ee52ecaa387b8db5a94e8b60b7b450685e9d67f090b9f8505d7324767491db02dd95dde3721d99ce0101a920816b982ed6c7c53d48887111
+MISC metadata.xml 329 SHA256 4073a71c16d06a7bbbf6cd94a9e30306378a1801e4372656831b9b3383c91827 SHA512 f6b913db889e2434a76d61526ff2cf3f719322991bb26891ac0383fcb8f11cf69cfc895a7cddd35074c2dee9a5ceac0fd8c0172542401d302ec39e9cac180b2c WHIRLPOOL 28b6e9bbb091419d815bd4bf2c833d311cd8b0f52a5995cd35d807dc76aa51d5672876a93465e03d2d906c7873023ea7d58b6eef134672bb245c6875cd882c18
diff --git a/games-engines/gargoyle/files/gargoyle-2011.1-desktopfile.patch b/games-engines/gargoyle/files/gargoyle-2011.1-desktopfile.patch
new file mode 100644
index 000000000000..6b66328da016
--- /dev/null
+++ b/games-engines/gargoyle/files/gargoyle-2011.1-desktopfile.patch
@@ -0,0 +1,31 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Tue Aug 21 19:06:54 UTC 2012
+Subject: desktop file
+
+fix QA issues:
+
+# desktop-file-validate /usr/share/applications/gargoyle.desktop
+/usr/share/applications/gargoyle.desktop: error: file contains at least one line ending with a carriage return, while lines should only be separated by a line feed character. First such line is: "[Desktop Entry]"
+/usr/share/applications/gargoyle.desktop: error: (will be fatal in the future): value "gargoyle-house.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
+
+--- garglk/gargoyle.desktop
++++ garglk/gargoyle.desktop
+@@ -1,9 +1,9 @@
+-[Desktop Entry]
+-Version=1.0
+-Type=Application
+-Name=Gargoyle
+-GenericName=Interactive Fiction interpreter
+-Comment=Interactive Fiction multi-interpreter that supports all major IF formats
+-Icon=gargoyle-house.png
+-Exec=gargoyle
+-Categories=Game;
++[Desktop Entry]
++Version=1.0
++Type=Application
++Name=Gargoyle
++GenericName=Interactive Fiction interpreter
++Comment=Interactive Fiction multi-interpreter that supports all major IF formats
++Icon=gargoyle-house
++Exec=gargoyle
++Categories=Game;
diff --git a/games-engines/gargoyle/gargoyle-2011.1.ebuild b/games-engines/gargoyle/gargoyle-2011.1.ebuild
new file mode 100644
index 000000000000..8a9815363d33
--- /dev/null
+++ b/games-engines/gargoyle/gargoyle-2011.1.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Regarding licenses: libgarglk is licensed under the GPLv2. Bundled
+# interpreters are licensed under GPLv2, BSD or MIT license, except:
+# - glulxe: custom license, see "terps/glulxle/README"
+# - hugo: custom license, see "licenses/HUGO License.txt"
+# Since we don't compile or install any of the bundled fonts, their licenses
+# don't apply. (Fonts are installed through dependencies instead.)
+
+EAPI=5
+inherit eutils flag-o-matic multiprocessing toolchain-funcs gnome2-utils games
+
+DESCRIPTION="An Interactive Fiction (IF) player supporting all major formats"
+HOMEPAGE="http://ccxvii.net/gargoyle/"
+SRC_URI="https://garglk.googlecode.com/files/${P}-sources.zip"
+
+LICENSE="BSD GPL-2 MIT Hugo Glulxe"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ >=media-fonts/libertine-5
+ media-fonts/liberation-fonts
+ media-libs/freetype:2
+ media-libs/libpng:0
+ media-libs/sdl-mixer
+ media-libs/sdl-sound[modplug,mp3,vorbis]
+ sys-libs/zlib
+ virtual/jpeg:0
+ x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-util/ftjam
+ virtual/pkgconfig"
+
+S=${WORKDIR}
+
+src_prepare() {
+ # Substitute custom CFLAGS/LDFLAGS.
+ sed -i -e \
+ "/^\s*OPTIM = / {
+ s/ \(-O.*\)\? ;/ ;/
+ a LINKFLAGS = ${LDFLAGS} ;
+ a SHRLINKFLAGS = ${LDFLAGS} ;
+ }" Jamrules || die
+
+ # Don't link against libraries used indirectly through SDL_sound.
+ sed -i -e "/GARGLKLIBS/s/-lsmpeg -lvorbisfile//g" Jamrules || die
+
+ # Convert garglk.ini to UNIX format.
+ edos2unix garglk/garglk.ini
+
+ # The font name of Linux Libertine changed in version 5.
+ sed -i -e 's/Linux Libertine O/Linux Libertine/g' garglk/garglk.ini || die
+
+ epatch "${FILESDIR}"/${P}-desktopfile.patch
+ append-cflags -std=gnu89 # build with gcc5 (bug #573378)
+}
+
+src_compile() {
+ # build system messes up flags and toolchain completely
+ # append flags to compiler commands to have consistent behavior
+ jam \
+ -sAR="$(tc-getAR) cru" \
+ -sCC="$(tc-getCC) ${CFLAGS}" \
+ -sCCFLAGS="" \
+ -sC++="$(tc-getCXX) ${CXXFLAGS}" \
+ -sCXX="$(tc-getCXX) ${CXXFLAGS}" \
+ -sC++FLAGS="" \
+ -sGARGLKINI="${GAMES_SYSCONFDIR}/garglk.ini" \
+ -sUSESDL=yes \
+ -sBUNDLEFONTS=no \
+ -dx \
+ -j$(makeopts_jobs) || die
+}
+
+src_install() {
+ DESTDIR="${D}" \
+ _BINDIR="${GAMES_PREFIX}/libexec/${PN}" \
+ _APPDIR="${GAMES_PREFIX}/libexec/${PN}" \
+ _LIBDIR="$(games_get_libdir)" \
+ EXEMODE=755 \
+ FILEMODE=755 \
+ jam install || die
+
+ # Install config file.
+ insinto "${GAMES_SYSCONFDIR}"
+ newins garglk/garglk.ini garglk.ini
+
+ # Install application entry and icon.
+ domenu garglk/${PN}.desktop
+ doicon -s 32 garglk/${PN}-house.png
+
+ # Symlink binaries to avoid name clashes.
+ for terp in advsys agility alan2 alan3 frotz geas git glulxe hugo jacl \
+ level9 magnetic nitfol scare tadsr
+ do
+ dosym "${GAMES_PREFIX}/libexec/${PN}/${terp}" \
+ "${GAMES_BINDIR}/${PN}-${terp}"
+ done
+
+ # Also symlink the main binary since it resides in libexec.
+ dosym "${GAMES_PREFIX}/libexec/${PN}/${PN}" \
+ "${GAMES_BINDIR}/${PN}"
+
+ 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-engines/gargoyle/metadata.xml b/games-engines/gargoyle/metadata.xml
new file mode 100644
index 000000000000..6842fdda8f83
--- /dev/null
+++ b/games-engines/gargoyle/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="google-code">garglk</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-engines/gemrb/Manifest b/games-engines/gemrb/Manifest
new file mode 100644
index 000000000000..6278b14f9733
--- /dev/null
+++ b/games-engines/gemrb/Manifest
@@ -0,0 +1,6 @@
+DIST gemrb-0.8.3.tar.gz 12370971 SHA256 4996d4d66e60d9ec0c63b94f687c4a6d54f4fbbfb80304245e8ff0fa886f5664 SHA512 6f091ba54d129c47b6ad7c3b1da898c7ef79b80629b373527963a0b35096ccbf91650087c4884081d306da4be7b4cfa1dc2f6d931d7140d7eccb380d9806db1c WHIRLPOOL 4f0da79423dbe9bc0c5438dc0df148005e1c2981e545f7a0649162af1b32384ff9a398eabbcfaea477cec31ee65cc5b3586d7cfa82155a234e21dd4ff8e8bc5e
+EBUILD gemrb-0.8.3-r1.ebuild 1384 SHA256 32987c2c596a90fe8ee4cdb5b8a17fcd1268c640b72a9fbd02589ca9fd0c0474 SHA512 6f8f449ac846302226f595f03399d288c3df045a78af92563273968678ec0dffc68aba582eae19b55d11a9d4b0a6bffb5a72f4352154413a80f2dafebb48be04 WHIRLPOOL 6edbbd0a3cb151265c1374dbca963113cc2360a9b136da64a80a4375791167e64818ebf1fee15ed5ef6fc34d37971e4959adb23f1503ddc9e25b03d3f89a3e6d
+EBUILD gemrb-0.8.3.ebuild 1507 SHA256 8f3cc841d8f2f31974ce3fe9ef964bc4721e8abeddae0e6c6f9b050e60a4e81e SHA512 5ac08e0a8c976994773a8e4f9c47bdc35accac73bc52e8036cc33bc2567e006c86e3c1085b4f3f2e4f2a03eb5822d869ea986d30327059d8c6bd2e129806d384 WHIRLPOOL 5df9d987aca2e3046e84e0ff1bb1c3b1c01943271a5a2416e2270564e4439c29e58d16f8911a837347ccd72ac85a814b173d2715e3a377664606885ab084e98a
+MISC ChangeLog 3380 SHA256 a572d21e0852a7a95abe021e6e83f86926473a9a7fd5d42af99b2f03431edc91 SHA512 7e647ff09f3b6f7edb4a461f3e7d32d667129f0fd48346ff22bd1a3ed1da4c40623bad9378b4362da30a2666dc8bd8d0f33a6d35649a2eae2d013b053ecec45b WHIRLPOOL 0d515a427663c05fefe83a040cd166bb802caa8ac2eb12bded6896134f5f0166225c38a912389391086ee4802d0b7560794016f56d189224c5c15166b201b4f8
+MISC ChangeLog-2015 5639 SHA256 cd70c09823cc9eb7872109c45517249a050ddc6ae0873ef2ed992cb266d935ff SHA512 b51127c8b2a2060ba026f5a3f0c258e19f44b2f6210cfb357f15773376c6dee71c4e02c4a50b054eb59a3b78b95c8888d0e58aac4fe783a5a0cad046bd566a47 WHIRLPOOL 9ac247ec5989b55469fd930689c2e3adf4568f2590a25b4151970f076f14c6fdcbf7838aee0cc64791c915491755409aeb76fb163c2621f0365609b419ba9313
+MISC metadata.xml 328 SHA256 0c14ab70e24c46a6da696cf8b2fedae551511fcfddf926867a7759db77bc126e SHA512 553586a61d8d824dbc4e9b4e19ad2eb3dc1ab10b42fcf1692853fc9b9c07ed4b0baa8d076a23a3b28250e198befe94e3050cb71b392d07e5b3535d5f6d50b676 WHIRLPOOL 5a330b1f9f7064c414bf3e8e90be182d2de2b5b545788cf87c9cf633b3bf641b405d3253109cb43f0f4b4824f3d21d95ae1e14216d4156de08b5ec11e49c69ed
diff --git a/games-engines/gemrb/gemrb-0.8.3-r1.ebuild b/games-engines/gemrb/gemrb-0.8.3-r1.ebuild
new file mode 100644
index 000000000000..f12df7fc9958
--- /dev/null
+++ b/games-engines/gemrb/gemrb-0.8.3-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils gnome2-utils python-single-r1 cmake-utils
+
+DESCRIPTION="Reimplementation of the Infinity engine"
+HOMEPAGE="http://gemrb.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gemrb/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ media-libs/freetype
+ media-libs/libpng:0=
+ >=media-libs/libsdl-1.2[video]
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/sdl-mixer
+ sys-libs/zlib
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ sed -i \
+ -e '/COPYING/d' \
+ CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBIN_DIR=bin
+ -DDATA_DIR=share/gemrb
+ -DDOC_DIR=share/doc/${PF}
+ -DICON_DIR=share/pixmaps
+ -DLIB_DIR=$(get_libdir)
+ -DMAN_DIR=share/man/man6
+ -DMENU_DIR=share/applications
+ -DSVG_DIR=share/icons/hicolor/scalable/apps
+ -DSYSCONF_DIR=/etc/${PN}
+ # needed, causes massive QA warnings otherwise
+ -DCMAKE_SKIP_RPATH=ON
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ python_fix_shebang "${ED%/}"/usr/bin/extend2da.py
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-engines/gemrb/gemrb-0.8.3.ebuild b/games-engines/gemrb/gemrb-0.8.3.ebuild
new file mode 100644
index 000000000000..b7ba53323a6f
--- /dev/null
+++ b/games-engines/gemrb/gemrb-0.8.3.ebuild
@@ -0,0 +1,79 @@
+# 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-any-r1 cmake-utils gnome2-utils games
+
+DESCRIPTION="Reimplementation of the Infinity engine"
+HOMEPAGE="http://gemrb.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gemrb/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="media-libs/freetype
+ media-libs/libpng:0
+ >=media-libs/libsdl-1.2[video]
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/sdl-mixer
+ sys-libs/zlib
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+pkg_setup() {
+ python-any-r1_pkg_setup
+ games_pkg_setup
+}
+
+src_prepare() {
+ sed -i \
+ -e '/COPYING/d' \
+ CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}"
+ -DBIN_DIR="${GAMES_BINDIR}"
+ -DDATA_DIR="${GAMES_DATADIR}/gemrb"
+ -DSYSCONF_DIR="${GAMES_SYSCONFDIR}/gemrb"
+ -DLIB_DIR="$(games_get_libdir)"
+ -DMAN_DIR=/usr/share/man/man6
+ -DICON_DIR=/usr/share/pixmaps
+ -DMENU_DIR=/usr/share/applications
+ -DDOC_DIR="/usr/share/doc/${PF}"
+ -DSVG_DIR=/usr/share/icons/hicolor/scalable/apps
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ DOCS="README NEWS AUTHORS" \
+ cmake-utils_src_install
+ 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-engines/gemrb/metadata.xml b/games-engines/gemrb/metadata.xml
new file mode 100644
index 000000000000..48acc454984a
--- /dev/null
+++ b/games-engines/gemrb/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">gemrb</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-engines/love/Manifest b/games-engines/love/Manifest
new file mode 100644
index 000000000000..22a13963b9dd
--- /dev/null
+++ b/games-engines/love/Manifest
@@ -0,0 +1,9 @@
+AUX love-0.8.0-freetype2.patch 823 SHA256 6cdff5d2fe0d027b94587cc9ed2cca49d054a798de3a02b067504f34cf14deec SHA512 fb4326f474b403cd3ec0bf679b4177dae070faf91848825c75800a2adb5ca1c91d26a555b61f7b031632fd64f50b239bfabb2967cb5e1d7ca1a249544faa0142 WHIRLPOOL bf624e165580c6356f993d8f2b9801713150582e826f914f79cb5108cd81c3e8844e8cb02378e206ea0d30114eea603aa2f90e9ce159e5c37fb07a535b2dffeb
+DIST love-0.7.2-linux-src.tar.gz 900209 SHA256 a57adcb0cbdc390a9bd8e2fe477bc175799b9ffd3486e01f859a36bf27f7f268 SHA512 cbca1d7e3425d1ecbdae019212dfa2814d8ac3bad1faedd4b052cf3e89b5bf2fac6e422283628e4c125858c9db050dee2129476d1a73ec44ffe8a4704f170f61 WHIRLPOOL 1c5258fefca15c71065e0cfff795bfaf30b7c9acabf89ffa5fd71311ce1ee767f98088dbac844f26f50fc69d2d8d384819fce69372f573a48f5d3848a2d1da8f
+DIST love-0.8.0-linux-src.tar.gz 1027356 SHA256 9167ca1cc7893ff1fdcf3b6fc7e2a88be10d899075a513942420fe8f94668ecc SHA512 6a0e28d102b950d3dddf7101996fe0ad04dfd7d4ec5e58797b41ef3382b60e74f90c6e707f882cf43cc0c5cc98703857eefc6418e6a6fd34e88f8019143f55a4 WHIRLPOOL 39c56d987d710b7589db0af3b6b5e59fc05d7e6e49b8e9f88a2a3fc050afe518d561517bb7b2a6428b30cda0322878801aafbdec98976831b37df56c3c02440c
+EBUILD love-0.7.2-r1.ebuild 923 SHA256 39c799587772fe0e15cb2844973a1de2f50da3b879e46bb32be2a25f59cb44d4 SHA512 864b5d00fc12bf45a5a1f95d3ef360c06213a1671b87a12ad1c64f871aaab25c5758decc8f09e36715876a490bdeeef06afc24edf38be4a01875cbbb0efee57f WHIRLPOOL 4a62891a63af2eae1c84d2cfcb76bc78e7cdd7d49e3668380c0f0c1a18607e82dbb816adfb4ec6792f597d6a44669d0ae320b5c410bc985619ba5c5c7e2cb20c
+EBUILD love-0.8.0.ebuild 1156 SHA256 06ab9014f65f8e6f3f4399a758a4fba0d6757387d440acf8bad1a05780a5877f SHA512 77e333916fb29698a1b4b76c97fea91a3b61f88c96a1adca9e3b233f55fb87bb4800b673e5674fb47308b6598b01dd00ded011ec6bc855ea19fa8c5cb29877ab WHIRLPOOL 64910572c940ca9e8e89a48982dd84408db5b121c4b05ba2ce3f072a983d7ba1e2950fe53266c9fee112d82a9485d80113a84843567eaa825652e7a274f64661
+EBUILD love-9999.ebuild 1203 SHA256 273f7e840516808dcc474189aa443803fa12cb8d7935abb7b4c5d33636555c03 SHA512 e3707435e698dee938bba065262618bc5fd24a366e1481f9b205c31b9b5042f495f04776fe1b42020ac4914d302949136914b009f0320c1c51bc18c6cf0e7866 WHIRLPOOL 93877c75a8949f81ca8f86ca1173cb685de10cc9cf8a6e908b0eac478d4bc756a0c599ed984f6d3511254f75f837a3d26331532e6422baa67698658c49074f38
+MISC ChangeLog 3180 SHA256 40897238376237643171d20923b1917be9153ef7dfdf5b76a64f53ca6069a523 SHA512 3f0567c8e1d1f536ca37bd4d629dde85a44706558cda799485351339be75cf9a2cc29cecc9b7f8b36c0142407ad7b1978f93976c26836de52d7f295ccba941e1 WHIRLPOOL 80ee2b64f12a711d444ef37acbcdaa20612ef39e8081386e547ebc0f2160a3f6f68b25be9c1ff0420136811877cbb705cfd59a5abf238493e32e822c1ed1d0b5
+MISC ChangeLog-2015 3066 SHA256 74b0bab8d61f11dca19490e75f4609a7a78b1e6b2d3c06e17b2bc13b2f640c0a SHA512 71fa2cd8210ffeb2e014d7a058e042962cbf3c16a07bb714cbb50fd0e79b4edc9b981731ccbb7da6ec61dff17f474ec65fd7601731c9e43ab926c14e079b1189 WHIRLPOOL 84b1174f9b3157952f122aa4cc02362c02bde1b9f1ae450b5da303fd9ba5ef16f2d3840a8e06a8fea2bf77fc6c431b45cec155ebb9d445054eb49c0b26f012b4
+MISC metadata.xml 379 SHA256 bcaf1053a0170d56b29ffc73b12f50bb90815caf1045432bd48860d9e93f3430 SHA512 ec81121ea013b5ee3e2863c317bad1c4e6c324f44d41202be5f105b7d0416f52d8a5144a9ab354dceb8793c947bf7cc85b192aaee65b0e3f44cfae19340e9399 WHIRLPOOL 2c7699db1110a80179a6da2ef375587aa95642396e9f32052d90d1d88fdd064845bd19b14ddde01efac25969f88cb8514364aac886c19c874bb1982b075205b0
diff --git a/games-engines/love/files/love-0.8.0-freetype2.patch b/games-engines/love/files/love-0.8.0-freetype2.patch
new file mode 100644
index 000000000000..07c655c41203
--- /dev/null
+++ b/games-engines/love/files/love-0.8.0-freetype2.patch
@@ -0,0 +1,34 @@
+--- love-0.8.0/src/modules/font/freetype/Font.h
++++ love-0.8.0/src/modules/font/freetype/Font.h
+@@ -30,10 +30,10 @@
+ #else
+ #include <ft2build.h>
+ #endif
+-#include <freetype/freetype.h>
+-#include <freetype/ftglyph.h>
+-#include <freetype/ftoutln.h>
+-#include <freetype/fttrigon.h>
++#include FT_FREETYPE_H
++#include FT_GLYPH_H
++#include FT_OUTLINE_H
++#include FT_TRIGONOMETRY_H
+
+ namespace love
+ {
+--- love-0.8.0/src/modules/font/freetype/TrueTypeRasterizer.h
++++ love-0.8.0/src/modules/font/freetype/TrueTypeRasterizer.h
+@@ -27,10 +27,10 @@
+
+ // TrueType2
+ #include <ft2build.h>
+-#include <freetype/freetype.h>
+-#include <freetype/ftglyph.h>
+-#include <freetype/ftoutln.h>
+-#include <freetype/fttrigon.h>
++#include FT_FREETYPE_H
++#include FT_GLYPH_H
++#include FT_OUTLINE_H
++#include FT_TRIGONOMETRY_H
+
+ namespace love
+ {
diff --git a/games-engines/love/love-0.7.2-r1.ebuild b/games-engines/love/love-0.7.2-r1.ebuild
new file mode 100644
index 000000000000..114a60337252
--- /dev/null
+++ b/games-engines/love/love-0.7.2-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A framework for 2D games in Lua"
+HOMEPAGE="http://love2d.org/"
+SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${P}-linux-src.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0.7"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="dev-games/physfs
+ dev-lang/lua[deprecated]
+ media-libs/devil[mng,png,tiff]
+ media-libs/freetype
+ media-libs/libmodplug
+ media-libs/libsdl[joystick,opengl]
+ media-libs/libvorbis
+ media-libs/openal
+ media-sound/mpg123
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ media-libs/libmng
+ media-libs/tiff"
+
+S=${WORKDIR}/${PN}-HEAD
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.8.0-freetype2.patch
+}
+
+src_install() {
+ DOCS="readme.txt changes.txt" \
+ default
+ if [[ "${SLOT}" != "0" ]]; then
+ mv "${ED}${GAMES_BINDIR}"/${PN} \
+ "${ED}${GAMES_BINDIR}"/${PN}-${SLOT} || die
+ fi
+}
diff --git a/games-engines/love/love-0.8.0.ebuild b/games-engines/love/love-0.8.0.ebuild
new file mode 100644
index 000000000000..2d8f8f824c4e
--- /dev/null
+++ b/games-engines/love/love-0.8.0.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
+
+if [[ ${PV} == 9999* ]]; then
+ inherit autotools mercurial
+ EHG_REPO_URI="https://bitbucket.org/rude/${PN}"
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${P}-linux-src.tar.gz"
+ KEYWORDS="amd64 ~arm x86"
+fi
+
+DESCRIPTION="A framework for 2D games in Lua"
+HOMEPAGE="http://love2d.org/"
+
+LICENSE="ZLIB"
+SLOT="0"
+IUSE=""
+
+RDEPEND="dev-games/physfs
+ dev-lang/lua[deprecated]
+ media-libs/devil[mng,png,tiff]
+ media-libs/freetype
+ media-libs/libmodplug
+ media-libs/libsdl[joystick,opengl,video]
+ media-libs/libvorbis
+ media-libs/openal
+ media-sound/mpg123
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ media-libs/libmng
+ media-libs/tiff"
+
+src_prepare() {
+ if [[ ${PV} == 9999* ]]; then
+ sh platform/unix/gen-makefile || die
+ mkdir platform/unix/m4 || die
+ eautoreconf
+ fi
+ epatch "${FILESDIR}"/${P}-freetype2.patch
+}
+
+src_install() {
+ DOCS="readme.md changes.txt" \
+ default
+ if [[ "${SLOT}" != "0" ]]; then
+ mv "${ED}${GAMES_BINDIR}"/${PN} \
+ "${ED}${GAMES_BINDIR}"/${PN}-${SLOT} || die
+ fi
+}
diff --git a/games-engines/love/love-9999.ebuild b/games-engines/love/love-9999.ebuild
new file mode 100644
index 000000000000..80ae23fbd24b
--- /dev/null
+++ b/games-engines/love/love-9999.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit base games
+
+if [[ ${PV} == 9999* ]]; then
+ inherit autotools mercurial
+ EHG_REPO_URI="https://bitbucket.org/rude/${PN}"
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${P}-linux-src.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="A framework for 2D games in Lua"
+HOMEPAGE="http://love2d.org/"
+
+LICENSE="ZLIB"
+SLOT="0"
+IUSE=""
+
+RDEPEND="dev-games/physfs
+ dev-lang/lua[deprecated]
+ media-libs/devil[mng,png,tiff]
+ media-libs/freetype
+ media-libs/libmodplug
+ media-libs/libsdl[joystick,opengl]
+ media-libs/libvorbis
+ media-libs/openal
+ media-sound/mpg123
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ media-libs/libmng
+ media-libs/tiff"
+
+DOCS=( "readme.md" "changes.txt" )
+
+src_prepare() {
+ if [[ ${PV} == 9999* ]]; then
+ sh platform/unix/gen-makefile || die
+ cp platform/unix/Makefile.am . || die
+ cp platform/unix/configure.ac . || die
+ mkdir platform/unix/m4 || die
+ eautoreconf
+ fi
+}
+
+src_install() {
+ base_src_install
+ if [[ "${SLOT}" != "0" ]]; then
+ mv "${ED}${GAMES_BINDIR}"/${PN} \
+ "${ED}${GAMES_BINDIR}"/${PN}-${SLOT} || die
+ fi
+}
diff --git a/games-engines/love/metadata.xml b/games-engines/love/metadata.xml
new file mode 100644
index 000000000000..4731fb707fd1
--- /dev/null
+++ b/games-engines/love/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>chithanh@gentoo.org</email>
+ <name>Chí-Thanh Christopher Nguyễn</name>
+ </maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-engines/metadata.xml b/games-engines/metadata.xml
new file mode 100644
index 000000000000..9e9c62112e6b
--- /dev/null
+++ b/games-engines/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-engines category contains game engines.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría games-engines contiene motores de juegos.
+ </longdescription>
+ <longdescription lang="ja">
+ games-enginesカテゴリーにはゲーム・エンジンが含まれています。
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm games-engines chứa các game engine.
+ </longdescription>
+ <longdescription lang="nl">
+ De games-engines category bevat spel-engines.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie games-engines enthält Game-Engines.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria games-engines contiene motori di gioco.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria games-engines contém engines de jogos.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria games-engines zawiera silniki gier.
+ </longdescription>
+</catmetadata>
+
diff --git a/games-engines/nazghul/Manifest b/games-engines/nazghul/Manifest
new file mode 100644
index 000000000000..390ca06c5b44
--- /dev/null
+++ b/games-engines/nazghul/Manifest
@@ -0,0 +1,6 @@
+DIST nazghul-0.7.1.tar.gz 7929363 SHA256 f1b62810da52a116dfc1c407dbe683991b1b380ca611f57b5701cfbb803e9d2b SHA512 6484698609ad88c9d7d2d6c2dc93aee98614917b53dca826a2827a9375192e323e40de1f69a3de1e8dab35f02834430e1ee947f4bf6088fbf510c416da1d8c0f WHIRLPOOL 93057f61d4ef190a518ace0446ef6f31930765bad9dfe88caf8d2cbafaf5213e6d6929402dbb23a69d657103d1d062ea06b4430c0097efa5a61f296cf78cca6d
+EBUILD nazghul-0.7.1-r1.ebuild 904 SHA256 b3b99f3829c9515773f94980a2ecc938b0baa46cd227872ad8e412bc9d3211f9 SHA512 b943b643c273d19f9024a6e40e5fadc1b30ab80e9809f04452675558ce8cc05c08573086978432bcc8818d336dfa7154249f8163ad9d52e7ddd2857569e65501 WHIRLPOOL 83a9b8d3f971d95df857740fd761ee8206f2c3d7a0eef9aee5b86c8cb5c320301d33f89fbef0ffacaf11380ffabb3c4077da3ce82f1916573aa467a17d748be0
+EBUILD nazghul-0.7.1.ebuild 973 SHA256 2171a8881dbab6a7848bbca7e700b7ae5fc3fcfd5db2d7bcf656bcde9386794f SHA512 fffc2157b91bd617a6d412859285c3f33e0f16e59478285d8390e89575ec17adf5db19ffe5a4c65b1b2a35494c1ad0ae79375731da89c4036f2a5769cbbc5af7 WHIRLPOOL 5d3318a2059567a31a389f8e83230b26e6e6b178651c6f10d2c85916ccab9effe5585b2aea5f7e3a5af5a23c40094b54bfc9ff05d5b5287801e6e46339f79d49
+MISC ChangeLog 2686 SHA256 fef0bc1893b7a376de5d9d0bac510b85e96fc3524541a2d91aa38c3b3293d5c2 SHA512 6b418a6fbbe971f30871f9b56fbcbed5ea8b0c4feb315e989d46b091150f8a65959f0808da4a046219cc4a9663bf8be60a5792fb04e140634d6bcafc841712f4 WHIRLPOOL 9234b3695112034afd0958c9bc54316f2ab212679251f8c20f627b696ecd92663ca4a41a24019f16e1df9c24b3c9476a6d67bf713d2f3ff403821d0c7a88447b
+MISC ChangeLog-2015 1561 SHA256 bb3f7de8fb6b25134375af612e101b36b8cb446a75f184d277fdd97ebf630bae SHA512 af4c0180b6b184f3e16f0c12a1335fe8657875a24969a03185d02b3a1f80f9541bd928bd87cfaff88eed9c695235ae87d62d526fc5bb6ab0ec803b2f6a88a620 WHIRLPOOL d5e3e6c0dc70a8d2b7e400fbb76083468060e612b55f3a1dbcb0099639def39fbbb61a38664a1864028083e99191c2360b0628c412d33fb2efaf180c4a735d11
+MISC metadata.xml 330 SHA256 a7e67816bfd989fc430f8d4465712aa232d906bdb5c7f7cbf6489006b1875b83 SHA512 13146683d0f1943936e5c43ac8e0495fbaff76c788ea3ec3eb3437e0eb84268d2c969a11b97c0792cad64e7e32aabbbe4f2ef65ad038af4e4c9cacadecfe9467 WHIRLPOOL b467295bdb9b2736104242bdcac03c192f74de4abdd1c502e8b6f09d109d041c07003e15135f34c1960e2fe12c2ff7fba3d285b092672ab7d467c5bf9904f577
diff --git a/games-engines/nazghul/metadata.xml b/games-engines/nazghul/metadata.xml
new file mode 100644
index 000000000000..bdd8777f9e45
--- /dev/null
+++ b/games-engines/nazghul/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">nazghul</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-engines/nazghul/nazghul-0.7.1-r1.ebuild b/games-engines/nazghul/nazghul-0.7.1-r1.ebuild
new file mode 100644
index 000000000000..14be63f70af6
--- /dev/null
+++ b/games-engines/nazghul/nazghul-0.7.1-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="A computer role-playing game (CRPG) engine with game called HaximA"
+HOMEPAGE="http://myweb.cableone.net/gmcnutt/nazghul.html"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libpng:0
+ >=media-libs/libsdl-1.2.3[X,sound,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[midi,vorbis,wav]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ ecvs_clean
+
+ default
+}
+
+src_install() {
+ default
+ dodoc doc/{GAME_RULES,GHULSCRIPT,MAP_HACKERS_GUIDE,USERS_GUIDE}
+
+ dodoc doc/*html
+ dodoc doc/*gif
+
+ docinto engine_extension_and_design
+ dodoc doc/engine_extension_and_design/*
+
+ docinto world_building
+ dodoc doc/world_building/*
+
+ doicon icons/haxima.png
+ make_desktop_entry haxima.sh HaximA haxima
+}
diff --git a/games-engines/nazghul/nazghul-0.7.1.ebuild b/games-engines/nazghul/nazghul-0.7.1.ebuild
new file mode 100644
index 000000000000..cc55f517635c
--- /dev/null
+++ b/games-engines/nazghul/nazghul-0.7.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A computer role-playing game (CRPG) engine with game called HaximA"
+HOMEPAGE="http://myweb.cableone.net/gmcnutt/nazghul.html"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libpng:0
+ >=media-libs/libsdl-1.2.3[X,sound,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[midi,vorbis,wav]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ ecvs_clean
+}
+
+src_configure() {
+ egamesconf \
+ --includedir=/usr/include
+}
+
+src_install() {
+ default
+ dodoc doc/{GAME_RULES,GHULSCRIPT,MAP_HACKERS_GUIDE,USERS_GUIDE}
+
+ dohtml -a html,gif -r doc/*
+
+ docinto engine_extension_and_design
+ dodoc doc/engine_extension_and_design/*
+
+ docinto world_building
+ dodoc doc/world_building/*
+
+ doicon icons/haxima.png
+ make_desktop_entry haxima.sh HaximA haxima
+
+ prepgamesdirs
+}
diff --git a/games-engines/odamex/Manifest b/games-engines/odamex/Manifest
new file mode 100644
index 000000000000..979bf1d7691d
--- /dev/null
+++ b/games-engines/odamex/Manifest
@@ -0,0 +1,11 @@
+AUX 1-odamex-0.7.0-install-rules.patch 2713 SHA256 0cad5518c87542de22b74a1031c334c0a1ae450126d2470b35fe55b0c6737a23 SHA512 8ad2f8eaaf6697275daec6ff3076c3f8359eed46bc89bb8567f25e5c825ef065ae875c7c607a5bb99fd62bf8e616e4c0296af374817e9fe02abcd311b306a453 WHIRLPOOL 1d9dee520cf3a56497268df38fe8d8f88d302726d4e8c2394249d050b40b0a2008145e6a4b35abc8bd39b5e669262857ab79e6837be37b78fa53dbc9bcb5de52
+AUX 2-odamex-0.7.0-cmake-options.patch 3459 SHA256 c396f5fe451178af9c60fa52eecbd21ccaa81b33a1cf1ca4faeb16b3c6df5fa2 SHA512 ef5ac9a88b189fb4276989e1de6e2723491777fa0cc12cd5dd38b9c992ed22e6be6892371efa4cf4af28eda85883056c27efa3ed074b878f89325333476dd19d WHIRLPOOL 561e424f12795c091aeebfb88cb15ba033d859a598b90972f7b6629e0f760921a8a03405df3c99997471db6680360d0337ab8363e7485eb84b6d2d722003e8ca
+AUX 3-odamex-0.7.0-wad-search-path.patch 1758 SHA256 15c841ac0b99e5a185295fbdd74fea300260620f6b70e1b882cdcb8a00228627 SHA512 031507d97734e75cddbcde5b09a7e483f1110dd08e692652b71a79e7f90b703090798916b3f25a74e18f29e0091e2f018d93662d82f994fb11317ba0215dfd10 WHIRLPOOL 0712c836a422e9094856e144ded6ca68dc582f199deb3d29defdec05eef4fea6427ed6061840ce3f0fdb55ae3b160ce4f87005e3335c153273ad70e4144239f3
+AUX 4-odamex-0.7.0-odalauncher-bin-path.patch 1671 SHA256 aef75036f4e44ffaca38fb12eb9b61cbce939d87d71d7d1607e73d633998388d SHA512 4ab5c84d5e3e1465fb02c775fad0208bf177264137d82297515c8f2bf188e9f4ce79a5510e28dfc4811392ecef407b89267e2baf45d37c236fb86cfc066c1ed2 WHIRLPOOL 5a69fe2877687ed8f296b648e943064bc67bbd3cf0dbeb8940fc372edb07455a2700b35d6033fa3e21b4b17d2dc4c7251055e2a3899b092a6d36c0357bc816db
+AUX odamex-0.7.0-gcc6.patch 1149 SHA256 6f31cff7018a12f79a9c574afeb87b350bd407382fb2ca92f467a3c753d1750d SHA512 e34fc554016d67e42d95b9f2e964b69282791a9c07c9976c49990778188bfc1dab5784b29a798e10d6fcd8cc36893bd3416b57c8e2c9f1bd67587a3524c0a422 WHIRLPOOL 1c1408c18dfa63a64be5dc4e6cd9191bc5383190ffa99c756366a53e4bdc297ea03de791c56f65f44d0f5378fb4a891308f8870318378abf89ed29268b83cbf4
+AUX odamex-0.7.0-miniupnpc.patch 1144 SHA256 189ff82d8e921348239caba5d55d236e8e4a0b18b522259ec29be700665e7b0e SHA512 0a805aca36687f183aa168972ecc9bfcd04c117787e42967fbf62b08873943b9f6c5118f15089a70ede43335ce571216255f315e08ce08f89ff23f6859507951 WHIRLPOOL cf4a8e873c7c7c88d708841fbadcd18290ce448b7db0f7c8c515316935f4d03d6b31aff79af141e4234d3540e3593a1838784783fd7549d14ceb63658153fa2a
+DIST odamex-src-0.7.0.tar.bz2 8435860 SHA256 d0306ddca3d5534672e6f0c547092d8f3f6f815686e4f6b21d6521afae1fd73b SHA512 410f3c2588e4d57006e5bb50eaa0f6c1a83cf197ce40daabb958667483eb6c85138206ac74b8aee64c4208c4360415ad16d1698534be5c7abec1493a0f91aa8b WHIRLPOOL 91ca8f658435f4503df8a2d5f52b1ef1cf34229373c4e1c3918b7eb919ae54e3a416618ce184d54c6ebc25bdfe6fea96f8933f98d859562b4972f89bd5c320ff
+EBUILD odamex-0.7.0.ebuild 2631 SHA256 3460997d72735db56b34562b8f69a1b002963fef538d5ef80a3849951b4c2c1e SHA512 efcdb5e4d946aaf5172fe207f82fae3154b296575eec5f9585aeba98875b14611526274250b07014a88535874e38d606b84b8f2ee152671f87ac771d1a5e4ae4 WHIRLPOOL c0f293c459a69be17d80349bad70dac0aab570dedd8dbee1bc7d47367ece5f99cae8dc9519901b37117cb8afd999f1291fdc5e7afd13798c2da2f1f7efbd8188
+MISC ChangeLog 3907 SHA256 7deac2f4f5eab4c5ce8d5c4b1f492c05d47d9da51238847540c9736b013251ff SHA512 c82c58d595d27d3223a6f7bc80d5a92c6ded9d820e896d714fb15716a822426602ee520e2a4d12e63de9fc0c2bff522347e9acedb84d1a4b635d7f8194467a80 WHIRLPOOL 4fdd825e718d1441f1c7a87a52f6829b73fd6ce76a1bd3066ff57be3fdab5a10568881539c05f384aa1f185b7a35b1b60d23f2a3d2d2b6a4479d2da6c5beab9b
+MISC ChangeLog-2015 3010 SHA256 e7421e1876c1a1d5dbe83fff560e8e56b665b99680b8c6bd85025d7eeaf7a77e SHA512 0b4778208e3dec73ab17970e26fdb96cb2d3e2ab7d1f1f54ccce6ad1c0cc4a31c288751377af99131e39848e70222726845fd834407d078d6d2a60698e2a8620 WHIRLPOOL c9148d0a2dce676aec1fb2a22462d4cefafb964d822d0de087b05b6944f5585837ff34681d7f469765f820ff6340052cea30a2b71d81827a444e95a91ca879fe
+MISC metadata.xml 1529 SHA256 6b98455c9c2d1981cc9e3ea25cf8d60dfb306019717143c82eae70a046c3da7c SHA512 fffaa91e3f48b7ebdbc5f7018e8012edf3c40a85eae6ac8619b5b4d4aaf5779445f495a28e06b5d597818346684ed1b470dc739abdea6cc1792f4f5b064e0b8e WHIRLPOOL 495c8ab3114de28514c9a14f96a59dbd4d395936734253c826e1963759b22a07d0c00e1d81f65f8146f92bf66eadfb020da11c4a2fe8fde46e62276da1697ff9
diff --git a/games-engines/odamex/files/1-odamex-0.7.0-install-rules.patch b/games-engines/odamex/files/1-odamex-0.7.0-install-rules.patch
new file mode 100644
index 000000000000..618f9fd87c2c
--- /dev/null
+++ b/games-engines/odamex/files/1-odamex-0.7.0-install-rules.patch
@@ -0,0 +1,89 @@
+From 1352b633388dd9d82b8cb7e3d11932d0b569da4e Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@gentoo.org>
+Date: Thu, 27 Mar 2014 21:07:37 +0100
+Subject: [PATCH 1/4] make install destinations modifiable
+
+---
+ CMakeLists.txt | 5 +++--
+ client/CMakeLists.txt | 2 +-
+ master/CMakeLists.txt | 4 ++++
+ odalaunch/CMakeLists.txt | 2 +-
+ server/CMakeLists.txt | 2 +-
+ 5 files changed, 10 insertions(+), 5 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 11e52d1..262e3db 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,5 @@
+ include(CMakeDependentOption)
++include(GNUInstallDirs)
+
+ project(Odamex)
+ cmake_minimum_required(VERSION 2.8)
+@@ -113,10 +114,10 @@ if(NOT APPLE)
+ set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
+ else()
+ install(FILES odamex.wad LICENSE README
+- DESTINATION share/odamex
++ DESTINATION ${CMAKE_INSTALL_DATADIR}/odamex
+ COMPONENT common)
+ install(FILES ${CONFIG_SAMPLES}
+- DESTINATION share/odamex/config-samples
++ DESTINATION ${CMAKE_INSTALL_DATADIR}/odamex/config-samples
+ COMPONENT common)
+
+ option(ODAMEX_COMPONENT_PACKAGES "Create several rpm/deb packages for repository maintainers." OFF)
+diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
+index 510b820..3f73ab5 100644
+--- a/client/CMakeLists.txt
++++ b/client/CMakeLists.txt
+@@ -228,7 +228,7 @@ if(SDL_FOUND AND SDLMIXER_FOUND)
+ COMPONENT client)
+ else()
+ install(TARGETS odamex
+- RUNTIME DESTINATION bin
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ COMPONENT client)
+ endif()
+ endif()
+diff --git a/master/CMakeLists.txt b/master/CMakeLists.txt
+index 7fc386b..5bdc048 100644
+--- a/master/CMakeLists.txt
++++ b/master/CMakeLists.txt
+@@ -14,3 +14,7 @@ if(WIN32)
+ elseif(SOLARIS)
+ target_link_libraries(odamast socket nsl)
+ endif()
++
++if(UNIX)
++ install( TARGETS odamast DESTINATION ${CMAKE_INSTALL_BINDIR} )
++endif()
+diff --git a/odalaunch/CMakeLists.txt b/odalaunch/CMakeLists.txt
+index 4ca5920..0b134ef 100644
+--- a/odalaunch/CMakeLists.txt
++++ b/odalaunch/CMakeLists.txt
+@@ -71,7 +71,7 @@ if(wxWidgets_FOUND)
+ COMPONENT odalaunch)
+ else()
+ install(TARGETS odalaunch
+- RUNTIME DESTINATION bin
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ COMPONENT odalaunch)
+ endif()
+
+diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt
+index b046714..d33b974 100644
+--- a/server/CMakeLists.txt
++++ b/server/CMakeLists.txt
+@@ -73,6 +73,6 @@ elseif(WIN32)
+ COMPONENT server)
+ else()
+ install(TARGETS odasrv
+- RUNTIME DESTINATION bin
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ COMPONENT server)
+ endif()
+--
+1.9.1
+
diff --git a/games-engines/odamex/files/2-odamex-0.7.0-cmake-options.patch b/games-engines/odamex/files/2-odamex-0.7.0-cmake-options.patch
new file mode 100644
index 000000000000..1de502711406
--- /dev/null
+++ b/games-engines/odamex/files/2-odamex-0.7.0-cmake-options.patch
@@ -0,0 +1,110 @@
+From 851bc58a74eadd89838c924167f27df1b9d3be37 Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@gentoo.org>
+Date: Thu, 27 Mar 2014 21:14:20 +0100
+Subject: [PATCH 2/4] add various cmake options
+
+---
+ CMakeLists.txt | 26 ++++++++++++++++++++++----
+ client/CMakeLists.txt | 34 ++++++++++++++++++++--------------
+ 2 files changed, 42 insertions(+), 18 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 262e3db..91d5c50 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,6 +1,13 @@
+ include(CMakeDependentOption)
+ include(GNUInstallDirs)
+
++# options
++option(BUILD_CLIENT "Build client target" 1)
++option(BUILD_SERVER "Build server target" 1)
++option(BUILD_MASTER "Build master server target" 1)
++cmake_dependent_option( BUILD_ODALAUNCH "Build odalaunch target" 1 BUILD_CLIENT 0 )
++cmake_dependent_option( ENABLE_PORTMIDI "Enable portmidi support" 1 BUILD_CLIENT 0 )
++
+ project(Odamex)
+ cmake_minimum_required(VERSION 2.8)
+
+@@ -73,10 +80,21 @@ if(USE_INTREE_PORTMIDI)
+ endif()
+
+ # Subdirectories for Odamex projects
+-add_subdirectory(client)
+-add_subdirectory(server)
+-add_subdirectory(master)
+-add_subdirectory(odalaunch)
++if(BUILD_CLIENT)
++ add_subdirectory(client)
++endif()
++if(BUILD_SERVER)
++ add_subdirectory(server)
++endif()
++if(BUILD_MASTER)
++ add_subdirectory(master)
++endif()
++if(BUILD_ODALAUNCH)
++ add_subdirectory(odalaunch)
++endif()
++if(NOT BUILD_CLIENT AND NOT BUILD_SERVER AND NOT BUILD_MASTER)
++ message(FATAL_ERROR "No target chosen, doing nothing.")
++endif()
+
+ # Disable the ag-odalaunch target completely: -DNO_AG-ODALAUNCH_TARGET
+ # This is only really useful when setting up a universal build.
+diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
+index 3f73ab5..7363c5a 100644
+--- a/client/CMakeLists.txt
++++ b/client/CMakeLists.txt
+@@ -107,17 +107,21 @@ include_directories(${PNG_INCLUDE_DIRS})
+ add_definitions(-DUSE_PNG)
+
+ # PortMidi configuration
+-if(USE_INTREE_PORTMIDI)
+- include_directories(../libraries/portmidi/pm_common/ ../libraries/portmidi/porttime/)
+- add_definitions(-DPORTMIDI)
++if(ENABLE_PORTMIDI)
++ if(USE_INTREE_PORTMIDI)
++ include_directories(../libraries/portmidi/pm_common/ ../libraries/portmidi/porttime/)
++ add_definitions(-DPORTMIDI)
++ else()
++ find_package(PortMidi QUIET)
++ if(PORTMIDI_FOUND)
++ include_directories(${PORTMIDI_INCLUDE_DIR})
++ add_definitions(-DPORTMIDI)
++ else()
++ message(WARNING "PortMidi not found, client will be built without PortMidi support.")
++ endif()
++ endif()
+ else()
+- find_package(PortMidi QUIET)
+- if(PORTMIDI_FOUND)
+- include_directories(${PORTMIDI_INCLUDE_DIR})
+- add_definitions(-DPORTMIDI)
+- else()
+- message(WARNING "PortMidi not found, client will be built without PortMidi support.")
+- endif()
++ message(STATUS "Portmidi disabled.")
+ endif()
+
+ # Find Mac frameworks
+@@ -147,10 +151,12 @@ if(SDL_FOUND AND SDLMIXER_FOUND)
+ target_link_libraries(odamex ${ZLIB_LIBRARY})
+ target_link_libraries(odamex ${PNG_LIBRARY} ${ZLIB_LIBRARY})
+
+- if(USE_INTREE_PORTMIDI)
+- target_link_libraries(odamex portmidi-static)
+- elseif(PORTMIDI_FOUND)
+- target_link_libraries(odamex ${PORTMIDI_LIBRARIES})
++ if(ENABLE_PORTMIDI)
++ if(USE_INTREE_PORTMIDI)
++ target_link_libraries(odamex portmidi-static)
++ elseif(PORTMIDI_FOUND)
++ target_link_libraries(odamex ${PORTMIDI_LIBRARIES})
++ endif()
+ endif()
+
+ if(WIN32)
+--
+1.9.1
+
diff --git a/games-engines/odamex/files/3-odamex-0.7.0-wad-search-path.patch b/games-engines/odamex/files/3-odamex-0.7.0-wad-search-path.patch
new file mode 100644
index 000000000000..77fb4e48996e
--- /dev/null
+++ b/games-engines/odamex/files/3-odamex-0.7.0-wad-search-path.patch
@@ -0,0 +1,67 @@
+From 9af4e992ff9fa10816beba36478c711ac2c8542a Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@gentoo.org>
+Date: Thu, 27 Mar 2014 21:17:21 +0100
+Subject: [PATCH 3/4] add odamex.wad install destination to wad search path
+
+---
+ CMakeLists.txt | 9 +++++++++
+ common/d_main.cpp | 2 ++
+ config.h.in | 6 ++++++
+ 3 files changed, 17 insertions(+)
+ create mode 100644 config.h.in
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 91d5c50..a06613e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -13,6 +13,15 @@
+
+ set(PROJECT_VERSION 0.7.0)
+ set(PROJECT_COPYRIGHT "2006-2014")
++
++configure_file (
++ "${PROJECT_SOURCE_DIR}/config.h.in"
++ "${PROJECT_BINARY_DIR}/config.h"
++ )
++
++include_directories(
++ ${PROJECT_BINARY_DIR}
++)
+
+ # Default build type
+ if(NOT MSVC)
+diff --git a/common/d_main.cpp b/common/d_main.cpp
+index 31d4f59..be0ffd2 100644
+--- a/common/d_main.cpp
++++ b/common/d_main.cpp
+@@ -23,6 +23,7 @@
+ //-----------------------------------------------------------------------------
+
+ #include "version.h"
++#include "config.h"
+
+ #include <sstream>
+ #include <string>
+@@ -506,6 +507,7 @@ static std::string BaseFileSearch(std::string file, std::string ext = "", std::s
+ D_AddSearchDir(dirs, getenv("DOOMWADDIR"), separator);
+ D_AddSearchDir(dirs, getenv("DOOMWADPATH"), separator);
+ D_AddSearchDir(dirs, getenv("HOME"), separator);
++ D_AddSearchDir(dirs, CMAKE_WADDIR, separator);
+
+ // [AM] Search additional paths based on platform
+ D_AddPlatformSearchDirs(dirs);
+diff --git a/config.h.in b/config.h.in
+new file mode 100644
+index 0000000..e91b3a6
+--- /dev/null
++++ b/config.h.in
+@@ -0,0 +1,6 @@
++#ifndef CONFIG_H
++#define CONFIG_H
++
++#define CMAKE_WADDIR "@CMAKE_INSTALL_DATADIR@"
++
++#endif
+--
+1.9.1
+
diff --git a/games-engines/odamex/files/4-odamex-0.7.0-odalauncher-bin-path.patch b/games-engines/odamex/files/4-odamex-0.7.0-odalauncher-bin-path.patch
new file mode 100644
index 000000000000..acb2692e75fb
--- /dev/null
+++ b/games-engines/odamex/files/4-odamex-0.7.0-odalauncher-bin-path.patch
@@ -0,0 +1,58 @@
+From 672b2e61f3c0347c29746a4a22fe3ab912e88d62 Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@gentoo.org>
+Date: Thu, 27 Mar 2014 21:19:48 +0100
+Subject: [PATCH 4/4] use CMAKE_BINDIR as default bin patch in odalauncher
+
+---
+ config.h.in | 1 +
+ odalaunch/src/dlg_main.cpp | 6 +++++-
+ 2 files changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/config.h.in b/config.h.in
+index e91b3a6..7019a02 100644
+--- a/config.h.in
++++ b/config.h.in
+@@ -2,5 +2,6 @@
+ #define CONFIG_H
+
+ #define CMAKE_WADDIR "@CMAKE_INSTALL_DATADIR@"
++#define CMAKE_BINDIR "@CMAKE_INSTALL_BINDIR@"
+
+ #endif
+diff --git a/odalaunch/src/dlg_main.cpp b/odalaunch/src/dlg_main.cpp
+index a95a5f6..abbfc0a 100644
+--- a/odalaunch/src/dlg_main.cpp
++++ b/odalaunch/src/dlg_main.cpp
+@@ -27,6 +27,7 @@
+ #include "str_utils.h"
+
+ #include "md5.h"
++#include "config.h"
+
+ #include <wx/settings.h>
+ #include <wx/menu.h>
+@@ -42,6 +43,7 @@
+ #include <wx/process.h>
+ #include <wx/toolbar.h>
+ #include <wx/xrc/xmlres.h>
++#include <wx/string.h>
+ #include <wx/cmdline.h>
+
+ #ifdef __WXMSW__
+@@ -205,10 +207,12 @@ dlgMain::dlgMain(wxWindow* parent, wxWindowID id)
+ }
+ #endif
+
++ const char *cmake_bindir_str = CMAKE_BINDIR;
++ wxString cmake_bindir = wxString::FromAscii(cmake_bindir_str);
+ launchercfg_s.get_list_on_start = 1;
+ launchercfg_s.show_blocked_servers = 0;
+ launchercfg_s.wad_paths = wxGetCwd();
+- launchercfg_s.odamex_directory = wxGetCwd();
++ launchercfg_s.odamex_directory = cmake_bindir;
+
+ m_LstCtrlServers = XRCCTRL(*this, "Id_LstCtrlServers", LstOdaServerList);
+ m_LstCtrlPlayers = XRCCTRL(*this, "Id_LstCtrlPlayers", LstOdaPlayerList);
+--
+1.9.1
+
diff --git a/games-engines/odamex/files/odamex-0.7.0-gcc6.patch b/games-engines/odamex/files/odamex-0.7.0-gcc6.patch
new file mode 100644
index 000000000000..9e341b881ccd
--- /dev/null
+++ b/games-engines/odamex/files/odamex-0.7.0-gcc6.patch
@@ -0,0 +1,39 @@
+Bug: https://bugs.gentoo.org/610566
+Commit: https://github.com/odamex/odamex/commit/1d8121c78fe2db9befb05dd40ceb9b86062024e4
+
+From 1d8121c78fe2db9befb05dd40ceb9b86062024e4 Mon Sep 17 00:00:00 2001
+From: rice <russell@odamex.net>
+Date: Tue, 30 Aug 2016 08:37:15 +0000
+Subject: [PATCH] - Apply patch from bug 1177, thanks RjY!
+
+SVN r5444 (trunk)
+---
+ common/m_vectors.cpp | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/common/m_vectors.cpp b/common/m_vectors.cpp
+index b51e4e40..2eb48a04 100644
+--- a/common/m_vectors.cpp
++++ b/common/m_vectors.cpp
+@@ -541,16 +541,16 @@ void M_PerpendicularVec3(v3double_t *dest, const v3double_t *src)
+ {
+ // find the smallest component of the vector src
+ v3double_t tempvec;
+- double minelem = src->x;
++ double minelem = fabs(src->x);
+ double *mincomponent = &(tempvec.x);
+- if (abs(src->y) < minelem)
++ if (fabs(src->y) < minelem)
+ {
+- minelem = abs(src->y);
++ minelem = fabs(src->y);
+ mincomponent = &(tempvec.y);
+ }
+- if (abs(src->z) < minelem)
++ if (fabs(src->z) < minelem)
+ {
+- minelem = abs(src->z);
++ minelem = fabs(src->z);
+ mincomponent = &(tempvec.z);
+ }
+
diff --git a/games-engines/odamex/files/odamex-0.7.0-miniupnpc.patch b/games-engines/odamex/files/odamex-0.7.0-miniupnpc.patch
new file mode 100644
index 000000000000..34896e2a4e8b
--- /dev/null
+++ b/games-engines/odamex/files/odamex-0.7.0-miniupnpc.patch
@@ -0,0 +1,35 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Thu Mar 27 21:16:02 UTC 2014
+Subject: unbundle miniupnpc
+
+--- a/server/CMakeLists.txt
++++ b/server/CMakeLists.txt
+@@ -29,8 +29,7 @@
+ set(JSONCPP_SOURCE ${JSONCPP_DIR}/jsoncpp.cpp)
+
+ # MiniUPnPc
+-set(MINIUPNPC_DIR ../libraries/libminiupnpc)
+-set(MINIUPNPC_STATIC_LIBRARIES upnpc-static)
++set(MINIUPNPC_DIR /usr/include/miniupnpc)
+
+ # Platform definitions
+ define_platform()
+@@ -54,7 +53,7 @@
+ ${COMMON_SOURCES} ${COMMON_HEADERS}
+ ${SERVER_SOURCES} ${SERVER_HEADERS}
+ ${SERVER_WIN32_HEADERS} ${SERVER_WIN32_RESOURCES})
+-target_link_libraries(odasrv ${MINIUPNPC_STATIC_LIBRARIES})
++target_link_libraries(odasrv -lminiupnpc)
+
+ if(WIN32)
+ target_link_libraries(odasrv winmm wsock32)
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -71,7 +71,6 @@
+ set(UPNPC_BUILD_TESTS OFF CACHE INTERNAL "" FORCE)
+ set(UPNPC_INSTALL OFF CACHE INTERNAL "" FORCE)
+ mark_as_advanced(FORCE UPNPC_INSTALL)
+-add_subdirectory(libraries/libminiupnpc)
+
+ # PortMidi
+ cmake_dependent_option(USE_INTREE_PORTMIDI "Compile with the version of PortMidi included in the source tree." ON "WIN32" OFF)
diff --git a/games-engines/odamex/metadata.xml b/games-engines/odamex/metadata.xml
new file mode 100644
index 000000000000..fa5e66cf1fde
--- /dev/null
+++ b/games-engines/odamex/metadata.xml
@@ -0,0 +1,38 @@
+<?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>mwoodj@knology.net</email>
+ <name>Mike Wood</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="odalaunch">Build the wxwidgets based launcher.</flag>
+ <flag name="master">Build master server target (advertises odamex server list)</flag>
+ <flag name="portmidi">Enable portmidi support.</flag>
+ <flag name="server">Build server target.</flag>
+ </use>
+ <upstream>
+ <changelog>http://odamex.net/changelog.php</changelog>
+ <doc lang="en">http://odamex.net/wiki/Odamex</doc>
+ <bugs-to>http://odamex.net/bugs/</bugs-to>
+ <remote-id type="sourceforge">odamex</remote-id>
+ </upstream>
+ <longdescription lang="en">
+ Odamex is a free and open source port for the classic
+ first-person-shooter Doom. Odamex's goal is to emulate the feel of and
+ retain many aspects of the original Doom executables while offering a
+ broader expanse of security features, personal configuration, gameplay
+ options, and editing features. Odamex can run on a wide range of
+ operating systems and hardware, so players should be able to play
+ on almost any platform.
+ </longdescription>
+</pkgmetadata>
diff --git a/games-engines/odamex/odamex-0.7.0.ebuild b/games-engines/odamex/odamex-0.7.0.ebuild
new file mode 100644
index 000000000000..552df25f75a1
--- /dev/null
+++ b/games-engines/odamex/odamex-0.7.0.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+WX_GTK_VER="3.0"
+inherit cmake-utils eutils gnome2-utils wxwidgets games
+
+MY_P=${PN}-src-${PV}
+DESCRIPTION="An online multiplayer, free software engine for Doom and Doom II"
+HOMEPAGE="http://odamex.net/"
+SRC_URI="mirror://sourceforge/${PN}/Odamex/${PV}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="dedicated +odalaunch master portmidi server"
+
+RDEPEND="
+ dedicated? ( >=net-libs/miniupnpc-1.8 )
+ !dedicated? (
+ media-libs/libpng:0
+ >=media-libs/libsdl-1.2.9[X,sound,joystick,video]
+ >=media-libs/sdl-mixer-1.2.6
+ odalaunch? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )
+ portmidi? ( media-libs/portmidi )
+ server? ( >=net-libs/miniupnpc-1.8 )
+ )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/src-${PV:2:3}
+
+pkg_pretend() {
+ if ! test-flag-CXX -std=c++11; then
+ die "You need at least GCC 4.7.x or Clang >= 3.0 for C++11-specific compiler flags"
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/1-${P}-install-rules.patch \
+ "${FILESDIR}"/2-${P}-cmake-options.patch \
+ "${FILESDIR}"/3-${P}-wad-search-path.patch \
+ "${FILESDIR}"/4-${P}-odalauncher-bin-path.patch \
+ "${FILESDIR}"/${P}-miniupnpc.patch \
+ "${FILESDIR}"/${P}-gcc6.patch
+
+ rm -r libraries/libminiupnpc || die
+
+ epatch_user
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_INTREE_PORTMIDI=OFF
+ -DCMAKE_INSTALL_BINDIR="${GAMES_BINDIR}"
+ -DCMAKE_INSTALL_DATADIR="${GAMES_DATADIR}"
+ $(cmake-utils_use_build master MASTER)
+ )
+
+ if use dedicated ; then
+ mycmakeargs+=(
+ -DBUILD_CLIENT=OFF
+ -DBUILD_ODALAUNCH=OFF
+ -DBUILD_SERVER=ON
+ -DENABLE_PORTMIDI=OFF
+ )
+ else
+ mycmakeargs+=(
+ -DBUILD_CLIENT=ON
+ $(cmake-utils_use_build odalaunch ODALAUNCH)
+ $(cmake-utils_use_build server SERVER)
+ $(cmake-utils_use_enable portmidi PORTMIDI)
+ )
+ fi
+
+ append-cxxflags -std=c++11
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if ! use dedicated ; then
+ newicon -s 128 "${S}/media/icon_${PN}_128.png" "${PN}.png"
+ make_desktop_entry ${PN}
+
+ if use odalaunch ; then
+ newicon -s 128 "${S}/media/icon_odalaunch_128.png" "odalaunch.png"
+ make_desktop_entry odalaunch "Odamex Launcher" odalaunch
+ fi
+ fi
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ einfo
+ elog "This is just the engine, you will need doom resource files in order to play."
+ elog "Check: http://odamex.net/wiki/FAQ#What_data_files_are_required.3F"
+ einfo
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-engines/openmw/Manifest b/games-engines/openmw/Manifest
new file mode 100644
index 000000000000..d930e1848607
--- /dev/null
+++ b/games-engines/openmw/Manifest
@@ -0,0 +1,5 @@
+DIST openmw-0.41.0.tar.gz 4884093 SHA256 a3e1c7d060dc461b9b63ceb5d9ec56b90c1bdcbfd37f0c7c7310c38ec7e3e21d SHA512 a47a7af3c6d3252e22206eb776069ef87f698acbe133b0e0294db307486c28cb300085fcf45b436af541dbb22f6d45f2ee3998e50a1c711f667f8a738813255d WHIRLPOOL 1e20820a0c5ee0ab2b3f57b881e39dc9ebf42e5e1674badce363ea654ac38f40146f8f8b86d7535a7cd5ce4c63f46cc322c482ad5c354ae6ad14dd11ee134d32
+EBUILD openmw-0.41.0.ebuild 3358 SHA256 1f5181d06a0ef4dc0d6f5eef6cb490242a7f64da1897180031ddd8d2a928f201 SHA512 dd73f3eb3a9bc8a8ce2f3cdcb8525500005ed99f8c50205fa2ff9afe6b1e2fbfb47b59b34a65da176db9a8c586ed784cfcbd169ec10326a5f992a204d6f41474 WHIRLPOOL 928fe1ad6eb1361ad6aa5121b779a65a72fac5cb711fb3d35565be2b468bde5a8159af7ad349436dd07507c83dbc37093836bd05b4079566c042465132772706
+MISC ChangeLog 4385 SHA256 5ab32215d5b6c16adc79b254e7173a451780d3cee243c1aeca6be29cb2d328b1 SHA512 00f2386ecd39e520a55337b797532f3c398e7442244839afa1351970ddc81103e933eea8aa3b56a0c43070ed9a36364415e0abea1720c420d46a7241fcddd202 WHIRLPOOL 47fdaaff8d7f844641084e8dee6dc1980bf084ad6db73097ed66e5de29f6cc6f2960ac035d957cb1108d9c30e408b4ad98619cf44a15341ae67849b77365027e
+MISC ChangeLog-2015 1297 SHA256 ccd53251654ece1d9deb46f95a83c20f0123938852e8209c8011bf40c0d5ef7b SHA512 7a9de3b6ae266009376f73ad57ed122d699b8ecc60a3735cf805b74091d016762b7c84b0b8fcf50111078368f9fc1cec864e1f4888e77ec90479543676f1f34d WHIRLPOOL 936dab547f842b4233bd51669ad196dbbd20b4468ac031022724a511dce85abf93377a7d9d345025c43b30760246e03d2ffc653d64685a0a094e490c8e91b3db
+MISC metadata.xml 1044 SHA256 a63d73a864c22f28bc34b05ef5fd07d98cfb57660a5b4cb856426fb7f2cd6e66 SHA512 c47622fc66013a7c61b1f865619a77707b296b051df54bd75048073b6b5875d97fb300d490a5aba923cc369566ffb5f3dbab16451d1bf48f5f91de18ee7c2116 WHIRLPOOL 78e7850717965db7cc0e42a0d346ed5d9663a004c45a2f8bb89be6f88f832de7cfe4c0bddbf3cb99fd31e9df85f68666e3a3d0714f25747e52a581f9213e1b4e
diff --git a/games-engines/openmw/metadata.xml b/games-engines/openmw/metadata.xml
new file mode 100644
index 000000000000..191124d297e1
--- /dev/null
+++ b/games-engines/openmw/metadata.xml
@@ -0,0 +1,26 @@
+<?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="devtools">Install development tools like
+ bsatool, esmtool and opencs.</flag>
+ </use>
+ <upstream>
+ <changelog>https://github.com/OpenMW/openmw/releases</changelog>
+ <doc lang="en">https://wiki.openmw.org</doc>
+ <bugs-to>https://bugs.openmw.org/</bugs-to>
+ <remote-id type="github">OpenMW/openmw</remote-id>
+ </upstream>
+ <longdescription lang="en">
+ OpenMW is a new and modern engine based on the one that runs the 2002
+ open-world RPG Morrowind. The engine (OpenMW) will come with its own
+ editor (OpenCS) which will allow the user to edit or create their own
+ games. Both OpenCS and OpenMW are written from scratch and aren’t
+ made to support any third party programs the original Morrowind
+ engine uses to improve its functionality.
+ </longdescription>
+</pkgmetadata>
diff --git a/games-engines/openmw/openmw-0.41.0.ebuild b/games-engines/openmw/openmw-0.41.0.ebuild
new file mode 100644
index 000000000000..bd58ecbd02d1
--- /dev/null
+++ b/games-engines/openmw/openmw-0.41.0.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Open source reimplementation of TES III: Morrowind"
+HOMEPAGE="https://openmw.org/"
+SRC_URI="https://github.com/OpenMW/openmw/archive/${P}.tar.gz"
+
+LICENSE="GPL-3 MIT BitstreamVera ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc devtools +qt5"
+
+# 0.37.0: >=media-video/ffmpeg-0.9 is required for swresample
+RDEPEND="
+ >=dev-games/openscenegraph-3.3.4[ffmpeg,jpeg,png,qt5,sdl,svg,truetype,zlib]
+ dev-games/mygui
+ dev-libs/boost:=[threads]
+ dev-libs/tinyxml[stl]
+ media-libs/libsdl2[joystick,opengl,video,X]
+ media-libs/openal
+ || ( media-libs/libtxc_dxtn x11-drivers/nvidia-drivers )
+ media-video/ffmpeg:=
+ >=sci-physics/bullet-2.83
+ virtual/opengl
+ qt5? (
+ app-arch/unshield
+ dev-qt/qtcore:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtopengl:5
+ dev-qt/qtwidgets:5
+ )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? (
+ app-doc/doxygen
+ dev-python/sphinx
+ media-gfx/graphviz
+ )
+"
+
+S="${WORKDIR}/${PN}-${P}"
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # We don't install license files
+ sed -e '/LICDIR/d' \
+ -i CMakeLists.txt || die
+ # Use the system tinyxml headers
+ sed -e 's/"tinyxml.h"/<tinyxml.h>/g' \
+ -e 's/"tinystr.h"/<tinystr.h>/g' \
+ -i extern/oics/ICSPrerequisites.h || die
+}
+
+src_configure() {
+ use devtools && ! use qt5 && \
+ elog "'qt5' USE flag is disabled, 'openmw-cs' will not be installed"
+
+ local mycmakeargs=(
+ -DBUILD_BSATOOL=$(usex devtools)
+ -DBUILD_ESMTOOL=$(usex devtools)
+ -DBUILD_OPENCS=$(usex devtools $(usex qt5))
+ -DBUILD_NIFTEST=$(usex devtools)
+ -DBUILD_LAUNCHER=$(usex qt5)
+ -DBUILD_WIZARD=$(usex qt5)
+ -DBUILD_UNITTESTS=OFF
+ -DGLOBAL_DATA_PATH=/usr/share
+ -DICONDIR="/usr/share/icons/hicolor/256x256/apps"
+ -DMORROWIND_DATA_FILES="/usr/share/morrowind-data"
+ -DUSE_SYSTEM_TINYXML=ON
+ -DDESIRED_QT_VERSION=5
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc ; then
+ emake -C "${CMAKE_BUILD_DIR}" doc
+ find "${CMAKE_BUILD_DIR}"/docs/Doxygen/html \
+ -name '*.md5' -type f -delete || die
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # about 43k files, dodoc seems to have trouble
+ if use doc ; then
+ dodir "/usr/share/doc/${PF}"
+ mv "${CMAKE_BUILD_DIR}"/docs/Doxygen/html \
+ "${D}/usr/share/doc/${PF}/" || die
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+
+ elog "You need the original Morrowind data files. If you haven't"
+ elog "installed them yet, you can install them straight via the"
+ elog "installation wizard which is the officially supported method"
+ elog "(either by using the launcher or by calling 'openmw-wizard'"
+ elog "directly)."
+
+ if ! use qt5; then
+ elog
+ elog "'qt5' USE flag is disabled, 'openmw-launcher' and"
+ elog "'openmw-wizard' are not available. You are on your own for"
+ elog "making the Morrowind data files available and pointing"
+ elog "openmw at them."
+ elog
+ elog "Additionally; you must import the Morrowind.ini file before"
+ elog "running openmw with the Morrowind data files for the first"
+ elog "time. Typically this can be done like so:"
+ elog
+ elog " mkdir -p ~/.config/openmw"
+ elog " openmw-iniimporter /path/to/Morrowind.ini ~/.config/openmw/openmw.cfg"
+ fi
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-engines/openxcom/Manifest b/games-engines/openxcom/Manifest
new file mode 100644
index 000000000000..2db2a6664b7f
--- /dev/null
+++ b/games-engines/openxcom/Manifest
@@ -0,0 +1,7 @@
+DIST openxcom-1.0.0.tar.gz 2068640 SHA256 45acb280010a01d60506b1c5f2951ae501c012cc6161aac470bd15c1e6981246 SHA512 597abd2e7160551a3d6020d7c6fec863f86b708910ee582d446f2a5f97be94dc7e2522ede2e7ab4f62a2d21acf07ce441a435f74b530950e2f0b5791c00e06ab WHIRLPOOL fe63cb513b5413e16656f711564ce21eac3d3dc7a7674dcb62bc01f022b49c23dead30e80bbc0545f58e5a8a35cd635fd721c6243900a0bdba86de14c8ab8de9
+EBUILD openxcom-1.0.0-r1.ebuild 1664 SHA256 78bbaeb2ad3dbff213b69678d972a2db5a76f2dbe501401f0c3662da0939af7e SHA512 d108cf355c660b9257a7f0171179dbffbfd19f95b4a87f14bb75c210128178336c91f44d0461c7f9027ad5eaa8342b0ceb2f007b20d26e9b5ac0f088c773781d WHIRLPOOL dd02da7429c67a3d78ff15c29048e32faa4887dca52bab38420f2e1b6b9b19ce583ef15a9676cc37fa11079b3ec39318865c5de2dd1a79630280d5c67c9d5cb5
+EBUILD openxcom-1.0.0.ebuild 1815 SHA256 03f8aa380b4a8d5e31f6f0d557df054369479eca3f10f655c0046496e08bca74 SHA512 63f603cb04eaa197dde83950045732514b3981b2110463977a125803c20c9d1059d5506dd9f3eca3e38c9d3179d7e04b346b69fe14ed71eef7370cf868d27eb6 WHIRLPOOL 0a5946db4698b9f25b7e1f3f0dd9d6e0830e4aaa7f60c933f720ad1a146e2dacd2d983c835f26425c9ebd8c8427179973245323b3d6d94c465b63ab79a488aab
+EBUILD openxcom-9999.ebuild 1966 SHA256 578299906b46c5c31f65e0eae86e012956692605f3eae05ba33a74237f5345fe SHA512 9184487964697db4056dc46fe861227d908607a891c6f961479c390f5e36944cd95f454ba10a4ffd7ecf349e46199d32064a574e2b63ea1911bf4151b6e55cb8 WHIRLPOOL 39f6d7bfb62f9378c2559684424103163da7925c276f42c50686cbcab6420a23272688748e396a0508217ea1d75843f57eb2b9c95b71a8e4349dc91e52ef9dfd
+MISC ChangeLog 2934 SHA256 eace412ee0d77f4b39ac2f5b6e1cbe53a60d3e2596e17018754b5740c76b27ad SHA512 da553ad5df0e367fd699e0ca8d3f3e12dfd4c1bae40e16f8bd015d1971e066fa3acf245e30ecc6456c50191313d7934ff2fcd5d0511edd1b8eecea610cb5daf2 WHIRLPOOL 8838679f69f95370f9464743ff5c62207c7a9127242c7d82c029c32eb10fa66540005629fec55af19094d989d5c0ca2159d8b8e2adb019778f5afea0e849818d
+MISC ChangeLog-2015 954 SHA256 77e00b73de9b1657f20f066d64d8899b8bf396b4872169b4b4313dc8fdfaff90 SHA512 d21547da4a6ffc6ea50d66249614bdc0a4207abf32ccb03b34673a65149184c7fe03e8f85fc5294d4e752903e8964af8d22bb5ca0c3f0354447d9823f15d27d1 WHIRLPOOL 37f57d7b2fa5154773714d34b37d5225adb62af5a0ba108f81a67b4a21d3c78f8e0ea11a7fa3032aaa27fc1b94a3f8c3ef25b4bd5e60a09125d1e0fbd3c49236
+MISC metadata.xml 335 SHA256 dd238caa80408ff69c3650cde791bae4bc00978af69e505a9267905798ba317d SHA512 6d1deba17f18970b9425af0038c24be6f0e0fea46a095d34055884d8899442bc1f0a4f72343f2cf1f66f63c5287dc0373086e111b45ee64a47b8715e2237d6cd WHIRLPOOL 6a9af7e7a11145d3587b3f44985b806ab67b20e20a917b82c6af9ed8c75b34d3d9b8aff4bfc66afed58ce837a346b85d8294be7a85d70cd1e813eedfe173347f
diff --git a/games-engines/openxcom/metadata.xml b/games-engines/openxcom/metadata.xml
new file mode 100644
index 000000000000..86822013a1c2
--- /dev/null
+++ b/games-engines/openxcom/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">SupSuper/OpenXcom</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-engines/openxcom/openxcom-1.0.0-r1.ebuild b/games-engines/openxcom/openxcom-1.0.0-r1.ebuild
new file mode 100644
index 000000000000..fcbf6ebf2629
--- /dev/null
+++ b/games-engines/openxcom/openxcom-1.0.0-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils cmake-utils gnome2-utils
+
+DESCRIPTION="An open-source reimplementation of the popular UFO: Enemy Unknown"
+HOMEPAGE="http://openxcom.org/"
+SRC_URI="https://github.com/SupSuper/OpenXcom/archive/v1.0.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3 CC-BY-SA-4.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND=">=dev-cpp/yaml-cpp-0.5.1
+ media-libs/libsdl[opengl,video]
+ media-libs/sdl-gfx
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[flac,mikmod,vorbis]"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+DOCS=( README.txt )
+
+S=${WORKDIR}/OpenXcom-1.0
+
+src_configure() {
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ use doc && cmake-utils_src_compile doxygen
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ use doc && dodoc -r "${CMAKE_BUILD_DIR}"/docs/html/*
+ doicon -s scalable res/linux/icons/openxcom.svg
+ newicon -s 48 res/linux/icons/openxcom_48x48.png openxcom.png
+ newicon -s 128 res/linux/icons/openxcom_128x128.png openxcom.png
+ domenu res/linux/openxcom.desktop
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ echo
+ elog "In order to play you need copy GEODATA, GEOGRAPH, MAPS, ROUTES, SOUND,"
+ elog "TERRAIN, UFOGRAPH, UFOINTRO, UNITS folders from original X-COM game to"
+ elog "/usr/share/${PN}/data"
+ echo
+ elog "If you need or want text in some language other than english, download:"
+ elog "http://openxcom.org/translations/latest.zip and uncompress it in"
+ elog "/usr/share/${PN}/data/Language"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-engines/openxcom/openxcom-1.0.0.ebuild b/games-engines/openxcom/openxcom-1.0.0.ebuild
new file mode 100644
index 000000000000..d4edc5bb5a12
--- /dev/null
+++ b/games-engines/openxcom/openxcom-1.0.0.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 cmake-utils gnome2-utils games
+
+DESCRIPTION="An open-source reimplementation of the popular UFO: Enemy Unknown"
+HOMEPAGE="http://openxcom.org/"
+SRC_URI="https://github.com/SupSuper/OpenXcom/archive/v1.0.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3 CC-BY-SA-4.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc"
+
+RDEPEND=">=dev-cpp/yaml-cpp-0.5.1
+ media-libs/libsdl[opengl,video]
+ media-libs/sdl-gfx
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[flac,mikmod,vorbis]"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+DOCS=( README.txt )
+
+S=${WORKDIR}/OpenXcom-1.0
+
+src_configure() {
+ mycmakeargs=(
+ "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}"
+ "-DDATADIR=${GAMES_DATADIR}/${PN}"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ use doc && cmake-utils_src_compile doxygen
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ use doc && dohtml -r "${CMAKE_BUILD_DIR}"/docs/html/*
+ doicon -s scalable res/linux/icons/openxcom.svg
+ newicon -s 48 res/linux/icons/openxcom_48x48.png openxcom.png
+ newicon -s 128 res/linux/icons/openxcom_128x128.png openxcom.png
+ domenu res/linux/openxcom.desktop
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+ echo
+ elog "In order to play you need copy GEODATA, GEOGRAPH, MAPS, ROUTES, SOUND,"
+ elog "TERRAIN, UFOGRAPH, UFOINTRO, UNITS folders from original X-COM game to"
+ elog "${GAMES_DATADIR}/${PN}/data"
+ echo
+ elog "If you need or want text in some language other than english, download:"
+ elog "http://openxcom.org/translations/latest.zip and uncompress it in"
+ elog "${GAMES_DATADIR}/${PN}/data/Language"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-engines/openxcom/openxcom-9999.ebuild b/games-engines/openxcom/openxcom-9999.ebuild
new file mode 100644
index 000000000000..6732dfdefa91
--- /dev/null
+++ b/games-engines/openxcom/openxcom-9999.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 cmake-utils gnome2-utils git-r3
+
+DESCRIPTION="An open-source reimplementation of the popular UFO: Enemy Unknown"
+HOMEPAGE="http://openxcom.org/"
+EGIT_REPO_URI="https://github.com/SupSuper/OpenXcom.git"
+
+LICENSE="GPL-3+ CC-BY-SA-4.0"
+SLOT="0"
+KEYWORDS=""
+IUSE="doc"
+
+RDEPEND=">=dev-cpp/yaml-cpp-0.5.1
+ media-libs/libsdl[opengl,video]
+ media-libs/sdl-gfx
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[flac,mikmod,vorbis]"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+src_unpack() {
+ git-r3_src_unpack
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+ sed -i -e '/\/res\//d' CMakeLists.txt || die
+}
+
+src_configure() {
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ use doc && cmake-utils_src_compile doxygen
+ cmake-utils_src_compile
+}
+
+src_install() {
+ DOCS="README.md" \
+ cmake-utils_src_install
+ use doc && dodoc -r "${CMAKE_BUILD_DIR}"/docs/html/*
+ doicon -s scalable res/linux/icons/openxcom.svg
+ newicon -s 48 res/linux/icons/openxcom_48x48.png openxcom.png
+ newicon -s 128 res/linux/icons/openxcom_128x128.png openxcom.png
+ domenu res/linux/openxcom.desktop
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ echo
+ elog "In order to play you need copy GEODATA, GEOGRAPH, MAPS, ROUTES, SOUND,"
+ elog "TERRAIN, UFOGRAPH, UFOINTRO, UNITS folders from original X-COM game to"
+ elog "/usr/share/${PN}/UFO"
+ echo
+ elog "If you want to play the TFTD mod, you need to copy ANIMS, FLOP_INT,"
+ elog "GEODATA, GEOGRAPH, MAPS, ROUTES, SOUND, TERRAIN, UFOGRAPH, UNITS folders"
+ elog "from the original Terror from the Deep game to"
+ elog "/usr/share/${PN}/TFTD"
+ echo
+ elog "If you need or want text in some language other than english, download:"
+ elog "http://openxcom.org/translations/latest.zip and uncompress it in"
+ elog "/usr/share/${PN}/common/Language"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-engines/qtads/Manifest b/games-engines/qtads/Manifest
new file mode 100644
index 000000000000..695c34021a47
--- /dev/null
+++ b/games-engines/qtads/Manifest
@@ -0,0 +1,5 @@
+DIST qtads-2.1.7.tar.bz2 2562026 SHA256 7477bb3cb1f74dcf7995a25579be8322c13f64fb02b7a6e3b2b95a36276ef231 SHA512 ab88aa20991642df6048af49d2cd7b804dbb98b3f5c6ab38ad974e8b39531d880eac0eae0ba773f332e9568578b76b677bc35753f7d1e6d9a99d919b15f4c6ee WHIRLPOOL 2b0a121b89e5445a3950681d51172ebe0665174cd194d3b40fab503e672895ed99129f4f8ae207ad1cf59bc5aeac84f26ad8a141bc28655f4e271a2a9cd84280
+EBUILD qtads-2.1.7.ebuild 1016 SHA256 0062a88e8c7f4d93d9f6c4641e268961236c320f2533c31011882c9c9b40e1e6 SHA512 cce40c281c8dae819391cd62b865f94320c58e46431a2d5c628decde256057d967adfa3ed14e164fc87adf48b7fc9bcdaded8a0e9f14400a29f66ebb9f4a844b WHIRLPOOL b1ec3d5bf80a785d6cf72f440fb1d96795c4a9fabef932bc5862b8e5f9fba557390cc4204c13e38c381d6ddfaa6951a0399b739cdd5d0d319615a7f57bdc61db
+MISC ChangeLog 3075 SHA256 5ee56183353e10017eb18c8590f9f63f4c4b288def3c93d3d8c7003a2a3357b2 SHA512 4267d3d89ee777bdbc8ed2b05578f7a825d4ab955fe8032d25b0a779b4718114af4651ca1abd5729b9f142bd8bd273643d82ab472675fee19d986f97b22a5f6d WHIRLPOOL 27e2d28b8f474c1961493807d802b9938aa2cdbed4a54e411b7f42627e2014f8217bf161f4a0392fcab2215a452a63bd8e4e8fdeb6a0beec811b64c5e6ad22a3
+MISC ChangeLog-2015 3272 SHA256 aeda3c4a0314fe6f153ad338bbbd7a3c86006f1ae04a72838b9437824ae89981 SHA512 d2a44843778c63b88e7bfa8aa9302d949adc3b2a46df08482a25a8d96b3ed1ffd07cac7711537ed435cf8a8b51e28abd3339a0b0d15793115bbacd62d694ef64 WHIRLPOOL 6eb44c7b1e7bc666d62a6d4ba17878055a857c4b0cf5f3c904e4540f38c391f9fa75fac1c6ee99f3a153a1df6fbf642b8ac5048e8ece83a4e7f995d061846048
+MISC metadata.xml 338 SHA256 824c51be7b6b508cb52407ac13e0288d5eeef25fa9c737bb5169d820ae824767 SHA512 18a82c16eb83363eb440ad9ca6ce1c612a17011194b3e1f50ac2563c0ef72c96c8618643f25ed8df81c852045a281498fabf18468c2181051f28e584738b8472 WHIRLPOOL 31ed282728687811e5e8cd65691baddcb9f564c35c571534c90019cce0f4df0b6203181a908cd78fff74347a5be5e5ff9c77f521bef44aa1341863e2912c9b87
diff --git a/games-engines/qtads/metadata.xml b/games-engines/qtads/metadata.xml
new file mode 100644
index 000000000000..b4146b480895
--- /dev/null
+++ b/games-engines/qtads/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">qtads</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-engines/qtads/qtads-2.1.7.ebuild b/games-engines/qtads/qtads-2.1.7.ebuild
new file mode 100644
index 000000000000..4ace1e8c18f4
--- /dev/null
+++ b/games-engines/qtads/qtads-2.1.7.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils gnome2-utils fdo-mime qmake-utils games
+
+DESCRIPTION="Multimedia interpreter for TADS text adventures"
+HOMEPAGE="http://qtads.sourceforge.net"
+SRC_URI="mirror://sourceforge/qtads/${P}.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound]
+ media-libs/sdl-mixer[midi,vorbis]
+ media-libs/sdl-sound[mp3]
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5"
+RDEPEND=${DEPEND}
+
+src_configure() {
+ eqmake5 qtads.pro -after CONFIG-=silent
+}
+
+src_install() {
+ dogamesbin qtads
+ dodoc AUTHORS HTML_TADS_LICENSE NEWS README
+ insinto /usr
+ doins -r share
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/games-engines/renpy/Manifest b/games-engines/renpy/Manifest
new file mode 100644
index 000000000000..ce7821f131a9
--- /dev/null
+++ b/games-engines/renpy/Manifest
@@ -0,0 +1,14 @@
+AUX renpy-6.17.7-multiple-abi.patch 8291 SHA256 ec919186d61a78aece7b01d15984edd502a9886fdfd7a163f9fa0e26f28f06bf SHA512 fd39773b85a54ca709f412430654cacdc91caaa561ad2e15bb02b08b971997062fa3c1adad5e2b582a2dc7acc9886b717517e0c10c0bab6a36fd05e52e98edf9 WHIRLPOOL ca460eb3129c0c4f429af4f88cdcf0d6e164f89f2019fba2f9e97a690d5b132565cbbbc03f6365a74e901842715b012cbff03e67c1c17ca01ccfecae9be501e3
+AUX renpy-6.99.12.4-compat-infinite-loop.patch 1612 SHA256 b10e112a342720c8e5d30d59379310c2f516bfd7e5cd280879de9551c3cf91d1 SHA512 86cdba778680b46434c49bba345c37d626888d85c24c4f801396fed160d05607ae6c761cd9930b054e09f8a2d107a4ca05f1e5eed0dc4f51ea4ac2625f8cc77a WHIRLPOOL 88ceb6f5f82f819ed3c34b36a928c8882918b1142c3406c26a066ca851f8f82f870b128a3e255e50943d522f69b4e256a1ea5fc33193a33af90fd21f7cfc785e
+AUX renpy-6.99.12.4-compat-style.patch 1964 SHA256 0204cffce4df3a34f6a90d0caffc04b72bb5b04ba974caba01fd3d30722d0968 SHA512 199297d0841dd0212708bfbf3aa1950a6c7ba623da156994f09b73f3e797662ad92f85d40c896169d3643be2f20e2deb91357ed8f8c668ad06140b0f582650a5 WHIRLPOOL 06e054ff230f12410c518e41f2e1d6eb269f1186a813e6abd8102b99d253eaf05012ab05a854ddd220c62a1f9e8190dd524af915ce050e8ce674f5f3e48ea3af
+AUX renpy-6.99.12.4-compat-window.patch 2488 SHA256 8139af8ef11ebb39b618277723a66447e93b4edd9706391594c59134ea53a9eb SHA512 238d727750b114bd9e68b8d144adab0c470defcd386bd934d2c830f15947718d7dfa5001ef92733a0c3a7ac4b40ca459243b0c68ff8239b960290840d3d7dbf2 WHIRLPOOL 4eeeba3648c7e082dd0c0eff745ee31875cc1231d6c999ee50219d278b2592f3ac08b695cbdb6c934e4648aa53bb8d83eef45e4a00eaebc4ddc945bfdcdaf721
+AUX renpy-6.99.12.4-multiple-abi.patch 11945 SHA256 fcb3a2a9b1ff8a70388df214bd5a027973b486ce30913f3cf590cda2804f9546 SHA512 4ff4926ba5e92b2e72e206093a770b5d334a0c25fd4ace48c54b0ec6d8dfcb64a137f97238793703af927906d2df0723d2e36920ed50c6686fe8ba3602880759 WHIRLPOOL ca7d1b8a9d9db1c400cfbc5b056a05876a95e0a9275db9af379ec33644972caa76653ccd074ddc836f1e852ff52cd8719feae3052b803e6bc6747f2e70b847d2
+AUX renpy.1 4642 SHA256 249fb33053da00de6a8156b33b8d29df2536238016e353f4e69d8eb5d8bf851b SHA512 2727a6ff9675a2b82a979faf5d75e7b3b96915f4c7382d22bba35d74674e613f45d4e8437e24edb410aac45cd8d219cc68e118387e538aafb32b0c312443b066 WHIRLPOOL 1319d4587c2cecb2563aeb198e9aa98bd31733899e275bce137e12e0e806c9bc396e9ac6f2180c993acb2174c4bfc221c79d568a4ba051f5e6558e3bfb042bb3
+DIST renpy-6.17.7-source.tar.bz2 17932988 SHA256 fef01de9e482b73d9d409de7a43bada6dd3e2a0549b99dd487306371190ed038 SHA512 22b0e08b18ee35317b11451205233cbd8a29617d9c3d298bbdcfc5757f67c2f0e4c8a748aa83d5c8b43786c062ffca109d07e981efa750fcee26f45f08a33ea2 WHIRLPOOL fef82eb6c958a2525797e5d8bfae3488fba606b70eeed5c94f7afcab4fa46e7a7eb43d91b4bd55f553b65a72b12236e02ecdee55e8852c1fafc055332f9d131d
+DIST renpy-6.99.12.4-source.tar.bz2 18192453 SHA256 65d8c97acfce7a8025ad0f6a1a3d5ef88d4319ece02370f33cf7a791b320a30c SHA512 375b67e15630fc21915136e70bc93db6da7c2da192d39b1256822513ae44974124522c85f1976f2af62df27b5fa11493af488b02abcf0081eeae03e1a69dfca5 WHIRLPOOL 3044bcd5e241e95c8313a16da4049f71621def4669b9d76aa6892191443456e2c388f7a7aaa16a01e073311a83d1bde5452fc3e57f956571bfca2edc1db93ca9
+EBUILD renpy-6.17.7.ebuild 2521 SHA256 126b76d2bbbc369f0de27d0269fb88e84e6850875341b02bdb89a6394593342d SHA512 8dcee437ea8a1b9853d90d1c559988e0ea4206f5dbf2fb70e77231c2ba18999ff64f51ce0bf16dd4404bb20465a9fa266bb2855bdfe3db6ccb628a422791993c WHIRLPOOL 8e8cd8705b5c75bd830ec2053eff67b3527a3abfaa24184dec8c67b40bf50f21d75fd682000522f7c47e25c9917e6701db19424d87f7c27ced08a5828aa0bea2
+EBUILD renpy-6.99.12.4-r1.ebuild 2685 SHA256 44c780b41a5488f1cc87a1f86336919f6aeec5a3591a306b432d802ff117cb56 SHA512 fc38cbdc2a119de3c393ae2c07ad31c4b922cc7e0c50e285b48cae428712d5ea484b1efe48128ed4c9a4eebca61ae75dc8b3eaf25ae997bbf7454be58d03a27c WHIRLPOOL 362574bb1a42915b512a2834d3be7716769b9393e46846159dcc189689ba0ce8e828886294b7c769a6b0d4e5f7eecb3093d1e496d50dce78e6034feefe96d578
+EBUILD renpy-6.99.12.4-r3.ebuild 2598 SHA256 420178f30c7b6995bbed9276da41a5f62155953fc181f0a30a323a4143a1ca45 SHA512 afe651513c3064949af87eec4135574a950eaf7928bd93b8edbccb88cd4a14e45205f061ebd30f8ca37c90625ad31ca3712b46c415d436e7df6a251c5554bb93 WHIRLPOOL a7097cd7567a4c74fb146216ce547380139e53e1486a5ec51f8f7207665ecabac3f4afab15ba5d6e3d8345fa3259e5d8d12017a69dba7231348f6df4d811dd3b
+MISC ChangeLog 5360 SHA256 ac5de69fb729579c9670739ebe10c565ea4b95c342ee085381c60d2ae0c8e6e9 SHA512 86a4348b428cd50e596bf1de9f355496762df2014e9ab8d998b98482b7c0a2c57cdca34e8d1fb9f29bf73157fe9f4d8fac71c517a159da16d324cc7014af0605 WHIRLPOOL 568d1328d738504f377a65827d187dbd10aad28d2bc4fe12460f6731373a6b6e6165f636279f63e57fa98f990b571a807969c6a45cfb3342bdfd07014adeb409
+MISC ChangeLog-2015 9189 SHA256 acbb24bf21ff9bb29bc0f384d15d186cd60bb5fd0978642da75ebe178dcbbb14 SHA512 3ce6a44b3e5076ac4f320fbfcbd80705bb2911894978798220c2c3e135d714b2a16e52d3fa238ff6ba85ce0a85c2e9d14ccd4e25bd738212f7d778f9cbc1db7d WHIRLPOOL 0bc9a9b06b1b09100d02eeac293a522deb4dec1486a00d2c992b1ecbea7ffebf519d9e9743fa5f7b3a7beb5ce110e3bb01b2060645b1ad462fbf5ace08ed2877
+MISC metadata.xml 1063 SHA256 9ea1615655712ef79aec4a064e15e0a4fefee45307a4a135ec02efeedea25ae2 SHA512 801640d22f7d54fa918564d14aa0bfbd63c6f106dd1ff690740b93bb7da51012c42b4b75431e3741c47049121bcfb908c3a1cde6b41091b51079c5f0cacc0753 WHIRLPOOL 2b795441fd98bd77a863be94d0e2f043f2f39c433b7f566f1204f83a7eb3f4f717d9aeb23d508fdf9d0d8bcfe29031e2d3971a8b378a44b9c656c15dd72ea86f
diff --git a/games-engines/renpy/files/renpy-6.17.7-multiple-abi.patch b/games-engines/renpy/files/renpy-6.17.7-multiple-abi.patch
new file mode 100644
index 000000000000..335af4e9b8d1
--- /dev/null
+++ b/games-engines/renpy/files/renpy-6.17.7-multiple-abi.patch
@@ -0,0 +1,245 @@
+commit 7451ba936ca2f3358ca51ab562371774199c7052
+Author: hasufell <hasufell@gentoo.org>
+Date: Tue Jan 21 01:02:00 2014 +0100
+
+ fix multiple abi support
+
+diff --git a/renpy.py b/renpy.py
+index 9f2977f..394e4e1 100644
+--- a/renpy.py
++++ b/renpy.py
+@@ -28,82 +28,9 @@
+ import os
+ import sys
+ import warnings
+-
+-# Functions to be customized by distributors. ################################
+-
+-# Given the Ren'Py base directory (usually the directory containing
+-# this file), this is expected to return the path to the common directory.
+-def path_to_common(renpy_base):
+- return renpy_base + "/renpy/common"
+-
+-# Given a directory holding a Ren'Py game, this is expected to return
+-# the path to a directory that will hold save files.
+-def path_to_saves(gamedir):
+- import renpy #@UnresolvedImport
+-
+- # Android.
+- if renpy.android:
+- paths = [
+- os.path.join(os.environ["ANDROID_OLD_PUBLIC"], "game/saves"),
+- os.path.join(os.environ["ANDROID_PRIVATE"], "saves"),
+- os.path.join(os.environ["ANDROID_PUBLIC"], "saves"),
+- ]
+-
+- for rv in paths:
+- if os.path.isdir(rv):
+- break
+-
+- print "Using savedir", rv
+-
+- # We return the last path as the default.
+-
+- return rv
+-
+-
+- # No save directory given.
+- if not renpy.config.save_directory:
+- return gamedir + "/saves"
+-
+- # Search the path above Ren'Py for a directory named "Ren'Py Data".
+- # If it exists, then use that for our save directory.
+- path = renpy.config.renpy_base
+-
+- while True:
+- if os.path.isdir(path + "/Ren'Py Data"):
+- return path + "/Ren'Py Data/" + renpy.config.save_directory
+-
+- newpath = os.path.dirname(path)
+- if path == newpath:
+- break
+- path = newpath
+-
+- # Otherwise, put the saves in a platform-specific location.
+- if renpy.macintosh:
+- rv = "~/Library/RenPy/" + renpy.config.save_directory
+- return os.path.expanduser(rv)
+-
+- elif renpy.windows:
+- if 'APPDATA' in os.environ:
+- return os.environ['APPDATA'] + "/RenPy/" + renpy.config.save_directory
+- else:
+- rv = "~/RenPy/" + renpy.config.save_directory
+- return os.path.expanduser(rv)
+-
+- else:
+- rv = "~/.renpy/" + renpy.config.save_directory
+- return os.path.expanduser(rv)
+-
+-
+-# Returns the path to the Ren'Py base directory (containing common and
+-# the launcher, usually.)
+-def path_to_renpy_base():
+- renpy_base = os.path.dirname(os.path.realpath(sys.argv[0]))
+- renpy_base = os.environ.get('RENPY_BASE', renpy_base)
+- renpy_base = os.path.abspath(renpy_base)
+-
+- return renpy_base
+-
+-##############################################################################
++from distutils.sysconfig import get_python_lib
++sys.path.append(get_python_lib() + "/renpy@SLOT@")
++import renpy.common as common
+
+ # The version of the Mac Launcher and py4renpy that we require.
+ macos_version = (6, 14, 0)
+@@ -131,7 +58,7 @@ if android:
+
+ def main():
+
+- renpy_base = path_to_renpy_base()
++ renpy_base = common.path_to_renpy_base()
+
+ # Add paths.
+ if os.path.exists(renpy_base + "/module"):
+diff --git a/renpy/common.py b/renpy/common.py
+new file mode 100644
+index 0000000..1f15b3c
+--- /dev/null
++++ b/renpy/common.py
+@@ -0,0 +1,103 @@
++# This file is part of Ren'Py. The license below applies to Ren'Py only.
++# Games and other projects that use Ren'Py may use a different license.
++
++# Copyright 2004-2014 Tom Rothamel <pytom@bishoujo.us>
++#
++# Permission is hereby granted, free of charge, to any person
++# obtaining a copy of this software and associated documentation files
++# (the "Software"), to deal in the Software without restriction,
++# including without limitation the rights to use, copy, modify, merge,
++# publish, distribute, sublicense, and/or sell copies of the Software,
++# and to permit persons to whom the Software is furnished to do so,
++# subject to the following conditions:
++#
++# The above copyright notice and this permission notice shall be
++# included in all copies or substantial portions of the Software.
++#
++# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
++# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
++# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
++# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++
++import os
++import sys
++import warnings
++from distutils.sysconfig import get_python_lib
++
++# Functions to be customized by distributors. ################################
++
++# Given the Ren'Py base directory (usually the directory containing
++# this file), this is expected to return the path to the common directory.
++def path_to_common(renpy_base):
++ return renpy_base + "/renpy/common"
++
++# Given a directory holding a Ren'Py game, this is expected to return
++# the path to a directory that will hold save files.
++def path_to_saves(gamedir):
++ import renpy #@UnresolvedImport
++
++ # Android.
++ if renpy.android:
++ paths = [
++ os.path.join(os.environ["ANDROID_OLD_PUBLIC"], "game/saves"),
++ os.path.join(os.environ["ANDROID_PRIVATE"], "saves"),
++ os.path.join(os.environ["ANDROID_PUBLIC"], "saves"),
++ ]
++
++ for rv in paths:
++ if os.path.isdir(rv):
++ break
++
++ print "Using savedir", rv
++
++ # We return the last path as the default.
++
++ return rv
++
++
++ # No save directory given.
++ if not renpy.config.save_directory:
++ return gamedir + "/saves"
++
++ # Search the path above Ren'Py for a directory named "Ren'Py Data".
++ # If it exists, then use that for our save directory.
++ path = renpy.config.renpy_base
++
++ while True:
++ if os.path.isdir(path + "/Ren'Py Data"):
++ return path + "/Ren'Py Data/" + renpy.config.save_directory
++
++ newpath = os.path.dirname(path)
++ if path == newpath:
++ break
++ path = newpath
++
++ # Otherwise, put the saves in a platform-specific location.
++ if renpy.macintosh:
++ rv = "~/Library/RenPy/" + renpy.config.save_directory
++ return os.path.expanduser(rv)
++
++ elif renpy.windows:
++ if 'APPDATA' in os.environ:
++ return os.environ['APPDATA'] + "/RenPy/" + renpy.config.save_directory
++ else:
++ rv = "~/RenPy/" + renpy.config.save_directory
++ return os.path.expanduser(rv)
++
++ else:
++ rv = "~/.renpy/" + renpy.config.save_directory
++ return os.path.expanduser(rv)
++
++
++# Returns the path to the Ren'Py base directory (containing common and
++# the launcher, usually.)
++def path_to_renpy_base():
++ renpy_base = os.path.dirname(os.path.realpath(sys.argv[0]))
++ renpy_base = get_python_lib() + "/renpy@SLOT@"
++ renpy_base = os.environ.get('RENPY_BASE', renpy_base)
++ renpy_base = os.path.abspath(renpy_base)
++
++ return renpy_base
+diff --git a/renpy/main.py b/renpy/main.py
+index 143007d..6c55bbc 100644
+--- a/renpy/main.py
++++ b/renpy/main.py
+@@ -25,7 +25,7 @@ import os
+ import sys
+ import time
+ import zipfile
+-import __main__
++import renpy.common as common
+
+
+ def run(restart):
+@@ -167,7 +167,7 @@ def main():
+ renpy.config.searchpath = [ renpy.config.gamedir ]
+
+ # Find the common directory.
+- commondir = __main__.path_to_common(renpy.config.renpy_base) # E1101 @UndefinedVariable
++ commondir = common.path_to_common(renpy.config.renpy_base) # E1101 @UndefinedVariable
+
+ if os.path.isdir(commondir):
+ renpy.config.searchpath.append(commondir)
+@@ -230,7 +230,7 @@ def main():
+
+ # Find the save directory.
+ if renpy.config.savedir is None:
+- renpy.config.savedir = __main__.path_to_saves(renpy.config.gamedir) # E1101 @UndefinedVariable
++ renpy.config.savedir = common.path_to_saves(renpy.config.gamedir) # E1101 @UndefinedVariable
+
+ if renpy.game.args.savedir: #@UndefinedVariable
+ renpy.config.savedir = renpy.game.args.savedir #@UndefinedVariable
diff --git a/games-engines/renpy/files/renpy-6.99.12.4-compat-infinite-loop.patch b/games-engines/renpy/files/renpy-6.99.12.4-compat-infinite-loop.patch
new file mode 100644
index 000000000000..3a2942cb04fd
--- /dev/null
+++ b/games-engines/renpy/files/renpy-6.99.12.4-compat-infinite-loop.patch
@@ -0,0 +1,42 @@
+Adapted from git HEAD:
+commit ff308191a190bf7c5c2118a31f3d8569a0904c04
+Author: Andrew Savchenko <bircoph@gmail.com>
+Date: Mon Jul 17 08:00:07 2017 +0300
+
+ Increase infinite loop hardcoded values
+
+ On many old hardware, e.g on my Atom netbook games hit this limit,
+ but otherwise work fine. Increasing the limit helps. People are
+ also reporting this issue in many cases (old laptops, stow tablets,
+ etc where games fail due to this issue and work otherwise):
+
+ https://translationprojectvisualnovels.blogspot.ru/2016/09/monster-girl-quest-android-15092016.html
+ https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=30521&start=90
+ https://steamcommunity.com/app/356530/discussions/0/365163686036650662/
+ (and many more, just google)
+
+index 00c7562..a7e361c 100644
+--- a/renpy/display/core.py
++++ b/renpy/display/core.py
+@@ -2845,7 +2845,7 @@ class Interface(object):
+
+ while rv is None:
+
+- renpy.execution.not_infinite_loop(10)
++ renpy.execution.not_infinite_loop(50)
+
+ # Check for a change in fullscreen preference.
+ if ((self.fullscreen != renpy.game.preferences.fullscreen) or
+diff --git a/renpy/main.py b/renpy/main.py
+index 6f14d77..960d2fd 100644
+--- a/renpy/main.py
++++ b/renpy/main.py
+@@ -318,7 +318,7 @@ def main():
+ game.contexts = [ renpy.execution.Context(False) ]
+ game.contexts[0].init_phase = True
+
+- renpy.execution.not_infinite_loop(60)
++ renpy.execution.not_infinite_loop(300)
+
+ # Load the script.
+ renpy.game.exception_info = 'While loading the script.'
diff --git a/games-engines/renpy/files/renpy-6.99.12.4-compat-style.patch b/games-engines/renpy/files/renpy-6.99.12.4-compat-style.patch
new file mode 100644
index 000000000000..122ebf1e43e6
--- /dev/null
+++ b/games-engines/renpy/files/renpy-6.99.12.4-compat-style.patch
@@ -0,0 +1,43 @@
+commit 1d350d993d2b51df7880e92b48ed103e059ec385
+Author: Andrew Savchenko <bircoph@gmail.com>
+Date: Sun Jul 16 17:07:27 2017 +0300
+
+ Fix compatibility problem With ElvenRelations-1.2:
+
+ When starting game:
+
+ Full traceback:
+ File "/home/andrew/src/_compat/styles.rpymc", line 22, in script
+ File "/usr/lib64/python2.7/site-packages/renpy699/renpy/ast.py", line 814, in execute
+ renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
+ File "/usr/lib64/python2.7/site-packages/renpy699/renpy/python.py", line 1719, in py_exec_bytecode
+ exec bytecode in globals, locals
+ File "renpy/common/_compat/styles.rpym", line 374, in <module>
+ style.selected_button = _SelectedCompat('button')
+ File "renpy/common/_compat/styles.rpym", line 347, in __init__
+ self.target = target
+ File "renpy/style.pyx", line 378, in renpy.style.StyleCore.__setattr__ (gen/renpy.style.c:6236)
+ raise Exception("Style property {} is not known.".format(name))
+ Exception: Style property target is not known.
+
+ "button*" properties are no longer present in RenPy, so relevant
+ code is removed.
+
+diff --git a/renpy/common/_compat/styles.rpym b/renpy/common/_compat/styles.rpym
+index d83eeb0..174f0b6 100644
+--- a/renpy/common/_compat/styles.rpym
++++ b/renpy/common/_compat/styles.rpym
+@@ -371,13 +371,6 @@ init python:
+ self.property_updates = [ ]
+
+
+- style.selected_button = _SelectedCompat('button')
+- style.selected_button_text = _SelectedCompat('button_text')
+- style.gm_nav_selected_button = _SelectedCompat('gm_nav_button')
+- style.gm_nav_selected_button_text = _SelectedCompat('gm_nav_button_text')
+- style.prefs_selected_button = _SelectedCompat('prefs_button')
+- style.prefs_selected_button_text = _SelectedCompat('prefs_button_text')
+-
+ def _apply_selected_compat():
+ for scs in _selected_compat:
+ scs.apply()
diff --git a/games-engines/renpy/files/renpy-6.99.12.4-compat-window.patch b/games-engines/renpy/files/renpy-6.99.12.4-compat-window.patch
new file mode 100644
index 000000000000..8c8bd21b4f65
--- /dev/null
+++ b/games-engines/renpy/files/renpy-6.99.12.4-compat-window.patch
@@ -0,0 +1,51 @@
+commit cf3f7fd4cb69c154f43a5e00c7501463a6d63ff5
+Author: Andrew Savchenko <bircoph@gmail.com>
+Date: Sun Jul 16 16:59:14 2017 +0300
+
+ Fix compatibility problem with Katawa Shoujo 1.3.1
+
+ The game fails to start with renpy-6.99.12.4:
+
+ I'm sorry, but an uncaught exception occurred.
+
+ While running game code:
+ File "game/ui_settings.rpy", line 21, in <module>
+ File "renpy/common/00compat.rpy", line 134, in _set_script_version
+ config.window_auto_hide.remove("call screen")
+ ValueError: list.remove(x): x not in list
+
+ -- Full Traceback ------------------------------------------------------------
+
+ Full traceback:
+ File "/home/rondo/ui_settings.rpyc", line 2, in script
+ File "/usr/lib64/python2.7/site-packages/renpy699/renpy/ast.py", line 814, in execute
+ renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
+ File "/usr/lib64/python2.7/site-packages/renpy699/renpy/python.py", line 1695, in py_exec_bytecode
+ exec bytecode in globals, locals
+ File "game/ui_settings.rpy", line 21, in <module>
+ File "/usr/lib64/python2.7/site-packages/renpy699/renpy/defaultstore.py", line 92, in __setattr__
+ renpy.store._set_script_version(value) # E1101 @UndefinedVariable
+ File "renpy/common/00compat.rpy", line 134, in _set_script_version
+ config.window_auto_hide.remove("call screen")
+ File "/usr/lib64/python2.7/site-packages/renpy699/renpy/python.py", line 610, in do_mutation
+ return method(self, *args, **kwargs)
+ ValueError: list.remove(x): x not in list
+
+ This happens because "call screen" element is being unconditionally
+ removed from config.window_auto_hide list, though it is not always
+ present there. A simple if check fixes this.
+
+diff --git a/renpy/common/00compat.rpy b/renpy/common/00compat.rpy
+index c16ad1d..eefb8e0 100644
+--- a/renpy/common/00compat.rpy
++++ b/renpy/common/00compat.rpy
+@@ -131,7 +131,8 @@ init -1900 python:
+ if version <= (6, 99, 10):
+ config.new_translate_order = False
+ config.old_say_args = True
+- config.window_auto_hide.remove("call screen")
++ if "call screen" in config.window_auto_hide:
++ config.window_auto_hide.remove("call screen")
+ config.quit_action = ui.gamemenus("_quit_prompt")
+ config.enforce_window_max_size = False
+ config.splashscreen_suppress_overlay = False
diff --git a/games-engines/renpy/files/renpy-6.99.12.4-multiple-abi.patch b/games-engines/renpy/files/renpy-6.99.12.4-multiple-abi.patch
new file mode 100644
index 000000000000..3a7355e60bed
--- /dev/null
+++ b/games-engines/renpy/files/renpy-6.99.12.4-multiple-abi.patch
@@ -0,0 +1,357 @@
+From 7aa51dae5eb2f2123fee9bca23a2ce2f1b1c3f10 Mon Sep 17 00:00:00 2001
+From: hasufell <hasufell@gentoo.org>
+Date: Thu, 20 Aug 2015 01:10:58 +0200
+Subject: [PATCH] Fix multiple abi support
+
+---
+ renpy.py | 128 ++--------------------------------------------------
+ renpy/common.py | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ renpy/main.py | 6 +--
+ 3 files changed, 144 insertions(+), 127 deletions(-)
+ create mode 100644 renpy/common.py
+
+diff --git a/renpy.py b/renpy.py
+index 7548cf6..8ec7353 100644
+--- a/renpy.py
++++ b/renpy.py
+@@ -28,122 +28,9 @@
+ import os
+ import sys
+ import warnings
+-
+-# Functions to be customized by distributors. ################################
+-
+-# Given the Ren'Py base directory (usually the directory containing
+-# this file), this is expected to return the path to the common directory.
+-
+-
+-def path_to_common(renpy_base):
+- return renpy_base + "/renpy/common"
+-
+-# Given a directory holding a Ren'Py game, this is expected to return
+-# the path to a directory that will hold save files.
+-
+-
+-def path_to_saves(gamedir, save_directory=None):
+- import renpy # @UnresolvedImport
+-
+- if save_directory is None:
+- save_directory = renpy.config.save_directory
+- save_directory = renpy.exports.fsencode(save_directory)
+-
+- # Makes sure the permissions are right on the save directory.
+- def test_writable(d):
+- try:
+- fn = os.path.join(d, "test.txt")
+- open(fn, "w").close()
+- open(fn, "r").close()
+- os.unlink(fn)
+- return True
+- except:
+- return False
+-
+- # Android.
+- if renpy.android:
+- paths = [
+- os.path.join(os.environ["ANDROID_OLD_PUBLIC"], "game/saves"),
+- os.path.join(os.environ["ANDROID_PRIVATE"], "saves"),
+- os.path.join(os.environ["ANDROID_PUBLIC"], "saves"),
+- ]
+-
+- for rv in paths:
+- if os.path.isdir(rv) and test_writable(rv):
+- break
+-
+- print("Saving to", rv)
+-
+- # We return the last path as the default.
+-
+- return rv
+-
+- if renpy.ios:
+- from pyobjus import autoclass
+- from pyobjus.objc_py_types import enum
+-
+- NSSearchPathDirectory = enum("NSSearchPathDirectory", NSDocumentDirectory=9)
+- NSSearchPathDomainMask = enum("NSSearchPathDomainMask", NSUserDomainMask=1)
+-
+- NSFileManager = autoclass('NSFileManager')
+- manager = NSFileManager.defaultManager()
+- url = manager.URLsForDirectory_inDomains_(
+- NSSearchPathDirectory.NSDocumentDirectory,
+- NSSearchPathDomainMask.NSUserDomainMask,
+- ).lastObject()
+-
+- # url.path seems to change type based on iOS version, for some reason.
+- try:
+- rv = url.path().UTF8String().decode("utf-8")
+- except:
+- rv = url.path.UTF8String().decode("utf-8")
+-
+- print("Saving to", rv)
+- return rv
+-
+- # No save directory given.
+- if not save_directory:
+- return gamedir + "/saves"
+-
+- # Search the path above Ren'Py for a directory named "Ren'Py Data".
+- # If it exists, then use that for our save directory.
+- path = renpy.config.renpy_base
+-
+- while True:
+- if os.path.isdir(path + "/Ren'Py Data"):
+- return path + "/Ren'Py Data/" + save_directory
+-
+- newpath = os.path.dirname(path)
+- if path == newpath:
+- break
+- path = newpath
+-
+- # Otherwise, put the saves in a platform-specific location.
+- if renpy.macintosh:
+- rv = "~/Library/RenPy/" + save_directory
+- return os.path.expanduser(rv)
+-
+- elif renpy.windows:
+- if 'APPDATA' in os.environ:
+- return os.environ['APPDATA'] + "/RenPy/" + save_directory
+- else:
+- rv = "~/RenPy/" + renpy.config.save_directory
+- return os.path.expanduser(rv)
+-
+- else:
+- rv = "~/.renpy/" + save_directory
+- return os.path.expanduser(rv)
+-
+-
+-# Returns the path to the Ren'Py base directory (containing common and
+-# the launcher, usually.)
+-def path_to_renpy_base():
+- renpy_base = os.path.dirname(os.path.realpath(sys.argv[0]))
+- renpy_base = os.path.abspath(renpy_base)
+-
+- return renpy_base
+-
+-##############################################################################
++from distutils.sysconfig import get_python_lib
++sys.path.append(get_python_lib() + "/renpy@SLOT@")
++import renpy.common as common
+
+ # The version of the Mac Launcher and py4renpy that we require.
+ macos_version = (6, 14, 0)
+@@ -154,21 +45,9 @@ except:
+ print("Ren'Py requires at least python 2.6.")
+ sys.exit(0)
+
+-android = ("ANDROID_PRIVATE" in os.environ)
+-
+-# Android requires us to add code to the main module, and to command some
+-# renderers.
+-if android:
+- __main__ = sys.modules["__main__"]
+- __main__.path_to_renpy_base = path_to_renpy_base
+- __main__.path_to_common = path_to_common
+- __main__.path_to_saves = path_to_saves
+- os.environ["RENPY_RENDERER"] = "gl"
+-
+-
+ def main():
+
+- renpy_base = path_to_renpy_base()
++ renpy_base = common.path_to_renpy_base()
+
+ # Add paths.
+ if os.path.exists(renpy_base + "/module"):
+diff --git a/renpy/common.py b/renpy/common.py
+new file mode 100644
+index 0000000..0d60e36
+--- /dev/null
++++ b/renpy/common.py
+@@ -0,0 +1,137 @@
++# This file is part of Ren'Py. The license below applies to Ren'Py only.
++# Games and other projects that use Ren'Py may use a different license.
++
++# Copyright 2004-2015 Tom Rothamel <pytom@bishoujo.us>
++#
++# Permission is hereby granted, free of charge, to any person
++# obtaining a copy of this software and associated documentation files
++# (the "Software"), to deal in the Software without restriction,
++# including without limitation the rights to use, copy, modify, merge,
++# publish, distribute, sublicense, and/or sell copies of the Software,
++# and to permit persons to whom the Software is furnished to do so,
++# subject to the following conditions:
++#
++# The above copyright notice and this permission notice shall be
++# included in all copies or substantial portions of the Software.
++#
++# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
++# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
++# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
++# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++
++import os
++import sys
++import warnings
++from distutils.sysconfig import get_python_lib
++
++# Given the Ren'Py base directory (usually the directory containing
++# this file), this is expected to return the path to the common directory.
++def path_to_common(renpy_base):
++ return renpy_base + "/renpy/common"
++
++# Given a directory holding a Ren'Py game, this is expected to return
++# the path to a directory that will hold save files.
++def path_to_saves(gamedir, save_directory=None):
++ import renpy #@UnresolvedImport
++
++ if save_directory is None:
++ save_directory = renpy.config.save_directory
++
++ # Makes sure the permissions are right on the save directory.
++ def test_writable(d):
++ try:
++ fn = os.path.join(d, "test.txt")
++ open(fn, "w").close()
++ open(fn, "r").close()
++ os.unlink(fn)
++ return True
++ except:
++ return False
++
++
++ # Android.
++ if renpy.android:
++ paths = [
++ os.path.join(os.environ["ANDROID_OLD_PUBLIC"], "game/saves"),
++ os.path.join(os.environ["ANDROID_PRIVATE"], "saves"),
++ os.path.join(os.environ["ANDROID_PUBLIC"], "saves"),
++ ]
++
++ for rv in paths:
++ if os.path.isdir(rv) and test_writable(rv):
++ break
++
++ print "Saving to", rv
++
++ # We return the last path as the default.
++
++ return rv
++
++ if renpy.ios:
++ from pyobjus import autoclass
++ from pyobjus.objc_py_types import enum
++
++ NSSearchPathDirectory = enum("NSSearchPathDirectory", NSDocumentDirectory=9)
++ NSSearchPathDomainMask = enum("NSSearchPathDomainMask", NSUserDomainMask=1)
++
++ NSFileManager = autoclass('NSFileManager')
++ manager = NSFileManager.defaultManager()
++ url = manager.URLsForDirectory_inDomains_(
++ NSSearchPathDirectory.NSDocumentDirectory,
++ NSSearchPathDomainMask.NSUserDomainMask,
++ ).lastObject()
++
++ # url.path seems to change type based on iOS version, for some reason.
++ try:
++ rv = url.path().UTF8String().decode("utf-8")
++ except:
++ rv = url.path.UTF8String().decode("utf-8")
++
++ print "Saving to", rv
++ return rv
++
++ # No save directory given.
++ if not save_directory:
++ return gamedir + "/saves"
++
++ # Search the path above Ren'Py for a directory named "Ren'Py Data".
++ # If it exists, then use that for our save directory.
++ path = renpy.config.renpy_base
++
++ while True:
++ if os.path.isdir(path + "/Ren'Py Data"):
++ return path + "/Ren'Py Data/" + save_directory
++
++ newpath = os.path.dirname(path)
++ if path == newpath:
++ break
++ path = newpath
++
++ # Otherwise, put the saves in a platform-specific location.
++ if renpy.macintosh:
++ rv = "~/Library/RenPy/" + save_directory
++ return os.path.expanduser(rv)
++
++ elif renpy.windows:
++ if 'APPDATA' in os.environ:
++ return os.environ['APPDATA'] + "/RenPy/" + save_directory
++ else:
++ rv = "~/RenPy/" + renpy.config.save_directory
++ return os.path.expanduser(rv)
++
++ else:
++ rv = "~/.renpy/" + save_directory
++ return os.path.expanduser(rv)
++
++
++# Returns the path to the Ren'Py base directory (containing common and
++# the launcher, usually.)
++def path_to_renpy_base():
++ renpy_base = os.path.dirname(os.path.realpath(sys.argv[0]))
++ renpy_base = get_python_lib() + "/renpy@SLOT@"
++ renpy_base = os.path.abspath(renpy_base)
++
++ return renpy_base
+diff --git a/renpy/main.py b/renpy/main.py
+index 73e7239..6807ba1 100644
+--- a/renpy/main.py
++++ b/renpy/main.py
+@@ -27,7 +27,7 @@ import os
+ import sys
+ import time
+ import zipfile
+-import __main__
++import renpy.common as common
+
+
+ last_clock = time.time()
+@@ -273,7 +273,7 @@ def main():
+ renpy.config.searchpath = [ renpy.config.gamedir ]
+
+ # Find the common directory.
+- commondir = __main__.path_to_common(renpy.config.renpy_base) # E1101 @UndefinedVariable
++ commondir = common.path_to_common(renpy.config.renpy_base) # E1101 @UndefinedVariable
+
+ if os.path.isdir(commondir):
+ renpy.config.searchpath.append(commondir)
+@@ -371,7 +371,7 @@ def main():
+
+ # Find the save directory.
+ if renpy.config.savedir is None:
+- renpy.config.savedir = __main__.path_to_saves(renpy.config.gamedir) # E1101 @UndefinedVariable
++ renpy.config.savedir = common.path_to_saves(renpy.config.gamedir) # E1101 @UndefinedVariable
+
+ if renpy.game.args.savedir: # @UndefinedVariable
+ renpy.config.savedir = renpy.game.args.savedir # @UndefinedVariable
+diff --git a/renpy/script.py b/renpy/script.py
+index 73e7239..6807ba1 100644
+--- a/renpy/script.py
++++ b/renpy/script.py
+@@ -150,8 +150,8 @@ import os
+ if renpy.loader.loadable(i):
+ return None
+
+- import __main__
+- backups = __main__.path_to_saves(renpy.config.gamedir, "backups") # @UndefinedVariable
++ import renpy.common as common
++ backups = common.path_to_saves(renpy.config.gamedir, "backups") # @UndefinedVariable
+
+ if backups is None:
+ return
+--
+2.5.0
+
diff --git a/games-engines/renpy/files/renpy.1 b/games-engines/renpy/files/renpy.1
new file mode 100644
index 000000000000..e8b7a2b61958
--- /dev/null
+++ b/games-engines/renpy/files/renpy.1
@@ -0,0 +1,163 @@
+.\" Copyright © 2015 Andrew Savchenko
+.\" Distributed under the terms of GNU FDL-1.3+ license,
+.\" based on original Ren'Py documentation licensed under MIT.
+.TH renpy 1 "31 May 2015" "Ren'Py" "Ren'Py Gentoo's manual"
+.SH NAME
+renpy \- a visual novel engine
+
+.SH SYNOPSIS
+.BI renpy " game_directory"
+.\" ****************************************************************
+.SH DESCRIPTION
+
+.B renpy
+(Ren'Py) is a visual novel engine \- used by hundreds of creators
+from around the world \- that helps you use words, images, and
+sounds to tell interactive stories that run on computers and mobile
+devices. These can be both visual novels and life simulation games.
+The easy to learn script language allows anyone to efficiently
+write large visual novels, while its
+.BR python (1)
+scripting is enough for complex simulation games.
+.\" ****************************************************************
+.SH RUNNING A GAME
+
+In order to run a game, provide
+.I game_directory
+as an argument to
+.BR renpy .
+Exact directory name may vary depending or a game, but usually
+this path corresponds to
+.I */game
+wildcard and contains
+.I script_version.rpy*
+file within. Game directory usually contains other
+.IR *.rpy* " and " *.rpa " files."
+
+One may use
+.BR find (1)
+tool to locate required directory within unpacked game top
+directory:
+.RS
+
+find -O3
+.I top_directory
+-type f -iname "script_version.rpy*"
+
+.RE
+A directory one level above may be provided as an argument as well.
+.\" ****************************************************************
+.SH PORTABILITY
+
+All
+.B renpy
+games are written in
+.BR python (1),
+so one can run then on any platform and architecture.
+
+As you may have noticed, Ren'Py games are often distributed in
+different archives for different architectures. This happens due to
+bundling of
+.BR python (1)
+interpreter and required libraries in a game's tarball. Since you
+are using OS native
+.B renpy
+setup, you should be able to run any of these games.
+.\" ****************************************************************
+.SH GAMES CATALOGUE
+
+A large catalogue of Ren'Py powered games is available at
+.IR http://games.renpy.org/ .
+.\" ****************************************************************
+.SH TROUBLESHOOTING
+
+In some cases game may fail to run with current
+.B renpy
+version due to various errors.
+
+In such case please try to use the closest
+.B renpy
+version to one used by game developer. Most games contain
+.IR script_version.rpy " file in the " game " directory."
+This file actually contains
+.B renpy
+version used during a game build.
+You may install multiple slots of
+.B renpy
+in Gentoo and use
+.BI eselect " renpy"
+module to switch between various versions.
+
+If
+.I game
+directory contains both
+.IR *.rpyc " (or " *.rpyo ") and " *.rpy " files, delete"
+.IR *.rpyc " (or " *.rpyo ") files, they will be regenerated by"
+the interpreter.
+Another solution will be to switch between version of
+.BR python (1)
+using
+.IR eselect (1)
+tool in order to find one suitable to interpret game's
+.IR *.rpyc " files."
+
+Some games may lack general media files, e.g.
+.I click.ogg
+sound, so you should create or download one and place in the
+.I game
+directory.
+
+Also please pay attention to
+.I problems.html
+page from
+.B renpy
+html documentation, see
+.B FURTHER READING
+section.
+.\" ****************************************************************
+.SH ENVIRONMENT VARIABLES
+
+.B renpy
+supports a number of environment variables to control its
+behaviour. Please refer to html docs for further details
+(see
+.B FURTHER READING
+section).
+.\" ****************************************************************
+.SH FURTHER READING
+
+.B renpy
+comes with extensive html documentation. To use it install
+.B renpy
+with
+.I USE="doc"
+and go to
+.I /usr/share/doc/renpy-*/html/doc/index.html
+
+Alternatively one may refer to online documentation:
+.IR http://www.renpy.org/doc/html/ .
+Be warned that online docs maybe different from your current active
+version, so it recommended to use shipped documentation instead.
+.\" ****************************************************************
+.SH BUGS
+
+Any bugs related to Gentoo packaging (e.g. omitted dependencies)
+please report on bugzilla:
+.IR https://bugs.gentoo.org .
+
+For bugs in the Ren'Py engine itself, please contact upstream:
+.I https://github.com/renpy/renpy/issues
+and add a Gentoo bug if you feel it necessary.
+
+For issues with games themselves please contact corresponding
+authors.
+.\" ****************************************************************
+.SH SEE ALSO
+
+.BR python (1)
+\- an interpreter used by Ren'Py engine.
+
+.BR unrpa (1)
+\- a tool to unpack
+.I *.rpa
+data files (Ren'Py Archives).
diff --git a/games-engines/renpy/metadata.xml b/games-engines/renpy/metadata.xml
new file mode 100644
index 000000000000..98b754cf6590
--- /dev/null
+++ b/games-engines/renpy/metadata.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+ <longdescription>
+ Ren'Py is a free and cross-platform visual novel engine that
+ helps you use words,
+ pictures, and sounds to tell stories with the computer.
+ It`s easy and efficient script language makes it possible for
+ non-programmers to make visual novels,
+ while its Python support allows for complex simulation games.
+ </longdescription>
+ <use>
+ <flag name="development">Install IDE for game developers and
+ an empty game template</flag>
+ </use>
+ <upstream>
+ <maintainer status="active">
+ <email>pytom@bishoujo.us</email>
+ <name>Tom Rothamel</name>
+ </maintainer>
+ <changelog>http://www.renpy.org/latest.html</changelog>
+ <bugs-to>https://github.com/renpy/renpy/issues</bugs-to>
+ <doc>http://renpy.org/wiki/renpy/doc</doc>
+ <remote-id type="github">renpy/renpy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-engines/renpy/renpy-6.17.7.ebuild b/games-engines/renpy/renpy-6.17.7.ebuild
new file mode 100644
index 000000000000..adc56df50743
--- /dev/null
+++ b/games-engines/renpy/renpy-6.17.7.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_IN_SOURCE_BUILD=1
+inherit eutils toolchain-funcs python-r1 versionator gnome2-utils games distutils-r1
+
+DESCRIPTION="Visual novel engine written in python"
+HOMEPAGE="http://www.renpy.org"
+SRC_URI="http://www.renpy.org/dl/${PV}/${P}-source.tar.bz2"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+MYSLOT=$(delete_all_version_separators ${SLOT})
+KEYWORDS="amd64 x86"
+IUSE="development doc examples"
+REQUIRED_USE="examples? ( development )"
+
+RDEPEND="
+ >=app-eselect/eselect-renpy-0.4
+ dev-libs/fribidi
+ dev-python/pygame[X,${PYTHON_USEDEP}]
+ >=dev-lang/python-exec-0.3[${PYTHON_USEDEP}]
+ media-libs/glew:0
+ media-libs/libpng:0
+ media-libs/libsdl[X,video]
+ media-libs/freetype:2
+ sys-libs/zlib
+ virtual/ffmpeg"
+DEPEND="${RDEPEND}
+ dev-python/cython[${PYTHON_USEDEP}]
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${P}-source
+
+pkg_setup() {
+ games_pkg_setup
+ export CFLAGS="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags fribidi)"
+}
+
+python_prepare_all() {
+ # wooosh! this should fix multiple abi
+ epatch "${FILESDIR}"/${P}-multiple-abi.patch
+
+ einfo "Deleting precompiled python files"
+ find . -name '*.py[co]' -print -delete || die
+
+ sed -i \
+ -e "s/@SLOT@/${MYSLOT}/" \
+ renpy.py renpy/common.py || die "setting slot failed!"
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile() {
+ cd "${S}"/module || die
+ distutils-r1_python_compile
+}
+
+python_install() {
+ cd "${S}"/module || die
+ distutils-r1_python_install --install-lib="$(python_get_sitedir)/renpy${MYSLOT}"
+
+ cd "${S}" || die
+ python_scriptinto "${GAMES_BINDIR}"
+ python_newscript renpy.py ${PN}-${SLOT}
+
+ python_moduleinto renpy${MYSLOT}
+ python_domodule renpy
+ if use development ; then
+ python_domodule launcher templates
+ fi
+ if use examples ; then
+ python_domodule the_question tutorial
+ fi
+}
+
+python_install_all() {
+ if use development; then
+ newicon -s 32 launcher/game/images/logo32.png ${P}.png
+ make_desktop_entry ${PN}-${SLOT} "Ren'Py ${PV}" ${P}
+ fi
+
+ if use doc; then
+ dohtml -r doc
+ fi
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ use development && gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ use development && gnome2_icon_cache_update
+
+ einfo "running: eselect renpy update --if-unset"
+ eselect renpy update --if-unset
+}
+
+pkg_postrm() {
+ use development && gnome2_icon_cache_update
+
+ einfo "running: eselect renpy update --if-unset"
+ eselect renpy update --if-unset
+}
diff --git a/games-engines/renpy/renpy-6.99.12.4-r1.ebuild b/games-engines/renpy/renpy-6.99.12.4-r1.ebuild
new file mode 100644
index 000000000000..8c969e13c6bf
--- /dev/null
+++ b/games-engines/renpy/renpy-6.99.12.4-r1.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_IN_SOURCE_BUILD=1
+inherit eutils games gnome2-utils toolchain-funcs versionator distutils-r1
+
+DESCRIPTION="Visual novel engine written in python"
+HOMEPAGE="http://www.renpy.org"
+SRC_URI="http://www.renpy.org/dl/${PV}/${P}-source.tar.bz2"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+MYSLOT=$(delete_all_version_separators ${SLOT})
+KEYWORDS="~amd64 ~x86"
+IUSE="development doc examples"
+REQUIRED_USE="examples? ( development )"
+
+RDEPEND="
+ >=app-eselect/eselect-renpy-0.6
+ dev-libs/fribidi
+ ~dev-python/pygame_sdl2-${PV}[${PYTHON_USEDEP}]
+ >=dev-lang/python-exec-0.3[${PYTHON_USEDEP}]
+ media-libs/glew:0
+ media-libs/libpng:0
+ media-libs/libsdl2[video]
+ media-libs/freetype:2
+ sys-libs/zlib
+ virtual/ffmpeg"
+DEPEND="${RDEPEND}
+ dev-python/cython[${PYTHON_USEDEP}]
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${P}-source
+
+PATCHES=(
+ "${FILESDIR}"/${P}-multiple-abi.patch
+ "${FILESDIR}"/${P}-compat-window.patch #601200
+ "${FILESDIR}"/${P}-compat-style.patch
+)
+
+pkg_setup() {
+ games_pkg_setup
+ export CFLAGS="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags fribidi)"
+}
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ einfo "Deleting precompiled python files"
+ find . -name '*.py[co]' -print -delete || die
+
+ sed -i \
+ -e "s/@SLOT@/${MYSLOT}/" \
+ renpy.py renpy/common.py || die "setting slot failed!"
+}
+
+python_compile() {
+ cd "${S}"/module || die
+ distutils-r1_python_compile
+}
+
+python_install() {
+ cd "${S}"/module || die
+ distutils-r1_python_install --install-lib="$(python_get_sitedir)/renpy${MYSLOT}"
+
+ cd "${S}" || die
+ python_scriptinto "${GAMES_BINDIR}"
+ python_newscript renpy.py ${PN}-${SLOT}
+
+ python_moduleinto renpy${MYSLOT}
+ python_domodule renpy
+ if use development ; then
+ python_domodule launcher templates
+ fi
+ if use examples ; then
+ python_domodule the_question tutorial
+ fi
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ if use development; then
+ newicon -s 32 launcher/game/images/logo32.png ${P}.png
+ make_desktop_entry ${PN}-${SLOT} "Ren'Py ${PV}" ${P}
+ fi
+
+ if use doc; then
+ insinto "/usr/share/doc/${PF}/html"
+ doins -r doc/*
+ fi
+ newman "${FILESDIR}/${PN}.1" "${P}.1"
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ use development && gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ use development && gnome2_icon_cache_update
+
+ einfo "running: eselect renpy update --if-unset"
+ eselect renpy update --if-unset
+}
+
+pkg_postrm() {
+ use development && gnome2_icon_cache_update
+
+ einfo "running: eselect renpy update --if-unset"
+ eselect renpy update --if-unset
+}
diff --git a/games-engines/renpy/renpy-6.99.12.4-r3.ebuild b/games-engines/renpy/renpy-6.99.12.4-r3.ebuild
new file mode 100644
index 000000000000..27a1a8b3f14e
--- /dev/null
+++ b/games-engines/renpy/renpy-6.99.12.4-r3.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_IN_SOURCE_BUILD=1
+inherit eutils gnome2-utils toolchain-funcs versionator distutils-r1
+
+DESCRIPTION="Visual novel engine written in python"
+HOMEPAGE="http://www.renpy.org"
+SRC_URI="http://www.renpy.org/dl/${PV}/${P}-source.tar.bz2"
+
+LICENSE="MIT"
+SLOT="$(get_version_component_range 1-2)"
+MYSLOT=$(delete_all_version_separators ${SLOT})
+KEYWORDS="amd64 x86"
+IUSE="development doc examples"
+REQUIRED_USE="examples? ( development )"
+
+RDEPEND="
+ >=app-eselect/eselect-renpy-0.7
+ dev-libs/fribidi
+ ~dev-python/pygame_sdl2-${PV}[${PYTHON_USEDEP}]
+ >=dev-lang/python-exec-0.3[${PYTHON_USEDEP}]
+ media-libs/glew:0
+ media-libs/libpng:0
+ media-libs/libsdl2[video]
+ media-libs/freetype:2
+ sys-libs/zlib
+ virtual/ffmpeg"
+DEPEND="${RDEPEND}
+ dev-python/cython[${PYTHON_USEDEP}]
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${P}-source
+
+PATCHES=(
+ "${FILESDIR}"/${P}-multiple-abi.patch
+ "${FILESDIR}"/${P}-compat-window.patch #601200
+ "${FILESDIR}"/${P}-compat-style.patch
+ "${FILESDIR}"/${P}-compat-infinite-loop.patch
+)
+
+python_prepare_all() {
+ export CFLAGS="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags fribidi)"
+ distutils-r1_python_prepare_all
+
+ einfo "Deleting precompiled python files"
+ find . -name '*.py[co]' -print -delete || die
+
+ sed -i \
+ -e "s/@SLOT@/${MYSLOT}/" \
+ renpy.py renpy/common.py || die "setting slot failed!"
+}
+
+python_compile() {
+ cd "${S}"/module || die
+ distutils-r1_python_compile
+}
+
+python_install() {
+ cd "${S}"/module || die
+ distutils-r1_python_install --install-lib="$(python_get_sitedir)/renpy${MYSLOT}"
+
+ cd "${S}" || die
+ python_newscript renpy.py ${PN}-${SLOT}
+
+ python_moduleinto renpy${MYSLOT}
+ python_domodule renpy
+ if use development ; then
+ python_domodule launcher templates
+ fi
+ if use examples ; then
+ python_domodule the_question tutorial
+ fi
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ if use development; then
+ newicon -s 32 launcher/game/images/logo32.png ${P}.png
+ make_desktop_entry ${PN}-${SLOT} "Ren'Py ${PV}" ${P}
+ fi
+
+ if use doc; then
+ insinto "/usr/share/doc/${PF}/html"
+ doins -r doc/*
+ fi
+ newman "${FILESDIR}/${PN}.1" "${P}.1"
+}
+
+pkg_preinst() {
+ use development && gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use development && gnome2_icon_cache_update
+
+ einfo "running: eselect renpy update --if-unset"
+ eselect renpy update --if-unset
+}
+
+pkg_postrm() {
+ use development && gnome2_icon_cache_update
+
+ einfo "running: eselect renpy update --if-unset"
+ eselect renpy update --if-unset
+}
diff --git a/games-engines/residualvm/Manifest b/games-engines/residualvm/Manifest
new file mode 100644
index 000000000000..a40be875bf3d
--- /dev/null
+++ b/games-engines/residualvm/Manifest
@@ -0,0 +1,6 @@
+DIST residualvm-0.2.1-sources.tar.bz2 5533814 SHA256 cd2748a665f80b8c527c6dd35f8435e718d2e10440dca10e7765574c7402d924 SHA512 9eed93770ef1ad828934c32e937b861c93f1ebbb0d936f3f56668e654588f734dc88e29446f0a69f8f26475e96b8ce7ca85318758b99aabc9586756692c721da WHIRLPOOL fd055dc5f85ae653f38f6de6a4d80aad32aa77164ab997fb2cc64cd23284b1af7531d9a1076cdd903e6edc8bf48b6e455c42f0adb997ea7eeda660d958e3319b
+EBUILD residualvm-0.2.1-r1.ebuild 1791 SHA256 a33dffa1cc4284671d112609fffbef899aeada8b56e1744c8d218fd811fa48aa SHA512 e18cd04be84436fc4f13de9c9aaafa27f5888dfb0cc24e6713916105d515089e1ca23c7870da98138d8c2e673b8f79d54e13904b5b1966530277e485b875f661 WHIRLPOOL ff4ec99a4b448861018bcabf69a7317e56c8327c0b121556d282dc3a7424725e11e998db375f68f6c57d93743319854c114e6dbb1e0122a78894a22ec8346afd
+EBUILD residualvm-0.2.1.ebuild 1967 SHA256 cae7a6ce325a88986db2fd4d7de23c128bda294752fb75c1b43b7141d2bafc66 SHA512 45528f3c69a2ed3ff48982d7e7b6929aff1afc80c7a2fbddef7185f58fe1f7e23c4723ca3775514ea54630460ed7fe0ded2bb5aeb8bd8e5e055f05cd38ba81ff WHIRLPOOL 85cdea4c1e264dc78fb903562a2802abfa23c16f5e64059bf5a08864f6b590324c5564cbe44f0e49dea195e6a38d0ab692c3a427b4a43e87516ecf33ec42bba4
+MISC ChangeLog 2441 SHA256 e8f9199204ac621377b34388d77f2be1239c2f0f241bfa46d453c56a8049e5bc SHA512 dfa8cf2e4f7c2b1a9238e169180199a35c0d3814bb62b27db2ef863d2a1b4cf4f9f348ea0c7d87a9e1c100e7b008263d90f277012702934ff72b835aaa81870e WHIRLPOOL ce63ae13b720d66f21c8640970c73d4148ad2b5c23e0c5d2d359ebeccc091c8b4b974968b27e6572d1395aa488c4955af6d671908c6defcf883456f35dd412cc
+MISC ChangeLog-2015 1620 SHA256 1c535a268690a467ca7ea708e6a748645720c0887f1af7b3cdcde267c70a9023 SHA512 e3722614ad508eaed5f0d5d1e75129ac71286483006fb9da110318f895984213606ba5b621e55bc8283e1bb12f9e0e83e67a57a7068ba5122c558aa76a0de6f0 WHIRLPOOL 825edea493d890d5c1814a9354d054241849dfce2258748b4156b1c72f8f9322428f8cf87a847347e14dc371b0e2202ff3c991363a4da42208445f1d6dd0a170
+MISC metadata.xml 333 SHA256 9fb352789d5562aae77ccd9dd0b2e452a77cc4fe860f760d0ee94c044504f5c5 SHA512 41e3a0c69255f5f64ff9c3806e7f1871e0721dc9554d92f370e809487975454b6747818c93da77ad2b8c579b26948ac0a48ac4bb9969838e91f48f51dae2d2f7 WHIRLPOOL 0b32ff75d9207116a06f290d7fa40c200c4e47eb920886fefa8a1be6fc0e0954ec1a928a228e347720304b55bb1fd0c43713ab00219375cf49f49b7b62a26b6b
diff --git a/games-engines/residualvm/metadata.xml b/games-engines/residualvm/metadata.xml
new file mode 100644
index 000000000000..f346e5457981
--- /dev/null
+++ b/games-engines/residualvm/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">residualvm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-engines/residualvm/residualvm-0.2.1-r1.ebuild b/games-engines/residualvm/residualvm-0.2.1-r1.ebuild
new file mode 100644
index 000000000000..5d005b46ebc2
--- /dev/null
+++ b/games-engines/residualvm/residualvm-0.2.1-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils toolchain-funcs gnome2-utils
+
+DESCRIPTION="A cross-platform 3D game interpreter for play LucasArts' LUA-based 3D adventures"
+HOMEPAGE="http://www.residualvm.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-sources.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# TODO: fix dynamic plugin support
+# games crash without media-libs/libsdl[alsa]
+RDEPEND="
+ media-libs/alsa-lib
+ media-libs/freetype:2
+ media-libs/libsdl[X,sound,alsa,joystick,opengl,video]
+ sys-libs/zlib
+ virtual/glu
+ virtual/opengl"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ # not an autotools script
+ # most configure options currently do nothing, verify on version bump !!!
+ # disable explicitly, otherwise we get unneeded linkage (some copy-paste build system)
+ ./configure \
+ --backend=sdl \
+ --disable-debug \
+ --disable-faad \
+ --disable-flac \
+ --disable-fluidsynth \
+ --disable-libunity \
+ --disable-mad \
+ --disable-sparkle \
+ --disable-translation \
+ --disable-tremor \
+ --disable-vorbis \
+ --docdir="/usr/share/doc/${PF}" \
+ --enable-all-engines \
+ --enable-release-mode \
+ --enable-zlib \
+ || die "configure failed"
+}
+
+src_compile() {
+ emake \
+ VERBOSE_BUILD=1 \
+ AR="$(tc-getAR) cru" \
+ RANLIB=$(tc-getRANLIB)
+}
+
+src_install() {
+ dobin residualvm
+
+ insinto "/usr/share/${PN}"
+ doins gui/themes/modern.zip dists/engine-data/residualvm-grim-patch.lab
+
+ doicon -s scalable icons/${PN}.svg
+ doicon -s 256 icons/${PN}.png
+ domenu dists/${PN}.desktop
+
+ doman dists/${PN}.6
+ dodoc AUTHORS README.md KNOWN_BUGS TODO
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-engines/residualvm/residualvm-0.2.1.ebuild b/games-engines/residualvm/residualvm-0.2.1.ebuild
new file mode 100644
index 000000000000..7686d028847b
--- /dev/null
+++ b/games-engines/residualvm/residualvm-0.2.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs gnome2-utils games
+
+DESCRIPTION="A cross-platform 3D game interpreter for play LucasArts' LUA-based 3D adventures"
+HOMEPAGE="http://www.residualvm.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-sources.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+# TODO: fix dynamic plugin support
+# games crash without media-libs/libsdl[alsa]
+RDEPEND="
+ media-libs/alsa-lib
+ media-libs/freetype:2
+ media-libs/libsdl[X,sound,alsa,joystick,opengl,video]
+ sys-libs/zlib
+ virtual/glu
+ virtual/opengl"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ # not an autotools script
+ # most configure options currently do nothing, recheck on version bump !!!
+ # disable explicitly, otherwise we get unneeded linkage (some copy-paste build system)
+ ./configure \
+ --disable-debug \
+ --enable-all-engines \
+ --backend=sdl \
+ --enable-release-mode \
+ --disable-tremor \
+ --disable-sparkle \
+ --prefix="${GAMES_PREFIX}" \
+ --datadir="${GAMES_DATADIR}/${PN}" \
+ --libdir="$(games_get_libdir)" \
+ --docdir="/usr/share/doc/${PF}" \
+ --disable-libunity \
+ --disable-faad \
+ --disable-flac \
+ --disable-fluidsynth \
+ --disable-mad \
+ --disable-translation \
+ --disable-vorbis \
+ --enable-zlib \
+ || die "configure failed"
+}
+
+src_compile() {
+ emake \
+ VERBOSE_BUILD=1 \
+ AR="$(tc-getAR) cru" \
+ RANLIB=$(tc-getRANLIB)
+}
+
+src_install() {
+ dogamesbin residualvm
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins gui/themes/modern.zip dists/engine-data/residualvm-grim-patch.lab
+
+ doicon -s scalable icons/${PN}.svg
+ doicon -s 256 icons/${PN}.png
+ domenu dists/${PN}.desktop
+
+ doman dists/${PN}.6
+ dodoc AUTHORS README.md KNOWN_BUGS TODO
+
+ 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-engines/scummvm-tools/Manifest b/games-engines/scummvm-tools/Manifest
new file mode 100644
index 000000000000..81f5f1ec931c
--- /dev/null
+++ b/games-engines/scummvm-tools/Manifest
@@ -0,0 +1,7 @@
+AUX scummvm-tools-1.8.0-binprefix.patch 539 SHA256 23d256f53d9fcf9a1989c03bbac5470673215a9f22c1ffd4ed787b9b5f22a511 SHA512 4d2f06dcc3092dd5abab218b68c83dfc2353810b56e3a1d41fab1c7eb20b008ed2e54af486c4c4f2ecbd383ef0afa6f333ed90c694ed3b1733393a6f2ef6fbe3 WHIRLPOOL aa9f690f96c808796a4ae808e50756b9de1fc220077bbfc7ba74c0e7c6a16432105d58787eec4878084889c3717f3538bd81fc6c15b925eb95c23b9a1cd138d5
+DIST scummvm-tools-1.8.0.tar.xz 864048 SHA256 2c14050cee3fb8e178cb9ff16a4412ab584001757b4824c75b24240eb2d98bdd SHA512 eed0aa0cceef59c42aabe94fe382a4494085c479d310cb624131746a1cbacc37d4a43603a5321167eb5fd4d9d8235fc794bdca5a3417fc4d224213e5409347ed WHIRLPOOL a16fd22cda96b1c633a5c0b70cbfc9393ece6ac4da8f52393e2041cafe2091fb1b57f006ec507f320f69a172c3e522faed521047379ba2c154541070173a348a
+EBUILD scummvm-tools-1.8.0-r1.ebuild 1304 SHA256 03697fae9d8b882841c0df7f1b26ffe9826862a3a07db2f7956e05dca9b71d4d SHA512 42ff6659c2505d40df6b107958e138d3e346402b1bbed325a10a30bb5041091096a07e78114fdb8ac597b76aa5a9fda3f01b76350d1416565185738bc18c4cf1 WHIRLPOOL 01f3e59127d882d9d1c0271ab258c69640e0b03e8f27de8101979da884357bfc27d967a756065d30a22734f5b78e895de15a608ab4815cffd2d5c3044016aa8f
+EBUILD scummvm-tools-1.8.0.ebuild 1398 SHA256 c9ab2f8740e6e6321731d696f7ba7fcfef3932933b771a5f4d345a8fa8dc82fd SHA512 4612400c76570ad9ef2b7ab40ac8500227f8f98e902bd5bb946205a61c73ee49642f0ec35df57c7686a59c60b241457eaa6c3692b2d67c9fc8aac393c097a3a5 WHIRLPOOL fb413f5545973b5e6ae4ab3c175522d29d29874cf55271a85316b6ac4a762c0708695ffcc39e0113b86f923b3d0bbaba7ccced4992a79bbeac52e1c0b583bc90
+MISC ChangeLog 4871 SHA256 85a83c2a9f883f9f240fc9f7c29d05008a6877b878b9e049883a0ef1026cb17d SHA512 17c6344199679829e5ecfe69c49b5a2df146411cb6808f389ffdfde9f24535dfd67c9e4380ecccfad22258061e2131bc97dbefa03e48c1608acfef478221d9f8 WHIRLPOOL a4810012ee70a2126b5ff9a0293209023aa0831d89147b3f6e3ca397324676f420b925fab532121500184e0f601bd44eb95c778024b8d98bd91a445caf561193
+MISC ChangeLog-2015 8845 SHA256 e2ce2de21699a2cfeafc5f20a4693c7b9e8a439180972b80414a7a9857d45439 SHA512 731b0a48b2a6f472b432c3a6436868e23071da3b73608e46b69e1e1647471e5c7e1bc8cf73a931c943271e32e195c6a24d2af3c2054450b184edf32f2726579b WHIRLPOOL 41d94dded0998fe79eb82e12a55eb76a6461b0cd5d76bd69d2f477d9bc8a010e17976eed7c0d585094dd19305e30a488df48d39172201c3d6f44e4f01fec11e6
+MISC metadata.xml 330 SHA256 0d5c67cb9a53d3220c7278b788f0cb6098e2e2da9fbe32dab98b52bf2e7d3bd6 SHA512 4541c93daab84bd6d0764adccf44bb4986ba02303e731b5b9a7a8060bb88a32c1cef91e2b2910e15915b67cf3ea2b5f31b4e637909d1d0b7c3b627f1134206dc WHIRLPOOL 9f36f51c4682de84bedf3b7757f32ca434702738412ae588f0232a505740d5110d72c13442e4753fbb8f804563c47be02e2f61247c0933895f76e468b3abe0db
diff --git a/games-engines/scummvm-tools/files/scummvm-tools-1.8.0-binprefix.patch b/games-engines/scummvm-tools/files/scummvm-tools-1.8.0-binprefix.patch
new file mode 100644
index 000000000000..604db075395c
--- /dev/null
+++ b/games-engines/scummvm-tools/files/scummvm-tools-1.8.0-binprefix.patch
@@ -0,0 +1,11 @@
+--- scummvm-tools-1.7.0.orig/Makefile.common
++++ scummvm-tools-1.7.0/Makefile.common
+@@ -312,7 +312,7 @@
+ install: $(TARGETS)
+ $(INSTALL) -p -m 0755 -d $(DESTDIR)$(BINDIR)
+ $(INSTALL) -p -m 0755 -d $(DESTDIR)$(DATADIR)/scummvm-tools
+- for i in $^ ; do $(INSTALL) -p -m 0755 $$i $(DESTDIR)$(BINDIR) ; done
++ for i in $^ ; do $(INSTALL) -p -m 0755 $$i $(DESTDIR)$(BINDIR)/$(EXEPREFIX)$$i ; done
+ $(INSTALL) -m 0755 -d $(DESTDIR)$(DATADIR)/scummvm-tools
+ $(INSTALL) -p -m 0644 $(srcdir)/gui/media/*.* $(DESTDIR)$(DATADIR)/scummvm-tools
+
diff --git a/games-engines/scummvm-tools/metadata.xml b/games-engines/scummvm-tools/metadata.xml
new file mode 100644
index 000000000000..801e2cc48963
--- /dev/null
+++ b/games-engines/scummvm-tools/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-engines/scummvm-tools/scummvm-tools-1.8.0-r1.ebuild b/games-engines/scummvm-tools/scummvm-tools-1.8.0-r1.ebuild
new file mode 100644
index 000000000000..114768f9f886
--- /dev/null
+++ b/games-engines/scummvm-tools/scummvm-tools-1.8.0-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WX_GTK_VER=3.0
+inherit wxwidgets eutils flag-o-matic
+
+DESCRIPTION="utilities for the SCUMM game engine"
+HOMEPAGE="http://scummvm.sourceforge.net/"
+SRC_URI="http://scummvm.org/frs/scummvm-tools/${PV}/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd"
+IUSE="flac iconv mad png vorbis"
+RESTRICT="test" # some tests require external files
+
+RDEPEND=">=dev-libs/boost-1.32
+ sys-libs/zlib
+ x11-libs/wxGTK:${WX_GTK_VER}
+ flac? ( media-libs/flac )
+ iconv? ( virtual/libiconv media-libs/freetype:2 )
+ mad? ( media-libs/libmad )
+ png? ( media-libs/libpng:0 )
+ vorbis? ( media-libs/libvorbis )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-binprefix.patch"
+)
+
+src_prepare() {
+ default
+
+ need-wxwidgets unicode
+ rm -rf *.bat dists/win32 || die
+ sed -ri -e '/^(CC|CXX)\b/d' Makefile || die
+}
+
+src_configure() {
+ # Not an autoconf script
+ ./configure \
+ --disable-tremor \
+ --enable-verbose-build \
+ --mandir=/usr/share/man \
+ $(use_enable flac) \
+ $(use_enable iconv) \
+ $(use_enable iconv freetype) \
+ $(use_enable mad) \
+ $(use_enable png) \
+ $(use_enable vorbis) || die
+}
+
+src_install() {
+ EXEPREFIX="${PN}-" default
+}
diff --git a/games-engines/scummvm-tools/scummvm-tools-1.8.0.ebuild b/games-engines/scummvm-tools/scummvm-tools-1.8.0.ebuild
new file mode 100644
index 000000000000..5b6030e11965
--- /dev/null
+++ b/games-engines/scummvm-tools/scummvm-tools-1.8.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+WX_GTK_VER=3.0
+inherit wxwidgets eutils flag-o-matic games
+
+DESCRIPTION="utilities for the SCUMM game engine"
+HOMEPAGE="http://scummvm.sourceforge.net/"
+SRC_URI="http://scummvm.org/frs/scummvm-tools/${PV}/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86 ~x86-fbsd"
+IUSE="flac iconv mad png vorbis"
+RESTRICT="test" # some tests require external files
+
+RDEPEND="png? ( media-libs/libpng:0 )
+ mad? ( media-libs/libmad )
+ flac? ( media-libs/flac )
+ vorbis? ( media-libs/libvorbis )
+ iconv? ( virtual/libiconv media-libs/freetype:2 )
+ sys-libs/zlib
+ >=dev-libs/boost-1.32
+ x11-libs/wxGTK:${WX_GTK_VER}"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig"
+
+src_prepare() {
+ need-wxwidgets unicode
+ rm -rf *.bat dists/win32
+ sed -ri -e '/^(CC|CXX)\b/d' Makefile || die
+ epatch "${FILESDIR}/${P}-binprefix.patch"
+}
+
+src_configure() {
+ # Not an autoconf script
+ ./configure \
+ --enable-verbose-build \
+ --mandir=/usr/share/man \
+ --prefix="${GAMES_PREFIX}" \
+ --libdir="${GAMES_PREFIX}/lib" \
+ --datadir="${GAMES_DATADIR}" \
+ --disable-tremor \
+ $(use_enable flac) \
+ $(use_enable iconv) \
+ $(use_enable iconv freetype) \
+ $(use_enable mad) \
+ $(use_enable png) \
+ $(use_enable vorbis) || die
+}
+
+src_install() {
+ EXEPREFIX="${PN}-" default
+ prepgamesdirs
+}
diff --git a/games-engines/scummvm/Manifest b/games-engines/scummvm/Manifest
new file mode 100644
index 000000000000..09d58ad7f79d
--- /dev/null
+++ b/games-engines/scummvm/Manifest
@@ -0,0 +1,9 @@
+DIST scummvm-1.8.0.tar.xz 17385064 SHA256 a85c23a2b1fcb7586a7527ecdbdf6c899a45ecbdcba28b9322057dc27914daa8 SHA512 2fb25467854d6115cf09fd40536728e2c1943c16d8bcb29ebbc3c37fa5dc750a72258e0b0dac6244e5ddcc5f2dfc69af3d7fdff83c98a92a546f8669daa8da27 WHIRLPOOL 55202291d09c86b250dc0ee24fdd3b34dd54924c4b5bb9889d6f2ef84f06db3caebc6bb36a9c1a9ccddd93cfdfaf5feac4982b4b0dc74305819af75031a68524
+DIST scummvm-1.8.1.tar.xz 17807468 SHA256 935f53d7e4c460fbc22c58fee5007d4858891e4961831f53f575a3594b7f612a SHA512 e67ee332668b14432dcd675051384bd4fee2c1a0ddf44f6f8aeaf889d5027a834187e2632d18959583fa258cf03f259a54fd2d88120fa62ef7496232b4e6bdb4 WHIRLPOOL 597e6f4f21c4b80720a86d1f55518ba834d814ea9b9de365e19bdd070b0c8a81ce451d63169597bd54eb6e86876b5506a9f361d8c649c689dce304597b9390af
+DIST scummvm-1.9.0.tar.xz 22020384 SHA256 2417edcb1ad51ca05a817c58aeee610bc6db5442984e8cf28e8a5fd914e8ae05 SHA512 c81248e8474ad5b354a46741ab2e40b8ddfb99e196b0c837424e9ccced285d03d5f12fc41be57034be53bdb8254a61ca0c9d9cd9a2340875d32e1bffa31699c2 WHIRLPOOL b9b09c90aa70c4a0aec2eae9fafba96d6ae2db6d0780ef3fc8bcf2d3bccba59b1b347635f85df1ce98183580132e8b8a00e8443123d13e1f20686b0fc862e2c0
+EBUILD scummvm-1.8.0.ebuild 2702 SHA256 00df3eb9695095cc4c3648cc5b77a2b51434923bb34b2628cf6338ef134bc0b5 SHA512 730b570bdbece423cc48bd65cea444d2db6bb12b283a7ade1a0a642ca610db2adbbe93dc50b36a18add34a6494d135062c87cfb24ab761ad38d9e55d7b219b84 WHIRLPOOL 9456c678faf9445990151dbcff850a574adb7f144d60e9462471e62c8a8ad7a48145528e418c088ff4528bdbc6e5514c23bef4e048a201dc7304d87ebf20f3a7
+EBUILD scummvm-1.8.1-r1.ebuild 2617 SHA256 706ff4999c64c945d346cf00e30bdf0db107f0a87f69d8f8a8a0ffda8c079902 SHA512 952a6ca57c7d5dceae1c72253373700cb6695efa3295edc902cfce8cadcdcad3823eb811d131be6e0998f8f2a2410b5593df2374ca08815830981349d9cd9948 WHIRLPOOL 7614d316e4413157aea2b71c3e355e3a8d70bae274ccc07da4889c4b245290d1eec6c9cc052483154cb79f129ff0fc2a0ca28502b43576ecf989f086ecdee122
+EBUILD scummvm-1.9.0.ebuild 2572 SHA256 bb245ae6a79ff200ee373d1f6716a13c910e1cc1040d60023e8e14741711e22e SHA512 6d6d2bbddd94c21be730b1903f6c315a2fffe0d4ac95b41ab5cc41e08c67871a74936faaacdd49b3c2a0118caef8c7a5703ff850bc938449e233a7acfa08b606 WHIRLPOOL e954a4914317d35b10aab83c644ea139438418fc6260d60ceb61e045675413caeb5d61ac035781b5c2bfa82dca84cbe9788c6323bdb3f2fef524039297504785
+MISC ChangeLog 3940 SHA256 45fc82f3cecaf2f2a6c16683f39d50257291d95fa7b873d21b58083c5fee9bd6 SHA512 bdcb0d5bf4a93de24841b388c893bfb1a5ab7653c08a41cfcd991a862a2205ae2a67133a2122ebc2411e98378c6ca11f2a3b31070d722fd3257236382c5e3a46 WHIRLPOOL 0cdab3149bda82af21326e6edfa21d759ebecfabc18a07a12e8b2a9ca7cd44e7a01b674482435b36b1f5059e731180b03b794b7a3f4aee9bb372860d148b2c2f
+MISC ChangeLog-2015 20387 SHA256 05c3a55fa93f40aa9e5348e279aa4c6ae8d3e090431477f4f8a767687eabdf6e SHA512 311d5df0d3ec6dab28debadab923d76bc1a9caae075c7b1d3e1eefb9bc6fc5eff62ddb34651aeeb773634128e299cb208d022a89116793683e5a144d537ba668 WHIRLPOOL 833a41bea523753ba6810d4db4c4baafc70a092e172f84630dc9452b7e6f97c2658fbbb94e3a9c12a99bd9e93771f876ef3a85e4075f4ecd36583e69201fbe96
+MISC metadata.xml 594 SHA256 4941a24a058b5c8f555da174ca29fa0a3d4c2ad67c3bf48b68bb77754579bcd9 SHA512 6f1c61823667d4fa79900a3be3cb553e37bded1e39124f037cbef7a81bad52f4fbdd79987e28505ea27261b4ca2728bc63eeec0f93034a6e67c5504d915fbfd6 WHIRLPOOL 9ae9f5c5339cece3ca6ad06bb85e2b3c515e43d2c30fbf8e24b737136bd557727fab0752129335d5c12bfa69bb8eb37838a4f5de40092186844aa386f5c88ba2
diff --git a/games-engines/scummvm/metadata.xml b/games-engines/scummvm/metadata.xml
new file mode 100644
index 000000000000..3f7ace82af07
--- /dev/null
+++ b/games-engines/scummvm/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="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="fluidsynth">compile with support for fluidsynth</flag>
+ <flag name="mpeg2">enable mpeg2 codec for cutscenes</flag>
+ <flag name="unsupported">enable unsupported and/or broken game engines (you're on your own)</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">scummvm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-engines/scummvm/scummvm-1.8.0.ebuild b/games-engines/scummvm/scummvm-1.8.0.ebuild
new file mode 100644
index 000000000000..da40623b9a30
--- /dev/null
+++ b/games-engines/scummvm/scummvm-1.8.0.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic gnome2-utils toolchain-funcs games
+
+DESCRIPTION="Reimplementation of the SCUMM game engine used in Lucasarts adventures"
+HOMEPAGE="http://scummvm.sourceforge.net/"
+SRC_URI="http://scummvm.org/frs/scummvm/${PV}/${P}.tar.xz"
+
+LICENSE="GPL-2+ LGPL-2.1 BSD GPL-3-with-font-exception"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86 ~x86-fbsd"
+IUSE="aac alsa debug flac fluidsynth jpeg mpeg2 mp3 opengl png theora truetype unsupported vorbis zlib"
+RESTRICT="test" # it only looks like there's a test there #77507
+
+RDEPEND=">=media-libs/libsdl-1.2.2[sound,joystick,video]
+ zlib? ( sys-libs/zlib )
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0 )
+ vorbis? ( media-libs/libogg media-libs/libvorbis )
+ theora? ( media-libs/libtheora )
+ aac? ( media-libs/faad2 )
+ alsa? ( media-libs/alsa-lib )
+ mp3? ( media-libs/libmad )
+ mpeg2? ( media-libs/libmpeg2 )
+ flac? ( media-libs/flac )
+ opengl? ( virtual/opengl )
+ truetype? ( media-libs/freetype:2 )
+ fluidsynth? ( media-sound/fluidsynth )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ x86? ( dev-lang/nasm )"
+
+S=${WORKDIR}/${P/_/}
+
+src_prepare() {
+ # -g isn't needed for nasm here
+ sed -i \
+ -e '/NASMFLAGS/ s/-g//' \
+ configure || die
+ sed -i \
+ -e '/INSTALL.*doc/d' \
+ -e '/INSTALL.*\/pixmaps/d' \
+ -e 's/-s //' \
+ ports.mk || die
+}
+
+src_configure() {
+ local myconf
+
+ # bug #137547
+ use fluidsynth || myconf="${myconf} --disable-fluidsynth"
+
+ use x86 && append-ldflags -Wl,-z,noexecstack
+
+ # NOT AN AUTOCONF SCRIPT SO DONT CALL ECONF
+ ./configure \
+ --backend=sdl \
+ --host=$CHOST \
+ --enable-verbose-build \
+ --prefix=/usr \
+ --bindir="${GAMES_BINDIR}" \
+ --datadir="${GAMES_DATADIR}"/${PN} \
+ --libdir="${GAMES_LIBDIR}" \
+ --enable-zlib \
+ $(use_enable debug) \
+ $(use_enable !debug release-mode) \
+ $(use_enable zlib) \
+ $(use_enable aac faad) \
+ $(use_enable alsa) \
+ $(use_enable jpeg) \
+ $(use_enable png) \
+ $(use_enable mp3 mad) \
+ $(use_enable mpeg2) \
+ $(use_enable flac) \
+ $(use_enable opengl) \
+ $(use_enable vorbis) \
+ $(use_enable theora theoradec) \
+ $(use_enable truetype freetype2) \
+ $(use_enable x86 nasm) \
+ $(use unsupported && echo --enable-all-engines) \
+ ${myconf} ${EXTRA_ECONF} || die
+}
+
+src_compile() {
+ emake AR="$(tc-getAR) cru" RANLIB=$(tc-getRANLIB)
+}
+
+src_install() {
+ default
+ doicon -s scalable icons/scummvm.svg
+ make_desktop_entry scummvm ScummVM scummvm "Game;AdventureGame"
+ 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-engines/scummvm/scummvm-1.8.1-r1.ebuild b/games-engines/scummvm/scummvm-1.8.1-r1.ebuild
new file mode 100644
index 000000000000..48d2513b1557
--- /dev/null
+++ b/games-engines/scummvm/scummvm-1.8.1-r1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic gnome2-utils toolchain-funcs
+
+DESCRIPTION="Reimplementation of the SCUMM game engine used in Lucasarts adventures"
+HOMEPAGE="http://scummvm.sourceforge.net/"
+SRC_URI="http://scummvm.org/frs/scummvm/${PV}/${P}.tar.xz"
+
+LICENSE="GPL-2+ LGPL-2.1 BSD GPL-3-with-font-exception"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd"
+IUSE="aac alsa debug flac fluidsynth jpeg mpeg2 mp3 opengl png theora truetype unsupported vorbis zlib"
+RESTRICT="test" # it only looks like there's a test there #77507
+
+RDEPEND=">=media-libs/libsdl2-2.0.0[sound,joystick,video]
+ zlib? ( sys-libs/zlib )
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0 )
+ vorbis? ( media-libs/libogg media-libs/libvorbis )
+ theora? ( media-libs/libtheora )
+ aac? ( media-libs/faad2 )
+ alsa? ( media-libs/alsa-lib )
+ mp3? ( media-libs/libmad )
+ mpeg2? ( media-libs/libmpeg2 )
+ flac? ( media-libs/flac )
+ opengl? ( virtual/opengl )
+ truetype? ( media-libs/freetype:2 )
+ fluidsynth? ( media-sound/fluidsynth )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ x86? ( dev-lang/nasm )"
+
+S=${WORKDIR}/${P/_/}
+
+src_prepare() {
+ default
+
+ # -g isn't needed for nasm here
+ sed -i \
+ -e '/NASMFLAGS/ s/-g//' \
+ configure || die
+ sed -i \
+ -e '/INSTALL.*doc/d' \
+ -e '/INSTALL.*\/pixmaps/d' \
+ -e 's/-s //' \
+ ports.mk || die
+}
+
+src_configure() {
+ local myconf
+
+ # bug #137547
+ use fluidsynth || myconf="${myconf} --disable-fluidsynth"
+
+ use x86 && append-ldflags -Wl,-z,noexecstack
+
+ # NOT AN AUTOCONF SCRIPT SO DONT CALL ECONF
+ SDL_CONFIG="sdl2-config" \
+ ./configure \
+ --backend=sdl \
+ --host=$CHOST \
+ --enable-verbose-build \
+ --prefix=/usr \
+ --libdir="/usr/$(get_libdir)" \
+ --enable-zlib \
+ $(use_enable debug) \
+ $(use_enable !debug release-mode) \
+ $(use_enable zlib) \
+ $(use_enable aac faad) \
+ $(use_enable alsa) \
+ $(use_enable jpeg) \
+ $(use_enable png) \
+ $(use_enable mp3 mad) \
+ $(use_enable mpeg2) \
+ $(use_enable flac) \
+ $(use_enable opengl) \
+ $(use_enable vorbis) \
+ $(use_enable theora theoradec) \
+ $(use_enable truetype freetype2) \
+ $(use_enable x86 nasm) \
+ $(use unsupported && echo --enable-all-engines) \
+ ${myconf} ${EXTRA_ECONF} || die
+}
+
+src_compile() {
+ emake AR="$(tc-getAR) cru" RANLIB=$(tc-getRANLIB)
+}
+
+src_install() {
+ default
+ doicon -s scalable icons/scummvm.svg
+ make_desktop_entry scummvm ScummVM scummvm "Game;AdventureGame"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-engines/scummvm/scummvm-1.9.0.ebuild b/games-engines/scummvm/scummvm-1.9.0.ebuild
new file mode 100644
index 000000000000..5e45b6299556
--- /dev/null
+++ b/games-engines/scummvm/scummvm-1.9.0.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic gnome2-utils toolchain-funcs
+
+DESCRIPTION="Reimplementation of the SCUMM game engine used in Lucasarts adventures"
+HOMEPAGE="http://scummvm.sourceforge.net/"
+SRC_URI="http://scummvm.org/frs/scummvm/${PV}/${P}.tar.xz"
+
+LICENSE="GPL-2+ LGPL-2.1 BSD GPL-3-with-font-exception"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd"
+IUSE="aac alsa debug flac fluidsynth jpeg mpeg2 mp3 opengl png theora truetype unsupported vorbis zlib"
+RESTRICT="test" # it only looks like there's a test there #77507
+
+RDEPEND=">=media-libs/libsdl2-2.0.0[sound,joystick,video]
+ zlib? ( sys-libs/zlib )
+ jpeg? ( virtual/jpeg:0 )
+ png? ( media-libs/libpng:0 )
+ vorbis? ( media-libs/libogg media-libs/libvorbis )
+ theora? ( media-libs/libtheora )
+ aac? ( media-libs/faad2 )
+ alsa? ( media-libs/alsa-lib )
+ mp3? ( media-libs/libmad )
+ mpeg2? ( media-libs/libmpeg2 )
+ flac? ( media-libs/flac )
+ opengl? ( virtual/opengl )
+ truetype? ( media-libs/freetype:2 )
+ fluidsynth? ( media-sound/fluidsynth )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ x86? ( dev-lang/nasm )"
+
+S=${WORKDIR}/${P/_/}
+
+src_prepare() {
+ default
+
+ # -g isn't needed for nasm here
+ sed -i \
+ -e '/NASMFLAGS/ s/-g//' \
+ configure || die
+ sed -i \
+ -e '/INSTALL.*doc/d' \
+ -e '/INSTALL.*\/pixmaps/d' \
+ -e 's/-s //' \
+ ports.mk || die
+}
+
+src_configure() {
+ use x86 && append-ldflags -Wl,-z,noexecstack
+
+ # NOT AN AUTOCONF SCRIPT SO DONT CALL ECONF
+ SDL_CONFIG="sdl2-config" \
+ ./configure \
+ --backend=sdl \
+ --host=${CHOST} \
+ --enable-verbose-build \
+ --prefix=/usr \
+ --libdir="/usr/$(get_libdir)" \
+ --opengl-mode=$(usex opengl auto none) \
+ $(use_enable aac faad) \
+ $(use_enable alsa) \
+ $(use_enable debug) \
+ $(use_enable !debug release-mode) \
+ $(use_enable flac) \
+ $(usex fluidsynth '' --disable-fluidsynth) \
+ $(use_enable jpeg) \
+ $(use_enable mp3 mad) \
+ $(use_enable mpeg2) \
+ $(use_enable png) \
+ $(use_enable theora theoradec) \
+ $(use_enable truetype freetype2) \
+ $(usex unsupported --enable-all-engines '') \
+ $(use_enable vorbis) \
+ $(use_enable zlib) \
+ $(use_enable x86 nasm) \
+ ${myconf} ${EXTRA_ECONF} || die
+}
+
+src_compile() {
+ emake AR="$(tc-getAR) cru" RANLIB=$(tc-getRANLIB)
+}
+
+src_install() {
+ default
+ doicon -s scalable icons/scummvm.svg
+ make_desktop_entry scummvm ScummVM scummvm "Game;AdventureGame"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-engines/solarus/Manifest b/games-engines/solarus/Manifest
new file mode 100644
index 000000000000..a49ee7828fb2
--- /dev/null
+++ b/games-engines/solarus/Manifest
@@ -0,0 +1,6 @@
+DIST solarus-1.3.1-src.tar.gz 2450599 SHA256 bfdbd909b817722985393869b1e8c18f18081fd0c68b4c3189c50ef0bbc8f55c SHA512 f52a46add1432a98931db8d26496371b5ff843151c8ac0fdaf1e774be37399d9be6c401f263a65aa08b96f3eebda367b4ccb07ef6cb9740b3112b01e4763556b WHIRLPOOL 67b92a03d2d0a69376f63b9aae3367b97d7d34d40ce3e14d835c34333dc0ec9600bb6ff39f19f31b2861f0b3f790bdb2234bbd7df4b04cca443bb2695a7bcdf6
+EBUILD solarus-1.3.1-r1.ebuild 1076 SHA256 895b94c1a4504f4a94a443e154192d124760f4943814d3aecbd5339e26ea2fe3 SHA512 45b0cfcab36c51aa8fb86a53c3b8472006526a29f1a990adfda71ddbd410c71f93ba87d179b23429fbf8d70fe61a0cf1d39b0a4134b2141dfea843e5a405f4d0 WHIRLPOOL 0eb888dc4e59a02ac60e16742ff17181976b85fcf03b969442e6fb88d8c25ec908ab09532f8da5eb6a56333cab75435b0274b2cb8601ceb4d35a389643a4c77c
+EBUILD solarus-1.3.1.ebuild 1110 SHA256 379a9af9e23d5272a0d9fc0cec836e4947473418a481984e3ea0bcc6a4390242 SHA512 161b3fb9ae9186665b3482aeeaccad4a910831b9c26c0826daf64dc033ff780554bd8075f0017308e56bd8b94e0721af3606789961460afce2741a94a81cc945 WHIRLPOOL 137fcf52ab502646bc1bd981c966e6f9413308df4e33197c2303d6dd6e675f4fcc78c9a1d9c913e786a1ef99702dd8ce567054d2af5d0f4468c557deb3691992
+MISC ChangeLog 3079 SHA256 8418205f9c0b5d634246fa847bd716797dfa1bb601c6b1576184b8797b1636e6 SHA512 92075714e9df00fabb23359f73c7dc54b8e74b7477df30114f04dd99df1f3844a68e5e7c67c6ee70351eedd3d3bcc33cea58262e99059c81b8e20dc8816ffe60 WHIRLPOOL b233e19af41fa2a774b3d7357b8d28d98ec990ca35c837f5b264c6dfbe34c1854333d538080518e160bace2dee1c0a7bddef90e27b1411adc01fe605ad117c7a
+MISC ChangeLog-2015 2054 SHA256 1ce0d0e7abde0a868701e9d56f586fbeca6eeccc08799c17d6b0611f20828585 SHA512 cefabe7072f98a60b7cfc1684e8395f4968173210dbbb707e5473be8ddb2c8b51738c15dfc4b17aa68d2606fadd4daa8e8c7581276b8832279f92cb8bafc57f5 WHIRLPOOL 07201f2281eddb9bbd2e2de5c7a2429868e1aef154c5b10bcc6d1bedef6a73c5acc14c035297ccd28085184e36e787fbf1a377927c1e6ed0b3635ce43b96bf64
+MISC metadata.xml 482 SHA256 17b023512e377851fc0b31cc04195f7678e096dded5c020404935fba286bbdfc SHA512 866a4a87112af7e39006cab843ce872095c662c141c1f5bfdd40c7f47144d4fe73c97f7d47e28a3cbac74e6a64c4534da10938c13a22e32ef338fd41bd927a1a WHIRLPOOL 2869cdc697e1b6a2d8a8656702f5ae6b28c3a385fe9b8c2087a27a20daefe6c3742008858cd1101d678802ef428600c2d4a8ef0f07e2659e98096d731d28d03d
diff --git a/games-engines/solarus/metadata.xml b/games-engines/solarus/metadata.xml
new file mode 100644
index 000000000000..e8c3d77749ef
--- /dev/null
+++ b/games-engines/solarus/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="doc">Install doxygen developer documentation.</flag>
+ <flag name="luajit">Use LuaJIT instead of default Lua.</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">christopho/solarus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-engines/solarus/solarus-1.3.1-r1.ebuild b/games-engines/solarus/solarus-1.3.1-r1.ebuild
new file mode 100644
index 000000000000..31ce4cefa293
--- /dev/null
+++ b/games-engines/solarus/solarus-1.3.1-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="An open-source Zelda-like 2D game engine"
+HOMEPAGE="http://www.solarus-games.org/"
+SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc luajit"
+
+RDEPEND="
+ dev-games/physfs
+ media-libs/libmodplug
+ >=media-libs/libsdl2-2.0.1[X,joystick,video]
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/sdl2-image[png]
+ >=media-libs/sdl2-ttf-2.0.12
+ luajit? ( dev-lang/luajit:2 )
+ !luajit? ( dev-lang/lua:0 )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSOLARUS_INSTALL_DESTINATION="/usr/bin"
+ -DSOLARUS_USE_LUAJIT="$(usex luajit)"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ if use doc ; then
+ cd doc || die
+ doxygen || die
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+ doman solarus.6
+ use doc && dodoc -r doc/${PV%.*}/html/*
+}
diff --git a/games-engines/solarus/solarus-1.3.1.ebuild b/games-engines/solarus/solarus-1.3.1.ebuild
new file mode 100644
index 000000000000..7bb433c00421
--- /dev/null
+++ b/games-engines/solarus/solarus-1.3.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils games
+
+DESCRIPTION="An open-source Zelda-like 2D game engine"
+HOMEPAGE="http://www.solarus-games.org/"
+SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc luajit"
+
+RDEPEND="
+ dev-games/physfs
+ media-libs/libmodplug
+ >=media-libs/libsdl2-2.0.1[X,joystick,video]
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/sdl2-image[png]
+ >=media-libs/sdl2-ttf-2.0.12
+ luajit? ( dev-lang/luajit:2 )
+ !luajit? ( dev-lang/lua:0 )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSOLARUS_INSTALL_DESTINATION="${GAMES_BINDIR}"
+ $(cmake-utils_use luajit SOLARUS_USE_LUAJIT)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ if use doc ; then
+ cd doc || die
+ doxygen || die
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+ doman solarus.6
+ use doc && dohtml -r doc/${PV%.*}/html/*
+ prepgamesdirs
+}
diff --git a/games-engines/stratagus/Manifest b/games-engines/stratagus/Manifest
new file mode 100644
index 000000000000..872b39b2322d
--- /dev/null
+++ b/games-engines/stratagus/Manifest
@@ -0,0 +1,9 @@
+AUX stratagus-2.3.0-debug.patch 667 SHA256 ee11993b997cfbadca077618b0aacb489814d28d404bab66ef2aaf12ea071520 SHA512 751efd651b7beeeca702ad0fd6743c47041607ab0a127f4da1c219c10a55c44abf611aa7215c08f75a899d61cc8e499801d6d003f79520bff022df46ef98949f WHIRLPOOL 185fdc3200b5646fd7eae57d99409fb38f41915abdea56318680331410f5fd499cd450630baf708feb0cb3e236c02f202545b7403b7956c5b7c49f763ab95bc0
+AUX stratagus-2.3.0-doc.patch 378 SHA256 96c118c1b80c76d990d48f0d6dfdb60ffb67190cf51423ac915bb3cde92f74d1 SHA512 185b4a82d4960369bdff7c5522418553838d0d2c0947d8f75a55bf7a22741b9be20a20b60ae086ee04bd31ecf963c5c58167ef6b57b777659832a82d79726483 WHIRLPOOL 8b51f361d5f0e9e6556da5f67828a0d02fcb9c904ced938d3dac11750f88f2321ee29b831159a0bf42898bf5a5f8def8c2916783f77c008e5f5ec36a1bf52573
+DIST stratagus-2.4.1.tar.gz 1087678 SHA256 4f77d0e3cb09c6322a9d5576b55bc2eb498e041a4d77c79dfc3a9b5612913788 SHA512 1f0420677df72e3e2d2f31e60030fa2eba4c3d1ab80cfc79c045724fe39ac237846bc38e8762ee9aa51768a443cdbbaa1fe91bf80fb2164261288a1bb17e27cd WHIRLPOOL 47bef0b10e0bbcab840cf48c5f85e75532f4c6d78bda75b846f711b35b255f5594647df3db736637a46c28b2d08722591223b05fc1d81fb66e93ad9377a0ae02
+DIST stratagus_2.3.0.orig.tar.gz 1000990 SHA256 d3d124f253e987ee1be396ebcdec31228790163a121a9f4e0049d334114adb99 SHA512 ad38568029aa777fcc2d2e6d4a862b4192bc87354b23712270b9f0a62e269548a08097305e97adcea7bc9d9d506a6d092c578656a1957db808a48f44712a76bf WHIRLPOOL 705ab071fff4dc6d865d8e14c67bf3ef1e64fde45a85115178b4686d3c066907e193d733f5f9d09ec363660925349097f83afa6895a8c27e73c680e27db357a9
+EBUILD stratagus-2.3.0.ebuild 1635 SHA256 e568147f4d9f95d5360c522c1d6d917a97c67d8d5f834ba270ac76053c3cf1d4 SHA512 938f07d8dfb456a1f69a15dde04c42041c69de25cd6ab42892d2be99f75d9e67a736b72e3fde045498aa85f9836d232f91a9c791d327c8d2cabef3fa277e1bf2 WHIRLPOOL 21dee6463ba887ae2d2604b1923726c402559d9bd374d44fa9cbb074218441494b683075737618f7f2926f420233b91d2960ce828742607ca12ad4f3cd54bb61
+EBUILD stratagus-2.4.1.ebuild 1523 SHA256 1ed251f958921c2b81dd5865a075a073b6ea2c94089aff67b3f7ab497f1dfbdf SHA512 0751342ca95b1384e116732401481c341c0c79555eecda4ab6dda0318d0823c6130ea4a4e988ec97c77a315bc5f70db8be4b36c6cd9e705a7fe0885d86bab269 WHIRLPOOL ffc96e09f807e0697e0371b7e25589cb85de559794af212117508bbef619390b1c8f05be5a5d60525449766db941bd9dea397964484d87e42982596e1188fc8f
+MISC ChangeLog 4169 SHA256 cc7f3ce38593425bfd2b228dd2bb458dfbc2da49813b73f5b19726ce8437d73e SHA512 143387ccd55babbf96308cb69bc5a3a978b06a491d92f279bbe9454c86908f47b38b8732a80d6cdb3c74917358b8b4f060d523e7c045a34f4e499351da6bfdf3 WHIRLPOOL cf59413cecaec7bf53c502319159b1d26e67ea9896acfbdf41f3c0964010fb6deb4f289f4b9f574541f9f939d8dc17b34f6f7557742f2f4a210605a8aee638ee
+MISC ChangeLog-2015 5157 SHA256 4bb25acc8b5a7aad2df8691dee675ca9d2a40e78573260f5b8acf1a32751312c SHA512 69a4bd666ae9c7f745768a104fb882e6a70dc91b309bf44e8781fd1f656685177e8b5261a62b6c2e6af0a2ece5028fbb6e1c13c778b63568e10b0c46801e730d WHIRLPOOL 26c8c5fe34b3e02df234f15ed8c816eeb594493793e4237df74646f403fab1b710ebd9e29dbf1ec60948cf10bb4346cd53524997fcb11b3db6d072c7752b347b
+MISC metadata.xml 468 SHA256 007fba27691ed6477af1ae436de62b2a7dbdcd0608b614c6b565eeebf177dc3c SHA512 80c9342fa0155fd762f9585fcd3aaf2f472e4d6d75439926ed6fd9711c25821fee9193c011bbc6efdca644d0a41ad57966ff19effa5b36b277295b15b25cd642 WHIRLPOOL de4c17fb5035f9aa4b5311226672600c71931b9c37437c224702666742a33b1591094c561a4873b8ec34b9cbb4f917b63c729aa068d69ad09b4826eb50f56a42
diff --git a/games-engines/stratagus/files/stratagus-2.3.0-debug.patch b/games-engines/stratagus/files/stratagus-2.3.0-debug.patch
new file mode 100644
index 000000000000..41817865c577
--- /dev/null
+++ b/games-engines/stratagus/files/stratagus-2.3.0-debug.patch
@@ -0,0 +1,19 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Thu Oct 18 14:31:37 UTC 2012
+Subject: build-system
+
+do not rename the target if debug is enabled
+
+--- stratagus_2.2.7.orig/CMakeLists.txt
++++ stratagus_2.2.7.orig/CMakeLists.txt
+@@ -911,10 +911,6 @@
+ add_executable(stratagus WIN32 ${stratagus_SRCS} ${stratagus_HDRS})
+ target_link_libraries(stratagus ${stratagus_LIBS})
+
+-if(CMAKE_BUILD_TYPE STREQUAL "Debug")
+- set_target_properties(stratagus PROPERTIES OUTPUT_NAME stratagus-dbg)
+-endif()
+-
+ if(WIN32 AND MINGW AND ENABLE_STATIC)
+ set_target_properties(stratagus PROPERTIES LINK_FLAGS "${LINK_FLAGS} -static-libgcc -static-libstdc++ -Wl,--stack,10485760")
+ endif()
diff --git a/games-engines/stratagus/files/stratagus-2.3.0-doc.patch b/games-engines/stratagus/files/stratagus-2.3.0-doc.patch
new file mode 100644
index 000000000000..1605b81411fa
--- /dev/null
+++ b/games-engines/stratagus/files/stratagus-2.3.0-doc.patch
@@ -0,0 +1,11 @@
+--- stratagus_2.2.7.orig/CMakeLists.txt
++++ stratagus_2.2.7.orig/CMakeLists.txt
+@@ -1050,7 +1050,7 @@
+ doc/media.html
+ doc/metaserver_protocol.txt
+ doc/README-SDL.txt
+- DESTINATION share/doc/stratagus
++ DESTINATION ${DOCDIR}
+ )
+ install(DIRECTORY doc/graphics doc/scripts ${CMAKE_CURRENT_BINARY_DIR}/doxygen DESTINATION ${DOCDIR})
+ endif(ENABLE_DOC AND DOXYGEN_FOUND)
diff --git a/games-engines/stratagus/metadata.xml b/games-engines/stratagus/metadata.xml
new file mode 100644
index 000000000000..3914695ecbc2
--- /dev/null
+++ b/games-engines/stratagus/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="fluidsynth">compile with support for fluidsynth</flag>
+ </use>
+ <upstream>
+ <remote-id type="launchpad">stratagus</remote-id>
+ <remote-id type="sourceforge">stratagus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-engines/stratagus/stratagus-2.3.0.ebuild b/games-engines/stratagus/stratagus-2.3.0.ebuild
new file mode 100644
index 000000000000..5e1718fdcaa0
--- /dev/null
+++ b/games-engines/stratagus/stratagus-2.3.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils eutils games
+
+DESCRIPTION="A realtime strategy game engine"
+HOMEPAGE="https://launchpad.net/stratagus/"
+SRC_URI="https://launchpad.net/stratagus/trunk/2.3/+download/stratagus_${PV}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="bzip2 debug doc fluidsynth mikmod mng theora vorbis"
+
+RDEPEND="dev-db/sqlite:3
+ >=dev-lang/lua-5:0
+ dev-lua/toluapp
+ media-libs/libpng:0
+ virtual/opengl
+ x11-libs/libX11
+ media-libs/libsdl[sound,opengl,video]
+ sys-libs/zlib
+ bzip2? ( app-arch/bzip2 )
+ fluidsynth? ( media-sound/fluidsynth )
+ mikmod? ( media-libs/libmikmod )
+ mng? ( media-libs/libmng )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ theora? ( media-libs/libtheora )
+ )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ virtual/pkgconfig"
+
+REQUIRED_USE="theora? ( vorbis )"
+PATCHES=( "${FILESDIR}"/${P}-{debug,doc}.patch )
+
+S=${WORKDIR}/${PN}_${PV}.orig
+
+src_configure() {
+ # there are in-source switches
+ use debug && CMAKE_BUILD_TYPE=Debug
+
+ local mycmakeargs=(
+ -DGAMEDIR="${GAMES_BINDIR}"
+ -DBINDIR="${GAMES_BINDIR}"
+ -DSBINDIR="${GAMES_BINDIR}"
+ -DDOCDIR="/usr/share/doc/${PF}"
+ $(cmake-utils_use_with bzip2)
+ $(cmake-utils_use_enable doc)
+ $(cmake-utils_use_with fluidsynth)
+ $(cmake-utils_use_with mikmod)
+ $(cmake-utils_use_with mng)
+ $(cmake-utils_use_with vorbis OGGVORBIS)
+ $(cmake-utils_use_with theora)
+ -DENABLE_DEV=ON
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ prepgamesdirs
+}
diff --git a/games-engines/stratagus/stratagus-2.4.1.ebuild b/games-engines/stratagus/stratagus-2.4.1.ebuild
new file mode 100644
index 000000000000..a692d77f9475
--- /dev/null
+++ b/games-engines/stratagus/stratagus-2.4.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils eutils
+
+DESCRIPTION="A realtime strategy game engine"
+HOMEPAGE="https://launchpad.net/stratagus/"
+SRC_URI="https://github.com/Wargus/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bzip2 debug doc fluidsynth mikmod mng theora vorbis"
+
+RDEPEND="dev-db/sqlite:3
+ >=dev-lang/lua-5:0
+ dev-lua/toluapp
+ media-libs/libpng:0
+ virtual/opengl
+ x11-libs/libX11
+ media-libs/libsdl[sound,opengl,video]
+ sys-libs/zlib
+ bzip2? ( app-arch/bzip2 )
+ fluidsynth? ( media-sound/fluidsynth )
+ mikmod? ( media-libs/libmikmod )
+ mng? ( media-libs/libmng )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ theora? ( media-libs/libtheora )
+ )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ virtual/pkgconfig"
+
+REQUIRED_USE="theora? ( vorbis )"
+PATCHES=(
+ "${FILESDIR}/${PN}"-2.3.0-debug.patch
+ "${FILESDIR}/${PN}"-2.3.0-doc.patch
+)
+
+src_configure() {
+ # there are in-source switches
+ use debug && CMAKE_BUILD_TYPE=Debug
+
+ local mycmakeargs=(
+ -DGAMEDIR="/usr/bin"
+ -DDOCDIR="/usr/share/doc/${PF}"
+ -DWITH_BZIP2=$(usex bzip2)
+ -DENABLE_DOC=$(usex doc)
+ -DWITH_FLUIDSYNTH=$(usex fluidsynth)
+ -DWITH_MIKMOD=$(usex mikmod)
+ -DWITH_MNG=$(usex mng)
+ -DWITH_OGGVORBIS=$(usex vorbis)
+ -DWITH_THEORA=$(usex theora)
+ -DENABLE_DEV=ON
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+}
diff --git a/games-engines/xzip/Manifest b/games-engines/xzip/Manifest
new file mode 100644
index 000000000000..d9c9f70ade07
--- /dev/null
+++ b/games-engines/xzip/Manifest
@@ -0,0 +1,6 @@
+DIST xzip182.tar.Z 136032 SHA256 46d2cee7bbabce7068034c75df49ec4a03165fcc07490d406c7e33152269ffb2 SHA512 b86099424ff35abd90737461e3d29d515d909b41c6a5411971fedb28f1f3284b13ea972380349f8c44fd39779c34258a99c5a9c0fb6a81e2bf919e9c38107bbd WHIRLPOOL fabcd5ea5cd9a21175a4e2833be8e60e4052cc3b96896616b25965dc3e4904e0fdb362205100f0217d92de68624e8ee3b43ccf3f509c7bb441b467c5339d6ff4
+EBUILD xzip-1.8.2-r2.ebuild 589 SHA256 82a74d1a441e2933bddf188ee8d729f8a3d9b551aa0924450a0cb13db8ede279 SHA512 3a569bb65abae234831b61f3ab74f798ebd07695c26e10a5b03f917550ee6087e0b11d56b3639f59981d8e491474f13ad6a89f1f21007ec2af975c1ef05528d2 WHIRLPOOL 43cd7ac4486720b26a575b9ff566a57c0fc8aeca983668dda611b3a8ae2209e84818dcc7f7b1e04c666bd0a9bdd6f7953b1f9a265bfe59e2ef4729bf7829b402
+EBUILD xzip-1.8.2-r3.ebuild 559 SHA256 2dac724fe4a329eff0676fdf3f9c1efa5614d529c597632ff6ec08ecdcd8e8b9 SHA512 210ab5f4968d5751e6849b8c67f5093f6406abf46b719ba51ed6e0a367e9052bb4d5bfd07d22901f5b8fd91c1e1ba66ef203848624873f3fda017adb797347e1 WHIRLPOOL 235c5453ebaafe9a2a3ea7f6242d4b4aff461a805203a5cde2a3c602c807c56f763ed1772afe9b984fac938a6085a209d4adcb6490bcbf4fd33ae8657b388670
+MISC ChangeLog 2675 SHA256 aaef30b4f485198073e8bc7963cc4ab35911e692b8589ab88a979276b74eea61 SHA512 74f43f6349a7c4e562f0503b70209316d808fc1a1ddd6907f94957e842fdc96a2c22f1d22c8b36d4a328a847f97671b6150eba5af0a1732d8b27e03e74636893 WHIRLPOOL 4088a64e12ab0bb6c201c750d2866c586739ab72699baf7a5c05a33d19693cbc2b85e7543378391f3614b6ff56e299e0fe19b2733fc556db897ad2abb9568105
+MISC ChangeLog-2015 2007 SHA256 10c48a184bf114e1974fcb2b6978605bed036e577652d3042ace0210a4f532ca SHA512 573242c7586c1fdd0e3c1122ddbbbe02d644898c56df8122446492c8410dafdb29b29a508966d6d383175ebafccf4870a4a6997ec6cfd23a93a865acc21c05c0 WHIRLPOOL 2f66e203da90fbf247d9d8ee83c3e0e6211e9acb70b3bf27be3b35cc6483ecfa389949d9433420674f79ff92b15db11dc6ddc19813adf4aea82f14e323b93f36
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-engines/xzip/metadata.xml b/games-engines/xzip/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-engines/xzip/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-engines/xzip/xzip-1.8.2-r2.ebuild b/games-engines/xzip/xzip-1.8.2-r2.ebuild
new file mode 100644
index 000000000000..483f97d45481
--- /dev/null
+++ b/games-engines/xzip/xzip-1.8.2-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+DESCRIPTION="X interface to Z-code based text games"
+HOMEPAGE="http://www.eblong.com/zarf/xzip.html"
+SRC_URI="http://www.eblong.com/zarf/ftp/xzip182.tar.Z"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="test"
+
+DEPEND="x11-libs/libX11"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/xzip
+
+src_compile() {
+ emake \
+ CFLAGS="${CFLAGS} -DAUTO_END_MODE" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dogamesbin xzip
+ dodoc README
+ doman xzip.1
+ prepgamesdirs
+}
diff --git a/games-engines/xzip/xzip-1.8.2-r3.ebuild b/games-engines/xzip/xzip-1.8.2-r3.ebuild
new file mode 100644
index 000000000000..b961ce3ca312
--- /dev/null
+++ b/games-engines/xzip/xzip-1.8.2-r3.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="X interface to Z-code based text games"
+HOMEPAGE="http://www.eblong.com/zarf/xzip.html"
+SRC_URI="http://www.eblong.com/zarf/ftp/xzip182.tar.Z"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="test"
+
+DEPEND="x11-libs/libX11"
+RDEPEND=${DEPEND}
+
+S="${WORKDIR}/xzip"
+
+src_compile() {
+ emake \
+ CFLAGS="${CFLAGS} -DAUTO_END_MODE" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin xzip
+ dodoc README
+ doman xzip.1
+}
diff --git a/games-engines/zoom/Manifest b/games-engines/zoom/Manifest
new file mode 100644
index 000000000000..d389a0d18ea0
--- /dev/null
+++ b/games-engines/zoom/Manifest
@@ -0,0 +1,6 @@
+DIST zoom-1.1.5.tar.gz 2185098 SHA256 f2967f1c0555df8d4ae90443502d14cf33b6ac65b602f499fbe3e9e38e55dbbc SHA512 800b29e3517ce39000d8c05148d6af0d7c8666db20a06867e35076ffa1914b845e8fa0153571975e59842672572b80826ee8dbe3b2d4bc98c07394054e9bd7ca WHIRLPOOL efe20c16d98874241c421197093819e8929b1a11c11ca6eb6c0ba14966ad062b9489d2e5b793f8ceeef687e9a4cca0af83c4bbeb46ca32aea6f8e1b7c9bb82bd
+EBUILD zoom-1.1.5-r1.ebuild 562 SHA256 65f7aa3a3526622f3fd519a2d22abcdb72d73a715221fae4fb39503cf87e6134 SHA512 f9a3fc57597ad1eaf4095a53a39af1e8d71346c6e49441766829283f70c0583fb32bbfde0f5ecb63793ce41b463d2d1ce3fb1b8896097dd75c0032fc32e28b32 WHIRLPOOL 51f52a1dafa3ee796b36f57c15301d5887a820d9c5804482c6f4190a4a96501ac48b6aa374dfcf63d7a6e48d7294de3a75527795b21cdd5ec8aca5b1118f9d6a
+EBUILD zoom-1.1.5.ebuild 588 SHA256 d954bf31831b3dc6f27a12953cdd4ef4cfc870139cfbdf396e1dc4de810bb1fa SHA512 cfd7c4cd8eb851ac5231769dce96f413f3a3bdbe2876e63e504c01feb0fe4673e8ccde6022edf34149a40b1088f01672aa8cd97344b2aa36458d21dbf6243b6c WHIRLPOOL 06e4a732ebf751606e608a00d72ddb3c7e1aaa4074848b4fff2bd4724be0785f90666316f5eb43898b4e4e4178f0e5d9c1ae877f92c31b2bcd057ec6000c0a73
+MISC ChangeLog 2669 SHA256 12f1f0c946f3f4070c39436b62c8ad029e3016dd7cb08dca85a49abadce6de29 SHA512 4e6c02a300ca01d48a77f7e118759d3a7af6af3fb8a9890f1c16c761321572cbfd31a2aea6034fde13704db2e13e5484309b991c6191e348bfef7bf1717aab38 WHIRLPOOL 23117695ca378d8f701ac335fb837335056cd19366cac70e3e48bb57857a9e9a31615252b5b77bf48c80480a038afac5fa1d4e440f9938aecfc575b0842308f9
+MISC ChangeLog-2015 2794 SHA256 62cfb960481b5036caa8bfb44b7a12a21e1a4d0896e17cfa54cc7ff971c0ee22 SHA512 72b334d8f35b0d5d5a1d0dd2df862354d1187a4827d773d8f6743ed79156f2f40e8d193a178b318e260d31b368200feac5c38c1990abfcf30b29bc8eec947657 WHIRLPOOL 9b29fe83c60764993e4909e02b986391822d5d95a0d1a14c617da9fb1813eb1eb0d85edede5b08af4e5a3d4c1f14146d6180a2575fca000e75d73a53537bfe8f
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-engines/zoom/metadata.xml b/games-engines/zoom/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-engines/zoom/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-engines/zoom/zoom-1.1.5-r1.ebuild b/games-engines/zoom/zoom-1.1.5-r1.ebuild
new file mode 100644
index 000000000000..20d982f0281d
--- /dev/null
+++ b/games-engines/zoom/zoom-1.1.5-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A fast, clean, modern Z-code interpreter for X"
+HOMEPAGE="http://www.logicalshift.co.uk/unix/zoom/"
+SRC_URI="http://www.logicalshift.co.uk/unix/zoom/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ media-libs/fontconfig
+ media-libs/libpng:0
+ >=media-libs/t1lib-5
+ x11-libs/libSM
+ x11-libs/libXft"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ x11-proto/xextproto"
+
+src_install() {
+ default
+ dodoc -r manual/*
+}
diff --git a/games-engines/zoom/zoom-1.1.5.ebuild b/games-engines/zoom/zoom-1.1.5.ebuild
new file mode 100644
index 000000000000..86eccbace5d8
--- /dev/null
+++ b/games-engines/zoom/zoom-1.1.5.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+DESCRIPTION="A fast, clean, modern Z-code interpreter for X"
+HOMEPAGE="http://www.logicalshift.co.uk/unix/zoom/"
+SRC_URI="http://www.logicalshift.co.uk/unix/zoom/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="x11-libs/libSM
+ x11-libs/libXft
+ media-libs/fontconfig
+ >=media-libs/t1lib-5
+ media-libs/libpng:0"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ x11-proto/xextproto"
+
+src_install() {
+ default
+ dohtml -r manual/*
+ prepgamesdirs
+}