1 |
commit: e3fcf31b76bf18de67dcb4cc1eb7670e3ca627cc |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 16 21:51:11 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 16 23:14:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3fcf31b |
7 |
|
8 |
games-action/xblast: EAPI6->8, fix filename, add font dep |
9 |
|
10 |
Game crashes immediately if font is missing. |
11 |
|
12 |
Also add a basic .desktop entry. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/750077 |
15 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
16 |
|
17 |
games-action/xblast/xblast-2.10.4-r1.ebuild | 74 ----------------------------- |
18 |
games-action/xblast/xblast-2.10.4-r2.ebuild | 65 +++++++++++++++++++++++++ |
19 |
2 files changed, 65 insertions(+), 74 deletions(-) |
20 |
|
21 |
diff --git a/games-action/xblast/xblast-2.10.4-r1.ebuild b/games-action/xblast/xblast-2.10.4-r1.ebuild |
22 |
deleted file mode 100644 |
23 |
index 3da27dd600a..00000000000 |
24 |
--- a/games-action/xblast/xblast-2.10.4-r1.ebuild |
25 |
+++ /dev/null |
26 |
@@ -1,74 +0,0 @@ |
27 |
-# Copyright 1999-2020 Gentoo Authors |
28 |
-# Distributed under the terms of the GNU General Public License v2 |
29 |
- |
30 |
-EAPI=6 |
31 |
-inherit autotools |
32 |
- |
33 |
-# Change these as releases changes |
34 |
-IMAGES="images-2005-01-06" |
35 |
-LEVELS="levels-2005-01-06" |
36 |
-MODELS="models-2005-01-06" |
37 |
-MUSICS="musics-2005-01-06" |
38 |
-SOUNDS="sounds" |
39 |
- |
40 |
-DESCRIPTION="Bomberman clone w/network support for up to 6 players" |
41 |
-HOMEPAGE="http://xblast.sourceforge.net/" |
42 |
-SRC_URI="mirror://sourceforge/xblast/${P}.tar.gz |
43 |
- mirror://sourceforge/xblast/${IMAGES}.tar.gz |
44 |
- mirror://sourceforge/xblast/${LEVELS}.tar.gz |
45 |
- mirror://sourceforge/xblast/${MODELS}.tar.gz |
46 |
- mirror://sourceforge/xblast/${MUSICS}.tar.gz |
47 |
- mirror://sourceforge/xblast/${SOUNDS}.tar.gz" |
48 |
- |
49 |
-LICENSE="GPL-2" |
50 |
-SLOT="0" |
51 |
-KEYWORDS="~amd64 ~x86" |
52 |
-IUSE="" |
53 |
- |
54 |
-RDEPEND=" |
55 |
- media-libs/libpng:0 |
56 |
- x11-libs/libICE |
57 |
- x11-libs/libX11" |
58 |
-DEPEND="${RDEPEND} |
59 |
- x11-libs/libXt" |
60 |
- |
61 |
-PATCHES=( |
62 |
- "${FILESDIR}"/${P}-gcc-10.patch |
63 |
-) |
64 |
- |
65 |
-src_prepare() { |
66 |
- default |
67 |
- |
68 |
- eautoreconf #255857 |
69 |
-} |
70 |
- |
71 |
-src_configure() { |
72 |
- econf \ |
73 |
- --with-otherdatadir=/usr/share/${PN} \ |
74 |
- --enable-sound |
75 |
-} |
76 |
- |
77 |
-src_install() { |
78 |
- local IMAGE_INSTALL_DIR="/usr/share/${PN}/image" |
79 |
- |
80 |
- default |
81 |
- |
82 |
- # Images |
83 |
- dodir "${IMAGE_INSTALL_DIR}" |
84 |
- cp -pPR "${WORKDIR}/${IMAGES}"/* "${D}/${IMAGE_INSTALL_DIR}" || die |
85 |
- |
86 |
- # Levels |
87 |
- insinto "/usr/share/${PN}/level" |
88 |
- doins "${WORKDIR}/${LEVELS}"/* |
89 |
- |
90 |
- # Models |
91 |
- insinto "/usr/share/${PN}/image/sprite" |
92 |
- doins "${WORKDIR}/${MODELS}"/* |
93 |
- |
94 |
- # Music and sound |
95 |
- insinto "/usr/share/${PN}/sounds" |
96 |
- doins "${WORKDIR}/${MUSICS}"/* "${WORKDIR}/${SOUNDS}"/* |
97 |
- |
98 |
- # Cleanup |
99 |
- find "${D}" -name Imakefile -exec rm \{\} \; |
100 |
-} |
101 |
|
102 |
diff --git a/games-action/xblast/xblast-2.10.4-r2.ebuild b/games-action/xblast/xblast-2.10.4-r2.ebuild |
103 |
new file mode 100644 |
104 |
index 00000000000..0f7e212495e |
105 |
--- /dev/null |
106 |
+++ b/games-action/xblast/xblast-2.10.4-r2.ebuild |
107 |
@@ -0,0 +1,65 @@ |
108 |
+# Copyright 1999-2021 Gentoo Authors |
109 |
+# Distributed under the terms of the GNU General Public License v2 |
110 |
+ |
111 |
+EAPI=8 |
112 |
+ |
113 |
+inherit autotools desktop |
114 |
+ |
115 |
+MY_GAMEDATA=( |
116 |
+ images-2005-01-06:image |
117 |
+ levels-2005-01-06:level |
118 |
+ models-2005-01-06:image/sprite |
119 |
+ musics-2005-01-06:sounds |
120 |
+ sounds |
121 |
+) |
122 |
+ |
123 |
+DESCRIPTION="Bomberman clone with network support for up to 6 players" |
124 |
+HOMEPAGE="http://xblast.sourceforge.net/" |
125 |
+SRC_URI=" |
126 |
+ mirror://sourceforge/xblast/${P}.tar.gz |
127 |
+ $(printf 'mirror://sourceforge/xblast/%s.tar.gz ' "${MY_GAMEDATA[@]%:*}")" |
128 |
+ |
129 |
+LICENSE="GPL-2+" |
130 |
+SLOT="0" |
131 |
+KEYWORDS="~amd64 ~x86" |
132 |
+ |
133 |
+RDEPEND=" |
134 |
+ x11-libs/libX11 |
135 |
+ media-fonts/font-adobe-100dpi" |
136 |
+DEPEND=" |
137 |
+ x11-base/xorg-proto |
138 |
+ x11-libs/libX11 |
139 |
+ x11-libs/libXt" |
140 |
+ |
141 |
+PATCHES=( |
142 |
+ "${FILESDIR}"/${P}-gcc-10.patch |
143 |
+) |
144 |
+ |
145 |
+src_prepare() { |
146 |
+ default |
147 |
+ |
148 |
+ find "${WORKDIR}" -name Imakefile -exec rm {} + || die |
149 |
+ |
150 |
+ # badly non-utf8 named file that doesn't match xblast.wxs runtime #750077 |
151 |
+ mv "${WORKDIR}"/levels-2005-01-06/reconstruct{?,i}on2.xal || die |
152 |
+ |
153 |
+ eautoreconf #255857 |
154 |
+} |
155 |
+ |
156 |
+src_configure() { |
157 |
+ econf \ |
158 |
+ --enable-sound \ |
159 |
+ --with-otherdatadir="${EPREFIX}"/usr/share/${PN} |
160 |
+} |
161 |
+ |
162 |
+src_install() { |
163 |
+ default |
164 |
+ |
165 |
+ local data |
166 |
+ for data in "${MY_GAMEDATA[@]}"; do |
167 |
+ insinto /usr/share/${PN}/${data#*:} |
168 |
+ doins -r "${WORKDIR}"/${data%:*}/. |
169 |
+ done |
170 |
+ |
171 |
+ make_desktop_entry ${PN} XBlast applications-games |
172 |
+} |