# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit git gnome2-utils multilib DESCRIPTION="A lightweight web browser" HOMEPAGE="http://www.twotoasts.de/index.php?/pages/midori_summary.html" EGIT_REPO_URI="git://git.xfce.org/kalikiana/midori" EGIT_PROJECT="midori" LICENSE="LGPL-2" SLOT="0" KEYWORDS="" IUSE="-doc idn nls +sqlite unique" DEPEND=">=dev-lang/python-2.4 x11-libs/gtk+ >=net-libs/webkit-gtk-1.1.1 dev-libs/libxml2 >=net-libs/libsoup-2.26 dev-python/docutils doc? ( >=dev-util/gtk-doc-1 ) idn? ( >=net-dns/libidn-1 ) nls? ( sys-devel/gettext ) sqlite? ( dev-db/sqlite:3 ) unique? ( >=dev-libs/libunique-0.9 )" RDEPEND="${DEPEND}" src_unpack() { git_fetch cd ${S} # move docs to version-specific directory sed -i -e "s:\${DOCDIR}/${PN}:\${DOCDIR}/${P}/:g" wscript sed -i -e "s:/${PN}/user/midori.html:/${P}/user/midori.html:g" midori/midori-browser.c } src_configure() { CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" ./waf \ --prefix="/usr/" \ --libdir="/usr/$(get_libdir)" \ $(use_enable doc apidocs) \ $(use_enable idn libidn) \ $(use_enable sqlite) \ $(use_enable unique) \ configure || die "configure failed" } src_compile() { ./waf build || die "build failed" } src_install() { DESTDIR=${D} ./waf install || die "install failed" rm -r ${D}/usr/share/doc/${PN} dodoc AUTHORS ChangeLog INSTALL TODO } pkg_postinst() { gnome2_icon_cache_update ewarn "Midori tends to crash due to bugs in WebKit." ewarn "Report bugs at http://www.twotoasts.de/bugs" }