Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-games/godot/
Date: Fri, 02 Dec 2022 03:19:03
Message-Id: 1669950843.5501f072e9f9ac12704257d8d32dd0151991882c.ionen@gentoo
1 commit: 5501f072e9f9ac12704257d8d32dd0151991882c
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 2 01:03:38 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 2 03:14:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5501f072
7
8 dev-games/godot: drop 4.0_beta5
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 dev-games/godot/Manifest | 1 -
13 dev-games/godot/godot-4.0_beta5.ebuild | 250 ---------------------------------
14 2 files changed, 251 deletions(-)
15
16 diff --git a/dev-games/godot/Manifest b/dev-games/godot/Manifest
17 index e656196c76c1..40f641914f6f 100644
18 --- a/dev-games/godot/Manifest
19 +++ b/dev-games/godot/Manifest
20 @@ -1,3 +1,2 @@
21 DIST godot-3.5.1-stable.tar.xz 24153448 BLAKE2B 9d61276a2d82ef4f4487ec1046b7fa58f2b3626640b2db25c1f98c3f8e2ff40eddcf943fd9ffaaf6814fbafbbe7ef1d3f642d77af953b87731cff570ac3a5473 SHA512 59e5ca88534f542562971efb83b76561705f9ca8761311f01b4453857e7ae046c17cadd0d5ca6f6f56e262b5031294a8b9ad970fa6ffc95e1a6a1e1bae48d55f
22 -DIST godot-4.0-beta5.tar.xz 31384400 BLAKE2B 69ef95cdf6b48b4cf2992c893efd919b109cebddc11386409642d32bb70c3ee25256c9e863f388d04458414a582426b894423bafaa27366431ba5c8fc29fb7ab SHA512 ca6d5be97a11f6313c160a34c8456521d2489233ea99c3236b5a94c03db256487a1518d936c85a1d072115a1b5a62a6a1f211c18aad9f280ac6e60db30ff323e
23 DIST godot-4.0-beta6.tar.xz 31397808 BLAKE2B bd67aa9e1447a9caf6c914545262df3f04c181a729dd62cf02c8caaf9e96592a56a9387e15ba3d0050fc57911ba31f5782e609bedd00e3da39cc199d214d7353 SHA512 921aa694380458763cda552791b2bd9976913444dd24b8be8038f37d94a666ba18f72bee2365222d7e7130acd916766833c69a810693725d525bca1c986b6055
24
25 diff --git a/dev-games/godot/godot-4.0_beta5.ebuild b/dev-games/godot/godot-4.0_beta5.ebuild
26 deleted file mode 100644
27 index 918839a123bf..000000000000
28 --- a/dev-games/godot/godot-4.0_beta5.ebuild
29 +++ /dev/null
30 @@ -1,250 +0,0 @@
31 -# Copyright 2022 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=8
35 -
36 -PYTHON_COMPAT=( python3_{8..11} )
37 -inherit bash-completion-r1 desktop python-any-r1 scons-utils toolchain-funcs xdg
38 -
39 -MY_P="${PN}-$(ver_rs 2 -)"
40 -
41 -DESCRIPTION="Multi-platform 2D and 3D game engine with a feature-rich editor"
42 -HOMEPAGE="https://godotengine.org/"
43 -SRC_URI="https://downloads.tuxfamily.org/godotengine/$(ver_rs 2 /)/${MY_P}.tar.xz"
44 -S="${WORKDIR}/${MY_P}"
45 -
46 -LICENSE="
47 - MIT
48 - Apache-2.0 BSD Boost-1.0 CC0-1.0 Unlicense ZLIB
49 - gui? ( CC-BY-4.0 ) tools? ( OFL-1.1 )"
50 -SLOT="4"
51 -KEYWORDS="~amd64"
52 -# Enable roughly same as upstream by default so it works as expected,
53 -# except raycast (tools-only heavy dependency), and deprecated.
54 -IUSE="
55 - +dbus debug deprecated +fontconfig +gui pulseaudio raycast
56 - +runner speech test +theora +tools +udev +upnp +webp"
57 -# disable tests until out of beta, tests themselves are new and can be volatile
58 -RESTRICT="test"
59 -
60 -# dlopen: alsa-lib,dbus,fontconfig,pulseaudio,speech-dispatcher,udev
61 -RDEPEND="
62 - app-arch/zstd:=
63 - dev-games/recastnavigation:=
64 - dev-libs/icu:=
65 - dev-libs/libpcre2:=[pcre32]
66 - media-libs/freetype[brotli,harfbuzz]
67 - media-libs/harfbuzz:=[icu]
68 - media-libs/libogg
69 - media-libs/libpng:=
70 - media-libs/libvorbis
71 - <net-libs/mbedtls-3:=
72 - net-libs/wslay
73 - sys-libs/zlib:=
74 - fontconfig? ( media-libs/fontconfig )
75 - gui? (
76 - media-libs/alsa-lib
77 - media-libs/libglvnd[X]
78 - media-libs/vulkan-loader[X]
79 - x11-libs/libX11
80 - x11-libs/libXcursor
81 - x11-libs/libXext
82 - x11-libs/libXi
83 - x11-libs/libXinerama
84 - x11-libs/libXrandr
85 - x11-libs/libXrender
86 - dbus? ( sys-apps/dbus )
87 - pulseaudio? ( media-libs/libpulse )
88 - tools? ( raycast? ( media-libs/embree:3 ) )
89 - udev? ( virtual/udev )
90 - )
91 - speech? ( app-accessibility/speech-dispatcher )
92 - theora? ( media-libs/libtheora )
93 - tools? ( app-misc/ca-certificates )
94 - upnp? ( net-libs/miniupnpc:= )
95 - webp? ( media-libs/libwebp:= )"
96 -DEPEND="
97 - ${RDEPEND}
98 - gui? ( x11-base/xorg-proto )
99 - tools? ( test? ( dev-cpp/doctest ) )"
100 -BDEPEND="virtual/pkgconfig"
101 -
102 -PATCHES=(
103 - "${FILESDIR}"/${PN}-4.0-musl.patch
104 - "${FILESDIR}"/${PN}-4.0_alpha14-scons.patch
105 - "${FILESDIR}"/${PN}-4.0_beta3-headless-header.patch
106 -)
107 -
108 -src_prepare() {
109 - default
110 -
111 - sed -i "1,5s/ godot/&${SLOT}/i" misc/dist/linux/godot.6 || die
112 - sed -i "/id/s/Godot/&${SLOT}/" misc/dist/linux/org.godotengine.Godot.appdata.xml || die
113 - sed -e "s/=godot/&${SLOT}/" -e "/^Name=/s/$/ ${SLOT}/" \
114 - -i misc/dist/linux/org.godotengine.Godot.desktop || die
115 -
116 - sed -i "s|pkg-config |$(tc-getPKG_CONFIG) |" platform/linuxbsd/detect.py || die
117 -
118 - # use of builtin_ switches can be messy (see below), delete to be sure
119 - local unbundle=(
120 - doctest embree freetype graphite harfbuzz icu4c libogg
121 - libpng libtheora libvorbis libwebp mbedtls miniupnpc
122 - pcre2 recastnavigation volk wslay zlib zstd
123 - # certs: unused by generated header, but scons panics if not found
124 - )
125 - rm -r "${unbundle[@]/#/thirdparty/}" || die
126 -
127 - # do symlinks to avoid too much patching with hardcoded header paths
128 - mkdir thirdparty/lib{vorbis,ogg} || die
129 - ln -s "${ESYSROOT}"/usr/include thirdparty/zstd || die
130 - ln -s "${ESYSROOT}"/usr/include/doctest thirdparty/ || die
131 - ln -s "${ESYSROOT}"/usr/include/ogg thirdparty/libogg/ || die
132 - ln -s "${ESYSROOT}"/usr/include/vorbis thirdparty/libvorbis/ || die
133 -}
134 -
135 -src_compile() {
136 - local -x GODOT_VERSION_STATUS=$(ver_cut 3-4) # for dev versions only
137 - local -x BUILD_NAME=gentoo # replaces "custom_build" in version string
138 -
139 - local esconsargs=(
140 - AR="$(tc-getAR)" CC="$(tc-getCC)" CXX="$(tc-getCXX)"
141 -
142 - progress=no
143 - verbose=yes
144 -
145 - deprecated=$(usex deprecated)
146 - #execinfo=$(usex !elibc_glibc) # libexecinfo is not packaged
147 - fontconfig=$(usex fontconfig)
148 - minizip=yes # uses a modified bundled copy
149 - opengl3=$(usex gui)
150 - pulseaudio=$(usex gui $(usex pulseaudio))
151 - speechd=$(usex speech)
152 - udev=$(usex gui $(usex udev))
153 - use_dbus=$(usex gui $(usex dbus))
154 - use_volk=no # unnecessary when linking directly to libvulkan
155 - vulkan=$(usex gui) # hard-required and favored by upstream over gles3
156 - x11=$(usex gui)
157 -
158 - system_certs_path="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt
159 -
160 - # platform/*/detect.py uses builtin_* switches to check if need
161 - # to link with system libraries, but ignores whether the dep is
162 - # actually used, so "enable" deleted builtins on disabled deps
163 - builtin_certs=no
164 - builtin_embree=$(usex !gui yes $(usex !tools yes $(usex !raycast)))
165 - builtin_enet=yes # bundled copy is patched for IPv6+DTLS support
166 - builtin_freetype=no
167 - builtin_glslang=yes #879111
168 - builtin_graphite=no
169 - builtin_harfbuzz=no
170 - builtin_icu=no
171 - builtin_libogg=no
172 - builtin_libpng=no
173 - builtin_libtheora=$(usex !theora)
174 - builtin_libvorbis=no
175 - builtin_libwebp=$(usex !webp)
176 - builtin_mbedtls=no
177 - builtin_miniupnpc=$(usex !upnp)
178 - builtin_msdfgen=yes # not wired for unbundling nor packaged
179 - builtin_pcre2=no
180 - builtin_recast=no
181 - builtin_rvo2=yes # bundled copy has godot-specific changes
182 - builtin_squish=yes # ^ likewise, may not be safe to unbundle
183 - builtin_wslay=no
184 - builtin_xatlas=yes # not wired for unbundling nor packaged
185 - builtin_zlib=no
186 - builtin_zstd=no
187 - # also bundled but lacking a builtin_* switch:
188 - # amd-fsr, basis_universal, cvtt, etcpak, fonts, glad,
189 - # jpeg-compressor, meshoptimizer, minimp3, minizip (patched to
190 - # seek in archives), noise, oidn, openxr, spirv-reflect, thorvg,
191 - # tinyexr, vhacd, vulkan, and the misc directory.
192 -
193 - # modules with optional dependencies, "possible" to disable more but
194 - # gets messy and breaks all sorts of features (expected enabled)
195 - module_gridmap_enabled=$(usex deprecated) # fails without deprecated
196 - module_mono_enabled=no # unhandled
197 - # note raycast is only enabled on amd64+arm64, see raycast/config.py
198 - module_raycast_enabled=$(usex gui $(usex tools $(usex raycast)))
199 - module_theora_enabled=$(usex theora)
200 - module_upnp_enabled=$(usex upnp)
201 - module_webp_enabled=$(usex webp)
202 -
203 - # let *FLAGS handle these, e.g. can pass -flto as-is
204 - debug_symbols=no
205 - lto=none
206 - optimize=custom
207 - use_static_cpp=no
208 - )
209 -
210 - if use runner && use tools; then
211 - # build alternate faster + ~60% smaller binary for running
212 - # games or servers without game development debug paths
213 - escons extra_suffix=runner target=template_release "${esconsargs[@]}"
214 - fi
215 -
216 - esconsargs+=(
217 - target=$(usex tools editor template_$(usex debug{,} release))
218 - dev_build=$(usex debug)
219 -
220 - # harmless but note this bakes in --test in the final binary
221 - tests=$(usex tools $(usex test))
222 - )
223 -
224 - escons extra_suffix=main "${esconsargs[@]}"
225 -}
226 -
227 -src_test() {
228 - xdg_environment_reset
229 - bin/godot*.main --headless --test || die
230 -}
231 -
232 -src_install() {
233 - local s=godot${SLOT}
234 -
235 - newbin bin/godot*.main ${s}
236 - if use runner && use tools; then
237 - newbin bin/godot*.runner ${s}-runner
238 - else
239 - # always available, revdeps shouldn't depend on [runner]
240 - dosym ${s} /usr/bin/${s}-runner
241 - fi
242 -
243 - newman misc/dist/linux/godot.6 ${s}.6
244 - dodoc AUTHORS.md CHANGELOG.md DONORS.md README.md
245 -
246 - if use gui; then
247 - newicon icon.svg ${s}.svg
248 - newmenu misc/dist/linux/org.godotengine.Godot.desktop \
249 - org.godotengine.${s^}.desktop
250 -
251 - insinto /usr/share/metainfo
252 - newins misc/dist/linux/org.godotengine.Godot.appdata.xml \
253 - org.godotengine.${s^}.appdata.xml
254 -
255 - insinto /usr/share/mime/application
256 - newins misc/dist/linux/org.godotengine.Godot.xml \
257 - org.godotengine.${s^}.xml
258 - fi
259 -
260 - newbashcomp misc/dist/shell/godot.bash-completion ${s}
261 - bashcomp_alias ${s}{,-runner}
262 -
263 - insinto /usr/share/fish/vendor_completions.d
264 - newins misc/dist/shell/godot.fish ${s}.fish
265 - dosym ${s}.fish /usr/share/fish/vendor_completions.d/${s}-runner.fish
266 -
267 - insinto /usr/share/zsh/site-functions
268 - newins misc/dist/shell/_godot.zsh-completion _${s}
269 - dosym _${s} /usr/share/zsh/site-functions/_${s}-runner
270 -}
271 -
272 -pkg_postinst() {
273 - xdg_pkg_postinst
274 -
275 - if [[ ! ${REPLACING_VERSIONS} ]] && has_version ${CATEGORY}/${PN}:3; then
276 - elog
277 - elog "Remember to make backups before opening any Godot <=3.x projects in Godot 4."
278 - elog "Automated migration is only partial, and it would be difficult to revert."
279 - fi
280 -}