games-engines/frotz: remove deprecated games eclass
authorAustin English <wizardedit@gentoo.org>
Wed, 2 Nov 2016 22:04:46 +0000 (17:04 -0500)
committerAustin English <wizardedit@gentoo.org>
Fri, 11 Nov 2016 19:38:57 +0000 (13:38 -0600)
Also update to EAPI 6

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

Package-Manager: portage-2.3.2

games-engines/frotz/files/frotz-2.43-glibc2.10.patch
games-engines/frotz/files/frotz-2.43-ldflags.patch
games-engines/frotz/frotz-2.43-r1.ebuild [new file with mode: 0644]

index 71760cc8fa4657ab33a908a8bd98e8de8599bff5..3f2639ec47d03832c535c56d55ce4dd4e2784b87 100644 (file)
@@ -1,5 +1,5 @@
---- src/dumb/dumb_input.c
-+++ src/dumb/dumb_input.c
+--- a/src/dumb/dumb_input.c
++++ b/src/dumb/dumb_input.c
 @@ -79,7 +79,7 @@
  /* Read one line, including the newline, into s.  Safely avoids buffer
   * overruns (but that's kind of pointless because there are several
index 16a0df362eddf2ea1c097ef6093707c0a313566c..c8b4e35eee200f0b44ca9ac7fa48ba676916fd4c 100644 (file)
@@ -1,5 +1,5 @@
---- Makefile.old       2010-10-04 14:13:37.000000000 +0200
-+++ Makefile   2010-10-04 14:14:06.000000000 +0200
+--- a/Makefile 2010-10-04 14:13:37.000000000 +0200
++++ b/Makefile 2010-10-04 14:14:06.000000000 +0200
 @@ -162,7 +162,7 @@
  $(NAME): $(NAME)-curses
  
diff --git a/games-engines/frotz/frotz-2.43-r1.ebuild b/games-engines/frotz/frotz-2.43-r1.ebuild
new file mode 100644 (file)
index 0000000..c805a54
--- /dev/null
@@ -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
+}