Gentoo Archives: gentoo-commits

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