1 |
commit: aa1d52980fad84ee276783a82a14e56316551b5b |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 28 02:34:26 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=aa1d5298 |
7 |
|
8 |
games-arcade/lbreakout2: fix qa notice, add unzip dep, tidy |
9 |
|
10 |
Use /var/games for highscore file instead of /var/lib/*.hscr |
11 |
and use gamestat for bug #683052. |
12 |
|
13 |
Also removed -O? filter, been there since 2003 and never explained. |
14 |
No issues with modern compilers and various -O levels |
15 |
|
16 |
Closes: https://bugs.gentoo.org/683052 |
17 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
18 |
|
19 |
...-2.6.5-r1.ebuild => lbreakout2-2.6.5-r2.ebuild} | 77 +++++++++++----------- |
20 |
1 file changed, 39 insertions(+), 38 deletions(-) |
21 |
|
22 |
diff --git a/games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild b/games-arcade/lbreakout2/lbreakout2-2.6.5-r2.ebuild |
23 |
similarity index 54% |
24 |
rename from games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild |
25 |
rename to games-arcade/lbreakout2/lbreakout2-2.6.5-r2.ebuild |
26 |
index 4f0c9cc48e9..d96256696ac 100644 |
27 |
--- a/games-arcade/lbreakout2/lbreakout2-2.6.5-r1.ebuild |
28 |
+++ b/games-arcade/lbreakout2/lbreakout2-2.6.5-r2.ebuild |
29 |
@@ -1,94 +1,95 @@ |
30 |
-# Copyright 1999-2020 Gentoo Authors |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
# Distributed under the terms of the GNU General Public License v2 |
33 |
|
34 |
EAPI=7 |
35 |
|
36 |
-inherit autotools desktop flag-o-matic gnome2-utils |
37 |
+inherit autotools desktop |
38 |
|
39 |
-levels_V=20141220 |
40 |
-themes_V=20141220 |
41 |
+LB_LEVELS_V="20141220" |
42 |
+LB_THEMES_V="20141220" |
43 |
|
44 |
DESCRIPTION="Breakout clone written with the SDL library" |
45 |
HOMEPAGE="http://lgames.sourceforge.net/LBreakout2/" |
46 |
-SRC_URI=" mirror://sourceforge/lgames/${P}.tar.gz |
47 |
- mirror://sourceforge/lgames/add-ons/lbreakout2/${PN}-levelsets-${levels_V}.tar.gz |
48 |
- themes? ( mirror://sourceforge/lgames/add-ons/lbreakout2/${PN}-themes-${levels_V}.tar.gz )" |
49 |
+SRC_URI=" |
50 |
+ mirror://sourceforge/lgames/${P}.tar.gz |
51 |
+ mirror://sourceforge/lgames/add-ons/lbreakout2/${PN}-levelsets-${LB_LEVELS_V}.tar.gz |
52 |
+ themes? ( mirror://sourceforge/lgames/add-ons/lbreakout2/${PN}-themes-${LB_LEVELS_V}.tar.gz )" |
53 |
|
54 |
-LICENSE="GPL-2" |
55 |
+LICENSE="GPL-2+" |
56 |
SLOT="0" |
57 |
KEYWORDS="~amd64 ~x86" |
58 |
IUSE="nls themes" |
59 |
|
60 |
RDEPEND=" |
61 |
- media-libs/libpng:0= |
62 |
- sys-libs/zlib |
63 |
- media-libs/libsdl[sound,joystick,video] |
64 |
- media-libs/sdl-net |
65 |
+ acct-group/gamestat |
66 |
+ media-libs/libpng:= |
67 |
+ media-libs/libsdl[joystick,sound,video] |
68 |
media-libs/sdl-mixer |
69 |
+ media-libs/sdl-net |
70 |
nls? ( virtual/libintl )" |
71 |
-DEPEND="${RDEPEND}" |
72 |
-BDEPEND="nls? ( sys-devel/gettext )" |
73 |
+DEPEND=" |
74 |
+ ${RDEPEND} |
75 |
+ sys-libs/zlib" |
76 |
+BDEPEND=" |
77 |
+ nls? ( sys-devel/gettext ) |
78 |
+ themes? ( app-arch/unzip )" |
79 |
|
80 |
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
81 |
+PATCHES=( |
82 |
+ "${FILESDIR}"/${P}-gentoo.patch |
83 |
+) |
84 |
|
85 |
src_unpack() { |
86 |
unpack ${P}.tar.gz |
87 |
|
88 |
cd "${S}/client/levels" || die |
89 |
- unpack ${PN}-levelsets-${levels_V}.tar.gz |
90 |
+ unpack ${PN}-levelsets-${LB_LEVELS_V}.tar.gz |
91 |
|
92 |
if use themes; then |
93 |
mkdir "${WORKDIR}"/themes || die |
94 |
cd "${WORKDIR}"/themes || die |
95 |
- unpack ${PN}-themes-${themes_V}.tar.gz |
96 |
+ unpack ${PN}-themes-${LB_THEMES_V}.tar.gz |
97 |
|
98 |
# Delete a few duplicate themes (already shipped with lbreakout2 |
99 |
# tarball). Some of them have different case than built-in themes, so it |
100 |
# is harder to just compare if the filename is the same. |
101 |
- rm -f absoluteB.zip oz.zip moiree.zip || die |
102 |
+ rm absoluteB.zip oz.zip moiree.zip || die |
103 |
local f |
104 |
for f in *.zip; do |
105 |
- unzip -q "${f}" || die |
106 |
- rm -f "${f}" || die |
107 |
+ unpack ./${f} |
108 |
+ rm ${f} || die |
109 |
done |
110 |
fi |
111 |
} |
112 |
|
113 |
src_prepare() { |
114 |
default |
115 |
+ |
116 |
mv configure.{in,ac} || die |
117 |
eautoreconf |
118 |
} |
119 |
|
120 |
src_configure() { |
121 |
- filter-flags -O? |
122 |
- econf \ |
123 |
- --enable-sdl-net \ |
124 |
- --with-docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
125 |
+ local econfargs=( |
126 |
$(use_enable nls) |
127 |
+ --enable-sdl-net |
128 |
+ --localstatedir="${EPREFIX}"/var/games |
129 |
+ --with-docdir="${EPREFIX}"/usr/share/doc/${PF}/html |
130 |
+ ) |
131 |
+ econf "${econfargs[@]}" |
132 |
} |
133 |
|
134 |
src_install() { |
135 |
default |
136 |
|
137 |
+ fowners :gamestat /usr/bin/${PN} /var/games/${PN}.hscr |
138 |
+ fperms g+s /usr/bin/${PN} |
139 |
+ fperms 660 /var/games/${PN}.hscr |
140 |
+ |
141 |
if use themes; then |
142 |
insinto /usr/share/lbreakout2/gfx |
143 |
doins -r "${WORKDIR}"/themes/. |
144 |
fi |
145 |
|
146 |
newicon client/gfx/win_icon.png ${PN}.png |
147 |
- newicon -s 32 client/gfx/win_icon.png ${PN}.png |
148 |
- make_desktop_entry lbreakout2 LBreakout2 |
149 |
-} |
150 |
- |
151 |
-pkg_preinst() { |
152 |
- gnome2_icon_savelist |
153 |
-} |
154 |
- |
155 |
-pkg_postinst() { |
156 |
- gnome2_icon_cache_update |
157 |
-} |
158 |
- |
159 |
-pkg_postrm() { |
160 |
- gnome2_icon_cache_update |
161 |
+ make_desktop_entry ${PN} LBreakout2 |
162 |
} |