Gentoo Archives: gentoo-commits

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