1 |
commit: e94574b23b0927cbe4403db7b1fcccc5a3455b98 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 30 07:25:28 2019 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 30 20:06:44 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e94574b2 |
7 |
|
8 |
net-libs/webkit-gtk: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
12 |
|
13 |
net-libs/webkit-gtk/Manifest | 2 - |
14 |
net-libs/webkit-gtk/webkit-gtk-2.24.1.ebuild | 281 --------------------------- |
15 |
net-libs/webkit-gtk/webkit-gtk-2.24.2.ebuild | 281 --------------------------- |
16 |
3 files changed, 564 deletions(-) |
17 |
|
18 |
diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest |
19 |
index 3e5cee29392..f179b120a41 100644 |
20 |
--- a/net-libs/webkit-gtk/Manifest |
21 |
+++ b/net-libs/webkit-gtk/Manifest |
22 |
@@ -1,3 +1 @@ |
23 |
-DIST webkitgtk-2.24.1.tar.xz 17897488 BLAKE2B 62cd6d896d4b4847430f0d41de92595e955db283626dad2aa560071da12ccd0c24093163e15cc50c30ceb96f9767797f9051657ec68f822e7e371c8566872ad5 SHA512 65424f03b6baca53d64f0d633f53e2f7788c7fb65aa8b50b696418c140707c40351ec3cc0a8652806d75b9da98a04a8bb4203dd6ee4c51a3f93878964354c1ca |
24 |
-DIST webkitgtk-2.24.2.tar.xz 17908808 BLAKE2B bf53f27a5fa15067fb91cbfcff3c2287418c797a4ad03d3a71fbdb194c27e069ab5985b9c8e8df008ed80c80fe2a397d71297b4c187fd7c3acbfe2961d332c50 SHA512 8376167cfc4530886a2ac644ab84ff1021a63f6236d7be9eeb9e0ecade8bad5384b652dfe3720fdd31cddb39df6c935f859f1c0a59f42d7c71998992c4a9ffaa |
25 |
DIST webkitgtk-2.24.3.tar.xz 17912032 BLAKE2B 9ac897f10ef25a25b70b73499fb79b72d469c0016231b94fb3376dc8876fd9ac2874bac38450ddf67c80dba8a66fa509c8cd42bc4ce5316d6e4a17fa1346803c SHA512 b358bb11f7df477e5b3d6a12e2e6b41cb4e6a7274e34ce6299bf0c56044ffc7db5a834e9abf5c71d992ef41d194d30171b8be406420ffc54fe766cc811afb79f |
26 |
|
27 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.24.1.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.24.1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 4438db5fb69..00000000000 |
30 |
--- a/net-libs/webkit-gtk/webkit-gtk-2.24.1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,281 +0,0 @@ |
33 |
-# Copyright 1999-2019 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=( python{2_7,3_5,3_6,3_7} ) |
39 |
-USE_RUBY="ruby24 ruby25 ruby26" |
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 jpeg2k libnotify nsplugin +opengl spell wayland +webgl +X" |
53 |
- |
54 |
-# webgl needs gstreamer, bug #560612 |
55 |
-# gstreamer with opengl/gles2 needs egl |
56 |
-REQUIRED_USE=" |
57 |
- geolocation? ( introspection ) |
58 |
- gles2? ( egl !opengl ) |
59 |
- gstreamer? ( opengl? ( egl ) ) |
60 |
- nsplugin? ( X ) |
61 |
- webgl? ( gstreamer |
62 |
- || ( gles2 opengl ) ) |
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 |
-# Aqua support in gtk3 is untested |
72 |
-# Dependencies found at Source/cmake/OptionsGTK.cmake |
73 |
-# Various compile-time optionals for gtk+-3.22.0 - ensure it |
74 |
-# Missing OpenWebRTC checks and conditionals, but ENABLE_MEDIA_STREAM/ENABLE_WEB_RTC is experimental upstream (PRIVATE OFF) |
75 |
-# >=gst-plugins-opus-1.14.4-r1 for opusparse (required by MSE) |
76 |
-RDEPEND=" |
77 |
- >=x11-libs/cairo-1.16.0:=[X?] |
78 |
- >=media-libs/fontconfig-2.13.0:1.0 |
79 |
- >=media-libs/freetype-2.9.0:2 |
80 |
- >=dev-libs/libgcrypt-1.7.0:0= |
81 |
- >=x11-libs/gtk+-3.22:3[aqua?,introspection?,wayland?,X?] |
82 |
- >=media-libs/harfbuzz-1.4.2:=[icu(+)] |
83 |
- >=dev-libs/icu-3.8.1-r1:= |
84 |
- virtual/jpeg:0= |
85 |
- >=net-libs/libsoup-2.48:2.4[introspection?] |
86 |
- >=dev-libs/libxml2-2.8.0:2 |
87 |
- >=media-libs/libpng-1.4:0= |
88 |
- dev-db/sqlite:3= |
89 |
- sys-libs/zlib:0 |
90 |
- >=dev-libs/atk-2.8.0 |
91 |
- media-libs/libwebp:= |
92 |
- |
93 |
- >=dev-libs/glib-2.40:2 |
94 |
- >=dev-libs/libxslt-1.1.7 |
95 |
- media-libs/woff2 |
96 |
- gnome-keyring? ( app-crypt/libsecret ) |
97 |
- geolocation? ( >=app-misc/geoclue-2.1.5:2.0 ) |
98 |
- introspection? ( >=dev-libs/gobject-introspection-1.32.0:= ) |
99 |
- dev-libs/libtasn1:= |
100 |
- nsplugin? ( >=x11-libs/gtk+-2.24.10:2 ) |
101 |
- spell? ( >=app-text/enchant-0.22:= ) |
102 |
- gstreamer? ( |
103 |
- >=media-libs/gstreamer-1.14:1.0 |
104 |
- >=media-libs/gst-plugins-base-1.14:1.0[egl?,gles2?,opengl?] |
105 |
- >=media-plugins/gst-plugins-opus-1.14.4-r1:1.0 |
106 |
- >=media-libs/gst-plugins-bad-1.14:1.0 ) |
107 |
- |
108 |
- X? ( |
109 |
- x11-libs/libX11 |
110 |
- x11-libs/libXcomposite |
111 |
- x11-libs/libXdamage |
112 |
- x11-libs/libXrender |
113 |
- x11-libs/libXt ) |
114 |
- |
115 |
- libnotify? ( x11-libs/libnotify ) |
116 |
- dev-libs/hyphen |
117 |
- jpeg2k? ( >=media-libs/openjpeg-2.2.0:2= ) |
118 |
- |
119 |
- egl? ( media-libs/mesa[egl] ) |
120 |
- gles2? ( media-libs/mesa[gles2] ) |
121 |
- opengl? ( virtual/opengl ) |
122 |
- webgl? ( |
123 |
- x11-libs/libXcomposite |
124 |
- x11-libs/libXdamage ) |
125 |
-" |
126 |
- |
127 |
-# paxctl needed for bug #407085 |
128 |
-# Need real bison, not yacc |
129 |
-DEPEND="${RDEPEND} |
130 |
- ${PYTHON_DEPS} |
131 |
- ${RUBY_DEPS} |
132 |
- >=app-accessibility/at-spi2-core-2.5.3 |
133 |
- dev-util/glib-utils |
134 |
- >=dev-util/gtk-doc-am-1.10 |
135 |
- >=dev-util/gperf-3.0.1 |
136 |
- >=sys-devel/bison-2.4.3 |
137 |
- || ( >=sys-devel/gcc-6.0 >=sys-devel/clang-3.3 ) |
138 |
- sys-devel/gettext |
139 |
- virtual/pkgconfig |
140 |
- |
141 |
- >=dev-lang/perl-5.10 |
142 |
- virtual/perl-Data-Dumper |
143 |
- virtual/perl-Carp |
144 |
- virtual/perl-JSON-PP |
145 |
- |
146 |
- doc? ( >=dev-util/gtk-doc-1.10 ) |
147 |
- geolocation? ( dev-util/gdbus-codegen ) |
148 |
-" |
149 |
-# test? ( |
150 |
-# dev-python/pygobject:3[python_targets_python2_7] |
151 |
-# x11-themes/hicolor-icon-theme |
152 |
-# jit? ( sys-apps/paxctl ) ) |
153 |
- |
154 |
-S="${WORKDIR}/${MY_P}" |
155 |
- |
156 |
-CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
157 |
- |
158 |
-pkg_pretend() { |
159 |
- if [[ ${MERGE_TYPE} != "binary" ]] ; then |
160 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
161 |
- einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
162 |
- check-reqs_pkg_pretend |
163 |
- fi |
164 |
- |
165 |
- if ! test-flag-CXX -std=c++11 ; then |
166 |
- die "You need at least GCC 4.9.x or Clang >= 3.3 for C++11-specific compiler flags" |
167 |
- fi |
168 |
- |
169 |
- if tc-is-gcc && [[ $(gcc-version) < 4.9 ]] ; then |
170 |
- die 'The active compiler needs to be gcc 4.9 (or newer)' |
171 |
- fi |
172 |
- fi |
173 |
- |
174 |
- if ! use opengl && ! use gles2; then |
175 |
- ewarn |
176 |
- ewarn "You are disabling OpenGL usage (USE=opengl or USE=gles) completely." |
177 |
- ewarn "This is an unsupported configuration meant for very specific embedded" |
178 |
- ewarn "use cases, where there truly is no GL possible (and even that use case" |
179 |
- ewarn "is very unlikely to come by). If you have GL (even software-only), you" |
180 |
- ewarn "really really should be enabling OpenGL!" |
181 |
- ewarn |
182 |
- fi |
183 |
-} |
184 |
- |
185 |
-pkg_setup() { |
186 |
- if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
187 |
- check-reqs_pkg_setup |
188 |
- fi |
189 |
- |
190 |
- python-any-r1_pkg_setup |
191 |
-} |
192 |
- |
193 |
-src_prepare() { |
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 |
- # Multiple rendering bugs on youtube, github, etc without this, bug #547224 |
227 |
- append-flags $(test-flags -fno-strict-aliasing) |
228 |
- |
229 |
- # Ruby situation is a bit complicated. See bug 513888 |
230 |
- local rubyimpl |
231 |
- local ruby_interpreter="" |
232 |
- for rubyimpl in ${USE_RUBY}; do |
233 |
- if has_version "virtual/rubygems[ruby_targets_${rubyimpl}]"; then |
234 |
- ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})" |
235 |
- fi |
236 |
- done |
237 |
- # This will rarely occur. Only a couple of corner cases could lead us to |
238 |
- # that failure. See bug 513888 |
239 |
- [[ -z $ruby_interpreter ]] && die "No suitable ruby interpreter found" |
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 |
- local mycmakeargs=( |
256 |
- #-DENABLE_UNIFIED_BUILDS=$(usex jumbo-build) # broken in 2.24.1 |
257 |
- -DENABLE_QUARTZ_TARGET=$(usex aqua) |
258 |
- -DENABLE_API_TESTS=$(usex test) |
259 |
- -DENABLE_GTKDOC=$(usex doc) |
260 |
- -DENABLE_GEOLOCATION=$(usex geolocation) |
261 |
- $(cmake-utils_use_find_package gles2 OpenGLES2) |
262 |
- -DENABLE_GLES2=$(usex gles2) |
263 |
- -DENABLE_VIDEO=$(usex gstreamer) |
264 |
- -DENABLE_WEB_AUDIO=$(usex gstreamer) |
265 |
- -DENABLE_INTROSPECTION=$(usex introspection) |
266 |
- -DUSE_LIBNOTIFY=$(usex libnotify) |
267 |
- -DUSE_LIBSECRET=$(usex gnome-keyring) |
268 |
- -DUSE_OPENJPEG=$(usex jpeg2k) |
269 |
- -DUSE_WOFF2=ON |
270 |
- -DENABLE_PLUGIN_PROCESS_GTK2=$(usex nsplugin) |
271 |
- -DENABLE_SPELLCHECK=$(usex spell) |
272 |
- -DENABLE_WAYLAND_TARGET=$(usex wayland) |
273 |
- -DENABLE_WEBGL=$(usex webgl) |
274 |
- $(cmake-utils_use_find_package egl EGL) |
275 |
- $(cmake-utils_use_find_package opengl OpenGL) |
276 |
- -DENABLE_X11_TARGET=$(usex X) |
277 |
- -DENABLE_OPENGL=${opengl_enabled} |
278 |
- -DCMAKE_BUILD_TYPE=Release |
279 |
- -DPORT=GTK |
280 |
- ${ruby_interpreter} |
281 |
- ) |
282 |
- |
283 |
- # Allow it to use GOLD when possible as it has all the magic to |
284 |
- # detect when to use it and using gold for this concrete package has |
285 |
- # multiple advantages and is also the upstream default, bug #585788 |
286 |
-# if tc-ld-is-gold ; then |
287 |
-# mycmakeargs+=( -DUSE_LD_GOLD=ON ) |
288 |
-# else |
289 |
-# mycmakeargs+=( -DUSE_LD_GOLD=OFF ) |
290 |
-# fi |
291 |
- |
292 |
- cmake-utils_src_configure |
293 |
-} |
294 |
- |
295 |
-src_compile() { |
296 |
- cmake-utils_src_compile |
297 |
-} |
298 |
- |
299 |
-src_test() { |
300 |
- # Prevents test failures on PaX systems |
301 |
- pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test* |
302 |
- |
303 |
- cmake-utils_src_test |
304 |
-} |
305 |
- |
306 |
-src_install() { |
307 |
- cmake-utils_src_install |
308 |
- |
309 |
- # Prevents crashes on PaX systems, bug #522808 |
310 |
- pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/jsc" "${ED}usr/libexec/webkit2gtk-4.0/WebKitWebProcess" |
311 |
- pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess" |
312 |
- use nsplugin && pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"2 |
313 |
-} |
314 |
|
315 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.24.2.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.24.2.ebuild |
316 |
deleted file mode 100644 |
317 |
index fd02876d160..00000000000 |
318 |
--- a/net-libs/webkit-gtk/webkit-gtk-2.24.2.ebuild |
319 |
+++ /dev/null |
320 |
@@ -1,281 +0,0 @@ |
321 |
-# Copyright 1999-2019 Gentoo Authors |
322 |
-# Distributed under the terms of the GNU General Public License v2 |
323 |
- |
324 |
-EAPI=6 |
325 |
-CMAKE_MAKEFILE_GENERATOR="ninja" |
326 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
327 |
-USE_RUBY="ruby24 ruby25 ruby26" |
328 |
- |
329 |
-inherit check-reqs cmake-utils flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs virtualx |
330 |
- |
331 |
-MY_P="webkitgtk-${PV}" |
332 |
-DESCRIPTION="Open source web browser engine" |
333 |
-HOMEPAGE="https://www.webkitgtk.org" |
334 |
-SRC_URI="https://www.webkitgtk.org/releases/${MY_P}.tar.xz" |
335 |
- |
336 |
-LICENSE="LGPL-2+ BSD" |
337 |
-SLOT="4/37" # soname version of libwebkit2gtk-4.0 |
338 |
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
339 |
- |
340 |
-IUSE="aqua coverage doc +egl +geolocation gles2 gnome-keyring +gstreamer +introspection +jpeg2k libnotify nsplugin +opengl spell wayland +webgl +X" |
341 |
- |
342 |
-# webgl needs gstreamer, bug #560612 |
343 |
-# gstreamer with opengl/gles2 needs egl |
344 |
-REQUIRED_USE=" |
345 |
- geolocation? ( introspection ) |
346 |
- gles2? ( egl !opengl ) |
347 |
- gstreamer? ( opengl? ( egl ) ) |
348 |
- nsplugin? ( X ) |
349 |
- webgl? ( gstreamer |
350 |
- || ( gles2 opengl ) ) |
351 |
- wayland? ( egl ) |
352 |
- || ( aqua wayland X ) |
353 |
-" |
354 |
- |
355 |
-# Tests fail to link for inexplicable reasons |
356 |
-# https://bugs.webkit.org/show_bug.cgi?id=148210 |
357 |
-RESTRICT="test" |
358 |
- |
359 |
-# Aqua support in gtk3 is untested |
360 |
-# Dependencies found at Source/cmake/OptionsGTK.cmake |
361 |
-# Various compile-time optionals for gtk+-3.22.0 - ensure it |
362 |
-# Missing OpenWebRTC checks and conditionals, but ENABLE_MEDIA_STREAM/ENABLE_WEB_RTC is experimental upstream (PRIVATE OFF) |
363 |
-# >=gst-plugins-opus-1.14.4-r1 for opusparse (required by MSE) |
364 |
-RDEPEND=" |
365 |
- >=x11-libs/cairo-1.16.0:=[X?] |
366 |
- >=media-libs/fontconfig-2.13.0:1.0 |
367 |
- >=media-libs/freetype-2.9.0:2 |
368 |
- >=dev-libs/libgcrypt-1.7.0:0= |
369 |
- >=x11-libs/gtk+-3.22:3[aqua?,introspection?,wayland?,X?] |
370 |
- >=media-libs/harfbuzz-1.4.2:=[icu(+)] |
371 |
- >=dev-libs/icu-3.8.1-r1:= |
372 |
- virtual/jpeg:0= |
373 |
- >=net-libs/libsoup-2.48:2.4[introspection?] |
374 |
- >=dev-libs/libxml2-2.8.0:2 |
375 |
- >=media-libs/libpng-1.4:0= |
376 |
- dev-db/sqlite:3= |
377 |
- sys-libs/zlib:0 |
378 |
- >=dev-libs/atk-2.8.0 |
379 |
- media-libs/libwebp:= |
380 |
- |
381 |
- >=dev-libs/glib-2.40:2 |
382 |
- >=dev-libs/libxslt-1.1.7 |
383 |
- media-libs/woff2 |
384 |
- gnome-keyring? ( app-crypt/libsecret ) |
385 |
- geolocation? ( >=app-misc/geoclue-2.1.5:2.0 ) |
386 |
- introspection? ( >=dev-libs/gobject-introspection-1.32.0:= ) |
387 |
- dev-libs/libtasn1:= |
388 |
- nsplugin? ( >=x11-libs/gtk+-2.24.10:2 ) |
389 |
- spell? ( >=app-text/enchant-0.22:= ) |
390 |
- gstreamer? ( |
391 |
- >=media-libs/gstreamer-1.14:1.0 |
392 |
- >=media-libs/gst-plugins-base-1.14:1.0[egl?,gles2?,opengl?] |
393 |
- >=media-plugins/gst-plugins-opus-1.14.4-r1:1.0 |
394 |
- >=media-libs/gst-plugins-bad-1.14:1.0 ) |
395 |
- |
396 |
- X? ( |
397 |
- x11-libs/libX11 |
398 |
- x11-libs/libXcomposite |
399 |
- x11-libs/libXdamage |
400 |
- x11-libs/libXrender |
401 |
- x11-libs/libXt ) |
402 |
- |
403 |
- libnotify? ( x11-libs/libnotify ) |
404 |
- dev-libs/hyphen |
405 |
- jpeg2k? ( >=media-libs/openjpeg-2.2.0:2= ) |
406 |
- |
407 |
- egl? ( media-libs/mesa[egl] ) |
408 |
- gles2? ( media-libs/mesa[gles2] ) |
409 |
- opengl? ( virtual/opengl ) |
410 |
- webgl? ( |
411 |
- x11-libs/libXcomposite |
412 |
- x11-libs/libXdamage ) |
413 |
-" |
414 |
- |
415 |
-# paxctl needed for bug #407085 |
416 |
-# Need real bison, not yacc |
417 |
-DEPEND="${RDEPEND} |
418 |
- ${PYTHON_DEPS} |
419 |
- ${RUBY_DEPS} |
420 |
- >=app-accessibility/at-spi2-core-2.5.3 |
421 |
- dev-util/glib-utils |
422 |
- >=dev-util/gtk-doc-am-1.10 |
423 |
- >=dev-util/gperf-3.0.1 |
424 |
- >=sys-devel/bison-2.4.3 |
425 |
- || ( >=sys-devel/gcc-6.0 >=sys-devel/clang-3.3 ) |
426 |
- sys-devel/gettext |
427 |
- virtual/pkgconfig |
428 |
- |
429 |
- >=dev-lang/perl-5.10 |
430 |
- virtual/perl-Data-Dumper |
431 |
- virtual/perl-Carp |
432 |
- virtual/perl-JSON-PP |
433 |
- |
434 |
- doc? ( >=dev-util/gtk-doc-1.10 ) |
435 |
- geolocation? ( dev-util/gdbus-codegen ) |
436 |
-" |
437 |
-# test? ( |
438 |
-# dev-python/pygobject:3[python_targets_python2_7] |
439 |
-# x11-themes/hicolor-icon-theme |
440 |
-# jit? ( sys-apps/paxctl ) ) |
441 |
- |
442 |
-S="${WORKDIR}/${MY_P}" |
443 |
- |
444 |
-CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
445 |
- |
446 |
-pkg_pretend() { |
447 |
- if [[ ${MERGE_TYPE} != "binary" ]] ; then |
448 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
449 |
- einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
450 |
- check-reqs_pkg_pretend |
451 |
- fi |
452 |
- |
453 |
- if ! test-flag-CXX -std=c++11 ; then |
454 |
- die "You need at least GCC 4.9.x or Clang >= 3.3 for C++11-specific compiler flags" |
455 |
- fi |
456 |
- |
457 |
- if tc-is-gcc && [[ $(gcc-version) < 4.9 ]] ; then |
458 |
- die 'The active compiler needs to be gcc 4.9 (or newer)' |
459 |
- fi |
460 |
- fi |
461 |
- |
462 |
- if ! use opengl && ! use gles2; then |
463 |
- ewarn |
464 |
- ewarn "You are disabling OpenGL usage (USE=opengl or USE=gles) completely." |
465 |
- ewarn "This is an unsupported configuration meant for very specific embedded" |
466 |
- ewarn "use cases, where there truly is no GL possible (and even that use case" |
467 |
- ewarn "is very unlikely to come by). If you have GL (even software-only), you" |
468 |
- ewarn "really really should be enabling OpenGL!" |
469 |
- ewarn |
470 |
- fi |
471 |
-} |
472 |
- |
473 |
-pkg_setup() { |
474 |
- if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
475 |
- check-reqs_pkg_setup |
476 |
- fi |
477 |
- |
478 |
- python-any-r1_pkg_setup |
479 |
-} |
480 |
- |
481 |
-src_prepare() { |
482 |
- cmake-utils_src_prepare |
483 |
- gnome2_src_prepare |
484 |
-} |
485 |
- |
486 |
-src_configure() { |
487 |
- # Respect CC, otherwise fails on prefix #395875 |
488 |
- tc-export CC |
489 |
- |
490 |
- # It does not compile on alpha without this in LDFLAGS |
491 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761 |
492 |
- use alpha && append-ldflags "-Wl,--no-relax" |
493 |
- |
494 |
- # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504 |
495 |
- use ia64 && append-ldflags "-Wl,--no-as-needed" |
496 |
- |
497 |
- # Sigbuses on SPARC with mcpu and co., bug #??? |
498 |
- use sparc && filter-flags "-mvis" |
499 |
- |
500 |
- # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
501 |
- use ppc64 && append-flags "-mminimal-toc" |
502 |
- |
503 |
- # Try to use less memory, bug #469942 (see Fedora .spec for reference) |
504 |
- # --no-keep-memory doesn't work on ia64, bug #502492 |
505 |
- if ! use ia64; then |
506 |
- append-ldflags "-Wl,--no-keep-memory" |
507 |
- fi |
508 |
- |
509 |
- # We try to use gold when possible for this package |
510 |
-# if ! tc-ld-is-gold ; then |
511 |
-# append-ldflags "-Wl,--reduce-memory-overheads" |
512 |
-# fi |
513 |
- |
514 |
- # Multiple rendering bugs on youtube, github, etc without this, bug #547224 |
515 |
- append-flags $(test-flags -fno-strict-aliasing) |
516 |
- |
517 |
- # Ruby situation is a bit complicated. See bug 513888 |
518 |
- local rubyimpl |
519 |
- local ruby_interpreter="" |
520 |
- for rubyimpl in ${USE_RUBY}; do |
521 |
- if has_version "virtual/rubygems[ruby_targets_${rubyimpl}]"; then |
522 |
- ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})" |
523 |
- fi |
524 |
- done |
525 |
- # This will rarely occur. Only a couple of corner cases could lead us to |
526 |
- # that failure. See bug 513888 |
527 |
- [[ -z $ruby_interpreter ]] && die "No suitable ruby interpreter found" |
528 |
- |
529 |
- # TODO: Check Web Audio support |
530 |
- # should somehow let user select between them? |
531 |
- # |
532 |
- # FTL_JIT requires llvm |
533 |
- # |
534 |
- # opengl needs to be explicetly handled, bug #576634 |
535 |
- |
536 |
- local opengl_enabled |
537 |
- if use opengl || use gles2; then |
538 |
- opengl_enabled=ON |
539 |
- else |
540 |
- opengl_enabled=OFF |
541 |
- fi |
542 |
- |
543 |
- local mycmakeargs=( |
544 |
- #-DENABLE_UNIFIED_BUILDS=$(usex jumbo-build) # broken in 2.24.1 |
545 |
- -DENABLE_QUARTZ_TARGET=$(usex aqua) |
546 |
- -DENABLE_API_TESTS=$(usex test) |
547 |
- -DENABLE_GTKDOC=$(usex doc) |
548 |
- -DENABLE_GEOLOCATION=$(usex geolocation) |
549 |
- $(cmake-utils_use_find_package gles2 OpenGLES2) |
550 |
- -DENABLE_GLES2=$(usex gles2) |
551 |
- -DENABLE_VIDEO=$(usex gstreamer) |
552 |
- -DENABLE_WEB_AUDIO=$(usex gstreamer) |
553 |
- -DENABLE_INTROSPECTION=$(usex introspection) |
554 |
- -DUSE_LIBNOTIFY=$(usex libnotify) |
555 |
- -DUSE_LIBSECRET=$(usex gnome-keyring) |
556 |
- -DUSE_OPENJPEG=$(usex jpeg2k) |
557 |
- -DUSE_WOFF2=ON |
558 |
- -DENABLE_PLUGIN_PROCESS_GTK2=$(usex nsplugin) |
559 |
- -DENABLE_SPELLCHECK=$(usex spell) |
560 |
- -DENABLE_WAYLAND_TARGET=$(usex wayland) |
561 |
- -DENABLE_WEBGL=$(usex webgl) |
562 |
- $(cmake-utils_use_find_package egl EGL) |
563 |
- $(cmake-utils_use_find_package opengl OpenGL) |
564 |
- -DENABLE_X11_TARGET=$(usex X) |
565 |
- -DENABLE_OPENGL=${opengl_enabled} |
566 |
- -DCMAKE_BUILD_TYPE=Release |
567 |
- -DPORT=GTK |
568 |
- ${ruby_interpreter} |
569 |
- ) |
570 |
- |
571 |
- # Allow it to use GOLD when possible as it has all the magic to |
572 |
- # detect when to use it and using gold for this concrete package has |
573 |
- # multiple advantages and is also the upstream default, bug #585788 |
574 |
-# if tc-ld-is-gold ; then |
575 |
-# mycmakeargs+=( -DUSE_LD_GOLD=ON ) |
576 |
-# else |
577 |
-# mycmakeargs+=( -DUSE_LD_GOLD=OFF ) |
578 |
-# fi |
579 |
- |
580 |
- cmake-utils_src_configure |
581 |
-} |
582 |
- |
583 |
-src_compile() { |
584 |
- cmake-utils_src_compile |
585 |
-} |
586 |
- |
587 |
-src_test() { |
588 |
- # Prevents test failures on PaX systems |
589 |
- pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test* |
590 |
- |
591 |
- cmake-utils_src_test |
592 |
-} |
593 |
- |
594 |
-src_install() { |
595 |
- cmake-utils_src_install |
596 |
- |
597 |
- # Prevents crashes on PaX systems, bug #522808 |
598 |
- pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/jsc" "${ED}usr/libexec/webkit2gtk-4.0/WebKitWebProcess" |
599 |
- pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess" |
600 |
- use nsplugin && pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"2 |
601 |
-} |