net-libs/webkitgtk: add nightly build.
authorLeonardo Valeri Manera <lvalerimanera@gmail.com>
Sun, 11 May 2008 03:57:09 +0000 (11 05:57 +0200)
committerLeonardo Valeri Manera <lvalerimanera@gmail.com>
Sun, 11 May 2008 03:57:09 +0000 (11 05:57 +0200)
profiles/categories: add net-libs.
profiles/use.local.desc: descs for webkit's USE flags.

net-libs/webkitgtk/Manifest [new file with mode: 0644]
net-libs/webkitgtk/webkitgtk-33029.ebuild [new file with mode: 0644]
profiles/categories
profiles/use.local.desc

diff --git a/net-libs/webkitgtk/Manifest b/net-libs/webkitgtk/Manifest
new file mode 100644 (file)
index 0000000..d5cfe50
--- /dev/null
@@ -0,0 +1,2 @@
+DIST WebKit-r33029.tar.bz2 9412393 RMD160 8a1d201ad9223e13e27d33d3a0da0fd6082e1678 SHA1 6743837f3bcb6594b2429bc2e2016732201e7704 SHA256 825c954ad7d4582fc8e7e616ddb5bcc7b9a5e6032d226665d6655b82b47ebc9a
+EBUILD webkitgtk-33029.ebuild 2895 RMD160 b3234f4fca5e86f4a01e2a8d606baa4ece443453 SHA1 5ea5b13adda11e6542ac12d974893be5d6d6f3af SHA256 1bc754e9fba55eb810dd52805ce49bca05669ba966df5302194508337ace6d62
diff --git a/net-libs/webkitgtk/webkitgtk-33029.ebuild b/net-libs/webkitgtk/webkitgtk-33029.ebuild
new file mode 100644 (file)
index 0000000..d3736ba
--- /dev/null
@@ -0,0 +1,112 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="1"
+
+inherit autotools flag-o-matic
+
+RESTRICT="primaryuri"
+
+DESCRIPTION="Open source web browser engine"
+HOMEPAGE="http://www.webkit.org/"
+MY_P="WebKit-r${PV}"
+SRC_URI="http://nightly.webkit.org/files/trunk/src/${MY_P}.tar.bz2"
+
+LICENSE="LGPL-2 LGPL-2.1 BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc"
+IUSE="debug gstreamer hildon +pango soup +sqlite +svg"
+
+S="${WORKDIR}"/${MY_P}
+
+# FIXME: ask 'alp' or 'kalikiana' about libsoup and pango
+# version needed.
+RDEPEND="x11-libs/gtk+:2
+                dev-libs/icu
+                media-libs/jpeg
+                media-libs/libpng:1.2
+                dev-libs/libxslt
+                dev-libs/libxml2:2
+                !pango? ( media-libs/freetype:2 )
+                pango? ( >=x11-libs/pango-1.20 )
+                !soup? ( >=net-misc/curl-7.15 )
+                soup? ( net-libs/libsoup:2.4 )
+                sqlite? ( dev-db/sqlite:3 )
+                gstreamer? (
+                                         media-libs/gstreamer:0.10
+                                         media-libs/gst-plugins-base:0.10
+                                         gnome-base/gnome-vfs:2
+                                       )"
+
+DEPEND="${RDEPEND}
+               sys-devel/bison
+               dev-util/gperf
+               >=sys-devel/flex-2.5.33"
+
+pkg_setup() {
+       if use pango && ! built_with_use 'x11-libs/pango' X; then
+               eerror "You must build pango with USE=X in order"
+               eerror "to use it as a font backend for webkit-gtk"
+               die "please rebuild pango with X enabled"
+       fi
+       if ! use pango && ! built_with_use 'media-libs/freetype:2' X; then
+               eerror "You must build pango with USE=X in order"
+               eerror "to use it as a font backend for webkit-gtk"
+               die "please rebuild pango with X enabled"
+       fi
+       if use soup && ! built_with_use 'net-libs/libsoup:2.4' ssl; then
+               eerror "You must build libsoup with USE=ssl in order"
+               eerror "to use it as an http backend for webkit-gtk"
+               die "please rebuild libsoup with ssl enabled"
+       fi
+       if ! use soup && ! built_with_use --missing false -o 'net-misc/curl' gnutls nss ssl; then
+               eerror "You must build curl with USE gnutls or nss or ssl in order"
+               eerror "to use it as an http backend for webkit-gtk"
+               die "please rebuild libsoup with one of gnutls nss or ssl enabled"
+       fi
+}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       eautoreconf
+}
+
+src_compile() {
+       strip-flags
+
+       local myopts
+
+       if use soup; then
+               einfo "Selected libsoup http backend."
+               myopts="--with-font-backend=soup"
+       else
+               einfo "Selected curl http backend."
+               myopts="--with-font-backend=curl"
+       fi
+
+       if use pango; then
+               einfo "Using pango font backend."
+               myopts="${myopts} --with-font-backend=pango"
+       else
+               einfo "Using freetype font backend."
+               myopts="${myopts} --with-font-backend=freetype"
+       fi
+
+       econf ${myopts} \
+               $(use_with hildon) \
+               $(use_enable sqlite database) \
+               $(use_enable sqlite icon-database) \
+               $(use_enable sqlite dom-storage) \
+               $(use_enable gstreamer video) \
+               $(use_enable svg svg-experimental) \
+               $(use_enable debug)
+
+       emake || die "emake failed"
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "Install failed"
+}
index a10d744..45ea235 100644 (file)
@@ -10,6 +10,7 @@ games-util
 kde-misc
 media-libs
 net-im
+net-libs
 net-news
 net-p2p
 net-www
index 5e79c5c..4d1206b 100644 (file)
@@ -2,3 +2,6 @@ app-office/lyx:monolithic - build with --monolithic, potentially speeding up com
 dev-lang/gnu-smalltalk:jit - enable the experimental JIT compiler.
 dev-lang/gnu-smalltalk:preempt - enable experimental pre-emptive concurrency.
 dev-lisp/clisp:hyperspec - use dev-lisp/hyperspec for documentation instead of remote copy.
+net-libs/webkitgtk:hildon - enable the Hildon UI extensions.
+net-libs/webkitgtk:pango - use x11-libs/pango as the font backend instead of media-libs/freetype:2.
+net-libs/webkitgtk:soup - use net-libs/libsoup:2.4 as the http backend instead of net-misc/curl.