Gentoo Archives: gentoo-commits

From: "Vadim A. Misbakh-Soloviov" <mva@×××.name>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-rpg/amnesia-tdd/files/, games-rpg/amnesia-tdd/, games-strategy/vcmi/, ...
Date: Sat, 31 Aug 2019 13:54:28
Message-Id: 1567259655.9840f8c8a1850dac80dd67283110d67d104f481e.mva@gentoo
1 commit: 9840f8c8a1850dac80dd67283110d67d104f481e
2 Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
3 AuthorDate: Sat Aug 31 13:54:15 2019 +0000
4 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
5 CommitDate: Sat Aug 31 13:54:15 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=9840f8c8
7
8 amnesia: bump&fix; vcmi: bump
9
10 games-rpg/amnesia-tdd/amnesia-tdd-1.2.1.ebuild | 295 ---------------------
11 games-rpg/amnesia-tdd/amnesia-tdd-1.3.ebuild | 184 +++++++++++++
12 games-rpg/amnesia-tdd/files/Amnesia.png | Bin 0 -> 116407 bytes
13 ...vcmi-data-0.90.ebuild => vcmi-data-0.99.ebuild} | 4 +-
14 games-strategy/vcmi/vcmi-0.98.ebuild | 79 ------
15 games-strategy/vcmi/vcmi-0.99.ebuild | 71 +++++
16 6 files changed, 257 insertions(+), 376 deletions(-)
17
18 diff --git a/games-rpg/amnesia-tdd/amnesia-tdd-1.2.1.ebuild b/games-rpg/amnesia-tdd/amnesia-tdd-1.2.1.ebuild
19 deleted file mode 100644
20 index a9ccb02..0000000
21 --- a/games-rpg/amnesia-tdd/amnesia-tdd-1.2.1.ebuild
22 +++ /dev/null
23 @@ -1,295 +0,0 @@
24 -# Copyright 1999-2012 Gentoo Foundation
25 -# Distributed under the terms of the GNU General Public License v2
26 -# $Header: $
27 -
28 -EAPI=3
29 -
30 -inherit check-reqs eutils games unpacker
31 -
32 -MY_PN="${PN//-/_}"
33 -MY_ARCH="${ARCH/amd64/x86_64}"
34 -MY_REV="-3"
35 -
36 -DESCRIPTION="Amnesia: The Dark Descent is a first person survival horror. A game about immersion, discovery and living through a nightmare."
37 -HOMEPAGE="http://www.amnesiagame.com/"
38 -SRC_URI="${MY_PN}-${PV}${MY_REV}.sh"
39 -
40 -RESTRICT="fetch strip"
41 -LICENSE="Frictional_Games-EULA"
42 -
43 -SLOT="0"
44 -KEYWORDS="amd64 x86"
45 -IUSE="doc linguas_de linguas_es linguas_fr linguas_it linguas_ru"
46 -
47 -DEPEND="app-arch/xz-utils"
48 -RDEPEND="media-libs/freealut
49 - >=media-libs/glew-1.5
50 - media-libs/jpeg:62
51 - media-libs/libpng:1.2
52 - media-libs/libtheora
53 - media-libs/libvorbis
54 - media-libs/openal
55 - media-libs/sdl-image
56 - media-libs/sdl-ttf
57 - sys-libs/zlib
58 - x11-libs/libxcb
59 - x11-libs/libXext
60 - virtual/glu
61 - virtual/opengl"
62 -
63 -S="${WORKDIR}/${PN}"
64 -
65 -GAMEDIR="${GAMES_PREFIX_OPT}/${PN}"
66 -
67 -pkg_nofetch() {
68 - einfo ""
69 - einfo "Please buy and download \"${SRC_URI}\" from:"
70 - einfo " ${HOMEPAGE}"
71 - einfo "and move/link it to \"${DISTDIR}\""
72 - einfo ""
73 -}
74 -
75 -pkg_setup() {
76 - CHECKREQS_DISK_BUILD="3500M"
77 - check-reqs_pkg_setup
78 - games_pkg_setup
79 -}
80 -
81 -src_unpack() {
82 - einfo "\nUnpacking files. This will take several minutes.\n"
83 -
84 - mkdir "tmp" || die "mkdir 'tmp' failed"
85 - cd "./tmp" || die "cd 'tmp' failed"
86 -
87 - unpack_makeself || die "unpack_makeself failed"
88 -
89 - mv "instarchive_all" "../${P}.tar.lzma" || die "move 'instarchive_all' failed"
90 - mv "instarchive_all_${MY_ARCH}" "../${P}-${MY_ARCH}.tar.lzma" || die "move 'instarchive_all_${MY_ARCH}' failed"
91 -
92 - cd "${WORKDIR}" || die "cd '${WORKDIR}' failed"
93 - rm -rf "./tmp"
94 -
95 - # This version is packed incorrectly and lzma will 'fail' at end of unpack
96 - # output tarball is ok, though, decompress manually to skip
97 - # unpack error checking of the LZMA decompression
98 - echo ">>> Unpacking ./${P}.tar.lzma to /tmp/portage/games-rpg/amnesia-tdd-1.2.1/work"
99 - xz -F lzma -d -c "./${P}.tar.lzma" 2>/dev/null | tar xf - \
100 - || die "unpacking '${P}.tar.lzma' failed"
101 - rm "./${P}.tar.lzma"
102 -
103 - unpack "./${P}-${MY_ARCH}.tar.lzma" || die "unpack '${P}-${MY_ARCH}.tar.lzma' failed"
104 - rm "./${P}-${MY_ARCH}.tar.lzma"
105 -
106 - mv "Amnesia" "${PN}" || die "mv 'Amnesia' failed"
107 -
108 - # libfltk.so.1.1 is needed because it's no longer in portage
109 - mv "${S}"/libs*/all/libfltk* "${S}"/libs*/
110 -}
111 -
112 -src_prepare() {
113 - # Files to remove.
114 - REMOVE="libs*/*
115 - *.pdf
116 - *.rtf
117 - *.sh"
118 -
119 - # Files to keep.
120 - # Bundled LibIL (media-libs/devil) isn't in portage as too old
121 - KEEP="libs*/libIL*
122 - libs*/libfltk*"
123 -
124 - # Collect infos about languages...
125 - LINGUAS_ARRAY=() # Linguas - string: E.g.: "linguas_en"
126 - LANG_ARRAY=() # Lang - string: E.g.: "en"
127 - LANGUAGE_ARRAY=() # Language - string: E.g.: "english"
128 - LANGUAGE_SHORT_ARRAY=() # Language Short - string: E.g.: "eng"
129 - USE_ARRAY=() # Used - bool (0,1)
130 -
131 - local linguas_in_use="0"
132 - for use in ${IUSE}
133 - do
134 - if [[ "${use%%_*}" == "linguas" ]]
135 - then
136 - local tmp="${use}"
137 - LINGUAS_ARRAY=(${LINGUAS_ARRAY[@]} "${tmp}")
138 -
139 - tmp="${tmp##linguas_}"
140 - LANG_ARRAY=(${LANG_ARRAY[@]} "${tmp}")
141 -
142 - case "${tmp}" in
143 - "de") tmp="german";;
144 - "es") tmp="spanish";;
145 - "fr") tmp="french";;
146 - "it") tmp="italian";;
147 - "ru") tmp="russian";;
148 - *) tmp="";;
149 - esac
150 - LANGUAGE_ARRAY=(${LANGUAGE_ARRAY[@]} "${tmp}")
151 - LANGUAGE_SHORT_ARRAY=(${LANGUAGE_SHORT_ARRAY[@]} "${tmp:0:3}")
152 -
153 - if use ${use}
154 - then
155 - USE_ARRAY=(${USE_ARRAY[@]} "1")
156 - linguas_in_use="$(( ${linguas_in_use} + 1 ))"
157 - else
158 - USE_ARRAY=(${USE_ARRAY[@]} "0")
159 - fi
160 - fi
161 - done
162 -
163 - # ...then process them.
164 - local n="0"
165 - local docs_eng="0"
166 - while [[ "${n}" -lt "${#LINGUAS_ARRAY[@]}" ]]
167 - do
168 - if [[ "${USE_ARRAY[${n}]}" -gt "0" ]]
169 - then
170 - # If only one lang is selected, use it as default.
171 - if [[ "${linguas_in_use}" == "1" ]]
172 - then
173 - sed -e "s#english.lang#${LANGUAGE_ARRAY[${n}]}.lang#g" \
174 - -i config/*main_init.cfg || die "sed \"config/*main_init.cfg\" failed"
175 - fi
176 - else
177 - REMOVE="${REMOVE} $(find config -type f -name "*${LANGUAGE_ARRAY[${n}]}.lang")"
178 - if [[ -d "lang/${LANGUAGE_SHORT_ARRAY[${n}]}" ]]
179 - then
180 - REMOVE="${REMOVE} lang/${LANGUAGE_SHORT_ARRAY[${n}]}"
181 - fi
182 - fi
183 -
184 - if use doc
185 - then
186 - if [[ -f "EULA_${LANG_ARRAY[${n}]}.rtf" && -f "Manual_${LANG_ARRAY[${n}]}.pdf" ]]
187 - then
188 - KEEP="${KEEP} EULA_${LANG_ARRAY[${n}]}.rtf Manual_${LANG_ARRAY[${n}]}.pdf"
189 - else
190 - local docs_eng="1"
191 - fi
192 - fi
193 -
194 - n="$(( ${n} + 1 ))"
195 - done
196 -
197 - if use doc && [[ ( "${linguas_in_use}" == "0" || "${docs_eng}" != "0" ) ]]
198 - then
199 - KEEP="${KEEP} EULA_en.rtf Manual_en.pdf Remember*.pdf"
200 - fi
201 -
202 - einfo " Removing useless files ..."
203 - for remove in ${REMOVE}
204 - do
205 - local removable="1"
206 - for keep in ${KEEP}
207 - do
208 - if [[ "${remove}" == "${keep}" && "${removable}" == "1" ]]
209 - then
210 - local removable="0"
211 - fi
212 - done
213 -
214 - if [[ "${removable}" == "1" ]]
215 - then
216 - rm -r "${S}/"${remove} &> /dev/null
217 - fi
218 - done
219 -
220 - if use amd64
221 - then
222 - mv "Amnesia.bin64" "Amnesia.bin" || die "mv \"Amnesia.bin64\" failed"
223 - mv "Launcher.bin64" "Launcher.bin" || die "mv \"Launcher.bin64\" failed"
224 - fi
225 -}
226 -
227 -src_install() {
228 - # Install data
229 - insinto "${GAMEDIR}"
230 -
231 - einfo " Installing game data files ..."
232 - for directory in $(find * -maxdepth 0 -type d ! -name "libs*")
233 - do
234 - doins -r ${directory} || die "doins game data files failed"
235 - done
236 -
237 - # Other files
238 - find . -maxdepth 1 -type f ! -name "*.bin" \
239 - ! -name "*.pdf" \
240 - ! -name "*.png" \
241 - ! -name "*.rtf" \
242 - ! -name "*.sh" \
243 - -exec doins '{}' \; || die "doins other files failed"
244 -
245 -
246 - # Install libraries and executables
247 - einfo " Installing libraries and executables ..."
248 - if use amd64
249 - then
250 - local libsdir="${GAMEDIR}/libs64"
251 - else
252 - local libsdir="${GAMEDIR}/libs"
253 - fi
254 -
255 - exeinto "${libsdir}" || die "exeinto \"${libsdir}\" failed"
256 - doexe libs*/* || die "doexe \"libs\" failed"
257 -
258 - dosym "/usr/$(get_libdir)/libGLEW.so" "${libsdir}/libGLEW.so.1.5"
259 -
260 - exeinto "${GAMEDIR}" || die "exeinto \"${GAMEDIR}\" failed"
261 - doexe *.bin || die "doexe \".bin\" binaries failed"
262 -
263 -
264 - # Make game wrapper
265 - dodir "${GAMES_BINDIR}" || die "dodir \"${GAMES_BINDIR}\" failed"
266 -
267 - local wrapper="${D}/${GAMES_BINDIR}/${PN}"
268 - local ext="${PN}-justine"
269 - touch "${wrapper}" || die "touch \"${wrapper}\" failed"
270 - ln -s "${wrapper}" "${D}/${GAMES_BINDIR}/${ext}" || die "ln -s \"${ext}\" failed"
271 -
272 - cat << EOF >> "${wrapper}" || die "echo failed"
273 -#!/bin/sh
274 -cd "${GAMEDIR}"
275 -
276 -if [[ "\$(basename "\${0}")" == "${ext}" ]]
277 -then
278 - params="ptest \${@}"
279 -fi
280 -
281 -if [[ -w "\${HOME}/.frictionalgames/Amnesia/Main/main_settings.cfg" ]]
282 -then
283 - exec ./Amnesia.bin \${params:-"\${@}"}
284 -else
285 - exec ./Launcher.bin "\${@}"
286 -fi
287 -EOF
288 -
289 -
290 - # Install icon and desktop file
291 - newicon "Amnesia.png" "${PN}.png" || die "newicon failed"
292 - make_desktop_entry "${PN}" "Amnesia: The Dark Descent" "${PN}" || die "make_desktop_entry failed"
293 - make_desktop_entry "${ext}" "Amnesia: The Dark Descent - Justine" "${PN}" || die "make_desktop_entry failed"
294 -
295 -
296 - # Install documentation
297 - if use doc
298 - then
299 - dodoc *.rtf *.pdf || die "dodoc failed"
300 - fi
301 -
302 -
303 - # Setting permissions.
304 - einfo " Setting permissions ..."
305 - prepgamesdirs
306 -}
307 -
308 -pkg_postinst() {
309 - ewarn ""
310 - ewarn "Amnesia: The Dark Descent needs video drivers that provide a complete".
311 - ewarn "GLSL 1.20 implementation. For more information, please visit:"
312 - ewarn "http://www.frictionalgames.com/forum/thread-3760.html"
313 - ewarn ""
314 - ewarn "--------------------------------------------------------------------"
315 - ewarn ""
316 - ewarn "Saved games from previous versions may not be fully compatible."
317 - ewarn ""
318 -}
319
320 diff --git a/games-rpg/amnesia-tdd/amnesia-tdd-1.3.ebuild b/games-rpg/amnesia-tdd/amnesia-tdd-1.3.ebuild
321 new file mode 100644
322 index 0000000..00daa9b
323 --- /dev/null
324 +++ b/games-rpg/amnesia-tdd/amnesia-tdd-1.3.ebuild
325 @@ -0,0 +1,184 @@
326 +# Copyright 1999-2019 Gentoo Authors
327 +# Distributed under the terms of the GNU General Public License v2
328 +# $Header: $
329 +
330 +EAPI=7
331 +
332 +inherit desktop
333 +
334 +MY_PN="Amnesia The Dark Decent"
335 +MY_SRC_PN="Amnesia_The_Dark_Descent"
336 +# ^ upstream did a typo (Decent vs Descent)
337 +
338 +DESCRIPTION="A first person survival horror. Immersion, discovery and living in a nightmare."
339 +HOMEPAGE="http://www.amnesiagame.com/"
340 +SRC_URI="${MY_SRC_PN}_Linux.zip"
341 +
342 +RESTRICT="fetch strip bindist"
343 +LICENSE="Frictional_Games-EULA"
344 +
345 +SLOT="0"
346 +KEYWORDS="~amd64 ~x86"
347 +IUSE="doc linguas_de linguas_es linguas_fr linguas_it linguas_ru"
348 +
349 +DEPEND="app-arch/xz-utils"
350 +RDEPEND="media-libs/freealut
351 + >=media-libs/glew-1.5
352 + media-libs/jpeg:62
353 + media-libs/libpng:1.2
354 + media-libs/libtheora
355 + media-libs/libvorbis
356 + media-libs/openal
357 + media-libs/sdl-image
358 + media-libs/sdl-ttf
359 + sys-libs/zlib
360 + x11-libs/libxcb
361 + x11-libs/libXext
362 + virtual/glu
363 + virtual/opengl"
364 +
365 +S="${WORKDIR}/${MY_PN}"
366 +
367 +GAMEDIR="/usr/share/${P}"
368 +
369 +pkg_nofetch() {
370 + einfo ""
371 + einfo "Please buy and download \"${SRC_URI}\" from:"
372 + einfo " ${HOMEPAGE} (or HumbleBundle or GOG)"
373 + einfo "and move/link it to \"${DISTDIR}\""
374 + einfo ""
375 +}
376 +
377 +src_prepare() {
378 + default
379 + local arch archdrop libdir liddropdir
380 +
381 + if use amd64; then
382 + arch="x86_64"
383 + archdrop="x86"
384 + libdir="lib64"
385 + libdropdir="lib"
386 + else
387 + arch="x86"
388 + archdrop="x86_64"
389 + libdir="lib"
390 + libdropdir="lib64"
391 + fi
392 + # Files to remove.
393 + REMOVE=(
394 + "${libdir}/*"
395 + "*.pdf"
396 + "*.rtf"
397 + "*.bin.${archdrop}"
398 + "*.sh"
399 + "${libdropdir}"
400 + )
401 +
402 +
403 + KEEP=("${libdir}/libsteam_api.so")
404 +
405 + if use doc && [[ ( "${linguas_in_use}" == "0" || "${docs_eng}" != "0" ) ]]; then
406 + KEEP="${KEEP} EULA_en.rtf Manual_en.pdf Remember*.pdf *ChangeLog*"
407 + fi
408 +
409 + mv "Amnesia.bin.${arch}" "Amnesia.bin" || die "mv \"Amnesia.bin64\" failed"
410 + mv "Launcher.bin.${arch}" "Launcher.bin" || die "mv \"Launcher.bin64\" failed"
411 +
412 + einfo " Removing useless files ..."
413 + for remove in ${REMOVE[@]}; do
414 + local removable="1"
415 + for keep in ${KEEP[@]}; do
416 + if [[ "${remove}" == "${keep}" && "${removable}" == "1" ]]; then
417 + local removable="0"
418 + fi
419 + done
420 +
421 + if [[ "${removable}" == "1" ]]; then
422 + rm -r "${S}/"${remove} &> /dev/null
423 + fi
424 + done
425 +}
426 +
427 +src_install() {
428 + # Install data
429 + insinto "${GAMEDIR}"
430 +
431 + einfo " Installing game data files ..."
432 + for directory in $(find * -maxdepth 0 -type d ! -name "lib*"); do
433 + doins -r ${directory} || die "doins game data files failed"
434 + done
435 +
436 + # Other files
437 + find . \
438 + -maxdepth 1 \
439 + -type f \
440 + ! -name "*.bin" \
441 + ! -name "*.pdf" \
442 + ! -name "*.png" \
443 + ! -name "*.rtf" \
444 + ! -name "*.sh" \
445 + ! -name "*.txt" \
446 + -exec doins '{}' \; || die "doins other files failed"
447 +
448 +
449 + # Install libraries and executables
450 + einfo " Installing libraries and executables ..."
451 + if use amd64; then
452 + local libsdir="lib64"
453 + else
454 + local libsdir="lib"
455 + fi
456 +
457 + exeinto "${GAMEDIR}/${libsdir}" || die "exeinto \"${libsdir}\" failed"
458 + doexe "${libsdir}"/* || die "doexe \"lib\" failed"
459 +
460 + exeinto "${GAMEDIR}" || die "exeinto \"${GAMEDIR}\" failed"
461 + doexe ./*.bin || die "doexe failed"
462 + local ext="${PN}-justine"
463 +
464 + cat << EOF >> "${PN}" || die "echo failed"
465 +#!/bin/sh
466 +cd "${GAMEDIR}"
467 +
468 +if [[ "\$(basename "\${0}")" == "${ext}" ]]; then
469 + params="ptest \${@}"
470 +fi
471 +
472 +if [[ -w "\${HOME}/.frictionalgames/Amnesia/Main/main_settings.cfg" ]]; then
473 + exec ./Amnesia.bin \${params:-"\${@}"}
474 +else
475 + exec ./Launcher.bin "\${@}"
476 +fi
477 +EOF
478 +
479 + dobin "${PN}" || die "dobin failed"
480 + dosym "${PN}" "${EROOT}/usr/bin/${ext}" || die "dosym \"${ext}\" failed"
481 +
482 + # Install icon and desktop file
483 + newicon "${FILESDIR}/Amnesia.png" "${PN}.png" || die "newicon failed"
484 + make_desktop_entry "${PN}" "Amnesia: The Dark Descent" "${PN}" || die "make_desktop_entry failed"
485 + make_desktop_entry "${ext}" "Amnesia: The Dark Descent - Justine" "${PN}" || die "make_desktop_entry failed"
486 +
487 + # Install documentation
488 + if use doc; then
489 + dodoc *.rtf *.pdf *.txt || die "dodoc failed"
490 + fi
491 +}
492 +
493 +pkg_postinst() {
494 + ewarn ""
495 + ewarn "Amnesia: The Dark Descent needs video drivers that provide a complete".
496 + ewarn "GLSL 1.20 implementation. For more information, please visit:"
497 + ewarn "http://www.frictionalgames.com/forum/thread-3760.html"
498 + ewarn ""
499 + ewarn "--------------------------------------------------------------------"
500 + ewarn ""
501 + ewarn "Saved games from previous versions may not be fully compatible."
502 + ewarn ""
503 + ewarn "--------------------------------------------------------------------"
504 + ewarn ""
505 + ewarn "Also, be noticed that Launcher binary can segfault on Intel videocards,"
506 + ewarn "so you'll need to manually create ~/.frictionalgames/Amnesia/Main/main_settings.cfg"
507 + ewarn "(to pass wrapper check to directly run the game instead of launcher)"
508 + ewarn ""
509 +}
510
511 diff --git a/games-rpg/amnesia-tdd/files/Amnesia.png b/games-rpg/amnesia-tdd/files/Amnesia.png
512 new file mode 100644
513 index 0000000..085e040
514 Binary files /dev/null and b/games-rpg/amnesia-tdd/files/Amnesia.png differ
515
516 diff --git a/games-strategy/vcmi-data/vcmi-data-0.90.ebuild b/games-strategy/vcmi-data/vcmi-data-0.99.ebuild
517 similarity index 89%
518 rename from games-strategy/vcmi-data/vcmi-data-0.90.ebuild
519 rename to games-strategy/vcmi-data/vcmi-data-0.99.ebuild
520 index b66c6d3..8f0571e 100644
521 --- a/games-strategy/vcmi-data/vcmi-data-0.90.ebuild
522 +++ b/games-strategy/vcmi-data/vcmi-data-0.99.ebuild
523 @@ -10,8 +10,8 @@ DESCRIPTION="Core data for vcmi"
524 HOMEPAGE="http://forum.vcmi.eu/index.php"
525 MY_P="core"
526 SRC_URI="
527 - http://download.vcmi.eu/core.zip
528 - http://download.vcmi.eu/WoG/wog.zip
529 + http://download.vcmi.eu/core.zip -> ${PN}-core-${PV}.zip
530 + http://download.vcmi.eu/WoG/wog.zip -> ${PN}-wog-${PV}.zip
531 "
532
533 LICENSE="GPL-2"
534
535 diff --git a/games-strategy/vcmi/vcmi-0.98.ebuild b/games-strategy/vcmi/vcmi-0.98.ebuild
536 deleted file mode 100644
537 index 80ff809..0000000
538 --- a/games-strategy/vcmi/vcmi-0.98.ebuild
539 +++ /dev/null
540 @@ -1,79 +0,0 @@
541 -# Copyright 1999-2015 Gentoo Foundation
542 -# Distributed under the terms of the GNU General Public License v2
543 -# $Header: $
544 -
545 -EAPI=5
546 -
547 -inherit eutils games cmake-utils
548 -
549 -DESCRIPTION="Heroes of Might and Magic III game engine rewrite"
550 -HOMEPAGE="http://forum.vcmi.eu/index.php"
551 -SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
552 -
553 -LICENSE="GPL-2"
554 -SLOT="0"
555 -KEYWORDS="~x86 ~amd64"
556 -IUSE="debug editor launcher +erm"
557 -
558 -CDEPEND="
559 - media-libs/libsdl2[video]
560 - media-libs/sdl2-image
561 - media-libs/sdl2-mixer
562 - media-libs/sdl2-ttf
563 - virtual/ffmpeg
564 - sys-libs/zlib[minizip]
565 - editor? (
566 - dev-qt/qtgui
567 - dev-qt/qtcore
568 - dev-qt/qtwidgets
569 - )
570 - launcher? (
571 - dev-qt/qtgui
572 - dev-qt/qtcore
573 - dev-qt/qtnetwork
574 - dev-qt/qtwidgets
575 - )
576 - dev-libs/fuzzylite
577 -"
578 -
579 -DEPEND="
580 - >dev-libs/boost-1.48.0
581 - virtual/pkgconfig
582 - ${CDEPEND}
583 -"
584 -RDEPEND="
585 - ${CDEPEND}
586 -"
587 -PDEPEND="
588 - games-strategy/vcmi-data
589 -"
590 -
591 -src_configure() {
592 - local MY_DATADIR="${GAMES_DATADIR#/usr/}/${PN}"
593 - local MY_GAMESLIBDIR=$(games_get_libdir)
594 - local MY_LIBDIR=${MY_GAMESLIBDIR#/usr/}
595 - local MY_BINDIR=${GAMES_BINDIR#/usr/}
596 -
597 - use editor && ewarn "Editor seems to be broken. At least, it fails to build for me"
598 - use debug || ewarn "Somewhy, buildsystem don't want to use cotire (compile time reducer) generated pch (precompiled header) with disabled debug, so, you will see the warnings on each target."
599 -
600 - local mycmakeargs=(
601 - -DDATA_DIR="${MY_DATADIR}"
602 - -DLIB_DIR="${MY_LIBDIR}"
603 - -DBIN_DIR="${MY_BINDIR}"
604 - $(cmake-utils_use_enable erm ERM)
605 - $(cmake-utils_use_enable editor EDITOR)
606 - $(cmake-utils_use_enable launcher LAUNCHER)
607 - )
608 - export CCACHE_SLOPPINESS="time_macros"
609 - cmake-utils_src_configure
610 -}
611 -
612 -src_install() {
613 - cmake-utils_src_install
614 - prepgamesdirs
615 -}
616 -
617 -pkg_postinst() {
618 - games_pkg_postinst
619 -}
620
621 diff --git a/games-strategy/vcmi/vcmi-0.99.ebuild b/games-strategy/vcmi/vcmi-0.99.ebuild
622 new file mode 100644
623 index 0000000..bf28be7
624 --- /dev/null
625 +++ b/games-strategy/vcmi/vcmi-0.99.ebuild
626 @@ -0,0 +1,71 @@
627 +# Copyright 1999-2019 Gentoo Authors
628 +# Distributed under the terms of the GNU General Public License v2
629 +# $Header: $
630 +
631 +EAPI=7
632 +
633 +inherit eutils cmake-utils flag-o-matic
634 +
635 +DESCRIPTION="Heroes of Might and Magic III game engine rewrite"
636 +HOMEPAGE="http://forum.vcmi.eu/index.php"
637 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
638 +
639 +LICENSE="GPL-2"
640 +SLOT="0"
641 +KEYWORDS="~x86 ~amd64"
642 +IUSE="+debug erm +launcher"
643 +
644 +CDEPEND="
645 + media-libs/libsdl2[video]
646 + media-libs/sdl2-image
647 + media-libs/sdl2-mixer
648 + media-libs/sdl2-ttf
649 + virtual/ffmpeg
650 + sys-libs/zlib[minizip]
651 + launcher? (
652 + dev-qt/qtgui
653 + dev-qt/qtcore
654 + dev-qt/qtnetwork
655 + dev-qt/qtwidgets
656 + )
657 + dev-libs/fuzzylite
658 +"
659 +
660 +BDEPEND="
661 + >dev-libs/boost-1.48.0
662 + virtual/pkgconfig
663 +"
664 +DEPEND="
665 + ${BDEPEND}
666 + ${CDEPEND}
667 +"
668 +RDEPEND="
669 + ${CDEPEND}
670 +"
671 +PDEPEND="
672 + games-strategy/vcmi-data
673 +"
674 +
675 +pkg_pretend() {
676 + ewarn 'Looks like current this release is incompatible with modern boost and fails to compile.'
677 + ewarn 'Please, report me in case if it will build fine for you'
678 +}
679 +
680 +src_configure() {
681 + local mycmakeargs=(
682 + -DENABLE_ERM=$(usex erm)
683 + -DENABLE_LAUNCHER=$(usex launcher)
684 + -DENABLE_PCH=$(usex debug)
685 + # ^ cc1plus: warning: .../work/vcmi-0.99_build/lib/cotire/vcmi_CXX_prefix.hxx.gch: not used because `NDEBUG' is defined [-Winvalid-pch]
686 + # (cmake-utils_src_configure somewhy defines -DNDEBUG in release build. I dunno why on the earth it's author did that)
687 + -DENABLE_MONOLITHIC_INSTALL=OFF
688 + # ^ or not?
689 + )
690 + export CCACHE_SLOPPINESS="time_macros"
691 + cmake-utils_src_configure
692 + strip-cppflags -DNDEBUG
693 +}
694 +
695 +src_install() {
696 + cmake-utils_src_install
697 +}