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/grande-KXL/files/, games-arcade/grande-KXL/
Date: Wed, 15 Sep 2021 02:43:21
Message-Id: 1631673636.8452ad75bf37de53704fc1bdf435e48b87bef45f.ionen@gentoo
1 commit: 8452ad75bf37de53704fc1bdf435e48b87bef45f
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 14 23:40:50 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 15 02:40:36 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8452ad75
7
8 games-arcade/grande-KXL: EAPI6->8, use gamestat, add font dep
9
10 Also fix .desktop icon, bmp is not valid for XDG icons.
11
12 Closes: https://bugs.gentoo.org/682606
13 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
14
15 games-arcade/grande-KXL/Manifest | 1 +
16 .../files/grande-KXL-0.6-configure.in.patch | 17 --------
17 .../grande-KXL/files/grande-KXL-0.6-paths.patch | 9 ++++
18 games-arcade/grande-KXL/grande-KXL-0.6-r1.ebuild | 40 -----------------
19 games-arcade/grande-KXL/grande-KXL-0.6-r2.ebuild | 50 ++++++++++++++++++++++
20 5 files changed, 60 insertions(+), 57 deletions(-)
21
22 diff --git a/games-arcade/grande-KXL/Manifest b/games-arcade/grande-KXL/Manifest
23 index 53ba90c3d5d..70685eda956 100644
24 --- a/games-arcade/grande-KXL/Manifest
25 +++ b/games-arcade/grande-KXL/Manifest
26 @@ -1 +1,2 @@
27 DIST grande-KXL-0.6.tar.gz 240869 BLAKE2B a9109dd37d72ffcfd02b9f160acd89c17d5ae13d53948ecc79718f420cb3826491a6f6b024ca65a12ada76b24110f01a52f502db2de8a736f628eda5c0054a4d SHA512 17916e54b2b2bad25d789bc3d4f182f3f104fd4e5cf7b745bb9613f76ec04a2a3d2740ca89b507ecdb653f1d42b793115e76b5b34d53b96fec3d55574632b980
28 +DIST grande-KXL.png 5949 BLAKE2B 4461b7f90c2abd332708c81829a5b03436163d7652f60c424c2468d08987338febf147457a16794123a7a6d5e64fea06a40071fb3e62fd5ea7bea6dadfb3dd2c SHA512 4fe68a2fa0cb3e57a590cd818953e82b3456d7e160f12d4a87d2160acf6f6b37d39da2ee1df96f14396c5a86765ab6c66e05c62a8fd246a1ce01fbec962be67d
29
30 diff --git a/games-arcade/grande-KXL/files/grande-KXL-0.6-configure.in.patch b/games-arcade/grande-KXL/files/grande-KXL-0.6-configure.in.patch
31 deleted file mode 100644
32 index 19fec93f61a..00000000000
33 --- a/games-arcade/grande-KXL/files/grande-KXL-0.6-configure.in.patch
34 +++ /dev/null
35 @@ -1,17 +0,0 @@
36 ---- a/configure.in
37 -+++ b/configure.in
38 -@@ -17,12 +17,8 @@
39 - AC_CHECK_HEADERS(unistd.h)
40 -
41 - dnl installation & score path
42 --if test "x${prefix}" = "xNONE"; then
43 -- inst_path="${ac_default_prefix}/games/grande"
44 --else
45 -- inst_path="${prefix}/games/grande"
46 --fi
47 --score_path="/var/games"
48 -+inst_path="${datadir}/grande"
49 -+score_path="${localstatedir}"
50 -
51 - dnl check if installation was disabled
52 - AC_ARG_ENABLE( install,
53
54 diff --git a/games-arcade/grande-KXL/files/grande-KXL-0.6-paths.patch b/games-arcade/grande-KXL/files/grande-KXL-0.6-paths.patch
55 new file mode 100644
56 index 00000000000..8aef0e38242
57 --- /dev/null
58 +++ b/games-arcade/grande-KXL/files/grande-KXL-0.6-paths.patch
59 @@ -0,0 +1,9 @@
60 +--- a/configure.in
61 ++++ b/configure.in
62 +@@ -21,5 +21,5 @@
63 + inst_path="${ac_default_prefix}/games/grande"
64 + else
65 +- inst_path="${prefix}/games/grande"
66 ++ inst_path="${datadir}/grande"
67 + fi
68 + score_path="/var/games"
69
70 diff --git a/games-arcade/grande-KXL/grande-KXL-0.6-r1.ebuild b/games-arcade/grande-KXL/grande-KXL-0.6-r1.ebuild
71 deleted file mode 100644
72 index 899a615e652..00000000000
73 --- a/games-arcade/grande-KXL/grande-KXL-0.6-r1.ebuild
74 +++ /dev/null
75 @@ -1,40 +0,0 @@
76 -# Copyright 1999-2018 Gentoo Foundation
77 -# Distributed under the terms of the GNU General Public License v2
78 -
79 -EAPI=6
80 -
81 -inherit autotools desktop
82 -
83 -DESCRIPTION="ZANAC type game"
84 -HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
85 -SRC_URI="mirror://gentoo/${P}.tar.gz"
86 -
87 -LICENSE="GPL-2"
88 -SLOT="0"
89 -KEYWORDS="~amd64 ~x86"
90 -IUSE=""
91 -
92 -DEPEND="dev-games/KXL"
93 -RDEPEND="${DEPEND}
94 - media-fonts/font-adobe-100dpi"
95 -
96 -PATCHES=(
97 - "${FILESDIR}"/${P}-configure.in.patch
98 - "${FILESDIR}"/${P}-cflags.patch
99 -)
100 -
101 -src_prepare() {
102 - default
103 -
104 - mv configure.{in,ac} || die
105 - rm aclocal.m4 || die
106 - eautoreconf
107 -}
108 -
109 -src_install() {
110 - dodir /var/lib
111 - default
112 -
113 - newicon src/bmp/boss1.bmp ${PN}.bmp
114 - make_desktop_entry grande Grande /usr/share/pixmaps/${PN}.bmp
115 -}
116
117 diff --git a/games-arcade/grande-KXL/grande-KXL-0.6-r2.ebuild b/games-arcade/grande-KXL/grande-KXL-0.6-r2.ebuild
118 new file mode 100644
119 index 00000000000..f93c692bec6
120 --- /dev/null
121 +++ b/games-arcade/grande-KXL/grande-KXL-0.6-r2.ebuild
122 @@ -0,0 +1,50 @@
123 +# Copyright 1999-2021 Gentoo Authors
124 +# Distributed under the terms of the GNU General Public License v2
125 +
126 +EAPI=8
127 +
128 +inherit autotools desktop
129 +
130 +DESCRIPTION="ZANAC type game"
131 +HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
132 +SRC_URI="
133 + mirror://gentoo/${P}.tar.gz
134 + https://dev.gentoo.org/~ionen/distfiles/${PN}.png"
135 +
136 +LICENSE="GPL-2"
137 +SLOT="0"
138 +KEYWORDS="~amd64 ~x86"
139 +
140 +DEPEND="
141 + acct-group/gamestat
142 + dev-games/KXL"
143 +RDEPEND="${DEPEND}
144 + media-fonts/font-adobe-100dpi
145 + media-fonts/font-bitstream-100dpi"
146 +
147 +PATCHES=(
148 + "${FILESDIR}"/${P}-cflags.patch
149 + "${FILESDIR}"/${P}-paths.patch
150 +)
151 +
152 +src_prepare() {
153 + default
154 +
155 + eautoreconf
156 +}
157 +
158 +src_configure() {
159 + econf --with-highscore-path="${EPREFIX}/var/games"
160 +}
161 +
162 +src_install() {
163 + dodir /var/games
164 + default
165 +
166 + fowners :gamestat /var/games/grande.scores /usr/bin/grande
167 + fperms g+s /usr/bin/grande
168 + fperms 660 /var/games/grande.scores
169 +
170 + doicon "${DISTDIR}"/${PN}.png
171 + make_desktop_entry grande Grande
172 +}