1 |
commit: 6830a06d820b510d79badc8a8660c2e543466c59 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Mar 5 20:29:00 2020 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Thu Mar 5 20:29:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=6830a06d |
7 |
|
8 |
games-action/d2x-xl: remove package |
9 |
|
10 |
Ubuildable and broken, uses deprecated eclass. |
11 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
12 |
|
13 |
games-action/d2x-xl/d2x-xl-1.16.15.ebuild | 149 ------------------------------ |
14 |
games-action/d2x-xl/d2x-xl-1.16.27.ebuild | 149 ------------------------------ |
15 |
2 files changed, 298 deletions(-) |
16 |
|
17 |
diff --git a/games-action/d2x-xl/d2x-xl-1.16.15.ebuild b/games-action/d2x-xl/d2x-xl-1.16.15.ebuild |
18 |
deleted file mode 100644 |
19 |
index 628bd17..0000000 |
20 |
--- a/games-action/d2x-xl/d2x-xl-1.16.15.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,149 +0,0 @@ |
23 |
-# Copyright 1999-2010 Gentoo Foundation |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: $ |
26 |
- |
27 |
-EAPI=5 |
28 |
- |
29 |
-inherit autotools eutils flag-o-matic toolchain-funcs games |
30 |
- |
31 |
-SRC_D2X="http://www.descent2.de/files" |
32 |
-SRC_FILE="${PN}-src-${PV}.7z" |
33 |
-DATA_FILE="${PN}-data-1.15.295.7z" |
34 |
- |
35 |
-DESCRIPTION="Descent 2 engine supporting high-resolution textures" |
36 |
-HOMEPAGE="http://www.descent2.de/" |
37 |
- |
38 |
-D1_TEXTURES="ceilings doors fans-grates lava lights metal rock signs special switches" |
39 |
-D2_TEXTURES="ceilings doors fans-grates lava-water lights metal rock signs special switches" |
40 |
-TEXTURES_SRC_URI="" |
41 |
- |
42 |
-for X in ${D1_TEXTURES}; do |
43 |
- TEXTURES_SRC_URI="${TEXTURES_SRC_URI} ${SRC_D2X}/textures/D1-hires-${X}.7z"; |
44 |
-done |
45 |
-for X in ${D2_TEXTURES}; do |
46 |
- TEXTURES_SRC_URI="${TEXTURES_SRC_URI} ${SRC_D2X}/textures/D2-hires-${X}.7z"; |
47 |
-done |
48 |
- |
49 |
-# www.descent2.de must be *first* in the SRC_URI list, because |
50 |
-# all the SourceForge links exhaust Portage's retry patience. |
51 |
-SRC_URI="${SRC_D2X}/${SRC_FILE} |
52 |
- ${SRC_D2X}/${DATA_FILE} |
53 |
- mirror://sourceforge/${PN}/${SRC_FILE} |
54 |
- mirror://sourceforge/${PN}/${DATA_FILE} |
55 |
- models? ( ${SRC_D2X}/models/hires-models.7z ) |
56 |
- sounds? ( ${SRC_D2X}/sound/hires-sounds.7z ) |
57 |
- textures? ( ${TEXTURES_SRC_URI} )" |
58 |
- |
59 |
-LICENSE="D1X" |
60 |
-SLOT="0" |
61 |
-KEYWORDS="~amd64 ~x86" |
62 |
-IUSE="descent1 descent2 descent2-vertigo debug icon models openmp sounds textures" |
63 |
- |
64 |
-CDEPEND="media-libs/glew |
65 |
- >=media-libs/libsdl-1.2.8:0 |
66 |
- media-libs/sdl-image:0 |
67 |
- media-libs/sdl-mixer:0 |
68 |
- media-libs/sdl-net:0 |
69 |
- net-misc/curl |
70 |
- virtual/opengl" |
71 |
- |
72 |
-RDEPEND="${CDEPEND} |
73 |
- descent1? ( games-action/descent1-data ) |
74 |
- descent2? ( games-action/descent2-data ) |
75 |
- descent2-vertigo? ( games-action/descent2-vertigo )" |
76 |
- |
77 |
-DEPEND="${CDEPEND} |
78 |
- app-arch/p7zip |
79 |
- icon? ( media-gfx/icoutils )" |
80 |
- |
81 |
-S="${WORKDIR}" |
82 |
-DIR="${GAMES_DATADIR}/${PN}" |
83 |
- |
84 |
-RESTRICT=mirror |
85 |
- |
86 |
-src_unpack() { |
87 |
- unpack "${SRC_FILE}" "./${PN}-makefiles.7z" |
88 |
-} |
89 |
- |
90 |
-src_prepare() { |
91 |
- if use icon ; then |
92 |
- icotool -x "${PN}.ico" || die "icotool failed" |
93 |
- fi |
94 |
- |
95 |
- # Use our own data directory. |
96 |
- sed -i "s:/usr/local/games/${PN}:${DIR}:g" main/{setup,gamefolders}.cpp || \ |
97 |
- die "sed #1 failed" |
98 |
- |
99 |
- # Don't need these libraries. |
100 |
- sed -i -r "/d2x_sdl_LDADD/s/-l(Xm|Xt|X11)//g" Makefile.am || \ |
101 |
- die "sed #2 failed" |
102 |
- |
103 |
- # Strip C(XX)FLAGS. |
104 |
- sed -i -r "/C(XX)?FLAGS/s/-(fopenmp|g|O[0-9])//g" configure.ac || \ |
105 |
- die "sed #3 failed" |
106 |
- |
107 |
- chmod a+x ./autogen.sh || die "chmod #1 failed" |
108 |
- ./autogen.sh || die "autogen.sh failed" |
109 |
- chmod +x configure || die "chmod #2 failed" |
110 |
- eautoreconf |
111 |
-} |
112 |
- |
113 |
-src_configure() { |
114 |
- if use openmp && tc-has-openmp; then |
115 |
- append-cppflags -fopenmp |
116 |
- export LIBS="${LIBS} -lgomp" |
117 |
- fi |
118 |
- |
119 |
- local DEBUG_CONF="--disable-debug --enable-release" |
120 |
- use debug && DEBUG_CONF="--enable-debug --disable-release" |
121 |
- |
122 |
- egamesconf ${DEBUG_CONF} --with-opengl |
123 |
-} |
124 |
- |
125 |
-src_install() { |
126 |
- use icon && newicon "${PN}_1_48x48x32.png" "${PN}.png" |
127 |
- |
128 |
- dogamesbin "${PN}" |
129 |
- make_desktop_entry "${PN}" "D2X-XL" "${PN}" |
130 |
- |
131 |
- # Unpack D2X-XL data files. |
132 |
- dodir "${DIR}" |
133 |
- cd "${D}${DIR}" || die "cd \"${D}${DIR}\" failed" |
134 |
- unpack "${DATA_FILE}" |
135 |
- |
136 |
- # Symlink original data files, which may or may not be present. |
137 |
- |
138 |
- if use descent1; then |
139 |
- ln -s ../../d1x/descent.{hog,pig} data/ || die "ln #1 failed" |
140 |
- fi |
141 |
- |
142 |
- if use descent2; then |
143 |
- ln -s ../../d2x/descent2.{ham,hog,s11,s22} data/ || \ |
144 |
- die "ln #2 failed" |
145 |
- ln -s ../../d2x/{groupa,alien{1,2},fire,ice,water}.pig data/ || \ |
146 |
- die "ln #3 failed" |
147 |
- fi |
148 |
- |
149 |
- if use descent2-vertigo; then |
150 |
- ln -s ../../d2x/hoard.ham data/ || die "ln #4 failed" |
151 |
- mkdir missions || die "mdir missions failed" |
152 |
- ln -s ../../d2x/missions/d2x.{hog,mn2} missions/ || die "ln #5 failed" |
153 |
- fi |
154 |
- |
155 |
- # Optional data. |
156 |
- use models && unpack hires-models.7z |
157 |
- use sounds && unpack hires-sounds.7z |
158 |
- |
159 |
- if use textures; then |
160 |
- for X in ${D1_TEXTURES}; do unpack "D1-hires-${X}.7z"; done |
161 |
- for X in ${D2_TEXTURES}; do unpack "D2-hires-${X}.7z"; done |
162 |
- |
163 |
- # Make everything lower case. |
164 |
- mv textures/D1 textures/d1 || die "mv #1 failed" |
165 |
- mv sounds2/D1 sounds2/d1 || die "mv #2 failed" |
166 |
- find -name "*[A-Z]*" -exec sh -c 'mv {} $(echo {} | tr A-Z a-z)' \; || \ |
167 |
- die "find -exec mv failed" |
168 |
- fi |
169 |
- |
170 |
- prepgamesdirs |
171 |
-} |
172 |
|
173 |
diff --git a/games-action/d2x-xl/d2x-xl-1.16.27.ebuild b/games-action/d2x-xl/d2x-xl-1.16.27.ebuild |
174 |
deleted file mode 100644 |
175 |
index 628bd17..0000000 |
176 |
--- a/games-action/d2x-xl/d2x-xl-1.16.27.ebuild |
177 |
+++ /dev/null |
178 |
@@ -1,149 +0,0 @@ |
179 |
-# Copyright 1999-2010 Gentoo Foundation |
180 |
-# Distributed under the terms of the GNU General Public License v2 |
181 |
-# $Header: $ |
182 |
- |
183 |
-EAPI=5 |
184 |
- |
185 |
-inherit autotools eutils flag-o-matic toolchain-funcs games |
186 |
- |
187 |
-SRC_D2X="http://www.descent2.de/files" |
188 |
-SRC_FILE="${PN}-src-${PV}.7z" |
189 |
-DATA_FILE="${PN}-data-1.15.295.7z" |
190 |
- |
191 |
-DESCRIPTION="Descent 2 engine supporting high-resolution textures" |
192 |
-HOMEPAGE="http://www.descent2.de/" |
193 |
- |
194 |
-D1_TEXTURES="ceilings doors fans-grates lava lights metal rock signs special switches" |
195 |
-D2_TEXTURES="ceilings doors fans-grates lava-water lights metal rock signs special switches" |
196 |
-TEXTURES_SRC_URI="" |
197 |
- |
198 |
-for X in ${D1_TEXTURES}; do |
199 |
- TEXTURES_SRC_URI="${TEXTURES_SRC_URI} ${SRC_D2X}/textures/D1-hires-${X}.7z"; |
200 |
-done |
201 |
-for X in ${D2_TEXTURES}; do |
202 |
- TEXTURES_SRC_URI="${TEXTURES_SRC_URI} ${SRC_D2X}/textures/D2-hires-${X}.7z"; |
203 |
-done |
204 |
- |
205 |
-# www.descent2.de must be *first* in the SRC_URI list, because |
206 |
-# all the SourceForge links exhaust Portage's retry patience. |
207 |
-SRC_URI="${SRC_D2X}/${SRC_FILE} |
208 |
- ${SRC_D2X}/${DATA_FILE} |
209 |
- mirror://sourceforge/${PN}/${SRC_FILE} |
210 |
- mirror://sourceforge/${PN}/${DATA_FILE} |
211 |
- models? ( ${SRC_D2X}/models/hires-models.7z ) |
212 |
- sounds? ( ${SRC_D2X}/sound/hires-sounds.7z ) |
213 |
- textures? ( ${TEXTURES_SRC_URI} )" |
214 |
- |
215 |
-LICENSE="D1X" |
216 |
-SLOT="0" |
217 |
-KEYWORDS="~amd64 ~x86" |
218 |
-IUSE="descent1 descent2 descent2-vertigo debug icon models openmp sounds textures" |
219 |
- |
220 |
-CDEPEND="media-libs/glew |
221 |
- >=media-libs/libsdl-1.2.8:0 |
222 |
- media-libs/sdl-image:0 |
223 |
- media-libs/sdl-mixer:0 |
224 |
- media-libs/sdl-net:0 |
225 |
- net-misc/curl |
226 |
- virtual/opengl" |
227 |
- |
228 |
-RDEPEND="${CDEPEND} |
229 |
- descent1? ( games-action/descent1-data ) |
230 |
- descent2? ( games-action/descent2-data ) |
231 |
- descent2-vertigo? ( games-action/descent2-vertigo )" |
232 |
- |
233 |
-DEPEND="${CDEPEND} |
234 |
- app-arch/p7zip |
235 |
- icon? ( media-gfx/icoutils )" |
236 |
- |
237 |
-S="${WORKDIR}" |
238 |
-DIR="${GAMES_DATADIR}/${PN}" |
239 |
- |
240 |
-RESTRICT=mirror |
241 |
- |
242 |
-src_unpack() { |
243 |
- unpack "${SRC_FILE}" "./${PN}-makefiles.7z" |
244 |
-} |
245 |
- |
246 |
-src_prepare() { |
247 |
- if use icon ; then |
248 |
- icotool -x "${PN}.ico" || die "icotool failed" |
249 |
- fi |
250 |
- |
251 |
- # Use our own data directory. |
252 |
- sed -i "s:/usr/local/games/${PN}:${DIR}:g" main/{setup,gamefolders}.cpp || \ |
253 |
- die "sed #1 failed" |
254 |
- |
255 |
- # Don't need these libraries. |
256 |
- sed -i -r "/d2x_sdl_LDADD/s/-l(Xm|Xt|X11)//g" Makefile.am || \ |
257 |
- die "sed #2 failed" |
258 |
- |
259 |
- # Strip C(XX)FLAGS. |
260 |
- sed -i -r "/C(XX)?FLAGS/s/-(fopenmp|g|O[0-9])//g" configure.ac || \ |
261 |
- die "sed #3 failed" |
262 |
- |
263 |
- chmod a+x ./autogen.sh || die "chmod #1 failed" |
264 |
- ./autogen.sh || die "autogen.sh failed" |
265 |
- chmod +x configure || die "chmod #2 failed" |
266 |
- eautoreconf |
267 |
-} |
268 |
- |
269 |
-src_configure() { |
270 |
- if use openmp && tc-has-openmp; then |
271 |
- append-cppflags -fopenmp |
272 |
- export LIBS="${LIBS} -lgomp" |
273 |
- fi |
274 |
- |
275 |
- local DEBUG_CONF="--disable-debug --enable-release" |
276 |
- use debug && DEBUG_CONF="--enable-debug --disable-release" |
277 |
- |
278 |
- egamesconf ${DEBUG_CONF} --with-opengl |
279 |
-} |
280 |
- |
281 |
-src_install() { |
282 |
- use icon && newicon "${PN}_1_48x48x32.png" "${PN}.png" |
283 |
- |
284 |
- dogamesbin "${PN}" |
285 |
- make_desktop_entry "${PN}" "D2X-XL" "${PN}" |
286 |
- |
287 |
- # Unpack D2X-XL data files. |
288 |
- dodir "${DIR}" |
289 |
- cd "${D}${DIR}" || die "cd \"${D}${DIR}\" failed" |
290 |
- unpack "${DATA_FILE}" |
291 |
- |
292 |
- # Symlink original data files, which may or may not be present. |
293 |
- |
294 |
- if use descent1; then |
295 |
- ln -s ../../d1x/descent.{hog,pig} data/ || die "ln #1 failed" |
296 |
- fi |
297 |
- |
298 |
- if use descent2; then |
299 |
- ln -s ../../d2x/descent2.{ham,hog,s11,s22} data/ || \ |
300 |
- die "ln #2 failed" |
301 |
- ln -s ../../d2x/{groupa,alien{1,2},fire,ice,water}.pig data/ || \ |
302 |
- die "ln #3 failed" |
303 |
- fi |
304 |
- |
305 |
- if use descent2-vertigo; then |
306 |
- ln -s ../../d2x/hoard.ham data/ || die "ln #4 failed" |
307 |
- mkdir missions || die "mdir missions failed" |
308 |
- ln -s ../../d2x/missions/d2x.{hog,mn2} missions/ || die "ln #5 failed" |
309 |
- fi |
310 |
- |
311 |
- # Optional data. |
312 |
- use models && unpack hires-models.7z |
313 |
- use sounds && unpack hires-sounds.7z |
314 |
- |
315 |
- if use textures; then |
316 |
- for X in ${D1_TEXTURES}; do unpack "D1-hires-${X}.7z"; done |
317 |
- for X in ${D2_TEXTURES}; do unpack "D2-hires-${X}.7z"; done |
318 |
- |
319 |
- # Make everything lower case. |
320 |
- mv textures/D1 textures/d1 || die "mv #1 failed" |
321 |
- mv sounds2/D1 sounds2/d1 || die "mv #2 failed" |
322 |
- find -name "*[A-Z]*" -exec sh -c 'mv {} $(echo {} | tr A-Z a-z)' \; || \ |
323 |
- die "find -exec mv failed" |
324 |
- fi |
325 |
- |
326 |
- prepgamesdirs |
327 |
-} |