1 |
commit: 0afa13c3e433d260c56a484845c292cd042fdafd |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 13 13:46:37 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 13 16:07:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0afa13c3 |
7 |
|
8 |
games-puzzle/lmarbles: EAPI 7->8, autotools--, fix highscore file |
9 |
|
10 |
The executable wasn't suid gamestat and unable to write to it, |
11 |
and score file was directly in /var/lib. |
12 |
|
13 |
Also fixed .desktop file / icon. |
14 |
|
15 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
16 |
|
17 |
games-puzzle/lmarbles/Manifest | 1 + |
18 |
games-puzzle/lmarbles/lmarbles-1.0.8-r1.ebuild | 29 ------------------ |
19 |
games-puzzle/lmarbles/lmarbles-1.0.8-r2.ebuild | 41 ++++++++++++++++++++++++++ |
20 |
3 files changed, 42 insertions(+), 29 deletions(-) |
21 |
|
22 |
diff --git a/games-puzzle/lmarbles/Manifest b/games-puzzle/lmarbles/Manifest |
23 |
index 89f17cf5058..4e7074cc214 100644 |
24 |
--- a/games-puzzle/lmarbles/Manifest |
25 |
+++ b/games-puzzle/lmarbles/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST lmarbles-1.0.8.tar.gz 914238 BLAKE2B 263f069cdd82d300bd5185152158912a3972bd38b9baf254fe89ba5afced151edbc95c199acb43c2db00c805cbcaf2b0d6a13f4ac5f2a91580b70f3aabd4cb6f SHA512 d765b669a1b0039a0af8b28ede8209e9736c2f967b21d9f8372d1fc5475d49a766bef297615bff090532ade41fe44e084a458227b443566a54afebc3e989b57a |
28 |
+DIST lmarbles.png 3300 BLAKE2B fb18495174da23370ea85e053b298c0c0d0f682aea9e2c76c60a9b58964d4e365a00c700388f6a59f12e664b5e58646ad7661001372efb37e32c35e0240858df SHA512 722c9d3149a97320d8cf43f4d02c2b7c3a78e7fef945037bd712108ed66d31e012f2f6d3ecad1b572279592ed106e1f028a7f5045793c1bdd4f8b5e5f554063d |
29 |
|
30 |
diff --git a/games-puzzle/lmarbles/lmarbles-1.0.8-r1.ebuild b/games-puzzle/lmarbles/lmarbles-1.0.8-r1.ebuild |
31 |
deleted file mode 100644 |
32 |
index e92811a4437..00000000000 |
33 |
--- a/games-puzzle/lmarbles/lmarbles-1.0.8-r1.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,29 +0,0 @@ |
36 |
-# Copyright 1999-2020 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=7 |
40 |
- |
41 |
-inherit autotools |
42 |
- |
43 |
-DESCRIPTION="puzzle game inspired by Atomix and written in SDL" |
44 |
-HOMEPAGE="http://lgames.sourceforge.net/LMarbles/" |
45 |
-SRC_URI="https://download.sourceforge.net/lgames/${P}.tar.gz" |
46 |
- |
47 |
-LICENSE="GPL-2" |
48 |
-SLOT="0" |
49 |
-KEYWORDS="~amd64 ~x86" |
50 |
- |
51 |
-DEPEND=" |
52 |
- acct-group/gamestat |
53 |
- media-libs/libsdl[video] |
54 |
- media-libs/sdl-mixer |
55 |
-" |
56 |
-RDEPEND="${DEPEND}" |
57 |
- |
58 |
-src_install() { |
59 |
- default |
60 |
- dodoc src/manual/* |
61 |
- |
62 |
- fperms 660 /var/lib/lmarbles.prfs |
63 |
- fowners root:gamestat /var/lib/lmarbles.prfs |
64 |
-} |
65 |
|
66 |
diff --git a/games-puzzle/lmarbles/lmarbles-1.0.8-r2.ebuild b/games-puzzle/lmarbles/lmarbles-1.0.8-r2.ebuild |
67 |
new file mode 100644 |
68 |
index 00000000000..0e294386e90 |
69 |
--- /dev/null |
70 |
+++ b/games-puzzle/lmarbles/lmarbles-1.0.8-r2.ebuild |
71 |
@@ -0,0 +1,41 @@ |
72 |
+# Copyright 1999-2021 Gentoo Authors |
73 |
+# Distributed under the terms of the GNU General Public License v2 |
74 |
+ |
75 |
+EAPI=8 |
76 |
+ |
77 |
+inherit desktop |
78 |
+ |
79 |
+DESCRIPTION="Puzzle game inspired by Atomix and written in SDL" |
80 |
+HOMEPAGE="http://lgames.sourceforge.net/LMarbles/" |
81 |
+SRC_URI=" |
82 |
+ https://download.sourceforge.net/lgames/${P}.tar.gz |
83 |
+ https://dev.gentoo.org/~ionen/distfiles/${PN}.png" |
84 |
+ |
85 |
+LICENSE="GPL-2+" |
86 |
+SLOT="0" |
87 |
+KEYWORDS="~amd64 ~x86" |
88 |
+ |
89 |
+RDEPEND=" |
90 |
+ acct-group/gamestat |
91 |
+ media-libs/libsdl[sound,video] |
92 |
+ media-libs/sdl-mixer" |
93 |
+DEPEND="${RDEPEND}" |
94 |
+ |
95 |
+HTML_DOCS=( src/manual/. ) |
96 |
+ |
97 |
+src_configure() { |
98 |
+ econf --localstatedir="${EPREFIX}"/var/games |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ default |
103 |
+ |
104 |
+ fowners :gamestat /usr/bin/${PN} /var/games/lmarbles.prfs |
105 |
+ fperms g+s /usr/bin/${PN} |
106 |
+ fperms 660 /var/games/lmarbles.prfs |
107 |
+ |
108 |
+ # gif format is not valid for XDG icons, and .desktop hardcodes icon path |
109 |
+ doicon "${DISTDIR}"/${PN}.png |
110 |
+ make_desktop_entry ${PN} LMarbles |
111 |
+ rm "${ED}"/usr/share/{applications/${PN}.desktop,icons/lmarbles48.gif} || die |
112 |
+} |