mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 18:47:16 -08:00
games-misc/wumpus: port to EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user