blob: a796ef06592cf9aef1e2bc8b0881f780b9641143 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2009 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.1 2009/08/30 22:32:06 arfrever Exp $
EAPI="2"
NEED_PYTHON="2.4"
PYTHON_DEFINE_DEFAULT_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 ~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
AT_M4DIR="m4" eautoreconf
python_src_prepare
}
src_install() {
python_need_rebuild
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"
}
|