frobtads: Add 1.2.1
authorNikos Chantziaras <realnc@gmail.com>
Thu, 23 Aug 2012 13:23:08 +0000 (23 16:23 +0300)
committerNikos Chantziaras <realnc@gmail.com>
Thu, 23 Aug 2012 13:23:08 +0000 (23 16:23 +0300)
games-engines/frobtads/Manifest
games-engines/frobtads/frobtads-1.2.1.ebuild [new file with mode: 0644]

index 79d4997..c5daa97 100644 (file)
@@ -1,6 +1,8 @@
 DIST frobtads-1.1.tar.gz 4520694 SHA256 f997afcba163942611045de78621c9a8dccca8e7af19b1edc1823d42a7daf0f9 SHA512 18d20190c277aaf088be5694ce2fde10a71f690fc64f327431487d625cab6266bcb8fded6d9e55fe310a4de5f9543f9bca810882588d039f0f77845e4138021f WHIRLPOOL 07d971bd19e6fe078d21e6e1b28c053f9da3dc951f53ad0672cc76d81aebf5dfee4a001579574bbcd2298b2e71bc36fdf4f236137afb3d7458baf7cd3994473b
+DIST frobtads-1.2.1.tar.gz 5203115 SHA256 4c7da491d39b9ff4640e561e97e97e4ae5e7be7bd2041ed632d600e4326c48e5 SHA512 a8367fa830dae0aebeac0c49471283c6db7de60e18f5e904056eadad3329ec2f263462a64db3179066f10bd2712778309d09583474b03615e48c5f34365f4b1e WHIRLPOOL ed44f60bf763cd3dcac5891a002d8c6bc215d82f41b7e530127b6de5d6da9d99c38a2139457cb518ea2dc37438ae43614ddf4c202472708971255aaf907a89da
 DIST frobtads-1.2.tar.gz 5278083 SHA256 51b5107213202baf511ed5fa6f8c36fa0b73d4e1572b3f402f714309e093a94c SHA512 d02e0484527403112442a46feb63dcf97b14f4692999350c4c2deaf75470180fe9e9adf0cb2349a9fd3738cf8959d454ef61cd287de62b87161718a2ef82419c WHIRLPOOL 545b249527cbd951604c9410ffe997349fa54968dcbaf1fd7a5761ba6aa579fdd85b719c089538275b16c37f449db514d20229c666407b6a7833fb95d5609f4b
 EBUILD frobtads-1.1.ebuild 1691 SHA256 0e34734c162b9c03f0b5e0e21b8330d952f6645a2f851f590f57a330077c564a SHA512 eec246d12312543425091ccf0dd5fadc733339bd1817df50ccd4a499419c6117a0a45e826ddc468d3a91aabaaba727eb8b4063321426cd11a515f2f603e49fa4 WHIRLPOOL d78028325431388b286e02203038f0229d87048111c6d9333d008efcdaaf75f68cb6abf7caab97f73282be6a2dfbeb6a1d159fa87f4dbe8a932d11b23e8412e7
+EBUILD frobtads-1.2.1.ebuild 1691 SHA256 0e34734c162b9c03f0b5e0e21b8330d952f6645a2f851f590f57a330077c564a SHA512 eec246d12312543425091ccf0dd5fadc733339bd1817df50ccd4a499419c6117a0a45e826ddc468d3a91aabaaba727eb8b4063321426cd11a515f2f603e49fa4 WHIRLPOOL d78028325431388b286e02203038f0229d87048111c6d9333d008efcdaaf75f68cb6abf7caab97f73282be6a2dfbeb6a1d159fa87f4dbe8a932d11b23e8412e7
 EBUILD frobtads-1.2.ebuild 1691 SHA256 0e34734c162b9c03f0b5e0e21b8330d952f6645a2f851f590f57a330077c564a SHA512 eec246d12312543425091ccf0dd5fadc733339bd1817df50ccd4a499419c6117a0a45e826ddc468d3a91aabaaba727eb8b4063321426cd11a515f2f603e49fa4 WHIRLPOOL d78028325431388b286e02203038f0229d87048111c6d9333d008efcdaaf75f68cb6abf7caab97f73282be6a2dfbeb6a1d159fa87f4dbe8a932d11b23e8412e7
 EBUILD frobtads-9999.ebuild 1691 SHA256 0e34734c162b9c03f0b5e0e21b8330d952f6645a2f851f590f57a330077c564a SHA512 eec246d12312543425091ccf0dd5fadc733339bd1817df50ccd4a499419c6117a0a45e826ddc468d3a91aabaaba727eb8b4063321426cd11a515f2f603e49fa4 WHIRLPOOL d78028325431388b286e02203038f0229d87048111c6d9333d008efcdaaf75f68cb6abf7caab97f73282be6a2dfbeb6a1d159fa87f4dbe8a932d11b23e8412e7
 MISC metadata.xml 295 SHA256 37acff33478d448e8fe70199d854a4b9469f884afd131c336213f679d8787e05 SHA512 4aac8da322d2f26d5ab0db0cf9d3c6ab84be9d9326a91580e6b87ad53a8d2ba8e830d90847457894c92922bf6d0af8d9ee60536f7f1d380d567f59fc36f207c7 WHIRLPOOL fe3a2f654acc0407935d1581fbb0a656f6f72ab35b328a836690e5116d7392062b14e9738d45e1551290e95c8457978205c7a89f3d679a29184a997145407ab1
diff --git a/games-engines/frobtads/frobtads-1.2.1.ebuild b/games-engines/frobtads/frobtads-1.2.1.ebuild
new file mode 100644 (file)
index 0000000..c3e2561
--- /dev/null
@@ -0,0 +1,71 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+if [ "$PV" == "9999" ]; then
+       # The package uses AM_SILENT_RULES which is only available in automake
+       # 1.11 and later.
+       WANT_AUTOMAKE="1.11"
+       SRC_URI=""
+       EGIT_REPO_URI="git://git.assembla.com/frobtads.git"
+       KEYWORDS=""
+       inherit autotools git-2
+fi
+inherit flag-o-matic games
+
+DESCRIPTION="Curses-based interpreter and development tools for TADS 2 and TADS 3 text adventures"
+HOMEPAGE="http://www.tads.org/frobtads.htm"
+if [ "$PV" != "9999" ]; then
+       SRC_URI="http://www.tads.org/frobtads/${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+LICENSE="TADS2 TADS3"
+SLOT="0"
+RESTRICT="!tads3compiler? ( test )"
+IUSE="debug +tads2compiler +tads3compiler"
+
+DEPEND="sys-libs/ncurses
+       net-misc/curl"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+       if [ "${PV}" == "9999" ]; then
+               git-2_src_unpack
+               cd "${S}"
+               einfo "Regenerating autotools files..."
+               eautoreconf
+       else
+               base_src_unpack
+       fi
+}
+
+src_configure() {
+       append-cxxflags -fno-strict-aliasing -pthread
+       egamesconf \
+               $(use_enable debug t3debug) \
+               $(use_enable tads2compiler t2-compiler) \
+               $(use_enable tads3compiler t3-compiler) \
+               || die "egamesconf failed"
+}
+
+src_test() {
+       if use debug; then
+               emake check || die "TADS 3 compiler test suite failed"
+       fi
+
+       emake sample || die "Failed to build test game"
+       ./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() {
+       emake DESTDIR="${D}" install || die "emake install failed"
+       dodoc doc/{AUTHORS,BUGS,NEWS,README,SRC_GUIDELINES,THANKS}
+       prepgamesdirs
+}