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-action/moon-buggy/
Date: Tue, 12 Jul 2016 22:40:34
Message-Id: 1468363212.be888ef802411c0db150f2fdf7116989668cd691.wizardedit@gentoo
1 commit: be888ef802411c0db150f2fdf7116989668cd691
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 12 22:39:58 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 12 22:40:12 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be888ef8
7
8 games-action/moon-buggy: 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 .../moon-buggy/moon-buggy-1.0.51-r1.ebuild | 46 ++++++++++++++++++++++
17 1 file changed, 46 insertions(+)
18
19 diff --git a/games-action/moon-buggy/moon-buggy-1.0.51-r1.ebuild b/games-action/moon-buggy/moon-buggy-1.0.51-r1.ebuild
20 new file mode 100644
21 index 0000000..e46b34d
22 --- /dev/null
23 +++ b/games-action/moon-buggy/moon-buggy-1.0.51-r1.ebuild
24 @@ -0,0 +1,46 @@
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 autotools eutils user
31 +
32 +DESCRIPTION="A simple console game, where you drive a car across the moon's surface"
33 +HOMEPAGE="http://www.seehuhn.de/comp/moon-buggy.html"
34 +SRC_URI="http://www.seehuhn.de/data/${P}.tar.gz"
35 +
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~arm ~ppc ~x86"
39 +IUSE=""
40 +
41 +RDEPEND="sys-libs/ncurses:0"
42 +DEPEND="${RDEPEND}
43 + virtual/pkgconfig"
44 +
45 +pkg_setup(){
46 + enewgroup gamestat 36
47 +}
48 +
49 +src_prepare() {
50 + default
51 + sed -i \
52 + -e '/$(DESTDIR)$(bindir)\/moon-buggy -c/d' \
53 + Makefile.am || die
54 + rm -f missing
55 + eautoreconf
56 +}
57 +
58 +src_configure() {
59 + econf \
60 + --sharedstatedir="/var/games" \
61 + --with-curses-libs="$(pkg-config ncurses --libs)"
62 +}
63 +
64 +src_install() {
65 + default
66 + touch "${D}/var/games/${PN}/mbscore"
67 + fowners root:gamestat /usr/bin/${PN} /var/games/${PN} /var/games/${PN}/mbscore
68 + fperms 2755 /usr/bin/${PN}
69 + fperms 664 /var/games/${PN}/mbscore
70 +}