Gentoo Archives: gentoo-commits

From: Albert Diserholt <albert@×××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/Drauthius:master commit in: dev-games/godot/
Date: Sat, 20 Apr 2019 23:00:05
Message-Id: 1555774507.db040392c55c6ab04313a8ae82b8a3717e51d4c6.albert@gentoo
1 commit: db040392c55c6ab04313a8ae82b8a3717e51d4c6
2 Author: Albert Diserholt <albert <AT> diserholt <DOT> com>
3 AuthorDate: Sat Apr 20 15:33:24 2019 +0000
4 Commit: Albert Diserholt <albert <AT> diserholt <DOT> com>
5 CommitDate: Sat Apr 20 15:35:07 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/user/Drauthius.git/commit/?id=db040392
7
8 Added godot-3.1
9
10 Doesn't respect all builtins, but that's a mystery for another time.
11
12 Signed-off-by: Albert Diserholt <albert <AT> diserholt.com>
13
14 dev-games/godot/Manifest | 2 +
15 dev-games/godot/godot-3.1.ebuild | 126 +++++++++++++++++++++++++++++++++++++++
16 2 files changed, 128 insertions(+)
17
18 diff --git a/dev-games/godot/Manifest b/dev-games/godot/Manifest
19 new file mode 100644
20 index 0000000..77cb6cb
21 --- /dev/null
22 +++ b/dev-games/godot/Manifest
23 @@ -0,0 +1,2 @@
24 +DIST 3.1-stable.zip 25495857 BLAKE2B 321323b21b9d845939b94e60d9cfc7894cbbb6b09ba8d8d8fbaa1440441dd14fa5d2ba8fb67738f965fc4f64d2dd6c11802cb1e49cb6dced6b514983cb070302 SHA512 df9c2a3d41095403321a3afba0c4943253723bbc602d4d5c238e31a25ce7f3660f066d1051e8c725f567d08f5a0a4f28c738d82aacbfc025e60f1a188c5692fe
25 +EBUILD godot-3.1.ebuild 3282 BLAKE2B ec32b7f3a6e5792d05070f815e170869703eab085cb316b4de58e476b3bca9ad0943fdbddbd8c3aaedb3d7cffb76038f794512f71c58315f46700c391936817d SHA512 dce4f255e5c1677bfec02c2226a9045d0a8c437bec47c6c518edc0f87d1f0a06695fc5f7abafd2be00ee925bcd61949903c6b84d973321cb782a190ca522e52b
26
27 diff --git a/dev-games/godot/godot-3.1.ebuild b/dev-games/godot/godot-3.1.ebuild
28 new file mode 100644
29 index 0000000..0eab0ba
30 --- /dev/null
31 +++ b/dev-games/godot/godot-3.1.ebuild
32 @@ -0,0 +1,126 @@
33 +# Copyright 1999-2019 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python2_7 )
38 +
39 +inherit eutils python-any-r1 scons-utils
40 +
41 +DESCRIPTION="Multi-platform 2D and 3D game engine"
42 +HOMEPAGE="http://godotengine.org"
43 +LICENSE="MIT"
44 +SLOT="0"
45 +
46 +SRC_URI="https://github.com/godotengine/${PN}/archive/${PV}-stable.zip"
47 +S="${WORKDIR}/${P}-stable"
48 +KEYWORDS="~amd64 ~x86"
49 +
50 +IUSE="+enet +freetype +llvm pulseaudio theora +udev +vorbis +webp +websockets +mbedtls +opus"
51 +
52 +DEPEND="
53 + >=app-arch/bzip2-1.0.6-r6
54 + >=app-arch/lz4-0_p120
55 + >=app-arch/xz-utils-5.0.8
56 + >=dev-libs/json-c-0.11-r1
57 + dev-libs/libpcre2[pcre32]
58 + >=media-libs/alsa-lib-1.0.28
59 + >=media-libs/flac-1.3.1-r1
60 + >=media-libs/libogg-1.3.1
61 + >=media-libs/libsndfile-1.0.25-r1
62 + media-libs/libvpx
63 + >=media-libs/mesa-10.2.8[gles2]
64 + webp? ( media-libs/libwebp )
65 + opus? ( media-libs/opus )
66 + enet? ( net-libs/enet )
67 + >=net-libs/libasyncns-0.8-r3
68 + websockets? ( net-libs/libwebsockets )
69 + mbedtls? ( net-libs/mbedtls )
70 + net-libs/miniupnpc
71 + >=sys-apps/attr-2.4.47-r1
72 + >=sys-apps/tcp-wrappers-7.6.22-r1
73 + >=sys-apps/util-linux-2.25.2-r2
74 + >=sys-devel/gcc-4.6.4:*[cxx]
75 + >=sys-libs/gdbm-1.11
76 + >=sys-libs/glibc-2.20-r2
77 + >=sys-libs/libcap-2.22-r2
78 + >=sys-libs/zlib-1.2.8-r1
79 + >=x11-libs/libX11-1.6.2
80 + >=x11-libs/libXcursor-1.1.14
81 + >=x11-libs/libXinerama-1.1.3
82 + freetype? ( >=media-libs/freetype-2.5.3-r1:2 )
83 + llvm? ( >=sys-devel/llvm-3.6.0 )
84 + >=media-libs/libpng-1.6.16:0=
85 + pulseaudio? ( >=media-sound/pulseaudio-5.0-r7 )
86 + theora? ( media-libs/libtheora )
87 + udev? ( virtual/udev )
88 + virtual/glu
89 + vorbis? ( >=media-libs/libvorbis-1.3.4 )"
90 +
91 +RDEPEND="${DEPEND}"
92 +
93 +src_configure() {
94 + MYSCONS=(
95 + CC="$(tc-getCC)"
96 + builtin_enet=$(usex enet)
97 + builtin_freetype=no
98 + builtin_libogg=no
99 + builtin_libpng=no
100 + builtin_libpng=no
101 + builtin_libtheora=$(usex theora)
102 + builtin_libvorbis=$(usex vorbis)
103 + builtin_libvpx=no
104 + builtin_libwebp=$(usex webp)
105 + builtin_libwebsockets=$(usex websockets)
106 + builtin_mbedtls=$(usex mbedtls)
107 + builtin_miniupnpc=no
108 + builtin_opus=$(usex opus)
109 + builtin_pcre2=no
110 + builtin_zlib=no
111 + #builtin_zstd=no # Compilation error due to undeclared identifiers
112 + module_enet_enabled=$(usex enet)
113 + module_freetype_enabled=$(usex freetype)
114 + module_mbedtls_enabled=$(usex mbedtls)
115 + module_opus_enabled=$(usex opus)
116 + module_theora_enabled=$(usex theora)
117 + module_vorbis_enabled=$(usex vorbis)
118 + module_webp_enabled=$(usex webp)
119 + module_websocket_enabled=$(usex websockets)
120 + platform=x11
121 + pulseaudio=$(usex pulseaudio)
122 + tools=yes
123 + udev=$(usex udev)
124 + use_llvm=$(usex llvm)
125 + )
126 +}
127 +
128 +src_compile() {
129 + escons "${MYSCONS[@]}"
130 +}
131 +
132 +src_install() {
133 + newicon icon.svg ${PN}.svg
134 + dobin bin/godot.*
135 + if [[ "${ARCH}" == "amd64" ]]; then
136 + if use llvm; then
137 + make_desktop_entry godot.x11.tools.64.llvm Godot
138 + with_desktop_entry=1
139 + else
140 + make_desktop_entry godot.x11.tools.64 Godot
141 + with_desktop_entry=1
142 + fi
143 + fi
144 +
145 + if [[ "${ARCH}" == "x86" ]]; then
146 + if use llvm; then
147 + make_desktop_entry godot.x11.tools.32.llvm Godot
148 + with_desktop_entry=1
149 + else
150 + make_desktop_entry godot.x11.tools.32 Godot
151 + with_desktop_entry=1
152 + fi
153 + fi
154 +
155 + if ! [[ "${with_desktop_entry}" == "1" ]]; then
156 + elog "Couldn't detect running architecture to create a desktop file."
157 + fi
158 +}