Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/lbreakout/
Date: Mon, 28 Jun 2021 16:49:29
Message-Id: 1624898557.ede1b94b6962267f7397c729ca7f34aa60957b5f.ionen@gentoo
1 commit: ede1b94b6962267f7397c729ca7f34aa60957b5f
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 28 00:55:54 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 28 16:42:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ede1b94b
7
8 games-arcade/lbreakout: fix install, EAPI 6->8, tidy
9
10 Broken since games.eclass migration in 2018 (bug #655000) due
11 to the removal of the "dodir" line.
12
13 Also prevent direct cc/c++ call, use gamestat, add .desktop file,
14 and tighten sdl dep (notably won't start without sound support).
15
16 No revbump given this never worked.
17
18 Fixes: 0bb75edcb56e4fe87bac5059fe0e7004883c021a
19 Closes: https://bugs.gentoo.org/655000
20 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
21
22 games-arcade/lbreakout/lbreakout-010315-r1.ebuild | 38 ++++++++++++++++-------
23 1 file changed, 26 insertions(+), 12 deletions(-)
24
25 diff --git a/games-arcade/lbreakout/lbreakout-010315-r1.ebuild b/games-arcade/lbreakout/lbreakout-010315-r1.ebuild
26 index 4a465d929cf..a00036389b1 100644
27 --- a/games-arcade/lbreakout/lbreakout-010315-r1.ebuild
28 +++ b/games-arcade/lbreakout/lbreakout-010315-r1.ebuild
29 @@ -1,30 +1,44 @@
30 -# Copyright 1999-2018 Gentoo Foundation
31 +# Copyright 1999-2021 Gentoo Authors
32 # Distributed under the terms of the GNU General Public License v2
33
34 -EAPI=6
35 +EAPI=8
36 +
37 +inherit desktop toolchain-funcs
38
39 DESCRIPTION="Breakout clone written with the SDL library"
40 HOMEPAGE="http://lgames.sourceforge.net/LBreakout/"
41 SRC_URI="mirror://sourceforge/lgames/${P}.tar.gz"
42
43 -LICENSE="GPL-2"
44 +LICENSE="GPL-2+"
45 SLOT="0"
46 KEYWORDS="~amd64 ~x86"
47 -IUSE=""
48
49 -DEPEND=">=media-libs/libsdl-1.1.5"
50 -RDEPEND="${DEPEND}"
51 +RDEPEND="
52 + acct-group/gamestat
53 + media-libs/libsdl[sound,video]"
54 +DEPEND="${RDEPEND}"
55 +
56 +HTML_DOCS=( lbreakout/manual/. )
57
58 src_prepare() {
59 default
60 - sed -i \
61 - -e '/^sdir=/s:$datadir/games:$datadir:' \
62 - -e '/^hdir=/s:/var/lib/games:$localstatedir:' \
63 - configure \
64 - || die "sed failed"
65 +
66 + # remove /games from datadir, and use /var/games for highscore file
67 + sed -e '/^sdir=/s|/games.*||;' \
68 + -e "/^hdir=/s|=.*|=${EPREFIX}/var/games|" \
69 + -i configure || die
70 +
71 + tc-export CC CXX
72 }
73
74 src_install() {
75 - HTML_DOCS="lbreakout/manual/*"
76 + dodir /var/games #655000
77 +
78 default
79 +
80 + fowners :gamestat /usr/bin/${PN} /var/games/${PN}.hscr
81 + fperms g+s /usr/bin/${PN}
82 + fperms 660 /var/games/${PN}.hscr
83 +
84 + make_desktop_entry ${PN} LBreakout applications-games
85 }