forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wumpus-1.4-r1.ebuild
41 lines (33 loc) · 993 Bytes
/
wumpus-1.4-r1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
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"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND="sys-apps/less"
RDEPEND=${DEPEND}
S=${WORKDIR}
src_unpack() {
cp "${DISTDIR}"/wump.{info,c,6} "${S}/" || die
}
src_compile() {
touch pathnames.h
[ -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
}
src_install() {
dobin wump
doman wump.6
insinto /usr/share/${PN}
doins wump.info
}