1 |
commit: 182ccae2bf58af9e51cd2a00cede3a6a33f96c8b |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 29 16:31:04 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 29 20:28:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=182ccae2 |
7 |
|
8 |
dev-games/godot: drop 4.0_beta9 |
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_beta9.ebuild | 256 --------------------------------- |
14 |
2 files changed, 257 deletions(-) |
15 |
|
16 |
diff --git a/dev-games/godot/Manifest b/dev-games/godot/Manifest |
17 |
index 6994ec303198..5d533eb9a1dd 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-beta10.tar.xz 31668884 BLAKE2B 25fead426d6f5d1e572363a2f4b895454d0e35434d570bb894cbb5b20db9c6db076942e126730f210661a2f8a75e1e780a02226ee732fdb1f5c8f0043e115a81 SHA512 8806471abc699beca9cef87b8e386c6a044083e9a9dc6ff3c0a65655222c874eeb1fb2cfbd6c479ead4b4106beed530f7205a4873a3da16b4b4fa5f95496168b |
23 |
-DIST godot-4.0-beta9.tar.xz 31655148 BLAKE2B 296fb2e8d21bc4357d5262c3c8b11587cdb9d8f181b25b93600ca341c5d9bff1b47d500f676d7b8fdbf3ea4a53afa9ef2882d94380d7209813dbe281bef452bb SHA512 13eec9129644746bd7e81e1e0fe164d6d91a4d0618d40af335e2deb79fc15b794f1366c4b54cc27de5b088dc49f56417bd4e018a1bad29f76b71c19ed22c0603 |
24 |
|
25 |
diff --git a/dev-games/godot/godot-4.0_beta9.ebuild b/dev-games/godot/godot-4.0_beta9.ebuild |
26 |
deleted file mode 100644 |
27 |
index ba144b6c7e6c..000000000000 |
28 |
--- a/dev-games/godot/godot-4.0_beta9.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,256 +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 |
-# libX11 range is temporary while this is being looked into: |
61 |
-# - https://github.com/godotengine/godot/issues/69352 |
62 |
-# - https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/170 |
63 |
-# dlopen: alsa-lib,dbus,fontconfig,libX*,pulseaudio,speech-dispatcher,udev |
64 |
-RDEPEND=" |
65 |
- app-arch/zstd:= |
66 |
- dev-games/recastnavigation:= |
67 |
- dev-libs/icu:= |
68 |
- dev-libs/libpcre2:=[pcre32] |
69 |
- media-libs/freetype[brotli,harfbuzz] |
70 |
- media-libs/harfbuzz:=[icu] |
71 |
- media-libs/libogg |
72 |
- media-libs/libpng:= |
73 |
- media-libs/libvorbis |
74 |
- <net-libs/mbedtls-3:= |
75 |
- net-libs/wslay |
76 |
- sys-libs/zlib:= |
77 |
- fontconfig? ( media-libs/fontconfig ) |
78 |
- gui? ( |
79 |
- media-libs/alsa-lib |
80 |
- media-libs/libglvnd[X] |
81 |
- media-libs/vulkan-loader[X] |
82 |
- || ( |
83 |
- >x11-libs/libX11-1.8.3 |
84 |
- <x11-libs/libX11-1.8.2-r1 |
85 |
- ) |
86 |
- x11-libs/libXcursor |
87 |
- x11-libs/libXext |
88 |
- x11-libs/libXi |
89 |
- x11-libs/libXinerama |
90 |
- x11-libs/libXrandr |
91 |
- x11-libs/libXrender |
92 |
- dbus? ( sys-apps/dbus ) |
93 |
- pulseaudio? ( media-libs/libpulse ) |
94 |
- tools? ( raycast? ( media-libs/embree:3 ) ) |
95 |
- udev? ( virtual/udev ) |
96 |
- ) |
97 |
- speech? ( app-accessibility/speech-dispatcher ) |
98 |
- theora? ( media-libs/libtheora ) |
99 |
- tools? ( app-misc/ca-certificates ) |
100 |
- upnp? ( net-libs/miniupnpc:= ) |
101 |
- webp? ( media-libs/libwebp:= )" |
102 |
-DEPEND=" |
103 |
- ${RDEPEND} |
104 |
- gui? ( x11-base/xorg-proto ) |
105 |
- tools? ( test? ( dev-cpp/doctest ) )" |
106 |
-BDEPEND="virtual/pkgconfig" |
107 |
- |
108 |
-PATCHES=( |
109 |
- "${FILESDIR}"/${PN}-4.0-musl.patch |
110 |
- "${FILESDIR}"/${PN}-4.0_beta3-headless-header.patch |
111 |
- "${FILESDIR}"/${PN}-4.0_beta8-scons.patch |
112 |
-) |
113 |
- |
114 |
-src_prepare() { |
115 |
- default |
116 |
- |
117 |
- sed -i "1,5s/ godot/&${SLOT}/i" misc/dist/linux/godot.6 || die |
118 |
- sed -i "/id/s/Godot/&${SLOT}/" misc/dist/linux/org.godotengine.Godot.appdata.xml || die |
119 |
- sed -e "s/=godot/&${SLOT}/" -e "/^Name=/s/$/ ${SLOT}/" \ |
120 |
- -i misc/dist/linux/org.godotengine.Godot.desktop || die |
121 |
- |
122 |
- sed -i "s|pkg-config |$(tc-getPKG_CONFIG) |" platform/linuxbsd/detect.py || die |
123 |
- |
124 |
- # use of builtin_ switches can be messy (see below), delete to be sure |
125 |
- local unbundle=( |
126 |
- doctest embree freetype graphite harfbuzz icu4c libogg |
127 |
- libpng libtheora libvorbis libwebp mbedtls miniupnpc |
128 |
- pcre2 recastnavigation volk wslay zlib zstd |
129 |
- # certs: unused by generated header, but scons panics if not found |
130 |
- ) |
131 |
- rm -r "${unbundle[@]/#/thirdparty/}" || die |
132 |
- |
133 |
- # do symlinks to avoid too much patching with hardcoded header paths |
134 |
- mkdir thirdparty/lib{vorbis,ogg} || die |
135 |
- ln -s "${ESYSROOT}"/usr/include thirdparty/zstd || die |
136 |
- ln -s "${ESYSROOT}"/usr/include/doctest thirdparty/ || die |
137 |
- ln -s "${ESYSROOT}"/usr/include/ogg thirdparty/libogg/ || die |
138 |
- ln -s "${ESYSROOT}"/usr/include/vorbis thirdparty/libvorbis/ || die |
139 |
-} |
140 |
- |
141 |
-src_compile() { |
142 |
- local -x GODOT_VERSION_STATUS=$(ver_cut 3-4) # for dev versions only |
143 |
- local -x BUILD_NAME=gentoo # replaces "custom_build" in version string |
144 |
- |
145 |
- local esconsargs=( |
146 |
- AR="$(tc-getAR)" CC="$(tc-getCC)" CXX="$(tc-getCXX)" |
147 |
- |
148 |
- progress=no |
149 |
- verbose=yes |
150 |
- |
151 |
- deprecated=$(usex deprecated) |
152 |
- #execinfo=$(usex !elibc_glibc) # libexecinfo is not packaged |
153 |
- fontconfig=$(usex fontconfig) |
154 |
- minizip=yes # uses a modified bundled copy |
155 |
- opengl3=$(usex gui) |
156 |
- pulseaudio=$(usex gui $(usex pulseaudio)) |
157 |
- speechd=$(usex speech) |
158 |
- udev=$(usex gui $(usex udev)) |
159 |
- use_dbus=$(usex gui $(usex dbus)) |
160 |
- use_volk=no # unnecessary when linking directly to libvulkan |
161 |
- vulkan=$(usex gui) # hard-required and favored by upstream over gles3 |
162 |
- x11=$(usex gui) |
163 |
- |
164 |
- system_certs_path="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt |
165 |
- |
166 |
- # platform/*/detect.py uses builtin_* switches to check if need |
167 |
- # to link with system libraries, but ignores whether the dep is |
168 |
- # actually used, so "enable" deleted builtins on disabled deps |
169 |
- builtin_certs=no |
170 |
- builtin_embree=$(usex !gui yes $(usex !tools yes $(usex !raycast))) |
171 |
- builtin_enet=yes # bundled copy is patched for IPv6+DTLS support |
172 |
- builtin_freetype=no |
173 |
- builtin_glslang=yes #879111 |
174 |
- builtin_graphite=no |
175 |
- builtin_harfbuzz=no |
176 |
- builtin_icu=no |
177 |
- builtin_libogg=no |
178 |
- builtin_libpng=no |
179 |
- builtin_libtheora=$(usex !theora) |
180 |
- builtin_libvorbis=no |
181 |
- builtin_libwebp=$(usex !webp) |
182 |
- builtin_mbedtls=no |
183 |
- builtin_miniupnpc=$(usex !upnp) |
184 |
- builtin_msdfgen=yes # not wired for unbundling nor packaged |
185 |
- builtin_pcre2=no |
186 |
- builtin_recast=no |
187 |
- builtin_rvo2=yes # bundled copy has godot-specific changes |
188 |
- builtin_squish=yes # ^ likewise, may not be safe to unbundle |
189 |
- builtin_wslay=no |
190 |
- builtin_xatlas=yes # not wired for unbundling nor packaged |
191 |
- builtin_zlib=no |
192 |
- builtin_zstd=no |
193 |
- # also bundled but lacking a builtin_* switch: |
194 |
- # amd-fsr, basis_universal, cvtt, etcpak, fonts, glad, |
195 |
- # jpeg-compressor, meshoptimizer, minimp3, minizip (patched to |
196 |
- # seek in archives), noise, oidn, openxr, spirv-reflect, thorvg, |
197 |
- # tinyexr, vhacd, vulkan, and the misc directory. |
198 |
- |
199 |
- # modules with optional dependencies, "possible" to disable more but |
200 |
- # gets messy and breaks all sorts of features (expected enabled) |
201 |
- module_gridmap_enabled=$(usex deprecated) # fails without deprecated |
202 |
- module_mono_enabled=no # unhandled |
203 |
- # note raycast is only enabled on amd64+arm64, see raycast/config.py |
204 |
- module_raycast_enabled=$(usex gui $(usex tools $(usex raycast))) |
205 |
- module_theora_enabled=$(usex theora) |
206 |
- module_upnp_enabled=$(usex upnp) |
207 |
- module_webp_enabled=$(usex webp) |
208 |
- |
209 |
- # let *FLAGS handle these, e.g. can pass -flto as-is |
210 |
- debug_symbols=no |
211 |
- lto=none |
212 |
- optimize=custom |
213 |
- use_static_cpp=no |
214 |
- ) |
215 |
- |
216 |
- if use runner && use tools; then |
217 |
- # build alternate faster + ~60% smaller binary for running |
218 |
- # games or servers without game development debug paths |
219 |
- escons extra_suffix=runner target=template_release "${esconsargs[@]}" |
220 |
- fi |
221 |
- |
222 |
- esconsargs+=( |
223 |
- target=$(usex tools editor template_$(usex debug{,} release)) |
224 |
- dev_build=$(usex debug) |
225 |
- |
226 |
- # harmless but note this bakes in --test in the final binary |
227 |
- tests=$(usex tools $(usex test)) |
228 |
- ) |
229 |
- |
230 |
- escons extra_suffix=main "${esconsargs[@]}" |
231 |
-} |
232 |
- |
233 |
-src_test() { |
234 |
- xdg_environment_reset |
235 |
- bin/godot*.main --headless --test || die |
236 |
-} |
237 |
- |
238 |
-src_install() { |
239 |
- local s=godot${SLOT} |
240 |
- |
241 |
- newbin bin/godot*.main ${s} |
242 |
- if use runner && use tools; then |
243 |
- newbin bin/godot*.runner ${s}-runner |
244 |
- else |
245 |
- # always available, revdeps shouldn't depend on [runner] |
246 |
- dosym ${s} /usr/bin/${s}-runner |
247 |
- fi |
248 |
- |
249 |
- newman misc/dist/linux/godot.6 ${s}.6 |
250 |
- dodoc AUTHORS.md CHANGELOG.md DONORS.md README.md |
251 |
- |
252 |
- if use gui; then |
253 |
- newicon icon.svg ${s}.svg |
254 |
- newmenu misc/dist/linux/org.godotengine.Godot.desktop \ |
255 |
- org.godotengine.${s^}.desktop |
256 |
- |
257 |
- insinto /usr/share/metainfo |
258 |
- newins misc/dist/linux/org.godotengine.Godot.appdata.xml \ |
259 |
- org.godotengine.${s^}.appdata.xml |
260 |
- |
261 |
- insinto /usr/share/mime/application |
262 |
- newins misc/dist/linux/org.godotengine.Godot.xml \ |
263 |
- org.godotengine.${s^}.xml |
264 |
- fi |
265 |
- |
266 |
- newbashcomp misc/dist/shell/godot.bash-completion ${s} |
267 |
- bashcomp_alias ${s}{,-runner} |
268 |
- |
269 |
- insinto /usr/share/fish/vendor_completions.d |
270 |
- newins misc/dist/shell/godot.fish ${s}.fish |
271 |
- dosym ${s}.fish /usr/share/fish/vendor_completions.d/${s}-runner.fish |
272 |
- |
273 |
- insinto /usr/share/zsh/site-functions |
274 |
- newins misc/dist/shell/_godot.zsh-completion _${s} |
275 |
- dosym _${s} /usr/share/zsh/site-functions/_${s}-runner |
276 |
-} |
277 |
- |
278 |
-pkg_postinst() { |
279 |
- xdg_pkg_postinst |
280 |
- |
281 |
- if [[ ! ${REPLACING_VERSIONS} ]] && has_version ${CATEGORY}/${PN}:3; then |
282 |
- elog |
283 |
- elog "Remember to make backups before opening any Godot <=3.x projects in Godot 4." |
284 |
- elog "Automated migration is only partial, and it would be difficult to revert." |
285 |
- fi |
286 |
-} |