blob: 55855b6623382c44da98ca0f57e8f7fbc82a9077 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/dbus-python/dbus-python-0.83.2.ebuild,v 1.5 2011/02/13 18:32:31 armin76 Exp $
EAPI="3"
PYTHON_DEPEND="2"
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit eutils multilib python
DESCRIPTION="Python bindings for the D-Bus messagebus."
HOMEPAGE="http://www.freedesktop.org/wiki/Software/DBusBindings \
http://dbus.freedesktop.org/doc/dbus-python/"
SRC_URI="http://dbus.freedesktop.org/releases/${PN}/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ~ppc ~ppc64 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE="doc examples test"
RDEPEND="
>=dev-libs/dbus-glib-0.88
>=sys-apps/dbus-1.4.1"
DEPEND="${RDEPEND}
doc? ( =dev-python/epydoc-3* )
test? ( dev-python/pygobject )
dev-util/pkgconfig"
src_prepare() {
# Disable compiling of .pyc files.
mv py-compile py-compile.orig
ln -s $(type -P true) py-compile
# Workaround testsuite issues
epatch "${FILESDIR}/${PN}-0.83.1-workaround-broken-test.patch"
python_src_prepare
}
src_configure() {
configuration() {
econf \
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
$(use_enable doc api-docs)
}
python_execute_function -s configuration
}
src_test() {
unset DBUS_SESSION_BUS_ADDRESS
python_src_test
}
src_install() {
python_src_install
if use doc; then
install_documentation() {
dohtml api/* || return 1
}
python_execute_function -f -q -s install_documentation
fi
if use examples; then
insinto /usr/share/doc/${PF}/
doins -r examples || die
fi
python_clean_installation_image
}
pkg_postinst() {
python_mod_optimize dbus dbus_bindings.py
}
pkg_postrm() {
python_mod_cleanup dbus dbus_bindings.py
}
|