# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit qt4 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 BSD" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="qt4 gtk debug" S="${WORKDIR}/${MY_P}" RDEPEND="dev-util/gperf >=dev-db/sqlite-3 dev-libs/libxslt qt4? ( $(qt4_min_version 4.3) ) gtk? ( x11-libs/gtk+ dev-libs/icu net-misc/curl media-libs/jpeg media-libs/libpng )" DEPEND="${RDEPEND} $(qt4_min_version 4) sys-devel/bison >=sys-devel/flex-2.5.33" src_compile() { local myconf if use gtk; then myconf="CONFIG+=gtk-port CONFIG-=qt-port" elif use qt4; then myconf="CONFIG-=gtk-port CONFIG+=qt-port" fi if use debug; then myconf="${myconf} CONFIG+=debug CONFIG-=release" else myconf="${myconf} CONFIG+=release CONFIG-=debug" fi eqmake4 WebKit.pro -recursive \ OUTPUT_DIR=${S} \ WEBKIT_INC_DIR=/usr/include/WebKit \ WEBKIT_LIB_DIR=/usr/lib \ ${myconf} \ || die "eqmake4 failed" emake || die "emake failed" } src_install() { emake INSTALL_ROOT="${D}" install || die }