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