You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1007 B
44 lines
1007 B
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
|
|
||
8 years ago
|
inherit toolchain-funcs
|
||
|
|
||
|
DESCRIPTION="Classic Hunt the Wumpus Adventure Game"
|
||
|
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"
|
||
3 years ago
|
S="${WORKDIR}"
|
||
8 years ago
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
8 years ago
|
|
||
|
DEPEND="sys-apps/less"
|
||
3 years ago
|
RDEPEND="
|
||
|
${DEPEND}
|
||
|
!games-misc/bsd-games:0/3
|
||
|
"
|
||
8 years ago
|
|
||
|
src_unpack() {
|
||
|
cp "${DISTDIR}"/wump.{info,c,6} "${S}/" || die
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
touch pathnames.h
|
||
3 years ago
|
|
||
|
[[ -z "${PAGER}" ]] && PAGER=/usr/bin/less
|
||
8 years ago
|
$(tc-getCC) ${LDFLAGS} -Dlint -D_PATH_PAGER=\"${PAGER}\" \
|
||
|
-D_PATH_WUMPINFO=\"/usr/share/${PN}/wump.info\" ${CFLAGS} \
|
||
|
-o wump wump.c || die
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin wump
|
||
|
doman wump.6
|
||
|
insinto /usr/share/${PN}
|
||
|
doins wump.info
|
||
|
}
|