Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/webkit-gtk/
Date: Sat, 30 Jan 2016 16:16:08
Message-Id: 1454170556.a62079ddda10039b692df7a77fb4ec572027b2e5.pacho@gentoo
1 commit: a62079ddda10039b692df7a77fb4ec572027b2e5
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 30 16:15:40 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 30 16:15:56 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a62079dd
7
8 net-libs/webkit-gtk: Version bump
9
10 Package-Manager: portage-2.2.27
11
12 net-libs/webkit-gtk/Manifest | 1 +
13 net-libs/webkit-gtk/webkit-gtk-2.10.7.ebuild | 263 +++++++++++++++++++++++++++
14 2 files changed, 264 insertions(+)
15
16 diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest
17 index 66b4911..c0570d3 100644
18 --- a/net-libs/webkit-gtk/Manifest
19 +++ b/net-libs/webkit-gtk/Manifest
20 @@ -1,3 +1,4 @@
21 DIST webkitgtk-2.10.4.tar.xz 11015164 SHA256 dbf8260da5cac0c74de2d3cce1fe7c519da3cd816a2c769cb6c6d56addd2f055 SHA512 1d1c79fb863be192639304c5616fb875ccfe541617fdc5c973e79d8159131080ba734199959a01760b9d06accaae7e2e87bec3bcc42dcd2e6b0d19a5b82ed039 WHIRLPOOL 60c789cd2802827dfa90a46debe7506c03ee0203ebbe81db53eba87994ea56ec93b1e9b61253e6411e27faca813ebb27d0ca460e980ddf983afc4e53fcb72744
22 +DIST webkitgtk-2.10.7.tar.xz 10988396 SHA256 990d62c82ed6dede31a6ff0a82d847f16b812842ff3e1093d17113627652864e SHA512 f0d7b303236910d18568ab1e0a522915a70e9d3658537b32ea2c6a42b8b3ece034a292490f7882760338f2afc56468fd7a8ad8659b7afaf87906220a5c815b5b WHIRLPOOL 7cbe8c42e9c245709eee19a9a01f2a4b238596d8119e3420ca750abb3518e1333ff99a596e9f09d511773a964bafed5baa91efca7b711ddc1c91cb601c520328
23 DIST webkitgtk-2.4.9.tar.xz 9840740 SHA256 afdf29e7828816cad0be2604cf19421e96d96bf493987328ffc8813bb20ac564 SHA512 5dfe5c31e0fcbab5e468a18e08918a439b214dcd620386fa32d35e9110e479b552a4b0b88a1bb8574b34445d5cc5219be349feded32fc1d2791a6c6279d61f98 WHIRLPOOL 26141cd12878bc8136ecffc1636fdcb037f342e5c27c8c557117564af9d1673af84c8c4fd10d3fdbe890bdf183791b18a210f57de9750422959a45c60390076c
24 DIST webkitgtk-2.8.5.tar.xz 10455256 SHA256 3d1f0c534935f43fd74df90f2648fcee672d60f1f57a30fa557a77891ae04d20 SHA512 b87a4149aa133824c7855d562a872fef9067d8c7a78026b9ec29d9eb0798a4da827aac4a1ec4eb1a117f7ae50b14c415c6f04ba4ddee851cf55e2dc503c3eddb WHIRLPOOL 1bb1c542d73db31985d4afc6a9ab59730118e57f99aba1a8e81820880bf832386f77aee70f4a50cece180fdb905b7aa5a0f08b91a5eb64a77c3ad5dd82792ead
25
26 diff --git a/net-libs/webkit-gtk/webkit-gtk-2.10.7.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.10.7.ebuild
27 new file mode 100644
28 index 0000000..749979f
29 --- /dev/null
30 +++ b/net-libs/webkit-gtk/webkit-gtk-2.10.7.ebuild
31 @@ -0,0 +1,263 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI="5"
37 +CMAKE_MAKEFILE_GENERATOR="ninja"
38 +GCONF_DEBUG="no"
39 +PYTHON_COMPAT=( python2_7 )
40 +USE_RUBY="ruby20 ruby21 ruby22 ruby23"
41 +
42 +inherit check-reqs cmake-utils eutils flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs versionator virtualx
43 +
44 +MY_P="webkitgtk-${PV}"
45 +DESCRIPTION="Open source web browser engine"
46 +HOMEPAGE="http://www.webkitgtk.org/"
47 +SRC_URI="http://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 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
52 +
53 +IUSE="aqua coverage doc +egl +geoloc gles2 gnome-keyring +gstreamer +introspection +jit nsplugin +opengl spell wayland +webgl X"
54 +# seccomp
55 +
56 +REQUIRED_USE="
57 + geoloc? ( introspection )
58 + gles2? ( egl )
59 + introspection? ( gstreamer )
60 + nsplugin? ( X )
61 + webgl? ( ^^ ( gles2 opengl ) )
62 + !webgl? ( ?? ( gles2 opengl ) )
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 +# use sqlite, svg by default
71 +# Aqua support in gtk3 is untested
72 +# Dependencies found at Source/cmake/OptionsGTK.cmake
73 +RDEPEND="
74 + dev-db/sqlite:3=
75 + >=dev-libs/glib-2.36:2
76 + >=dev-libs/icu-3.8.1-r1:=
77 + >=dev-libs/libxml2-2.8:2
78 + >=dev-libs/libxslt-1.1.7
79 + >=media-libs/fontconfig-2.8:1.0
80 + >=media-libs/freetype-2.4.2:2
81 + >=media-libs/harfbuzz-0.9.18:=[icu(+)]
82 + >=media-libs/libpng-1.4:0=
83 + media-libs/libwebp:=
84 + >=net-libs/gnutls-3
85 + >=net-libs/libsoup-2.42:2.4[introspection?]
86 + virtual/jpeg:0=
87 + >=x11-libs/cairo-1.10.2:=
88 + >=x11-libs/gtk+-3.14:3[introspection?]
89 + x11-libs/libnotify
90 + >=x11-libs/pango-1.30.0
91 +
92 + aqua? ( >=x11-libs/gtk+-3.14:3[aqua] )
93 + egl? ( media-libs/mesa[egl] )
94 + geoloc? ( >=app-misc/geoclue-2.1.5:2.0 )
95 + gles2? ( media-libs/mesa[gles2] )
96 + gnome-keyring? ( app-crypt/libsecret )
97 + gstreamer? (
98 + >=media-libs/gstreamer-1.2:1.0
99 + >=media-libs/gst-plugins-base-1.2:1.0
100 + >=media-libs/gst-plugins-bad-1.5.0:1.0[opengl?] )
101 + introspection? ( >=dev-libs/gobject-introspection-1.32.0:= )
102 + nsplugin? ( >=x11-libs/gtk+-2.24.10:2 )
103 + opengl? ( virtual/opengl
104 + x11-libs/cairo[opengl] )
105 + spell? ( >=app-text/enchant-0.22:= )
106 + wayland? ( >=x11-libs/gtk+-3.14:3[wayland] )
107 + webgl? (
108 + x11-libs/cairo[opengl]
109 + x11-libs/libXcomposite
110 + x11-libs/libXdamage )
111 + X? (
112 + x11-libs/cairo[X]
113 + >=x11-libs/gtk+-3.14:3[X]
114 + x11-libs/libX11
115 + x11-libs/libXcomposite
116 + x11-libs/libXrender
117 + x11-libs/libXt )
118 +"
119 +# Control knob is private and set to off
120 +# seccomp? ( sys-libs/libseccomp )
121 +
122 +# paxctl needed for bug #407085
123 +# Need real bison, not yacc
124 +DEPEND="${RDEPEND}
125 + ${PYTHON_DEPS}
126 + ${RUBY_DEPS}
127 + >=dev-lang/perl-5.10
128 + >=app-accessibility/at-spi2-core-2.5.3
129 + >=dev-libs/atk-2.8.0
130 + dev-libs/hyphen
131 + >=dev-util/gtk-doc-am-1.10
132 + >=dev-util/gperf-3.0.1
133 + >=sys-devel/bison-2.4.3
134 + >=sys-devel/flex-2.5.34
135 + || ( >=sys-devel/gcc-4.9 >=sys-devel/clang-3.3 )
136 + sys-devel/gettext
137 + virtual/pkgconfig
138 +
139 + doc? ( >=dev-util/gtk-doc-1.10 )
140 + geoloc? ( dev-util/gdbus-codegen )
141 + introspection? ( jit? ( sys-apps/paxctl ) )
142 + test? (
143 + dev-lang/python:2.7
144 + dev-python/pygobject:3[python_targets_python2_7]
145 + x11-themes/hicolor-icon-theme
146 + jit? ( sys-apps/paxctl ) )
147 +"
148 +
149 +S="${WORKDIR}/${MY_P}"
150 +
151 +CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307
152 +
153 +pkg_pretend() {
154 + if [[ ${MERGE_TYPE} != "binary" ]] ; then
155 + if is-flagq "-g*" && ! is-flagq "-g*0" ; then
156 + einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS"
157 + check-reqs_pkg_pretend
158 + fi
159 +
160 + if ! test-flag-CXX -std=c++11 ; then
161 + die "You need at least GCC 4.9.x or Clang >= 3.3 for C++11-specific compiler flags"
162 + fi
163 +
164 + if [[ $(tc-getCXX) == *g++* && $(gcc-version) < 4.9 ]] ; then
165 + die 'The active compiler needs to be gcc 4.9 (or newer)'
166 + fi
167 + fi
168 +}
169 +
170 +pkg_setup() {
171 + if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
172 + check-reqs_pkg_setup
173 + fi
174 +
175 + [[ ${MERGE_TYPE} = "binary" ]] || python-any-r1_pkg_setup
176 +}
177 +
178 +src_prepare() {
179 + # https://bugs.gentoo.org/show_bug.cgi?id=555504
180 + epatch "${FILESDIR}"/${PN}-2.8.5-fix-ia64-build.patch
181 +
182 + # https://bugs.gentoo.org/show_bug.cgi?id=564352
183 + epatch "${FILESDIR}"/${PN}-2.8.5-fix-alpha-build.patch
184 +
185 + # https://bugs.webkit.org/show_bug.cgi?id=148379
186 + epatch "${FILESDIR}"/${PN}-2.8.5-webkit2gtkinjectedbundle-j1.patch
187 +
188 + gnome2_src_prepare
189 +}
190 +
191 +src_configure() {
192 + # Respect CC, otherwise fails on prefix #395875
193 + tc-export CC
194 +
195 + # Arches without JIT support also need this to really disable it in all places
196 + use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0
197 +
198 + # It does not compile on alpha without this in LDFLAGS
199 + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761
200 + use alpha && append-ldflags "-Wl,--no-relax"
201 +
202 + # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504
203 + use ia64 && append-ldflags "-Wl,--no-as-needed"
204 +
205 + # Sigbuses on SPARC with mcpu and co., bug #???
206 + use sparc && filter-flags "-mvis"
207 +
208 + # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
209 + use ppc64 && append-flags "-mminimal-toc"
210 +
211 + # Try to use less memory, bug #469942 (see Fedora .spec for reference)
212 + # --no-keep-memory doesn't work on ia64, bug #502492
213 + if ! use ia64; then
214 + append-ldflags "-Wl,--no-keep-memory"
215 + fi
216 + if ! tc-ld-is-gold ; then
217 + append-ldflags "-Wl,--reduce-memory-overheads"
218 + fi
219 +
220 + # older glibc needs this for INTPTR_MAX, bug #533976
221 + if has_version "<sys-libs/glibc-2.18" ; then
222 + append-cppflags "-D__STDC_LIMIT_MACROS"
223 + fi
224 +
225 + # Multiple rendering bugs on youtube, github, etc without this, bug #547224
226 + append-flags $(test-flags -fno-strict-aliasing)
227 +
228 + local ruby_interpreter=""
229 +
230 + if has_version "virtual/rubygems[ruby_targets_ruby23]"; then
231 + ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby23)"
232 + elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then
233 + ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby22)"
234 + elif has_version "virtual/rubygems[ruby_targets_ruby21]"; then
235 + ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby21)"
236 + else
237 + ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby20)"
238 + fi
239 +
240 + # TODO: Check Web Audio support
241 + # should somehow let user select between them?
242 + #
243 + # FTL_JIT requires llvm
244 + local mycmakeargs=(
245 + $(cmake-utils_use_enable aqua QUARTZ_TARGET)
246 + $(cmake-utils_use_enable test API_TESTS)
247 + $(cmake-utils_use_enable doc GTKDOC)
248 + $(cmake-utils_use_enable geoloc GEOLOCATION)
249 + $(cmake-utils_use_find_package gles2 OpenGLES2)
250 + $(cmake-utils_use_enable gles2 GLES2)
251 + $(cmake-utils_use_enable gnome-keyring CREDENTIAL_STORAGE)
252 + $(cmake-utils_use_enable gstreamer VIDEO)
253 + $(cmake-utils_use_enable gstreamer WEB_AUDIO)
254 + $(cmake-utils_use_enable introspection)
255 + $(cmake-utils_use_enable jit)
256 + $(cmake-utils_use_enable nsplugin PLUGIN_PROCESS_GTK2)
257 + $(cmake-utils_use_enable spell SPELLCHECK SPELLCHECK)
258 + $(cmake-utils_use_enable wayland WAYLAND_TARGET)
259 + $(cmake-utils_use_enable webgl WEBGL)
260 + $(cmake-utils_use_find_package egl EGL)
261 + $(cmake-utils_use_find_package opengl OpenGL)
262 + $(cmake-utils_use_enable X X11_TARGET)
263 + -DCMAKE_BUILD_TYPE=Release
264 + -DPORT=GTK
265 + ${ruby_interpreter}
266 + )
267 + if tc-ld-is-gold ; then
268 + mycmakeargs+=( -DUSE_LD_GOLD=ON )
269 + else
270 + mycmakeargs+=( -DUSE_LD_GOLD=OFF )
271 + fi
272 +
273 + cmake-utils_src_configure
274 +}
275 +
276 +src_compile() {
277 + cmake-utils_src_compile
278 +}
279 +
280 +src_test() {
281 + # Prevents test failures on PaX systems
282 + use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test*
283 +
284 + cmake-utils_src_test
285 +}
286 +
287 +src_install() {
288 + cmake-utils_src_install
289 +
290 + # Prevents crashes on PaX systems, bug #522808
291 + use jit && pax-mark m "${ED}usr/bin/jsc" "${ED}usr/libexec/webkit2gtk-4.0/WebKitWebProcess"
292 + pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"
293 + use nsplugin && pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"2
294 +}