# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/pywebkitgtk/pywebkitgtk-1.1.6-r1.ebuild,v 1.10 2010/02/28 19:02:10 nixnut Exp $ EAPI="2" PYTHON_EXPORT_PHASE_FUNCTIONS="1" SUPPORT_PYTHON_ABIS="1" inherit autotools python DESCRIPTION="Python bindings for the WebKit GTK+ port." HOMEPAGE="http://code.google.com/p/pywebkitgtk/" SRC_URI="http://pywebkitgtk.googlecode.com/files/${P}.tar.gz" LICENSE="LGPL-2" SLOT="0" KEYWORDS="amd64 ppc sparc x86" IUSE="" RDEPEND="dev-python/pygobject:2 dev-python/pygtk:2 dev-python/sexy-python x11-libs/libsexy dev-libs/libxslt >=net-libs/webkit-gtk-1.1.5" DEPEND="${RDEPEND} dev-util/pkgconfig" RESTRICT_PYTHON_ABIS="3.*" src_prepare() { sed -e "s:libxslt,:libxslt, gthread-2.0:" -i configure.ac rm -f m4/l*.m4 AT_M4DIR="m4" eautoreconf python_src_prepare } src_install() { python_execute_function -d -s # Fix importing of webkit (bug #283271). create_webkit_pth() { dodir $(python_get_sitedir) echo "webkit-1.0" > "${D}$(python_get_sitedir)/webkit.pth" } python_execute_function -q create_webkit_pth dodoc AUTHORS MAINTAINERS NEWS README || die "dodoc failed" }