summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-engines/frobtads')
-rw-r--r--games-engines/frobtads/Manifest1
-rw-r--r--games-engines/frobtads/frobtads-1.2.2.ebuild49
-rw-r--r--games-engines/frobtads/metadata.xml9
3 files changed, 59 insertions, 0 deletions
diff --git a/games-engines/frobtads/Manifest b/games-engines/frobtads/Manifest
new file mode 100644
index 00000000000..ce823830682
--- /dev/null
+++ b/games-engines/frobtads/Manifest
@@ -0,0 +1 @@
+DIST frobtads-1.2.2.tar.gz 5213193 SHA256 f2802f6b8b2fb1e2a2c46cdec92b32e7135b6aceb3054a588eb9ebb9434a186e SHA512 14c0c8a624632b00a7615e643f592eac2d6a0a523f9e019527e9ae8f04402cc4ee1568417bacbfdfd31df6452536a65e012ba0f0d3cced8ba6901988e7a5bc42 WHIRLPOOL ffdd10df65bdd11512c115d8ef0a9a990fa31220628b437eb351eddd2a260fd51d838096cd9860c737861f941e18c148b85a15388c2544e047f6f2ef589ae9b3
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 00000000000..9204b6e6803
--- /dev/null
+++ b/games-engines/frobtads/frobtads-1.2.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+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"
+DEPEND="${RDEPEND}"
+
+DOCS=( doc/{AUTHORS,BUGS,ChangeLog.old,NEWS,README,SRC_GUIDELINES,THANKS} )
+
+src_configure() {
+ append-cxxflags -fpermissive
+ egamesconf \
+ --disable-silent-rules \
+ $(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 00000000000..3a1d0ec34ef
--- /dev/null
+++ b/games-engines/frobtads/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <use>
+ <flag name="tads2compiler">Build TADS2 compiler</flag>
+ <flag name="tads3compiler">Build TADS3 compiler</flag>
+ </use>
+</pkgmetadata>