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: Fri, 30 Dec 2016 03:32:43
Message-Id: 1483068746.927e1ec5f0b9871d5f3347309aad210e326f8056.leio@gentoo
1 commit: 927e1ec5f0b9871d5f3347309aad210e326f8056
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 30 03:32:26 2016 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 30 03:32:26 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=927e1ec5
7
8 net-libs/webkit-gtk: Remove old
9
10 Package-Manager: portage-2.3.3
11
12 net-libs/webkit-gtk/Manifest | 1 -
13 net-libs/webkit-gtk/webkit-gtk-2.14.1.ebuild | 289 ---------------------------
14 2 files changed, 290 deletions(-)
15
16 diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest
17 index 8d0113a..2349e43 100644
18 --- a/net-libs/webkit-gtk/Manifest
19 +++ b/net-libs/webkit-gtk/Manifest
20 @@ -1,4 +1,3 @@
21 DIST webkitgtk-2.12.5.tar.xz 11712488 SHA256 6b147854b864a5f115fadb97b2b6200b2f696db015216a34e7298d11c88b1c40 SHA512 ec98e862c2b8799dead6ff3da8299696f6f68675c42e166ca982a83e804cce14d99196f6a14af574cb0b10166fe353dda3f347a734949efa36592f78c4b07a38 WHIRLPOOL 6913ea8acfcbb16dbaaf5575572aec9f299990c8c270ac62cd1978e8af5690dbde1c6474b0323879c8777724e3ad02e5cccae4aea298550862a5b479a6b1a6c2
22 -DIST webkitgtk-2.14.1.tar.xz 13415796 SHA256 2e2d76c328de65bed6e0e4f096b2720a366654b27fc1af0830ece90bc4b7ceb5 SHA512 7b39c4f75e2fd8e5e833808597444f495ece70e79dbe49f27e4c6cbc486583954eac66b6b4324db83f2c5c92ef9f9e8f3b2c6c8046d5f326e551aecb989efa28 WHIRLPOOL e1c7db917b9a5db92613771aa98f7e29441a783b5b707c83715720291c68b357b0fc977349b6849e8c6d14b920e009fa45b5e6bf14b86c20f5ace263c33588c7
23 DIST webkitgtk-2.14.2.tar.xz 13416388 SHA256 2edbcbd5105046aea55af9671c4de8deedb5b0e3567c618034d440a760675556 SHA512 e1e344660c1aa38f2911aab334581b015bdbd6fa3bef6f1cd67560b86f1b183bf91cafb94bd4783f4660ecad94dc662ec4a342d5bb2420f284150adc21f79beb WHIRLPOOL 708eb9f531ab247418556f21c6d4d73f0c698926017cbb17b1ccf342165631e887bba82e08e77ce4eae401246d401bdc3275485a4796d581f1beb02d74860c31
24 DIST webkitgtk-2.4.11.tar.xz 9869100 SHA256 588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7 SHA512 2e2cf01a52b8593765a0a3c2d7f0ad306121660019eb402226bd2826c7d4666dab4e91ca6ccbd29abe0ad3993549f256ed1ab88de22e9c8516d5f40a4edd6bfb WHIRLPOOL de86c4abfb22aacbf62163d0398158931c9cf6ab628547d3b30e613f0505d67c85c3200f7db96500e7c2b35f640cdaa7f501346fc13f492c9439dff4056849a3
25
26 diff --git a/net-libs/webkit-gtk/webkit-gtk-2.14.1.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.14.1.ebuild
27 deleted file mode 100644
28 index 0a5fc10..00000000
29 --- a/net-libs/webkit-gtk/webkit-gtk-2.14.1.ebuild
30 +++ /dev/null
31 @@ -1,289 +0,0 @@
32 -# Copyright 1999-2016 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -# $Id$
35 -
36 -EAPI=6
37 -CMAKE_MAKEFILE_GENERATOR="ninja"
38 -PYTHON_COMPAT=( python2_7 )
39 -USE_RUBY="ruby20 ruby21 ruby22 ruby23"
40 -
41 -inherit check-reqs cmake-utils eutils flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs versionator virtualx
42 -
43 -MY_P="webkitgtk-${PV}"
44 -DESCRIPTION="Open source web browser engine"
45 -HOMEPAGE="http://www.webkitgtk.org/"
46 -SRC_URI="http://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 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-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 )
58 - introspection? ( gstreamer )
59 - nsplugin? ( X )
60 - webgl? ( ^^ ( gles2 opengl ) )
61 - !webgl? ( ?? ( gles2 opengl ) )
62 - webgl? ( gstreamer )
63 - wayland? ( egl )
64 - || ( aqua wayland X )
65 -"
66 -
67 -# Tests fail to link for inexplicable reasons
68 -# https://bugs.webkit.org/show_bug.cgi?id=148210
69 -RESTRICT="test"
70 -
71 -# use sqlite, svg by default
72 -# Aqua support in gtk3 is untested
73 -# Dependencies found at Source/cmake/OptionsGTK.cmake
74 -RDEPEND="
75 - dev-db/sqlite:3=
76 - >=dev-libs/glib-2.36:2
77 - dev-libs/hyphen
78 - >=dev-libs/icu-3.8.1-r1:=
79 - >=dev-libs/libxml2-2.8:2
80 - >=dev-libs/libxslt-1.1.7
81 - >=media-libs/fontconfig-2.8:1.0
82 - >=media-libs/freetype-2.4.2:2
83 - >=media-libs/harfbuzz-0.9.18:=[icu(+)]
84 - >=media-libs/libpng-1.4:0=
85 - media-libs/libwebp:=
86 - >=net-libs/gnutls-3
87 - >=net-libs/libsoup-2.42:2.4[introspection?]
88 - >=x11-libs/cairo-1.10.2:=
89 - >=x11-libs/gtk+-3.14:3[introspection?]
90 - >=x11-libs/pango-1.30.0
91 - virtual/jpeg:0=
92 -
93 - aqua? ( >=x11-libs/gtk+-3.14:3[aqua] )
94 - egl? ( media-libs/mesa[egl] )
95 - geolocation? ( >=app-misc/geoclue-2.1.5:2.0 )
96 - gles2? ( media-libs/mesa[gles2] )
97 - gnome-keyring? ( app-crypt/libsecret )
98 - gstreamer? (
99 - >=media-libs/gstreamer-1.2:1.0
100 - >=media-libs/gst-plugins-base-1.2:1.0
101 - >=media-libs/gst-plugins-bad-1.8:1.0[opengl?] )
102 - introspection? ( >=dev-libs/gobject-introspection-1.32.0:= )
103 - libnotify? ( x11-libs/libnotify )
104 - nsplugin? ( >=x11-libs/gtk+-2.24.10:2 )
105 - opengl? ( virtual/opengl
106 - x11-libs/cairo[opengl] )
107 - spell? ( >=app-text/enchant-0.22:= )
108 - wayland? ( >=x11-libs/gtk+-3.14:3[wayland] )
109 - webgl? (
110 - x11-libs/cairo[opengl]
111 - x11-libs/libXcomposite
112 - x11-libs/libXdamage )
113 - X? (
114 - x11-libs/cairo[X]
115 - >=x11-libs/gtk+-3.14:3[X]
116 - x11-libs/libX11
117 - x11-libs/libXcomposite
118 - x11-libs/libXrender
119 - x11-libs/libXt )
120 -"
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-util/gtk-doc-am-1.10
131 - >=dev-util/gperf-3.0.1
132 - >=sys-devel/bison-2.4.3
133 - >=sys-devel/flex-2.5.34
134 - || ( >=sys-devel/gcc-4.9 >=sys-devel/clang-3.3 )
135 - sys-devel/gettext
136 - virtual/pkgconfig
137 -
138 - doc? ( >=dev-util/gtk-doc-1.10 )
139 - geolocation? ( dev-util/gdbus-codegen )
140 - introspection? ( jit? ( sys-apps/paxctl ) )
141 - test? (
142 - dev-lang/python:2.7
143 - dev-python/pygobject:3[python_targets_python2_7]
144 - x11-themes/hicolor-icon-theme
145 - jit? ( sys-apps/paxctl ) )
146 -"
147 -
148 -S="${WORKDIR}/${MY_P}"
149 -
150 -CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307
151 -
152 -pkg_pretend() {
153 - if [[ ${MERGE_TYPE} != "binary" ]] ; then
154 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
155 - einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS"
156 - check-reqs_pkg_pretend
157 - fi
158 -
159 - if ! test-flag-CXX -std=c++11 ; then
160 - die "You need at least GCC 4.9.x or Clang >= 3.3 for C++11-specific compiler flags"
161 - fi
162 -
163 - if tc-is-gcc && [[ $(gcc-version) < 4.9 ]] ; then
164 - die 'The active compiler needs to be gcc 4.9 (or newer)'
165 - fi
166 - fi
167 -}
168 -
169 -pkg_setup() {
170 - if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
171 - check-reqs_pkg_setup
172 - fi
173 -
174 - python-any-r1_pkg_setup
175 -}
176 -
177 -src_prepare() {
178 - # https://bugs.gentoo.org/show_bug.cgi?id=555504
179 - eapply "${FILESDIR}"/${PN}-2.8.5-fix-ia64-build.patch
180 -
181 - # https://bugs.gentoo.org/show_bug.cgi?id=564352
182 - eapply "${FILESDIR}"/${PN}-2.8.5-fix-alpha-build.patch
183 -
184 - # https://bugs.webkit.org/show_bug.cgi?id=148379
185 - eapply "${FILESDIR}"/${PN}-2.8.5-webkit2gtkinjectedbundle-j1.patch
186 -
187 - gnome2_src_prepare
188 -}
189 -
190 -src_configure() {
191 - # Respect CC, otherwise fails on prefix #395875
192 - tc-export CC
193 -
194 - # Arches without JIT support also need this to really disable it in all places
195 - use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0
196 -
197 - # It does not compile on alpha without this in LDFLAGS
198 - # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761
199 - use alpha && append-ldflags "-Wl,--no-relax"
200 -
201 - # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504
202 - use ia64 && append-ldflags "-Wl,--no-as-needed"
203 -
204 - # Sigbuses on SPARC with mcpu and co., bug #???
205 - use sparc && filter-flags "-mvis"
206 -
207 - # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
208 - use ppc64 && append-flags "-mminimal-toc"
209 -
210 - # Try to use less memory, bug #469942 (see Fedora .spec for reference)
211 - # --no-keep-memory doesn't work on ia64, bug #502492
212 - if ! use ia64; then
213 - append-ldflags "-Wl,--no-keep-memory"
214 - fi
215 -
216 - # We try to use gold when possible for this package
217 -# if ! tc-ld-is-gold ; then
218 -# append-ldflags "-Wl,--reduce-memory-overheads"
219 -# fi
220 -
221 - # older glibc needs this for INTPTR_MAX, bug #533976
222 - if has_version "<sys-libs/glibc-2.18" ; then
223 - append-cppflags "-D__STDC_LIMIT_MACROS"
224 - fi
225 -
226 - # Multiple rendering bugs on youtube, github, etc without this, bug #547224
227 - append-flags $(test-flags -fno-strict-aliasing)
228 -
229 - local ruby_interpreter=""
230 -
231 - if has_version "virtual/rubygems[ruby_targets_ruby23]"; then
232 - ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby23)"
233 - elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then
234 - ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby22)"
235 - elif has_version "virtual/rubygems[ruby_targets_ruby21]"; then
236 - ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby21)"
237 - else
238 - ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby20)"
239 - fi
240 -
241 - # TODO: Check Web Audio support
242 - # should somehow let user select between them?
243 - #
244 - # FTL_JIT requires llvm
245 - #
246 - # opengl needs to be explicetly handled, bug #576634
247 -
248 - local opengl_enabled
249 - if use opengl || use gles2; then
250 - opengl_enabled=ON
251 - else
252 - opengl_enabled=OFF
253 - fi
254 -
255 - # support for webgl (aka 2d-canvas accelerating)
256 - local canvas_enabled
257 - if use webgl && ! use gles2 ; then
258 - canvas_enabled=ON
259 - else
260 - canvas_enabled=OFF
261 - fi
262 -
263 - local mycmakeargs=(
264 - -DENABLE_QUARTZ_TARGET=$(usex aqua)
265 - -DENABLE_API_TESTS=$(usex test)
266 - -DENABLE_GTKDOC=$(usex doc)
267 - -DENABLE_GEOLOCATION=$(usex geolocation)
268 - $(cmake-utils_use_find_package gles2 OpenGLES2)
269 - -DENABLE_GLES2=$(usex gles2)
270 - -DENABLE_CREDENTIAL_STORAGE=$(usex gnome-keyring)
271 - -DENABLE_VIDEO=$(usex gstreamer)
272 - -DENABLE_WEB_AUDIO=$(usex gstreamer)
273 - -DENABLE_INTROSPECTION=$(usex introspection)
274 - -DENABLE_JIT=$(usex jit)
275 - -DUSE_LIBNOTIFY=$(usex libnotify)
276 - -DENABLE_PLUGIN_PROCESS_GTK2=$(usex nsplugin)
277 - -DENABLE_SPELLCHECK=$(usex spell)
278 - -DENABLE_WAYLAND_TARGET=$(usex wayland)
279 - -DENABLE_WEBGL=$(usex webgl)
280 - $(cmake-utils_use_find_package egl EGL)
281 - $(cmake-utils_use_find_package opengl OpenGL)
282 - -DENABLE_X11_TARGET=$(usex X)
283 - -DENABLE_OPENGL=${opengl_enabled}
284 - -DENABLE_ACCELERATED_2D_CANVAS=${canvas_enabled}
285 - -DCMAKE_BUILD_TYPE=Release
286 - -DPORT=GTK
287 - ${ruby_interpreter}
288 - )
289 -
290 - # Allow it to use GOLD when possible as it has all the magic to
291 - # detect when to use it and using gold for this concrete package has
292 - # multiple advantages and is also the upstream default, bug #585788
293 -# if tc-ld-is-gold ; then
294 -# mycmakeargs+=( -DUSE_LD_GOLD=ON )
295 -# else
296 -# mycmakeargs+=( -DUSE_LD_GOLD=OFF )
297 -# fi
298 -
299 - cmake-utils_src_configure
300 -}
301 -
302 -src_compile() {
303 - cmake-utils_src_compile
304 -}
305 -
306 -src_test() {
307 - # Prevents test failures on PaX systems
308 - use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test*
309 -
310 - cmake-utils_src_test
311 -}
312 -
313 -src_install() {
314 - cmake-utils_src_install
315 -
316 - # Prevents crashes on PaX systems, bug #522808
317 - use jit && pax-mark m "${ED}usr/bin/jsc" "${ED}usr/libexec/webkit2gtk-4.0/WebKitWebProcess"
318 - pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"
319 - use nsplugin && pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"2
320 -}