1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 if [ "$PV" == "9999" ]; then
7 # The package uses AM_SILENT_RULES which is only available in automake
12 inherit flag-o-matic games
14 DESCRIPTION
="Curses-based interpreter and development tools for TADS 2 and TADS 3 text adventures"
15 HOMEPAGE
="http://www.tads.org/frobtads.htm"
16 if [ "$PV" != "9999" ]; then
17 SRC_URI
="http://www.tads.org/frobtads/${P}.tar.gz
18 tads2compiler? ( http://www.tads.org/frobtads/${PN}-t2compiler-${PV}.tar.gz )
19 tads3compiler? ( http://www.tads.org/frobtads/${PN}-t3compiler-${PV}.tar.gz )"
20 KEYWORDS
="~amd64 ~x86"
23 EGIT_REPO_URI
="git://git.assembla.com/frobtads.git"
28 RESTRICT
="!tads3compiler? ( test )"
29 IUSE
="debug +tads2compiler +tads3compiler"
31 DEPEND
="sys-libs/ncurses"
35 if [ "${PV}" == "9999" ]; then
38 einfo
"Regenerating autotools files..."
44 append-cxxflags
-fno-strict-aliasing
46 $
(use_enable debug t3debug
) \
47 $
(use_enable tads2compiler t2-compiler
) \
48 $
(use_enable tads3compiler t3-compiler
) \
49 || die
"egamesconf failed"
54 emake
-j1 check || die
"TADS 3 compiler test suite failed"
57 emake
-j1 sample || die
"Failed to build test game"
58 .
/frob
-i plain
-p samples
/sample.t3
<<- END_FROB_TEST
64 [[ $?
-eq 0 ]] || die
"Failed to run test game"
68 emake DESTDIR
="${D}" install || die
"emake install failed"
69 dodoc
doc
/{AUTHORS
,BUGS
,NEWS
,README
,SRC_GUIDELINES
,THANKS
}