/[gentoo-x86]/net-libs/webkit-gtk/webkit-gtk-1.8.1-r200.ebuild
Gentoo

Contents of /net-libs/webkit-gtk/webkit-gtk-1.8.1-r200.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat May 5 02:54:26 2012 UTC (23 months, 1 week ago) by jdhore
Branch: MAIN
Changes since 1.1: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-1.8.1-r200.ebuild,v 1.1 2012/05/02 06:37:10 tetromino Exp $
4
5 EAPI="4"
6
7 # Don't define PYTHON_DEPEND: python only needed at build time
8 inherit autotools eutils flag-o-matic gnome2-utils pax-utils python virtualx
9
10 MY_P="webkit-${PV}"
11 DESCRIPTION="Open source web browser engine"
12 HOMEPAGE="http://www.webkitgtk.org/"
13 SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz"
14 #SRC_URI="mirror://gentoo/${P}.tar.xz"
15
16 LICENSE="LGPL-2 LGPL-2.1 BSD"
17 SLOT="2"
18 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
19 # geoclue
20 IUSE="aqua coverage debug +geoloc +gstreamer +introspection +jit spell +webgl"
21 # bug 372493
22 REQUIRED_USE="introspection? ( gstreamer )"
23
24 # use sqlite, svg by default
25 # dependency on >=x11-libs/gtk+-2.13:2 for gail
26 RDEPEND="
27 dev-libs/libxml2:2
28 dev-libs/libxslt
29 virtual/jpeg
30 >=media-libs/libpng-1.4:0
31 >=x11-libs/cairo-1.10
32 >=dev-libs/glib-2.31.8:2
33 >=x11-libs/gtk+-2.13:2[aqua=,introspection?]
34 >=dev-libs/icu-3.8.1-r1
35 >=net-libs/libsoup-2.37.92:2.4[introspection?]
36 dev-db/sqlite:3
37 >=x11-libs/pango-1.21
38 x11-libs/libXrender
39
40 geoloc? ( app-misc/geoclue )
41
42 gstreamer? (
43 media-libs/gstreamer:0.10
44 >=media-libs/gst-plugins-base-0.10.30:0.10 )
45
46 introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
47
48 spell? ( >=app-text/enchant-0.22 )
49
50 webgl? ( virtual/opengl )
51 "
52 # paxctl needed for bug #407085
53 DEPEND="${RDEPEND}
54 dev-lang/perl
55 =dev-lang/python-2*
56 sys-devel/bison
57 >=sys-devel/flex-2.5.33
58 sys-devel/gettext
59 dev-util/gperf
60 virtual/pkgconfig
61 dev-util/gtk-doc-am
62 introspection? ( jit? ( sys-apps/paxctl ) )
63 test? ( x11-themes/hicolor-icon-theme
64 jit? ( sys-apps/paxctl ) )
65 "
66 # Need real bison, not yacc
67
68 S="${WORKDIR}/${MY_P}"
69
70 pkg_setup() {
71 # Needed for CodeGeneratorInspector.py
72 python_set_active_version 2
73 python_pkg_setup
74 }
75
76 src_prepare() {
77 DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install
78
79 # FIXME: Fix unaligned accesses on ARM, IA64 and SPARC
80 # https://bugs.webkit.org/show_bug.cgi?id=19775
81 # TODO: FAILS TO APPLY!
82 #use sparc && epatch "${FILESDIR}"/${PN}-1.2.3-fix-pool-sparc.patch
83
84 # CVE-2011-3064, https://bugzilla.redhat.com/show_bug.cgi?id=807596
85 epatch "${FILESDIR}/${PN}-1.8.0-svgimagebuffer-clip.patch"
86
87 # intermediate MacPorts hack while upstream bug is not fixed properly
88 # https://bugs.webkit.org/show_bug.cgi?id=28727
89 use aqua && epatch "${FILESDIR}"/${PN}-1.6.1-darwin-quartz.patch
90
91 # Bug #403049, https://bugs.webkit.org/show_bug.cgi?id=79605
92 epatch "${FILESDIR}/${PN}-1.7.5-linguas.patch"
93
94 # Drop DEPRECATED flags
95 sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' GNUmakefile.am || die
96
97 # Don't force -O2
98 sed -i 's/-O2//g' "${S}"/configure.ac || die
99
100 # Build-time segfaults under PaX with USE="introspection jit", bug #404215
101 if use introspection && use jit; then
102 epatch "${FILESDIR}/${PN}-1.6.3-paxctl-introspection.patch"
103 cp "${FILESDIR}/gir-paxctl-lt-wrapper" "${S}/" || die
104 fi
105
106 # We need to reset some variables to prevent permissions problems and failures
107 # like https://bugs.webkit.org/show_bug.cgi?id=35471 and bug #323669
108 gnome2_environment_reset
109
110 # https://bugs.webkit.org/show_bug.cgi?id=79498
111 epatch "${FILESDIR}/${PN}-1.7.90-parallel-make-hack.patch"
112
113 # XXX: failing tests
114 # https://bugs.webkit.org/show_bug.cgi?id=50744
115 # testkeyevents is interactive
116 # mimehandling test sometimes fails under Xvfb (works fine manually)
117 # datasource test needs a network connection and intermittently fails with
118 # icedtea-web
119 sed -e '/Programs\/unittests\/testwebinspector/ d' \
120 -e '/Programs\/unittests\/testkeyevents/ d' \
121 -e '/Programs\/unittests\/testmimehandling/ d' \
122 -e '/Programs\/unittests\/testwebdatasource/ d' \
123 -i Source/WebKit/gtk/GNUmakefile.am || die
124 # garbage collection test fails intermittently if icedtea-web is installed
125 epatch "${FILESDIR}/${PN}-1.7.90-test_garbage_collection.patch"
126
127 # Respect CC, otherwise fails on prefix #395875
128 tc-export CC
129
130 # Prevent maintainer mode from being triggered during make
131 AT_M4DIR=Source/autotools eautoreconf
132
133 # Ugly hack of a workaround for bizarre paludis behavior, bug #406117
134 # http://paludis.exherbo.org/trac/ticket/1230
135 sed -e '/ --\(en\|dis\)able-dependency-tracking/ d' -i configure || die
136 }
137
138 src_configure() {
139 # It doesn't compile on alpha without this in LDFLAGS
140 use alpha && append-ldflags "-Wl,--no-relax"
141
142 # Sigbuses on SPARC with mcpu and co.
143 use sparc && filter-flags "-mvis"
144
145 # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
146 use ppc64 && append-flags "-mminimal-toc"
147
148 local myconf
149
150 # XXX: Check Web Audio support
151 # XXX: dependency-tracking is required so parallel builds won't fail
152 # WebKit2 can only be built with gtk3
153 # API documentation (gtk-doc) is built in webkit-gtk:3, always disable here
154 myconf="
155 $(use_enable coverage)
156 $(use_enable debug)
157 $(use_enable debug debug-features)
158 $(use_enable geoloc geolocation)
159 $(use_enable spell spellcheck)
160 $(use_enable introspection)
161 $(use_enable gstreamer video)
162 $(use_enable jit)
163 $(use_enable webgl)
164 --enable-web-sockets
165 --with-gtk=2.0
166 --disable-gtk-doc
167 --disable-webkit2
168 --enable-dependency-tracking
169 $(use aqua && echo "--with-font-backend=pango --with-target=quartz")"
170
171 econf ${myconf}
172 }
173
174 src_compile() {
175 # Horrible failure of a hack to work around parallel make problems,
176 # see https://bugs.webkit.org/show_bug.cgi?id=79498
177 emake -j1 all-built-sources-local
178 emake all-ltlibraries-local
179 emake all-programs-local
180 use introspection && emake WebKit-1.0.gir
181 emake all-data-local
182 default
183 }
184
185 src_test() {
186 # Tests expect an out-of-source build in WebKitBuild
187 ln -s . WebKitBuild || die "ln failed"
188 # Prevents test failures on PaX systems
189 use jit && pax-mark m $(list-paxables Programs/unittests/test*) \
190 Programs/unittests/.libs/test*
191 unset DISPLAY
192 # Tests need virtualx, bug #294691, bug #310695
193 # Parallel tests sometimes fail
194 Xemake -j1 check
195 }
196
197 src_install() {
198 default
199
200 newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk
201 newdoc Source/WebKit/gtk/po/ChangeLog ChangeLog.gtk-po
202 newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore
203 newdoc Source/WebCore/ChangeLog ChangeLog.WebCore
204
205 # Remove .la files
206 find "${D}" -name '*.la' -exec rm -f '{}' +
207
208 # Prevents crashes on PaX systems
209 use jit && pax-mark m "${ED}usr/bin/jsc-1"
210
211 # File collisions with slot 3
212 # bug #402699, https://bugs.webkit.org/show_bug.cgi?id=78134
213 rm -rf "${ED}usr/share/gtk-doc" || die
214 }

  ViewVC Help
Powered by ViewVC 1.1.20