summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-11-02 17:04:46 -0500
committerAustin English <wizardedit@gentoo.org>2016-11-11 13:38:57 -0600
commitd12b75fa62a5f5230c4624cf142b845ccedfa66d (patch)
treeae61ab3fc1b0a3dcd73f6c509b81aeea665077d7 /games-engines/frotz/frotz-2.43-r1.ebuild
parentgames-engines/frobtads: remove deprecated games eclass (diff)
downloadgentoo-d12b75fa62a5f5230c4624cf142b845ccedfa66d.tar.gz
gentoo-d12b75fa62a5f5230c4624cf142b845ccedfa66d.tar.bz2
gentoo-d12b75fa62a5f5230c4624cf142b845ccedfa66d.zip
games-engines/frotz: remove deprecated games eclass
Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: portage-2.3.2
Diffstat (limited to 'games-engines/frotz/frotz-2.43-r1.ebuild')
-rw-r--r--games-engines/frotz/frotz-2.43-r1.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/games-engines/frotz/frotz-2.43-r1.ebuild b/games-engines/frotz/frotz-2.43-r1.ebuild
new file mode 100644
index 000000000000..c805a5453b85
--- /dev/null
+++ b/games-engines/frotz/frotz-2.43-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Curses based interpreter for Z-code based text games"
+HOMEPAGE="http://frotz.sourceforge.net/"
+SRC_URI="http://www.ifarchive.org/if-archive/infocom/interpreters/frotz/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="alsa oss"
+
+DEPEND="sys-libs/ncurses:0
+ alsa? ( oss? ( media-libs/alsa-oss ) )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-glibc2.10.patch
+ "${FILESDIR}"/${P}-ldflags.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/^CC /d' \
+ Makefile \
+ || die
+}
+
+src_compile() {
+ local OPTS="CONFIG_DIR=/etc"
+ use oss && OPTS="${OPTS} SOUND_DEFS=-DOSS_SOUND SOUND_DEV=/dev/dsp"
+ emake ${OPTS} all
+}
+
+src_install () {
+ dobin {d,}frotz
+ doman doc/*.6
+ dodoc AUTHORS BUGS ChangeLog HOW_TO_PLAY README TODO \
+ doc/{frotz.conf-big,frotz.conf-small}
+}
+
+pkg_postinst() {
+ echo
+ elog "Global config file can be installed in /etc/frotz.conf"
+ elog "Sample config files are in /usr/share/doc/${PF}"
+ echo
+}