1 |
commit: 4867f074ea35c93c34c7327a5f60718af60f9b2f |
2 |
Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz> |
3 |
AuthorDate: Sat Apr 13 19:31:35 2019 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 14 17:10:47 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=4867f074 |
7 |
|
8 |
net-libs/webkit-gtk: version bump to 2.24.0 |
9 |
|
10 |
The ebuild synced with upstream. |
11 |
|
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
13 |
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz> |
14 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
15 |
|
16 |
net-libs/webkit-gtk/Manifest | 1 + |
17 |
net-libs/webkit-gtk/webkit-gtk-2.24.0.ebuild | 289 +++++++++++++++++++++++++++ |
18 |
2 files changed, 290 insertions(+) |
19 |
|
20 |
diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest |
21 |
index abe7a67..79ba084 100644 |
22 |
--- a/net-libs/webkit-gtk/Manifest |
23 |
+++ b/net-libs/webkit-gtk/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST webkitgtk-2.22.2.tar.xz 16769120 BLAKE2B 19b226e657a324ab0efcfdcda3b22bc21a3b1cae29325f89ebd555dfb45d02d23f495ebf3817cb4c5e662c813b8d75754e0051d84afb84ea1347bf25a321e5d0 SHA512 0bb885726872f128a0e0d71cbc75ba076e5c0c928c40e71e030c87444a7068568c568587514407d6549c27d0bfe121dc33f96f0c516d2ae1c6801e005ad52756 |
26 |
DIST webkitgtk-2.22.6.tar.xz 16773696 BLAKE2B 06ef81168f2c5c6a10362d7ebe0270c863e7eccc02a6b1f1486a01c3e583295d12f7ba5aa0ccc1ffa36f7e1c884b144ccc4203cf00f3096afa74957bc6875d71 SHA512 18f4a4c145b524bebf1eaae58057e1e6cb74ba5a162c5195f072ba25c4399e7749c74fe6f8e9351bb9f2630a2c43f59935943e5bb318a5c4977f727a68602709 |
27 |
+DIST webkitgtk-2.24.0.tar.xz 17894000 BLAKE2B 55b43ce104c976f73f9fb71a9c395f0636de5547f62f829c098a709b28668b78dab06f90110e387c5c6f33e2c5033cdfafd6adcafb83d03f77b361d315881397 SHA512 7a1444b22fb59ecdd638344acf3525f1ef9204215a568e185f2ac7f4e43cf89c7be307be31d51ec46231bbf5e9470e48d56395873d7368aca8022ff5c4100dab |
28 |
|
29 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.24.0.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.24.0.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..f5646ec |
32 |
--- /dev/null |
33 |
+++ b/net-libs/webkit-gtk/webkit-gtk-2.24.0.ebuild |
34 |
@@ -0,0 +1,289 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+CMAKE_MAKEFILE_GENERATOR="ninja" |
40 |
+PYTHON_COMPAT=( python2_7 ) |
41 |
+USE_RUBY="ruby23 ruby24 ruby25 ruby26" |
42 |
+ |
43 |
+inherit check-reqs cmake-utils flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs virtualx |
44 |
+ |
45 |
+MY_P="webkitgtk-${PV}" |
46 |
+DESCRIPTION="Open source web browser engine" |
47 |
+HOMEPAGE="https://www.webkitgtk.org" |
48 |
+SRC_URI="https://www.webkitgtk.org/releases/${MY_P}.tar.xz" |
49 |
+ |
50 |
+LICENSE="LGPL-2+ BSD" |
51 |
+SLOT="4/37" # soname version of libwebkit2gtk-4.0 |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
53 |
+ |
54 |
+IUSE="aqua coverage doc +egl +geolocation gles2 gnome-keyring +gstreamer +introspection +jit jpeg2k libnotify nsplugin +opengl spell wayland +webgl +X" |
55 |
+ |
56 |
+# webgl needs gstreamer, bug #560612 |
57 |
+# gstreamer with opengl/gles2 needs egl |
58 |
+REQUIRED_USE=" |
59 |
+ geolocation? ( introspection ) |
60 |
+ gles2? ( egl !opengl ) |
61 |
+ gstreamer? ( opengl? ( egl ) ) |
62 |
+ nsplugin? ( X ) |
63 |
+ webgl? ( gstreamer |
64 |
+ || ( gles2 opengl ) ) |
65 |
+ wayland? ( egl ) |
66 |
+ || ( aqua wayland X ) |
67 |
+" |
68 |
+ |
69 |
+# Tests fail to link for inexplicable reasons |
70 |
+# https://bugs.webkit.org/show_bug.cgi?id=148210 |
71 |
+RESTRICT="test" |
72 |
+ |
73 |
+# Aqua support in gtk3 is untested |
74 |
+# Dependencies found at Source/cmake/OptionsGTK.cmake |
75 |
+# Various compile-time optionals for gtk+-3.22.0 - ensure it |
76 |
+# Missing OpenWebRTC checks and conditionals, but ENABLE_MEDIA_STREAM/ENABLE_WEB_RTC is experimental upstream (PRIVATE OFF) |
77 |
+# TODO: Raise gst-plugins-opus dep to 1.14.4-r1 once we can, and eventually drop the blocker from epiphany; or remove the dep when older than -opus-1.14.4-r1 is not available anymore |
78 |
+RDEPEND=" |
79 |
+ >=x11-libs/cairo-1.16.0:=[X?] |
80 |
+ >=media-libs/fontconfig-2.13.0:1.0 |
81 |
+ >=media-libs/freetype-2.9.0:2 |
82 |
+ >=dev-libs/libgcrypt-1.7.0:0= |
83 |
+ >=x11-libs/gtk+-3.22:3[aqua?,introspection?,wayland?,X?] |
84 |
+ >=media-libs/harfbuzz-1.4.2:=[icu(+)] |
85 |
+ >=dev-libs/icu-3.8.1-r1:= |
86 |
+ virtual/jpeg:0= |
87 |
+ >=net-libs/libsoup-2.48:2.4[introspection?] |
88 |
+ >=dev-libs/libxml2-2.8.0:2 |
89 |
+ >=media-libs/libpng-1.4:0= |
90 |
+ dev-db/sqlite:3= |
91 |
+ sys-libs/zlib:0 |
92 |
+ >=dev-libs/atk-2.8.0 |
93 |
+ media-libs/libwebp:= |
94 |
+ |
95 |
+ >=dev-libs/glib-2.40:2 |
96 |
+ >=dev-libs/libxslt-1.1.7 |
97 |
+ media-libs/woff2 |
98 |
+ gnome-keyring? ( app-crypt/libsecret ) |
99 |
+ geolocation? ( >=app-misc/geoclue-2.1.5:2.0 ) |
100 |
+ introspection? ( >=dev-libs/gobject-introspection-1.32.0:= ) |
101 |
+ dev-libs/libtasn1:= |
102 |
+ nsplugin? ( >=x11-libs/gtk+-2.24.10:2 ) |
103 |
+ spell? ( >=app-text/enchant-0.22:= ) |
104 |
+ gstreamer? ( |
105 |
+ >=media-libs/gstreamer-1.14:1.0 |
106 |
+ >=media-libs/gst-plugins-base-1.14:1.0[egl?,gles2?,opengl?] |
107 |
+ >=media-plugins/gst-plugins-opus-1.14.4-r1:1.0 |
108 |
+ >=media-libs/gst-plugins-bad-1.14:1.0 ) |
109 |
+ |
110 |
+ X? ( |
111 |
+ x11-libs/libX11 |
112 |
+ x11-libs/libXcomposite |
113 |
+ x11-libs/libXdamage |
114 |
+ x11-libs/libXrender |
115 |
+ x11-libs/libXt ) |
116 |
+ |
117 |
+ libnotify? ( x11-libs/libnotify ) |
118 |
+ dev-libs/hyphen |
119 |
+ jpeg2k? ( >=media-libs/openjpeg-2.2.0:2= ) |
120 |
+ |
121 |
+ egl? ( media-libs/mesa[egl] ) |
122 |
+ gles2? ( media-libs/mesa[gles2] ) |
123 |
+ opengl? ( virtual/opengl ) |
124 |
+ webgl? ( |
125 |
+ x11-libs/libXcomposite |
126 |
+ x11-libs/libXdamage ) |
127 |
+" |
128 |
+ |
129 |
+# paxctl needed for bug #407085 |
130 |
+# Need real bison, not yacc |
131 |
+DEPEND="${RDEPEND} |
132 |
+ ${PYTHON_DEPS} |
133 |
+ ${RUBY_DEPS} |
134 |
+ >=app-accessibility/at-spi2-core-2.5.3 |
135 |
+ dev-util/glib-utils |
136 |
+ >=dev-util/gtk-doc-am-1.10 |
137 |
+ >=dev-util/gperf-3.0.1 |
138 |
+ >=sys-devel/bison-2.4.3 |
139 |
+ || ( >=sys-devel/gcc-6.0 >=sys-devel/clang-3.3 ) |
140 |
+ sys-devel/gettext |
141 |
+ virtual/pkgconfig |
142 |
+ |
143 |
+ >=dev-lang/perl-5.10 |
144 |
+ virtual/perl-Data-Dumper |
145 |
+ virtual/perl-Carp |
146 |
+ virtual/perl-JSON-PP |
147 |
+ |
148 |
+ doc? ( >=dev-util/gtk-doc-1.10 ) |
149 |
+ geolocation? ( dev-util/gdbus-codegen ) |
150 |
+ introspection? ( jit? ( sys-apps/paxctl ) ) |
151 |
+" |
152 |
+# test? ( |
153 |
+# dev-python/pygobject:3[python_targets_python2_7] |
154 |
+# x11-themes/hicolor-icon-theme |
155 |
+# jit? ( sys-apps/paxctl ) ) |
156 |
+ |
157 |
+S="${WORKDIR}/${MY_P}" |
158 |
+ |
159 |
+CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
160 |
+ |
161 |
+pkg_pretend() { |
162 |
+ if [[ ${MERGE_TYPE} != "binary" ]] ; then |
163 |
+ if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
164 |
+ einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
165 |
+ check-reqs_pkg_pretend |
166 |
+ fi |
167 |
+ |
168 |
+ if ! test-flag-CXX -std=c++11 ; then |
169 |
+ die "You need at least GCC 4.9.x or Clang >= 3.3 for C++11-specific compiler flags" |
170 |
+ fi |
171 |
+ |
172 |
+ if tc-is-gcc && [[ $(gcc-version) < 4.9 ]] ; then |
173 |
+ die 'The active compiler needs to be gcc 4.9 (or newer)' |
174 |
+ fi |
175 |
+ fi |
176 |
+ |
177 |
+ if ! use opengl && ! use gles2; then |
178 |
+ ewarn |
179 |
+ ewarn "You are disabling OpenGL usage (USE=opengl or USE=gles) completely." |
180 |
+ ewarn "This is an unsupported configuration meant for very specific embedded" |
181 |
+ ewarn "use cases, where there truly is no GL possible (and even that use case" |
182 |
+ ewarn "is very unlikely to come by). If you have GL (even software-only), you" |
183 |
+ ewarn "really really should be enabling OpenGL!" |
184 |
+ ewarn |
185 |
+ fi |
186 |
+} |
187 |
+ |
188 |
+pkg_setup() { |
189 |
+ if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
190 |
+ check-reqs_pkg_setup |
191 |
+ fi |
192 |
+ |
193 |
+ python-any-r1_pkg_setup |
194 |
+} |
195 |
+ |
196 |
+src_prepare() { |
197 |
+ # musl and jit |
198 |
+ # patch taken from: https://git.alpinelinux.org/cgit/aports/tree/community/webkit2gtk/musl-fixes.patch |
199 |
+ eapply "${FILESDIR}"/${PN}-2.22.2-musl.patch |
200 |
+ cmake-utils_src_prepare |
201 |
+ gnome2_src_prepare |
202 |
+} |
203 |
+ |
204 |
+src_configure() { |
205 |
+ # Respect CC, otherwise fails on prefix #395875 |
206 |
+ tc-export CC |
207 |
+ |
208 |
+ # Arches without JIT support also need this to really disable it in all places |
209 |
+ use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0 |
210 |
+ |
211 |
+ # It does not compile on alpha without this in LDFLAGS |
212 |
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761 |
213 |
+ use alpha && append-ldflags "-Wl,--no-relax" |
214 |
+ |
215 |
+ # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504 |
216 |
+ use ia64 && append-ldflags "-Wl,--no-as-needed" |
217 |
+ |
218 |
+ # Sigbuses on SPARC with mcpu and co., bug #??? |
219 |
+ use sparc && filter-flags "-mvis" |
220 |
+ |
221 |
+ # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
222 |
+ use ppc64 && append-flags "-mminimal-toc" |
223 |
+ |
224 |
+ # Try to use less memory, bug #469942 (see Fedora .spec for reference) |
225 |
+ # --no-keep-memory doesn't work on ia64, bug #502492 |
226 |
+ if ! use ia64; then |
227 |
+ append-ldflags "-Wl,--no-keep-memory" |
228 |
+ fi |
229 |
+ |
230 |
+ # We try to use gold when possible for this package |
231 |
+# if ! tc-ld-is-gold ; then |
232 |
+# append-ldflags "-Wl,--reduce-memory-overheads" |
233 |
+# fi |
234 |
+ |
235 |
+ # Multiple rendering bugs on youtube, github, etc without this, bug #547224 |
236 |
+ append-flags $(test-flags -fno-strict-aliasing) |
237 |
+ |
238 |
+ # Ruby situation is a bit complicated. See bug 513888 |
239 |
+ local rubyimpl |
240 |
+ local ruby_interpreter="" |
241 |
+ for rubyimpl in ${USE_RUBY}; do |
242 |
+ if has_version "virtual/rubygems[ruby_targets_${rubyimpl}]"; then |
243 |
+ ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})" |
244 |
+ fi |
245 |
+ done |
246 |
+ # This will rarely occur. Only a couple of corner cases could lead us to |
247 |
+ # that failure. See bug 513888 |
248 |
+ [[ -z $ruby_interpreter ]] && die "No suitable ruby interpreter found" |
249 |
+ |
250 |
+ # TODO: Check Web Audio support |
251 |
+ # should somehow let user select between them? |
252 |
+ # |
253 |
+ # FTL_JIT requires llvm |
254 |
+ # |
255 |
+ # opengl needs to be explicetly handled, bug #576634 |
256 |
+ |
257 |
+ local opengl_enabled |
258 |
+ if use opengl || use gles2; then |
259 |
+ opengl_enabled=ON |
260 |
+ else |
261 |
+ opengl_enabled=OFF |
262 |
+ fi |
263 |
+ |
264 |
+ local mycmakeargs=( |
265 |
+ #-DENABLE_UNIFIED_BUILDS=$(usex jumbo-build) # broken in 2.24.0 |
266 |
+ -DENABLE_QUARTZ_TARGET=$(usex aqua) |
267 |
+ -DENABLE_API_TESTS=$(usex test) |
268 |
+ -DENABLE_GTKDOC=$(usex doc) |
269 |
+ -DENABLE_GEOLOCATION=$(usex geolocation) |
270 |
+ $(cmake-utils_use_find_package gles2 OpenGLES2) |
271 |
+ -DENABLE_GLES2=$(usex gles2) |
272 |
+ -DENABLE_VIDEO=$(usex gstreamer) |
273 |
+ -DENABLE_WEB_AUDIO=$(usex gstreamer) |
274 |
+ -DENABLE_INTROSPECTION=$(usex introspection) |
275 |
+ -DENABLE_JIT=$(usex jit) |
276 |
+ -DUSE_LIBNOTIFY=$(usex libnotify) |
277 |
+ -DUSE_LIBSECRET=$(usex gnome-keyring) |
278 |
+ -DUSE_OPENJPEG=$(usex jpeg2k) |
279 |
+ -DUSE_WOFF2=ON |
280 |
+ -DENABLE_PLUGIN_PROCESS_GTK2=$(usex nsplugin) |
281 |
+ -DENABLE_SPELLCHECK=$(usex spell) |
282 |
+ -DENABLE_WAYLAND_TARGET=$(usex wayland) |
283 |
+ -DENABLE_WEBGL=$(usex webgl) |
284 |
+ $(cmake-utils_use_find_package egl EGL) |
285 |
+ $(cmake-utils_use_find_package opengl OpenGL) |
286 |
+ -DENABLE_X11_TARGET=$(usex X) |
287 |
+ -DENABLE_OPENGL=${opengl_enabled} |
288 |
+ -DCMAKE_BUILD_TYPE=Release |
289 |
+ -DPORT=GTK |
290 |
+ ${ruby_interpreter} |
291 |
+ ) |
292 |
+ |
293 |
+ # Allow it to use GOLD when possible as it has all the magic to |
294 |
+ # detect when to use it and using gold for this concrete package has |
295 |
+ # multiple advantages and is also the upstream default, bug #585788 |
296 |
+# if tc-ld-is-gold ; then |
297 |
+# mycmakeargs+=( -DUSE_LD_GOLD=ON ) |
298 |
+# else |
299 |
+# mycmakeargs+=( -DUSE_LD_GOLD=OFF ) |
300 |
+# fi |
301 |
+ |
302 |
+ cmake-utils_src_configure |
303 |
+} |
304 |
+ |
305 |
+src_compile() { |
306 |
+ cmake-utils_src_compile |
307 |
+} |
308 |
+ |
309 |
+src_test() { |
310 |
+ # Prevents test failures on PaX systems |
311 |
+ use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test* |
312 |
+ |
313 |
+ cmake-utils_src_test |
314 |
+} |
315 |
+ |
316 |
+src_install() { |
317 |
+ cmake-utils_src_install |
318 |
+ |
319 |
+ # Prevents crashes on PaX systems, bug #522808 |
320 |
+ use jit && pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/jsc" "${ED}usr/libexec/webkit2gtk-4.0/WebKitWebProcess" |
321 |
+ pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess" |
322 |
+ use nsplugin && pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"2 |
323 |
+} |