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
11 EGIT_REPO_URI
="git://git.assembla.com/frobtads.git"
13 inherit autotools git-2
15 inherit flag-o-matic games
17 DESCRIPTION
="Curses-based interpreter and development tools for TADS 2 and TADS 3 text adventures"
18 HOMEPAGE
="http://www.tads.org/frobtads.htm"
19 if [ "$PV" != "9999" ]; then
20 SRC_URI
="http://www.tads.org/frobtads/${P}.tar.gz"
21 KEYWORDS
="~amd64 ~x86"
25 RESTRICT
="!tads3compiler? ( test )"
26 IUSE
="debug +tads2compiler +tads3compiler"
28 DEPEND
="sys-libs/ncurses
33 if [ "${PV}" == "9999" ]; then
36 einfo
"Regenerating autotools files..."
45 $
(use_enable debug t3debug
) \
46 $
(use_enable tads2compiler t2-compiler
) \
47 $
(use_enable tads3compiler t3-compiler
) \
48 || die
"egamesconf failed"
53 # emake check || die "TADS 3 compiler test suite failed"
56 emake sample || die
"Failed to build test game"
57 .
/frob
-i plain
-p samples
/sample.t3
<<- END_FROB_TEST
63 [[ $?
-eq 0 ]] || die
"Failed to run test game"
67 emake DESTDIR
="${D}" install || die
"emake install failed"
68 dodoc
doc
/{AUTHORS
,BUGS
,NEWS
,README
,SRC_GUIDELINES
,THANKS
}