1 |
commit: 48491e33d719474bd3ffccbf502619ef6add07cc |
2 |
Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz> |
3 |
AuthorDate: Wed Dec 25 12:34:55 2019 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 25 19:26:44 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=48491e33 |
7 |
|
8 |
net-libs/webkit-gtk: remove, musl is supported in ::gentoo |
9 |
|
10 |
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz> |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
net-libs/webkit-gtk/Manifest | 1 - |
14 |
.../webkit-gtk/files/webkit-gtk-2.22.4-musl.patch | 137 ---------- |
15 |
net-libs/webkit-gtk/metadata.xml | 16 -- |
16 |
net-libs/webkit-gtk/webkit-gtk-2.24.4.ebuild | 283 --------------------- |
17 |
4 files changed, 437 deletions(-) |
18 |
|
19 |
diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest |
20 |
deleted file mode 100644 |
21 |
index 99e6386..0000000 |
22 |
--- a/net-libs/webkit-gtk/Manifest |
23 |
+++ /dev/null |
24 |
@@ -1 +0,0 @@ |
25 |
-DIST webkitgtk-2.24.4.tar.xz 17575784 BLAKE2B c30683ea365a50d7def572305b49278343d67739f9bd3cfd78cb08b5cc87b5453504df9b09752f8d6483b18b9b812f3d3cddc084762cfa8990fcc651660b89c2 SHA512 1d713955a735ae2e2229beea7bda7f518a6247c6aa7f5753aeb5b5c6395339d451d0d146f7188e7ba65cb82ea5a74a5e73e956fe59d5f5f97659a44af33df112 |
26 |
|
27 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.22.4-musl.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.22.4-musl.patch |
28 |
deleted file mode 100644 |
29 |
index c829f19..0000000 |
30 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-2.22.4-musl.patch |
31 |
+++ /dev/null |
32 |
@@ -1,137 +0,0 @@ |
33 |
---- a/Source/JavaScriptCore/runtime/MachineContext.h |
34 |
-+++ b/Source/JavaScriptCore/runtime/MachineContext.h |
35 |
-@@ -188,7 +188,7 @@ static inline void*& stackPointerImpl(mcontext_t& machineContext) |
36 |
- #error Unknown Architecture |
37 |
- #endif |
38 |
- |
39 |
--#elif OS(FUCHSIA) || defined(__GLIBC__) || defined(__BIONIC__) |
40 |
-+#elif OS(FUCHSIA) || defined(__linux__) |
41 |
- |
42 |
- #if CPU(X86) |
43 |
- return reinterpret_cast<void*&>((uintptr_t&) machineContext.gregs[REG_ESP]); |
44 |
-@@ -335,7 +335,7 @@ static inline void*& framePointerImpl(mcontext_t& machineContext) |
45 |
- #error Unknown Architecture |
46 |
- #endif |
47 |
- |
48 |
--#elif OS(FUCHSIA) || defined(__GLIBC__) || defined(__BIONIC__) |
49 |
-+#elif OS(FUCHSIA) || defined(__linux__) |
50 |
- |
51 |
- // The following sequence depends on glibc's sys/ucontext.h. |
52 |
- #if CPU(X86) |
53 |
-@@ -482,7 +482,7 @@ static inline void*& instructionPointerImpl(mcontext_t& machineContext) |
54 |
- #error Unknown Architecture |
55 |
- #endif |
56 |
- |
57 |
--#elif OS(FUCHSIA) || defined(__GLIBC__) || defined(__BIONIC__) |
58 |
-+#elif OS(FUCHSIA) || defined(__linux__) |
59 |
- |
60 |
- // The following sequence depends on glibc's sys/ucontext.h. |
61 |
- #if CPU(X86) |
62 |
-@@ -639,7 +639,7 @@ inline void*& argumentPointer<1>(mcontext_t& machineContext) |
63 |
- #error Unknown Architecture |
64 |
- #endif |
65 |
- |
66 |
--#elif OS(FUCHSIA) || defined(__GLIBC__) || defined(__BIONIC__) |
67 |
-+#elif OS(FUCHSIA) || defined(__linux__) |
68 |
- |
69 |
- // The following sequence depends on glibc's sys/ucontext.h. |
70 |
- #if CPU(X86) |
71 |
-@@ -756,7 +756,7 @@ inline void*& llintInstructionPointer(mcontext_t& machineContext) |
72 |
- #error Unknown Architecture |
73 |
- #endif |
74 |
- |
75 |
--#elif OS(FUCHSIA) || defined(__GLIBC__) || defined(__BIONIC__) |
76 |
-+#elif OS(FUCHSIA) || defined(__linux__) |
77 |
- |
78 |
- // The following sequence depends on glibc's sys/ucontext.h. |
79 |
- #if CPU(X86) |
80 |
- |
81 |
---- a/Source/JavaScriptCore/runtime/Options.h |
82 |
-+++ b/Source/JavaScriptCore/runtime/Options.h |
83 |
-@@ -138,9 +138,9 @@ constexpr bool enableWebAssemblyStreamingApi = false; |
84 |
- \ |
85 |
- v(bool, reportMustSucceedExecutableAllocations, false, Normal, nullptr) \ |
86 |
- \ |
87 |
-- v(unsigned, maxPerThreadStackUsage, 4 * MB, Normal, "Max allowed stack usage by the VM") \ |
88 |
-- v(unsigned, softReservedZoneSize, 128 * KB, Normal, "A buffer greater than reservedZoneSize that reserves space for stringifying exceptions.") \ |
89 |
-- v(unsigned, reservedZoneSize, 64 * KB, Normal, "The amount of stack space we guarantee to our clients (and to interal VM code that does not call out to clients).") \ |
90 |
-+ v(unsigned, maxPerThreadStackUsage, 80 * KB, Normal, "Max allowed stack usage by the VM") \ |
91 |
-+ v(unsigned, softReservedZoneSize, 32 * KB, Normal, "A buffer greater than reservedZoneSize that reserves space for stringifying exceptions.") \ |
92 |
-+ v(unsigned, reservedZoneSize, 16 * KB, Normal, "The amount of stack space we guarantee to our clients (and to interal VM code that does not call out to clients).") \ |
93 |
- \ |
94 |
- v(bool, crashIfCantAllocateJITMemory, false, Normal, nullptr) \ |
95 |
- v(unsigned, jitMemoryReservationSize, 0, Normal, "Set this number to change the executable allocation size in ExecutableAllocatorFixedVMPool. (In bytes.)") \ |
96 |
- |
97 |
---- a/Source/ThirdParty/ANGLE/src/compiler/preprocessor/ExpressionParser.cpp |
98 |
-+++ b/Source/ThirdParty/ANGLE/src/compiler/preprocessor/ExpressionParser.cpp |
99 |
-@@ -836,7 +836,7 @@ int yydebug; |
100 |
- #if YYERROR_VERBOSE |
101 |
- |
102 |
- # ifndef yystrlen |
103 |
--# if defined __GLIBC__ && defined _STRING_H |
104 |
-+# if defined __linux__ && defined _STRING_H |
105 |
- # define yystrlen strlen |
106 |
- # else |
107 |
- /* Return the length of YYSTR. */ |
108 |
-@@ -852,7 +852,7 @@ yystrlen (const char *yystr) |
109 |
- # endif |
110 |
- |
111 |
- # ifndef yystpcpy |
112 |
--# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE |
113 |
-+# if defined __linux__ && defined _STRING_H && defined _GNU_SOURCE |
114 |
- # define yystpcpy stpcpy |
115 |
- # else |
116 |
- /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in |
117 |
- |
118 |
---- a/Source/ThirdParty/ANGLE/src/compiler/translator/glslang_tab.cpp |
119 |
-+++ b/Source/ThirdParty/ANGLE/src/compiler/translator/glslang_tab.cpp |
120 |
-@@ -1975,7 +1975,7 @@ int yydebug; |
121 |
- #if YYERROR_VERBOSE |
122 |
- |
123 |
- # ifndef yystrlen |
124 |
--# if defined __GLIBC__ && defined _STRING_H |
125 |
-+# if defined __linux__ && defined _STRING_H |
126 |
- # define yystrlen strlen |
127 |
- # else |
128 |
- /* Return the length of YYSTR. */ |
129 |
-@@ -1991,7 +1991,7 @@ yystrlen (const char *yystr) |
130 |
- # endif |
131 |
- |
132 |
- # ifndef yystpcpy |
133 |
--# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE |
134 |
-+# if defined __linux__ && defined _STRING_H && defined _GNU_SOURCE |
135 |
- # define yystpcpy stpcpy |
136 |
- # else |
137 |
- /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in |
138 |
- |
139 |
---- a/Source/WTF/wtf/Platform.h |
140 |
-+++ b/Source/WTF/wtf/Platform.h |
141 |
-@@ -710,7 +710,7 @@ |
142 |
- #define HAVE_CFNETWORK_STORAGE_PARTITIONING 1 |
143 |
- #endif |
144 |
- |
145 |
--#if OS(DARWIN) || OS(FUCHSIA) || ((OS(FREEBSD) || defined(__GLIBC__) || defined(__BIONIC__)) && (CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(ARM64) || CPU(MIPS))) |
146 |
-+#if OS(DARWIN) || OS(FUCHSIA) || ((OS(FREEBSD) || defined(__linux__)) && (CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(ARM64) || CPU(MIPS))) |
147 |
- #define HAVE_MACHINE_CONTEXT 1 |
148 |
- #endif |
149 |
- |
150 |
---- a/Source/WebCore/xml/XPathGrammar.cpp |
151 |
-+++ b/Source/WebCore/xml/XPathGrammar.cpp |
152 |
-@@ -966,7 +966,7 @@ int yydebug; |
153 |
- #if YYERROR_VERBOSE |
154 |
- |
155 |
- # ifndef yystrlen |
156 |
--# if defined __GLIBC__ && defined _STRING_H |
157 |
-+# if defined __linux__ && defined _STRING_H |
158 |
- # define yystrlen strlen |
159 |
- # else |
160 |
- /* Return the length of YYSTR. */ |
161 |
-@@ -989,7 +989,7 @@ yystrlen (yystr) |
162 |
- # endif |
163 |
- |
164 |
- # ifndef yystpcpy |
165 |
--# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE |
166 |
-+# if defined __linux__ && defined _STRING_H && defined _GNU_SOURCE |
167 |
- # define yystpcpy stpcpy |
168 |
- # else |
169 |
- /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in |
170 |
|
171 |
diff --git a/net-libs/webkit-gtk/metadata.xml b/net-libs/webkit-gtk/metadata.xml |
172 |
deleted file mode 100644 |
173 |
index 0d69dc7..0000000 |
174 |
--- a/net-libs/webkit-gtk/metadata.xml |
175 |
+++ /dev/null |
176 |
@@ -1,16 +0,0 @@ |
177 |
-<?xml version="1.0" encoding="UTF-8"?> |
178 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
179 |
-<pkgmetadata> |
180 |
-<maintainer type="project"> |
181 |
- <email>gnome@g.o</email> |
182 |
- <name>Gentoo GNOME Desktop</name> |
183 |
-</maintainer> |
184 |
-<use> |
185 |
- <flag name="coverage">Enable code coverage support</flag> |
186 |
- <flag name="egl">Enable EGL support</flag> |
187 |
- <flag name="geolocation">Enable geolocation support through <pkg>app-misc/geoclue</pkg></flag> |
188 |
- <flag name="gles2">Enable GLESv2 support</flag> |
189 |
- <flag name="nsplugin">Enable full nsplugin support (GTK2 plugins)</flag> |
190 |
- <flag name="webgl">Build support for the WebGL HTML API using <pkg>virtual/opengl</pkg></flag> |
191 |
-</use> |
192 |
-</pkgmetadata> |
193 |
|
194 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.24.4.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.24.4.ebuild |
195 |
deleted file mode 100644 |
196 |
index 72ed98d..0000000 |
197 |
--- a/net-libs/webkit-gtk/webkit-gtk-2.24.4.ebuild |
198 |
+++ /dev/null |
199 |
@@ -1,283 +0,0 @@ |
200 |
-# Copyright 1999-2019 Gentoo Authors |
201 |
-# Distributed under the terms of the GNU General Public License v2 |
202 |
- |
203 |
-EAPI=6 |
204 |
-CMAKE_MAKEFILE_GENERATOR="ninja" |
205 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
206 |
-USE_RUBY="ruby24 ruby25 ruby26" |
207 |
- |
208 |
-inherit check-reqs cmake-utils flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs virtualx |
209 |
- |
210 |
-MY_P="webkitgtk-${PV}" |
211 |
-DESCRIPTION="Open source web browser engine" |
212 |
-HOMEPAGE="https://www.webkitgtk.org" |
213 |
-SRC_URI="https://www.webkitgtk.org/releases/${MY_P}.tar.xz" |
214 |
- |
215 |
-LICENSE="LGPL-2+ BSD" |
216 |
-SLOT="4/37" # soname version of libwebkit2gtk-4.0 |
217 |
-KEYWORDS="amd64 ~arm arm64 ~ppc x86" |
218 |
- |
219 |
-IUSE="aqua coverage doc +egl +geolocation gles2 gnome-keyring +gstreamer +introspection +jpeg2k libnotify nsplugin +opengl spell wayland +webgl +X" |
220 |
- |
221 |
-# webgl needs gstreamer, bug #560612 |
222 |
-# gstreamer with opengl/gles2 needs egl |
223 |
-REQUIRED_USE=" |
224 |
- geolocation? ( introspection ) |
225 |
- gles2? ( egl !opengl ) |
226 |
- gstreamer? ( opengl? ( egl ) ) |
227 |
- nsplugin? ( X ) |
228 |
- webgl? ( gstreamer |
229 |
- || ( gles2 opengl ) ) |
230 |
- wayland? ( egl ) |
231 |
- || ( aqua wayland X ) |
232 |
-" |
233 |
- |
234 |
-# Tests fail to link for inexplicable reasons |
235 |
-# https://bugs.webkit.org/show_bug.cgi?id=148210 |
236 |
-RESTRICT="test" |
237 |
- |
238 |
-# Aqua support in gtk3 is untested |
239 |
-# Dependencies found at Source/cmake/OptionsGTK.cmake |
240 |
-# Various compile-time optionals for gtk+-3.22.0 - ensure it |
241 |
-# Missing OpenWebRTC checks and conditionals, but ENABLE_MEDIA_STREAM/ENABLE_WEB_RTC is experimental upstream (PRIVATE OFF) |
242 |
-# >=gst-plugins-opus-1.14.4-r1 for opusparse (required by MSE) |
243 |
-RDEPEND=" |
244 |
- >=x11-libs/cairo-1.16.0:=[X?] |
245 |
- >=media-libs/fontconfig-2.13.0:1.0 |
246 |
- >=media-libs/freetype-2.9.0:2 |
247 |
- >=dev-libs/libgcrypt-1.7.0:0= |
248 |
- >=x11-libs/gtk+-3.22:3[aqua?,introspection?,wayland?,X?] |
249 |
- >=media-libs/harfbuzz-1.4.2:=[icu(+)] |
250 |
- >=dev-libs/icu-3.8.1-r1:= |
251 |
- virtual/jpeg:0= |
252 |
- >=net-libs/libsoup-2.48:2.4[introspection?] |
253 |
- >=dev-libs/libxml2-2.8.0:2 |
254 |
- >=media-libs/libpng-1.4:0= |
255 |
- dev-db/sqlite:3= |
256 |
- sys-libs/zlib:0 |
257 |
- >=dev-libs/atk-2.8.0 |
258 |
- media-libs/libwebp:= |
259 |
- |
260 |
- >=dev-libs/glib-2.40:2 |
261 |
- >=dev-libs/libxslt-1.1.7 |
262 |
- media-libs/woff2 |
263 |
- gnome-keyring? ( app-crypt/libsecret ) |
264 |
- geolocation? ( >=app-misc/geoclue-2.1.5:2.0 ) |
265 |
- introspection? ( >=dev-libs/gobject-introspection-1.32.0:= ) |
266 |
- dev-libs/libtasn1:= |
267 |
- nsplugin? ( >=x11-libs/gtk+-2.24.10:2 ) |
268 |
- spell? ( >=app-text/enchant-0.22:= ) |
269 |
- gstreamer? ( |
270 |
- >=media-libs/gstreamer-1.14:1.0 |
271 |
- >=media-libs/gst-plugins-base-1.14:1.0[egl?,gles2?,opengl?] |
272 |
- >=media-plugins/gst-plugins-opus-1.14.4-r1:1.0 |
273 |
- >=media-libs/gst-plugins-bad-1.14:1.0 ) |
274 |
- |
275 |
- X? ( |
276 |
- x11-libs/libX11 |
277 |
- x11-libs/libXcomposite |
278 |
- x11-libs/libXdamage |
279 |
- x11-libs/libXrender |
280 |
- x11-libs/libXt ) |
281 |
- |
282 |
- libnotify? ( x11-libs/libnotify ) |
283 |
- dev-libs/hyphen |
284 |
- jpeg2k? ( >=media-libs/openjpeg-2.2.0:2= ) |
285 |
- |
286 |
- egl? ( media-libs/mesa[egl] ) |
287 |
- gles2? ( media-libs/mesa[gles2] ) |
288 |
- opengl? ( virtual/opengl ) |
289 |
- webgl? ( |
290 |
- x11-libs/libXcomposite |
291 |
- x11-libs/libXdamage ) |
292 |
-" |
293 |
- |
294 |
-# paxctl needed for bug #407085 |
295 |
-# Need real bison, not yacc |
296 |
-DEPEND="${RDEPEND} |
297 |
- ${PYTHON_DEPS} |
298 |
- ${RUBY_DEPS} |
299 |
- >=app-accessibility/at-spi2-core-2.5.3 |
300 |
- dev-util/glib-utils |
301 |
- >=dev-util/gtk-doc-am-1.10 |
302 |
- >=dev-util/gperf-3.0.1 |
303 |
- >=sys-devel/bison-2.4.3 |
304 |
- || ( >=sys-devel/gcc-6.0 >=sys-devel/clang-3.3 ) |
305 |
- sys-devel/gettext |
306 |
- virtual/pkgconfig |
307 |
- |
308 |
- >=dev-lang/perl-5.10 |
309 |
- virtual/perl-Data-Dumper |
310 |
- virtual/perl-Carp |
311 |
- virtual/perl-JSON-PP |
312 |
- |
313 |
- doc? ( >=dev-util/gtk-doc-1.10 ) |
314 |
- geolocation? ( dev-util/gdbus-codegen ) |
315 |
-" |
316 |
-# test? ( |
317 |
-# dev-python/pygobject:3[python_targets_python2_7] |
318 |
-# x11-themes/hicolor-icon-theme |
319 |
-# jit? ( sys-apps/paxctl ) ) |
320 |
- |
321 |
-S="${WORKDIR}/${MY_P}" |
322 |
- |
323 |
-CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
324 |
- |
325 |
-pkg_pretend() { |
326 |
- if [[ ${MERGE_TYPE} != "binary" ]] ; then |
327 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
328 |
- einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
329 |
- check-reqs_pkg_pretend |
330 |
- fi |
331 |
- |
332 |
- if ! test-flag-CXX -std=c++11 ; then |
333 |
- die "You need at least GCC 4.9.x or Clang >= 3.3 for C++11-specific compiler flags" |
334 |
- fi |
335 |
- |
336 |
- if tc-is-gcc && [[ $(gcc-version) < 4.9 ]] ; then |
337 |
- die 'The active compiler needs to be gcc 4.9 (or newer)' |
338 |
- fi |
339 |
- fi |
340 |
- |
341 |
- if ! use opengl && ! use gles2; then |
342 |
- ewarn |
343 |
- ewarn "You are disabling OpenGL usage (USE=opengl or USE=gles) completely." |
344 |
- ewarn "This is an unsupported configuration meant for very specific embedded" |
345 |
- ewarn "use cases, where there truly is no GL possible (and even that use case" |
346 |
- ewarn "is very unlikely to come by). If you have GL (even software-only), you" |
347 |
- ewarn "really really should be enabling OpenGL!" |
348 |
- ewarn |
349 |
- fi |
350 |
-} |
351 |
- |
352 |
-pkg_setup() { |
353 |
- if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
354 |
- check-reqs_pkg_setup |
355 |
- fi |
356 |
- |
357 |
- python-any-r1_pkg_setup |
358 |
-} |
359 |
- |
360 |
-src_prepare() { |
361 |
- # Taken from https://git.alpinelinux.org/aports/tree/community/webkit2gtk/musl-fixes.patch?id=ae4a15801816b7f140076fa8f636d46247902af3 |
362 |
- eapply "${FILESDIR}"/${PN}-2.22.4-musl.patch |
363 |
- cmake-utils_src_prepare |
364 |
- gnome2_src_prepare |
365 |
-} |
366 |
- |
367 |
-src_configure() { |
368 |
- # Respect CC, otherwise fails on prefix #395875 |
369 |
- tc-export CC |
370 |
- |
371 |
- # It does not compile on alpha without this in LDFLAGS |
372 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761 |
373 |
- use alpha && append-ldflags "-Wl,--no-relax" |
374 |
- |
375 |
- # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504 |
376 |
- use ia64 && append-ldflags "-Wl,--no-as-needed" |
377 |
- |
378 |
- # Sigbuses on SPARC with mcpu and co., bug #??? |
379 |
- use sparc && filter-flags "-mvis" |
380 |
- |
381 |
- # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
382 |
- use ppc64 && append-flags "-mminimal-toc" |
383 |
- |
384 |
- # Try to use less memory, bug #469942 (see Fedora .spec for reference) |
385 |
- # --no-keep-memory doesn't work on ia64, bug #502492 |
386 |
- if ! use ia64; then |
387 |
- append-ldflags "-Wl,--no-keep-memory" |
388 |
- fi |
389 |
- |
390 |
- # We try to use gold when possible for this package |
391 |
-# if ! tc-ld-is-gold ; then |
392 |
-# append-ldflags "-Wl,--reduce-memory-overheads" |
393 |
-# fi |
394 |
- |
395 |
- # Multiple rendering bugs on youtube, github, etc without this, bug #547224 |
396 |
- append-flags $(test-flags -fno-strict-aliasing) |
397 |
- |
398 |
- # Ruby situation is a bit complicated. See bug 513888 |
399 |
- local rubyimpl |
400 |
- local ruby_interpreter="" |
401 |
- for rubyimpl in ${USE_RUBY}; do |
402 |
- if has_version "virtual/rubygems[ruby_targets_${rubyimpl}]"; then |
403 |
- ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})" |
404 |
- fi |
405 |
- done |
406 |
- # This will rarely occur. Only a couple of corner cases could lead us to |
407 |
- # that failure. See bug 513888 |
408 |
- [[ -z $ruby_interpreter ]] && die "No suitable ruby interpreter found" |
409 |
- |
410 |
- # TODO: Check Web Audio support |
411 |
- # should somehow let user select between them? |
412 |
- # |
413 |
- # FTL_JIT requires llvm |
414 |
- # |
415 |
- # opengl needs to be explicetly handled, bug #576634 |
416 |
- |
417 |
- local opengl_enabled |
418 |
- if use opengl || use gles2; then |
419 |
- opengl_enabled=ON |
420 |
- else |
421 |
- opengl_enabled=OFF |
422 |
- fi |
423 |
- |
424 |
- local mycmakeargs=( |
425 |
- #-DENABLE_UNIFIED_BUILDS=$(usex jumbo-build) # broken in 2.24.1 |
426 |
- -DENABLE_QUARTZ_TARGET=$(usex aqua) |
427 |
- -DENABLE_API_TESTS=$(usex test) |
428 |
- -DENABLE_GTKDOC=$(usex doc) |
429 |
- -DENABLE_GEOLOCATION=$(usex geolocation) |
430 |
- $(cmake-utils_use_find_package gles2 OpenGLES2) |
431 |
- -DENABLE_GLES2=$(usex gles2) |
432 |
- -DENABLE_VIDEO=$(usex gstreamer) |
433 |
- -DENABLE_WEB_AUDIO=$(usex gstreamer) |
434 |
- -DENABLE_INTROSPECTION=$(usex introspection) |
435 |
- -DUSE_LIBNOTIFY=$(usex libnotify) |
436 |
- -DUSE_LIBSECRET=$(usex gnome-keyring) |
437 |
- -DUSE_OPENJPEG=$(usex jpeg2k) |
438 |
- -DUSE_WOFF2=ON |
439 |
- -DENABLE_PLUGIN_PROCESS_GTK2=$(usex nsplugin) |
440 |
- -DENABLE_SPELLCHECK=$(usex spell) |
441 |
- -DENABLE_WAYLAND_TARGET=$(usex wayland) |
442 |
- -DENABLE_WEBGL=$(usex webgl) |
443 |
- $(cmake-utils_use_find_package egl EGL) |
444 |
- $(cmake-utils_use_find_package opengl OpenGL) |
445 |
- -DENABLE_X11_TARGET=$(usex X) |
446 |
- -DENABLE_OPENGL=${opengl_enabled} |
447 |
- -DCMAKE_BUILD_TYPE=Release |
448 |
- -DPORT=GTK |
449 |
- ${ruby_interpreter} |
450 |
- ) |
451 |
- |
452 |
- # Allow it to use GOLD when possible as it has all the magic to |
453 |
- # detect when to use it and using gold for this concrete package has |
454 |
- # multiple advantages and is also the upstream default, bug #585788 |
455 |
-# if tc-ld-is-gold ; then |
456 |
-# mycmakeargs+=( -DUSE_LD_GOLD=ON ) |
457 |
-# else |
458 |
-# mycmakeargs+=( -DUSE_LD_GOLD=OFF ) |
459 |
-# fi |
460 |
- |
461 |
- cmake-utils_src_configure |
462 |
-} |
463 |
- |
464 |
-src_compile() { |
465 |
- cmake-utils_src_compile |
466 |
-} |
467 |
- |
468 |
-src_test() { |
469 |
- # Prevents test failures on PaX systems |
470 |
- pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test* |
471 |
- |
472 |
- cmake-utils_src_test |
473 |
-} |
474 |
- |
475 |
-src_install() { |
476 |
- cmake-utils_src_install |
477 |
- |
478 |
- # Prevents crashes on PaX systems, bug #522808 |
479 |
- pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/jsc" "${ED}usr/libexec/webkit2gtk-4.0/WebKitWebProcess" |
480 |
- pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess" |
481 |
- use nsplugin && pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"2 |
482 |
-} |