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

Contents of /net-libs/webkit-gtk/webkit-gtk-1.2.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Nov 5 13:21:15 2011 UTC (3 years ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Drop old and stop trying to apply a patch that will be unable to be applied (even if patch exists, bug #389481).

(Portage version: 2.1.10.32/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.2.7.ebuild,v 1.8 2011/08/31 13:11:52 pacho Exp $
4
5 EAPI="3"
6
7 inherit autotools flag-o-matic eutils virtualx
8
9 MY_P="webkit-${PV}"
10 DESCRIPTION="Open source web browser engine"
11 HOMEPAGE="http://www.webkitgtk.org/"
12 SRC_URI="http://www.webkitgtk.org/${MY_P}.tar.gz"
13
14 LICENSE="LGPL-2 LGPL-2.1 BSD"
15 SLOT="2"
16 KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
17 # geoclue is missing
18 IUSE="aqua coverage debug doc +gstreamer introspection +jit test"
19
20 # use sqlite, svg by default
21 # dependency on >=x11-libs/gtk+-2.13 for gail
22 # XXX: Quartz patch does not apply
23 RDEPEND="
24 dev-libs/libxml2
25 dev-libs/libxslt
26 virtual/jpeg
27 >=media-libs/libpng-1.4
28 x11-libs/cairo
29 >=x11-libs/gtk+-2.13:2[aqua=]
30 >=dev-libs/glib-2.21.3:2
31 >=dev-libs/icu-3.8.1-r1
32 >=net-libs/libsoup-2.29.90:2.4
33 >=dev-db/sqlite-3
34 >=app-text/enchant-0.22
35 >=x11-libs/pango-1.12
36
37 gstreamer? (
38 media-libs/gstreamer:0.10
39 >=media-libs/gst-plugins-base-0.10.25:0.10 )
40 introspection? ( >=dev-libs/gobject-introspection-0.6.2 )"
41
42 DEPEND="${RDEPEND}
43 >=sys-devel/flex-2.5.33
44 sys-devel/gettext
45 dev-util/gperf
46 dev-util/pkgconfig
47 dev-util/gtk-doc-am
48 doc? ( >=dev-util/gtk-doc-1.10 )
49 test? ( x11-themes/hicolor-icon-theme )"
50
51 S="${WORKDIR}/${MY_P}"
52
53 src_prepare() {
54 # FIXME: Fix unaligned accesses on ARM, IA64 and SPARC
55 # https://bugs.webkit.org/show_bug.cgi?id=19775
56 use sparc && epatch "${FILESDIR}"/${PN}-1.2.3-fix-pool-sparc.patch
57
58 # intermediate MacPorts hack while upstream bug is not fixed properly
59 # https://bugs.webkit.org/show_bug.cgi?id=28727
60 use aqua && epatch "${FILESDIR}"/${PN}-1.2.5-darwin-quartz.patch
61
62 # Fix build on Darwin8 (10.4 Tiger)
63 epatch "${FILESDIR}"/${PN}-1.2.5-darwin8.patch
64
65 # Don't force -O2
66 sed -i 's/-O2//g' "${S}"/configure.ac || die "sed failed"
67
68 # Don't build tests if not needed, part of bug #343249
69 epatch "${FILESDIR}/${PN}-1.2.5-tests-build.patch"
70
71 epatch "${FILESDIR}"/${P}-libpng15.patch
72
73 # Prevent maintainer mode from being triggered during make
74 AT_M4DIR=autotools eautoreconf
75 }
76
77 src_configure() {
78 # It doesn't compile on alpha without this in LDFLAGS
79 use alpha && append-ldflags "-Wl,--no-relax"
80
81 # Sigbuses on SPARC with mcpu and co.
82 use sparc && filter-flags "-mcpu=*" "-mvis" "-mtune=*"
83
84 # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
85 use ppc64 && append-flags "-mminimal-toc"
86
87 local myconf
88
89 myconf="
90 --disable-introspection
91 --disable-web_sockets
92 $(use_enable coverage)
93 $(use_enable debug)
94 $(use_enable gstreamer video)
95 $(use_enable introspection)
96 $(use_enable jit)
97 $(use aqua && echo "--with-font-backend=pango --with-target=quartz")"
98 # Disable web-sockets per bug #326547
99
100 econf ${myconf}
101 }
102
103 src_compile() {
104 # Fix sandbox error with USE="introspection"
105 # https://bugs.webkit.org/show_bug.cgi?id=35471
106 emake -j1 XDG_DATA_HOME="${T}/.local" || die "Compile failed"
107 }
108
109 src_test() {
110 unset DISPLAY
111 # Tests need virtualx, bug #294691, bug #310695
112 # Set XDG_DATA_HOME for introspection tools, bug #323669
113 Xemake check XDG_DATA_HOME="${T}/.local" || die "Test phase failed"
114 }
115
116 src_install() {
117 emake DESTDIR="${D}" install || die "Install failed"
118 dodoc WebKit/gtk/{NEWS,ChangeLog} || die "dodoc failed"
119 }

  ViewVC Help
Powered by ViewVC 1.1.20