summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-04 09:12:01 +0000
committerSam James <sam@gentoo.org>2021-04-04 09:16:06 +0000
commitfcedff0a5ba2bfc4236fcccfe92d9ad40e41fd6f (patch)
tree059e06a754b038042e482c4d412123d3418195fd /games-misc
parentgames-misc/bsd-games: give 3.x its own subslot, 0/3 (diff)
downloadgentoo-fcedff0a5ba2bfc4236fcccfe92d9ad40e41fd6f.tar.gz
gentoo-fcedff0a5ba2bfc4236fcccfe92d9ad40e41fd6f.tar.bz2
gentoo-fcedff0a5ba2bfc4236fcccfe92d9ad40e41fd6f.zip
games-misc/wumpus: port to EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-misc')
-rw-r--r--games-misc/wumpus/wumpus-1.4-r1.ebuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/games-misc/wumpus/wumpus-1.4-r1.ebuild b/games-misc/wumpus/wumpus-1.4-r1.ebuild
index 56125c56d369..9dfa38b97f8d 100644
--- a/games-misc/wumpus/wumpus-1.4-r1.ebuild
+++ b/games-misc/wumpus/wumpus-1.4-r1.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
+
inherit toolchain-funcs
DESCRIPTION="Classic Hunt the Wumpus Adventure Game"
@@ -9,16 +10,14 @@ HOMEPAGE="http://cvsweb.netbsd.org/bsdweb.cgi/src/games/wump/"
SRC_URI="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-release-1-6/src/games/wump/wump.c
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-release-1-6/src/games/wump/wump.6
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-release-1-6/src/games/wump/wump.info"
+S="${WORKDIR}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
DEPEND="sys-apps/less"
-RDEPEND=${DEPEND}
-
-S=${WORKDIR}
+RDEPEND="${DEPEND}"
src_unpack() {
cp "${DISTDIR}"/wump.{info,c,6} "${S}/" || die
@@ -26,7 +25,8 @@ src_unpack() {
src_compile() {
touch pathnames.h
- [ -z "${PAGER}" ] && PAGER=/usr/bin/less
+
+ [[ -z "${PAGER}" ]] && PAGER=/usr/bin/less
$(tc-getCC) ${LDFLAGS} -Dlint -D_PATH_PAGER=\"${PAGER}\" \
-D_PATH_WUMPINFO=\"/usr/share/${PN}/wump.info\" ${CFLAGS} \
-o wump wump.c || die