Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-misc/wumpus/
Date: Tue, 11 Oct 2016 22:59:34
Message-Id: 1476226547.743774c87befbdf5977ffafc4893832b9bcb912d.wizardedit@gentoo
1 commit: 743774c87befbdf5977ffafc4893832b9bcb912d
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 11 22:42:26 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 11 22:55:47 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=743774c8
7
8 games-misc/wumpus: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: portage-2.3.0
15
16 games-misc/wumpus/wumpus-1.4-r1.ebuild | 41 ++++++++++++++++++++++++++++++++++
17 1 file changed, 41 insertions(+)
18
19 diff --git a/games-misc/wumpus/wumpus-1.4-r1.ebuild b/games-misc/wumpus/wumpus-1.4-r1.ebuild
20 new file mode 100644
21 index 00000000..0ae614a
22 --- /dev/null
23 +++ b/games-misc/wumpus/wumpus-1.4-r1.ebuild
24 @@ -0,0 +1,41 @@
25 +# Copyright 1999-2016 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +inherit toolchain-funcs
31 +
32 +DESCRIPTION="Classic Hunt the Wumpus Adventure Game"
33 +HOMEPAGE="http://cvsweb.netbsd.org/bsdweb.cgi/src/games/wump/"
34 +SRC_URI="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-release-1-6/src/games/wump/wump.c
35 + ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-release-1-6/src/games/wump/wump.6
36 + ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-release-1-6/src/games/wump/wump.info"
37 +
38 +LICENSE="BSD"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~ppc ~x86"
41 +IUSE=""
42 +
43 +DEPEND="sys-apps/less"
44 +RDEPEND=${DEPEND}
45 +
46 +S=${WORKDIR}
47 +
48 +src_unpack() {
49 + cp "${DISTDIR}"/wump.{info,c,6} "${S}/" || die
50 +}
51 +
52 +src_compile() {
53 + touch pathnames.h
54 + [ -z "${PAGER}" ] && PAGER=/usr/bin/less
55 + $(tc-getCC) ${LDFLAGS} -Dlint -D_PATH_PAGER=\"${PAGER}\" \
56 + -D_PATH_WUMPINFO=\"/usr/share/${PN}/wump.info\" ${CFLAGS} \
57 + -o wump wump.c || die
58 +}
59 +
60 +src_install() {
61 + dobin wump
62 + doman wump.6
63 + insinto /usr/share/${PN}
64 + doins wump.info
65 +}