# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic games DESCRIPTION="A curses interpreter for TADS v2 and v3 interactive fiction" HOMEPAGE="http://www.tads.org/frobtads.htm" SRC_URI="http://www.tads.org/frobtads/${P}.tar.gz tads2compiler? ( http://www.tads.org/frobtads/t2comp.tar.gz ) tads3compiler? ( http://www.tads.org/frobtads/t3comp.tar.gz )" LICENSE="TADS3" SLOT="0" KEYWORDS="~x86" IUSE="tads2compiler tads3compiler" DEPEND="sys-libs/ncurses" src_unpack() { unpack ${A} use tads2compiler && mv t2compiler/* ${P}/t2compiler use tads3compiler && mv t3compiler/* ${P}/t3compiler cd "${S}" } src_compile() { # egamesconf fails with sandbox violation append-flags -fno-strict-aliasing # per documentation econf --bindir=${GAMES_BINDIR} \ --datadir=${GAMES_DATADIR} \ --disable-dependency-tracking || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "install failed" dodoc doc/{AUTHORS,BUGS,COMPILERS,ChangeLog,NEWS,README,THANKS} prepgamesdirs }