summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Chantziaras <realnc@gmail.com>2021-05-09 13:05:15 +0300
committerSam James <sam@gentoo.org>2021-05-31 07:55:05 +0000
commitc3273826107506fddb09fbea8b3593d73fcc2534 (patch)
tree8a7c292011a5543ccd18a0ba00bda3517284c04f /games-engines
parentwww-client/firefox: restore keywords (diff)
downloadgentoo-c3273826107506fddb09fbea8b3593d73fcc2534.tar.gz
gentoo-c3273826107506fddb09fbea8b3593d73fcc2534.tar.bz2
gentoo-c3273826107506fddb09fbea8b3593d73fcc2534.zip
games-engines/frobtads: Bump version to cmake-based 2.0
Closes: https://bugs.gentoo.org/716274 Closes: https://bugs.gentoo.org/721850 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Nikos Chantziaras <realnc@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/frobtads/Manifest1
-rw-r--r--games-engines/frobtads/frobtads-2.0.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/games-engines/frobtads/Manifest b/games-engines/frobtads/Manifest
index 18491915c5e1..bca8e6ef725e 100644
--- a/games-engines/frobtads/Manifest
+++ b/games-engines/frobtads/Manifest
@@ -1 +1,2 @@
DIST frobtads-1.2.4.tar.bz2 3801366 BLAKE2B 871a4cfd432f1a72915de0652def2f2a9a3cf1bfa20b070c2e59ced673c736584a36b3d17e7d5812ad7cd883c3e038e49f962635a5794d6c914d99651bfd0a55 SHA512 f49f58114cbd78f23fcc3835025af7874da968af825abd449e9ab83c4a90e8d70f8cfafa83780f0631ae9bd2793cce2d5dd947c13ee38ba0d06829d2803abf12
+DIST frobtads-2.0.tar.bz2 3870691 BLAKE2B 0f73137428db818b674534cec05ff7993ddc8e6d104d61c5a3a57bac05b185175ce92be1d571c0ca463e5420059a1e59274499c1620a5c0f75c37a89701bc4a4 SHA512 28c84447c1ab43cfd6956b1933f9e7ab3ac0d8b7d0767f23d8535e2ea0cac0e07f17ade07776d646102caa8c23474c3ae3d46a3eef243ad8c7aec702eea04854
diff --git a/games-engines/frobtads/frobtads-2.0.ebuild b/games-engines/frobtads/frobtads-2.0.ebuild
new file mode 100644
index 000000000000..1a49e8fce5e5
--- /dev/null
+++ b/games-engines/frobtads/frobtads-2.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Curses-based interpreter and dev tools for TADS 2 and TADS 3 text adventures"
+HOMEPAGE="http://www.tads.org/frobtads.htm"
+SRC_URI="https://github.com/realnc/${PN}/releases/download/v${PV}/${P}.tar.bz2"
+
+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() {
+ local mycmakeargs=(
+ -DENABLE_T2_COMPILER=$(usex tads2compiler)
+ -DENABLE_T2_RUNTIME_CHECKS=$(usex debug)
+ -DENABLE_T3_COMPILER=$(usex tads3compiler)
+ -DENABLE_T3_DEBUG=$(usex debug)
+ )
+ cmake_src_configure
+}
+
+src_test() {
+ cmake_build sample
+ "${BUILD_DIR}"/frob -i plain -p "${BUILD_DIR}"/samples/sample.t3 <<- END_FROB_TEST
+ save
+ testsave.sav
+ restore
+ testsave.sav
+ END_FROB_TEST
+ [[ $? -eq 0 ]] || die "Failed to run test game"
+}