diff options
-rw-r--r-- | games-engines/frobtads/ChangeLog | 10 | ||||
-rw-r--r-- | games-engines/frobtads/Manifest | 6 | ||||
-rw-r--r-- | games-engines/frobtads/frobtads-0.12.ebuild | 57 | ||||
-rw-r--r-- | games-engines/frobtads/metadata.xml | 9 |
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..4eaa0d5f7489 --- /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 1521 RMD160 dc303b389560ba5e446936e08b552456c9735626 SHA1 6de38979c0f0cc353099013aade01dc1583bc023 SHA256 64d42536c5ff0aa3319d3949aa4f931194c9546a065031676a4d02093376a02f +MISC ChangeLog 322 RMD160 809511908212f4fa40c2842223647a049f655233 SHA1 78225f5ee77c0a83ffe7c825e327abc4dc639ad5 SHA256 e77d862aca31a7ab0fce75c40ab2c03423a42f7b0689de3e87edc6b9783fc0e0 +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> |