From 5a69fd445cb2ef5d405f1de80bf82cf238521884 Mon Sep 17 00:00:00 2001 From: Nikos Chantziaras Date: Sat, 23 Apr 2011 23:39:11 +0300 Subject: [PATCH] frobtads: add 1.0 --- games-engines/frobtads/Manifest | 4 +++ games-engines/frobtads/frobtads-1.0.ebuild | 57 ++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 games-engines/frobtads/frobtads-1.0.ebuild diff --git a/games-engines/frobtads/Manifest b/games-engines/frobtads/Manifest index d4ac2b1..4d27e97 100644 --- a/games-engines/frobtads/Manifest +++ b/games-engines/frobtads/Manifest @@ -1 +1,5 @@ +DIST frobtads-1.0.tar.gz 1513973 RMD160 72cf59be7bf780a89dcb56c7f6f3f1aa880b132e SHA1 97d17fd9377d0860b754a7313f13739f9134890a SHA256 504f0b20546c7be04a60c94bf6125991fc1902b6141963c69753de16b4a42e9c +DIST frobtads-t2compiler-1.0.tar.gz 131319 RMD160 78a352f79dd4a721e8ed41f112e831fc8f8d5e07 SHA1 b299d0133bda7d0591b39efb131a3af140eb57d7 SHA256 3f67e45f86905f53f9947b0512de53729dd219d1df8743d6c3e5d4404a0b0af6 +DIST frobtads-t3compiler-1.0.tar.gz 2206632 RMD160 b5bfaf2c116afc1e8e4cf7eaf5cfc411938b3e1b SHA1 76520c66aa19ffea7557a4f8e8187bdb5b0b0ef9 SHA256 049691706e9ed8b2e81914dfc831003eb476483c462939da802a2769725ea16a +EBUILD frobtads-1.0.ebuild 1614 RMD160 b5c769c2756bc4c26bddf58f1857d0b75081ae5c SHA1 1ba2930ffb670d3f675bb6b21715749b6dfa60d0 SHA256 ae5cade7d351ce1331795d10b5bdb65316addbf073ea8d8096c29e46ceaf02d9 EBUILD frobtads-9999.ebuild 1952 RMD160 6a4858d29339891bbbe5f031147e597c4689df29 SHA1 682f0977b28e828648be49a843987e5b2d4d001c SHA256 34e8889209daeab677fdf2f5fbc286a7e9e928f0f4f717e63702c35df8c2868a diff --git a/games-engines/frobtads/frobtads-1.0.ebuild b/games-engines/frobtads/frobtads-1.0.ebuild new file mode 100644 index 0000000..271e23f --- /dev/null +++ b/games-engines/frobtads/frobtads-1.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-engines/frobtads/frobtads-0.13.ebuild,v 1.2 2009/10/29 14:41:58 maekke Exp $ + +EAPI=2 +inherit 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 + 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_configure() { + append-cxxflags -fno-strict-aliasing + egamesconf $(use_enable debug t3debug) || die "egamesconf 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.old,NEWS,README,SRC_GUIDELINES,THANKS} + prepgamesdirs +} -- 2.11.4.GIT