Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-puzzle/greedy/
Date: Wed, 31 Mar 2021 09:40:45
Message-Id: 1617183613.575a287a3272ff8d112c0b88b8a4752d363dc78f.soap@gentoo
1 commit: 575a287a3272ff8d112c0b88b8a4752d363dc78f
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 31 09:40:13 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 31 09:40:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=575a287a
7
8 games-puzzle/greedy: Port to EAPI 7
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 ...eedy-0.2.0-r1.ebuild => greedy-0.2.0-r2.ebuild} | 34 +++++++++++-----------
14 1 file changed, 17 insertions(+), 17 deletions(-)
15
16 diff --git a/games-puzzle/greedy/greedy-0.2.0-r1.ebuild b/games-puzzle/greedy/greedy-0.2.0-r2.ebuild
17 similarity index 62%
18 rename from games-puzzle/greedy/greedy-0.2.0-r1.ebuild
19 rename to games-puzzle/greedy/greedy-0.2.0-r2.ebuild
20 index dffb899aebf..37e76149bcf 100644
21 --- a/games-puzzle/greedy/greedy-0.2.0-r1.ebuild
22 +++ b/games-puzzle/greedy/greedy-0.2.0-r2.ebuild
23 @@ -1,8 +1,9 @@
24 -# Copyright 1999-2014 Gentoo Foundation
25 +# Copyright 1999-2021 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 -EAPI=5
29 -inherit toolchain-funcs games
30 +EAPI=7
31 +
32 +inherit toolchain-funcs
33
34 DESCRIPTION="fun little ncurses puzzle game"
35 HOMEPAGE="http://www.kotinet.com/juhamattin/linux/index.html"
36 @@ -11,30 +12,29 @@ SRC_URI="http://www.kotinet.com/juhamattin/linux/download/${P}.tar.gz"
37 LICENSE="GPL-2"
38 SLOT="0"
39 KEYWORDS="~amd64 ~ppc64 ~x86"
40 -IUSE=""
41
42 -RDEPEND="sys-libs/ncurses:0"
43 -DEPEND="${RDEPEND}
44 - virtual/pkgconfig"
45 +RDEPEND="sys-libs/ncurses:0="
46 +DEPEND="${RDEPEND}"
47 +BDEPEND="virtual/pkgconfig"
48
49 src_prepare() {
50 - rm -f Makefile
51 + default
52 +
53 + rm Makefile || die
54 # It wants a scores file. We need to touch one and install it.
55 - touch greedy.scores
56 + touch greedy.scores || die
57 }
58
59 src_compile() {
60 - emake CC="$(tc-getCC)" LDLIBS="$($(tc-getPKG_CONFIG) ncurses --libs)" ${PN}
61 + emake CC="$(tc-getCC)" LDLIBS="$($(tc-getPKG_CONFIG) ncurses --libs)" greedy
62 }
63
64 src_install() {
65 - insinto "${GAMES_STATEDIR}"
66 - doins greedy.scores
67 + dobin greedy
68 + einstalldocs
69
70 - dogamesbin greedy
71 - dodoc CHANGES README TODO
72 -
73 - prepgamesdirs
74 + insinto /var/games
75 + doins greedy.scores
76 # We need to set the permissions correctly
77 - fperms 664 "${GAMES_STATEDIR}/greedy.scores"
78 + fperms 664 /var/games/greedy.scores
79 }