diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2011-07-30 07:38:24 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2011-07-30 07:38:24 +0000 |
commit | 16843e51b5f4ed396b5c9904bfe658d06ae3b37b (patch) | |
tree | f7990a9321e81ec68dad14356a83e53520cf3066 /games-engines | |
parent | Version bump. (diff) | |
download | gentoo-2-16843e51b5f4ed396b5c9904bfe658d06ae3b37b.tar.gz gentoo-2-16843e51b5f4ed396b5c9904bfe658d06ae3b37b.tar.bz2 gentoo-2-16843e51b5f4ed396b5c9904bfe658d06ae3b37b.zip |
Version bump to 1.0 Bug #364297
(Portage version: 2.1.10.7/cvs/Linux i686)
Diffstat (limited to 'games-engines')
-rw-r--r-- | games-engines/frobtads/ChangeLog | 9 | ||||
-rw-r--r-- | games-engines/frobtads/frobtads-1.0.ebuild | 58 |
2 files changed, 65 insertions, 2 deletions
diff --git a/games-engines/frobtads/ChangeLog b/games-engines/frobtads/ChangeLog index d8b7dcca4042..2fecaffd8984 100644 --- a/games-engines/frobtads/ChangeLog +++ b/games-engines/frobtads/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-engines/frobtads -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-engines/frobtads/ChangeLog,v 1.3 2009/10/29 14:41:58 maekke Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-engines/frobtads/ChangeLog,v 1.4 2011/07/30 07:38:24 tupone Exp $ + +*frobtads-1.0 (30 Jul 2011) + + 30 Jul 2011; Tupone Alfredo <tupone@gentoo.org> +frobtads-1.0.ebuild: + Version bump to 1.0 Bug #364297 by Nikos Chantziaras 29 Oct 2009; Markus Meier <maekke@gentoo.org> frobtads-0.13.ebuild: amd64/x86 stable, bug #289006 diff --git a/games-engines/frobtads/frobtads-1.0.ebuild b/games-engines/frobtads/frobtads-1.0.ebuild new file mode 100644 index 000000000000..f2645424240e --- /dev/null +++ b/games-engines/frobtads/frobtads-1.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-engines/frobtads/frobtads-1.0.ebuild,v 1.1 2011/07/30 07:38:24 tupone 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 )" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND}" + +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 -fpermissive + 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 +} |