# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit subversion DESCRIPTION="Open source web browser engine" HOMEPAGE="http://www.webkit.org/" SRC_URI="" ESVN_REPO_URI="http://svn.webkit.org/repository/webkit/trunk" ESVN_PROJECT="WebKit" LICENSE="LGPL-2 BSD" SLOT="0" KEYWORDS="" IUSE="qt4 gtk" RDEPEND="dev-util/gperf sys-devel/bison >=dev-db/sqlite-3 >=sys-devel/flex-2.5.33 dev-libs/libxslt qt4? ( >=x11-libs/qt-4.3 ) gtk? ( dev-libs/icu net-misc/curl media-libs/jpeg media-libs/libpng )" DEPEND="${RDEPEND} >=x11-libs/qt-4" S="${WORKDIR}/${ESVN_PROJECT}" fix_pkgconfig_files() { #TODO: fix libdir and includedir in /usr/lib/pkgconfig/WebKit*.pc #I think this could be done with sed or something. } src_compile() { local myconf="--qmakearg=WEBKIT_INC_DIR=${D}/usr/include/WebKit \ --qmakearg=WEBKIT_LIB_DIR=${D}/usr/lib" use gtk && \ ./WebKitTools/Scripts/build-webkit ${myconf} --gdk \ || die "gdk build failed" use qt4 && \ ./WebKitTools/Scripts/build-webkit ${myconf} \ || die "qt build failed" } src_install() { cd WebKitBuild/Release make install || die # fix_pkgconfig_files }