/[gentoo-x86]/net-libs/webkit-gtk/webkit-gtk-1.8.0-r300.ebuild
Gentoo

Contents of /net-libs/webkit-gtk/webkit-gtk-1.8.0-r300.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sat May 5 02:54:26 2012 UTC (23 months, 2 weeks ago) by jdhore
Branch: MAIN
Changes since 1.3: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

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

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

  ViewVC Help
Powered by ViewVC 1.1.20