commit:     d0b0de80d631027926a8dab52d7f60a2e0f57f88
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  2 22:02:45 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Fri Nov 11 19:38:57 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0b0de80

games-engines/frobtads: remove deprecated games eclass

Also update to EAPI 6

Gentoo-Bug: https://bugs.gentoo.org/574082

Package-Manager: portage-2.3.2

 games-engines/frobtads/frobtads-1.2.3-r1.ebuild | 48 +++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/games-engines/frobtads/frobtads-1.2.3-r1.ebuild 
b/games-engines/frobtads/frobtads-1.2.3-r1.ebuild
new file mode 100644
index 00000000..b0bbc2a
--- /dev/null
+++ b/games-engines/frobtads/frobtads-1.2.3-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils flag-o-matic
+
+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";
+
+LICENSE="TADS2 TADS3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug tads2compiler tads3compiler"
+
+RESTRICT="!tads3compiler? ( test )"
+
+RDEPEND="net-misc/curl
+       sys-libs/ncurses:0"
+DEPEND=${RDEPEND}
+
+DOCS=( doc/{AUTHORS,BUGS,ChangeLog.old,NEWS,README,SRC_GUIDELINES,THANKS} )
+
+src_configure() {
+       append-cxxflags -fpermissive
+       append-libs $(curl-config --libs)
+       econf \
+               $(use_enable debug error-checking) \
+               $(use_enable debug t3debug) \
+               $(use_enable tads2compiler t2-compiler) \
+               $(use_enable tads3compiler t3-compiler)
+}
+
+src_test() {
+       emake -j1 sample
+       ./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() {
+       default
+}

Reply via email to