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