summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2008-09-05 06:39:00 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2008-09-05 06:39:00 +0000
commitae5ea5f03713d33af81f72dd1539e39c3e420ec6 (patch)
tree318c0efa4e3827661a0fd0d6380011f3a2577bad /games-engines/frobtads
parentadd licenses for games-engines/frobtads (diff)
downloadhistorical-ae5ea5f03713d33af81f72dd1539e39c3e420ec6.tar.gz
historical-ae5ea5f03713d33af81f72dd1539e39c3e420ec6.tar.bz2
historical-ae5ea5f03713d33af81f72dd1539e39c3e420ec6.zip
initial commit - ebuild submitted by Nikos Chantziaras via bug #149764
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'games-engines/frobtads')
-rw-r--r--games-engines/frobtads/ChangeLog10
-rw-r--r--games-engines/frobtads/Manifest6
-rw-r--r--games-engines/frobtads/frobtads-0.12.ebuild57
-rw-r--r--games-engines/frobtads/metadata.xml9
4 files changed, 82 insertions, 0 deletions
diff --git a/games-engines/frobtads/ChangeLog b/games-engines/frobtads/ChangeLog
new file mode 100644
index 000000000000..988448ec390e
--- /dev/null
+++ b/games-engines/frobtads/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-engines/frobtads
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-engines/frobtads/ChangeLog,v 1.1 2008/09/05 06:39:00 mr_bones_ Exp $
+
+*frobtads-0.12 (05 Sep 2008)
+
+ 05 Sep 2008; Michael Sterrett <mr_bones_@gentoo.org> +metadata.xml,
+ +frobtads-0.12.ebuild:
+ initial commit - ebuild submitted by Nikos Chantziaras via bug #149764
+
diff --git a/games-engines/frobtads/Manifest b/games-engines/frobtads/Manifest
new file mode 100644
index 000000000000..821baca3f598
--- /dev/null
+++ b/games-engines/frobtads/Manifest
@@ -0,0 +1,6 @@
+DIST frobtads-0.12.tar.gz 1509225 RMD160 6e88266e922e71018145ac8534a386a800952a4a SHA1 84be7fbf2d2927ad97766778f22dafe873b6284f SHA256 f4700ec0d47a33d7d99a488318afe8d44b53f62a5e94f35a628e76f909483cbc
+DIST frobtads-t2compiler-0.12.tar.gz 130671 RMD160 7f3410a6d5f21a9a2b6e4ee0a5dfb9d88f252f91 SHA1 718c7513d0f30947075e70afd9cefed4e481665c SHA256 d9cf1b255c2b9cb153ffd04184b46be16de54373bafc458acc573ffe57c4c1b8
+DIST frobtads-t3compiler-0.12.tar.gz 2137872 RMD160 1f6ccf8bfcf6ef6601110be568fa9f8010fffe58 SHA1 163782295e0f512fd2aef311a40e5db6952bef51 SHA256 fc0c89059585a02ffe0c2c83c77ee8c36fbfe1e114badd1ecfed2c5e0f5d10a1
+EBUILD frobtads-0.12.ebuild 1629 RMD160 0c5df1130c32fe9e6aef295baa0ca84d1a6692a1 SHA1 8315459d3687f472734ad243a32886bf598f056f SHA256 ec890bb815643ff17733de95cb83da2f5d3332ee3a3f9ba4ed0ed6ac84714d20
+MISC ChangeLog 419 RMD160 0f7b3ce2d87cfe2801dd42c0777e2c01da3ba41f SHA1 6ad8e76468e65a1ec9f75c5a9506a19102f2dbcb SHA256 c8d7eba48c6442d863be8ea1cdb8e75cd0a25db1bf7a928682f505fa6bdc83ab
+MISC metadata.xml 295 RMD160 f8cea63af81cfcbf3f60ba5f52d5283aaf2a377c SHA1 41a9092bbaa5046bb983438be5aa920c85e646f6 SHA256 37acff33478d448e8fe70199d854a4b9469f884afd131c336213f679d8787e05
diff --git a/games-engines/frobtads/frobtads-0.12.ebuild b/games-engines/frobtads/frobtads-0.12.ebuild
new file mode 100644
index 000000000000..66fa40a828f5
--- /dev/null
+++ b/games-engines/frobtads/frobtads-0.12.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-engines/frobtads/frobtads-0.12.ebuild,v 1.1 2008/09/05 06:39:00 mr_bones_ Exp $
+
+inherit 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
+ tads2compiler? ( http://www.tads.org/frobtads/${PN}-t2compiler-${PV}.tar.gz )
+ tads3compiler? ( http://www.tads.org/frobtads/${PN}-t3compiler-${PV}.tar.gz )"
+
+LICENSE="TADS2 TADS3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug tads2compiler tads3compiler"
+
+RESTRICT="!tads3compiler? ( test )"
+
+DEPEND="sys-libs/ncurses"
+
+src_unpack() {
+ unpack ${A}
+ if use tads2compiler; then
+ mv t2compiler/* "${S}"/t2compiler || die "mv t2compiler failed"
+ fi
+ if use tads3compiler; then
+ mv t3compiler/* "${S}"/t3compiler || die "mv t3compiler failed"
+ fi
+}
+
+src_compile() {
+ CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
+ egamesconf $(use_enable debug t3debug) || die "egamesconf failed"
+ emake || die "emake failed"
+}
+
+src_test() {
+ if use debug; then
+ emake -j1 check || die "TADS 3 compiler test suite failed"
+ fi
+
+ emake -j1 sample || die "Failed to build test game"
+ ./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() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc doc/{AUTHORS,BUGS,ChangeLog,NEWS,README,SRC_GUIDELINES,THANKS}
+ prepgamesdirs
+}
diff --git a/games-engines/frobtads/metadata.xml b/games-engines/frobtads/metadata.xml
new file mode 100644
index 000000000000..3a1d0ec34eff
--- /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>