Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/doomsday/
Date: Tue, 07 Jun 2022 23:07:26
Message-Id: 1654643195.a1ef6e8ff1c92a14f1b2b6c95437332360c12691.chewi@gentoo
1 commit: a1ef6e8ff1c92a14f1b2b6c95437332360c12691
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 7 23:04:48 2022 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 7 23:06:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1ef6e8f
7
8 games-fps/doomsday: Bump to 2.3.1, EAPI 8, fix missing deps
9
10 Closes: https://bugs.gentoo.org/830496
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 games-fps/doomsday/Manifest | 1 +
14 games-fps/doomsday/doomsday-2.3.1.ebuild | 86 ++++++++++++++++++++++++++++++++
15 games-fps/doomsday/metadata.xml | 1 +
16 3 files changed, 88 insertions(+)
17
18 diff --git a/games-fps/doomsday/Manifest b/games-fps/doomsday/Manifest
19 index e6ef0b454e32..dd76ef921b47 100644
20 --- a/games-fps/doomsday/Manifest
21 +++ b/games-fps/doomsday/Manifest
22 @@ -1,2 +1,3 @@
23 DIST doomsday-2.1.1.tar.gz 47526008 BLAKE2B bf941048d160058273df09d67b09e140c10d141cd73ff56d0f3162045696d81533aba9a8c9ff39fc29530248ee8b2f6dd2b3da76a929fb6263c311e65bcbdd82 SHA512 9df0afa0465ef3c3bb30cccf8ca51596e8e6e5584775a695c9c3278f15bcf7e9f7aaeaa0917f0a1de9fbb1174f2ae83a1ee85fba63bef6e49be957836f1107a3
24 DIST doomsday-2.3.0.tar.gz 47838189 BLAKE2B 807204cd5e716f57291e383b6a2f0570c01f3e4a92d575f5e585cf1e793785031edd845399dd6896766b1c77425b2fefd6f5f5913adc5fcb7bb1415b2f906c98 SHA512 46d92743e981804eca3ed6e486c4a748114621053d6269a0c0bc5fa84a591f6556ad3226ab6fb3cbc8642ac2f128885261c0bdc78bb5f2012a25f2cab6413461
25 +DIST doomsday-2.3.1.tar.gz 47840812 BLAKE2B 5a45c9e0f781f0cc67367c703504568ee7f7cd0a96c57266ccf6bfbdf0d1e4ef838b2605b7dcecafe91f18d29c40ddbf9f6b5b0c049e94a95ce9fbbba4bddd1a SHA512 ca952fe0191529fe1192b16331d6c17d14e106f2366f5517177e51fdb50ea32baa2bf70d22bde5946101fac2926333fce6a8a317bc662df9f7662c5e023a669c
26
27 diff --git a/games-fps/doomsday/doomsday-2.3.1.ebuild b/games-fps/doomsday/doomsday-2.3.1.ebuild
28 new file mode 100644
29 index 000000000000..aeac492a02a3
30 --- /dev/null
31 +++ b/games-fps/doomsday/doomsday-2.3.1.ebuild
32 @@ -0,0 +1,86 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +inherit cmake python-any-r1 qmake-utils readme.gentoo-r1 xdg
40 +
41 +DESCRIPTION="A modern gaming engine for Doom, Heretic, and Hexen"
42 +HOMEPAGE="https://www.dengine.net"
43 +SRC_URI="https://downloads.sourceforge.net/project/deng/Doomsday%20Engine/${PV}/${P}.tar.gz"
44 +
45 +LICENSE="GPL-3+ LGPL-3+"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~x86"
48 +IUSE="demo +display-mode freedoom fluidsynth openal tools"
49 +
50 +RDEPEND="
51 + dev-qt/qtcore:5=
52 + dev-qt/qtgui:5=[-gles2-only]
53 + dev-qt/qtnetwork:5=
54 + dev-qt/qtopengl:5=
55 + dev-qt/qtwidgets:5=
56 + dev-qt/qtx11extras:5=
57 + media-libs/assimp:=
58 + net-misc/curl
59 + sys-libs/zlib
60 + x11-libs/libX11
61 + display-mode? (
62 + x11-libs/libXrandr
63 + x11-libs/libXxf86vm
64 + )
65 + fluidsynth? ( media-sound/fluidsynth:= )
66 + openal? ( media-libs/openal )
67 + tools? ( sys-libs/ncurses:0= )
68 +"
69 +DEPEND="${RDEPEND}"
70 +BDEPEND="${PYTHON_DEPS}
71 + virtual/pkgconfig
72 +"
73 +PDEPEND="
74 + demo? ( games-fps/doom-data )
75 + freedoom? ( games-fps/freedoom )
76 +"
77 +
78 +S="${WORKDIR}/${P}/${PN}"
79 +
80 +DOC_CONTENTS="You need to copy Doom, Doom 2, Chex Quest, Heretic, Hexen, HexenDD, or Doom64 wads to a folder of your choice and then tell the game engine where that folder is. This is different to older versions, which had separate launchers for each game and required the files to be in a specific place."
81 +
82 +src_prepare() {
83 + cmake_src_prepare
84 +
85 + # Fix QA warning for "installing to one or more unexpected paths"
86 + sed -e "10s:/texc:/${PF}:" -i tools/texc/CMakeLists.txt || die
87 +}
88 +
89 +src_configure() {
90 + local mycmakeargs=(
91 + -DDENG_ASSIMP_EMBEDDED=OFF
92 + -DDENG_ENABLE_DISPLAYMODE=$(usex display-mode)
93 + -DDENG_ENABLE_TOOLS=$(usex tools)
94 + -DPYTHON_EXECUTABLE="${PYTHON}"
95 + -DQMAKE=$(qt5_get_bindir)/qmake
96 + )
97 + cmake_src_configure
98 +}
99 +
100 +src_install() {
101 + cmake_src_install
102 +
103 + if use tools; then
104 + mv -v "${ED}"/usr/bin/md2tool{,.${PN}} || die
105 + fi
106 +
107 + readme.gentoo_create_doc
108 +}
109 +
110 +pkg_postinst() {
111 + xdg_pkg_postinst
112 + readme.gentoo_print_elog
113 +
114 + if use tools; then
115 + einfo "In order to prevent a file collision with games-fps/eduke32[tools],"
116 + einfo "the utility md2tool has been renamed to md2tool.doomsday."
117 + fi
118 +}
119
120 diff --git a/games-fps/doomsday/metadata.xml b/games-fps/doomsday/metadata.xml
121 index 52b4b361d50c..40cf9e97525a 100644
122 --- a/games-fps/doomsday/metadata.xml
123 +++ b/games-fps/doomsday/metadata.xml
124 @@ -7,6 +7,7 @@
125 </maintainer>
126 <use>
127 <flag name="demo">Install launcher dor doom1.wad from <pkg>games-fps/doom-data</pkg></flag>
128 + <flag name="display-mode">Include the ability to set the display mode</flag>
129 <flag name="fluidsynth">Build the FluidSynth sound driver</flag>
130 <flag name="freedoom">Install launcher for doom1.wad from <pkg>games-fps/freedoom</pkg></flag>
131 <flag name="tools">Build additional tools such as doomsday-shell, md2tool and texc</flag>