1 |
commit: c1769991bbd8bd360b3f0901726fa6c11cc8cdcb |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 24 10:38:04 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 24 12:19:52 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1769991 |
7 |
|
8 |
dev-python/dbus-python: Add dep on dev-python/tappy |
9 |
|
10 |
dev-python/dbus-python/dbus-python-1.2.6-r2.ebuild | 92 ++++++++++++++++++++++ |
11 |
1 file changed, 92 insertions(+) |
12 |
|
13 |
diff --git a/dev-python/dbus-python/dbus-python-1.2.6-r2.ebuild b/dev-python/dbus-python/dbus-python-1.2.6-r2.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000000..6ff08897367 |
16 |
--- /dev/null |
17 |
+++ b/dev-python/dbus-python/dbus-python-1.2.6-r2.ebuild |
18 |
@@ -0,0 +1,92 @@ |
19 |
+# Copyright 1999-2018 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+ |
22 |
+EAPI=6 |
23 |
+ |
24 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
25 |
+PYTHON_REQ_USE="threads(+)" |
26 |
+ |
27 |
+inherit autotools eutils python-r1 |
28 |
+ |
29 |
+DESCRIPTION="Python bindings for the D-Bus messagebus" |
30 |
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/DBusBindings https://dbus.freedesktop.org/doc/dbus-python/" |
31 |
+SRC_URI="https://dbus.freedesktop.org/releases/${PN}/${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="MIT" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~x86" |
36 |
+IUSE="doc examples test" |
37 |
+# API docs generated with epydoc, which is python2-only |
38 |
+REQUIRED_USE=" |
39 |
+ ${PYTHON_REQUIRED_USE} |
40 |
+ doc? ( python_targets_python2_7 )" |
41 |
+RESTRICT="!test? ( test )" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ >=sys-apps/dbus-1.8:= |
45 |
+ >=dev-libs/glib-2.40 |
46 |
+ ${PYTHON_DEPS}" |
47 |
+DEPEND="${RDEPEND} |
48 |
+ virtual/pkgconfig |
49 |
+ doc? ( |
50 |
+ dev-python/docutils[python_targets_python2_7?] |
51 |
+ =dev-python/epydoc-3*[python_targets_python2_7?] ) |
52 |
+ test? ( dev-python/pygobject:3[${PYTHON_USEDEP}] |
53 |
+ dev-python/tappy[${PYTHON_USEDEP}] )" |
54 |
+# TODO: Half the tests require tap.py from PyPI now, which we didn't have packaged; those tests just get skipped then though |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ # Update py-compile, bug 529502. |
59 |
+ eautoreconf |
60 |
+ python_copy_sources |
61 |
+} |
62 |
+ |
63 |
+src_configure() { |
64 |
+ configuring() { |
65 |
+ local PYTHON_CONFIG |
66 |
+ python_export PYTHON_CONFIG |
67 |
+ |
68 |
+ # epydoc is python2-only, bug #447642 |
69 |
+ local apidocs=--disable-api-docs |
70 |
+ [[ ${EPYTHON/.*} = "python2" ]] && apidocs=$(use_enable doc api-docs) |
71 |
+ |
72 |
+ econf \ |
73 |
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
74 |
+ --disable-html-docs \ |
75 |
+ ${apidocs} \ |
76 |
+ PYTHON_INCLUDES="$(${PYTHON_CONFIG} --includes)" \ |
77 |
+ PYTHON_LIBS="$(${PYTHON_CONFIG} --ldflags)" |
78 |
+ # configure assumes that ${PYTHON}-config executable exists :/ |
79 |
+ } |
80 |
+ python_foreach_impl run_in_build_dir configuring |
81 |
+} |
82 |
+ |
83 |
+src_compile() { |
84 |
+ python_foreach_impl run_in_build_dir default |
85 |
+} |
86 |
+ |
87 |
+src_test() { |
88 |
+ unset DBUS_SESSION_BUS_ADDRESS |
89 |
+ python_foreach_impl run_in_build_dir default |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ installing() { |
94 |
+ default |
95 |
+ [[ ${EPYTHON/.*} = "python2" ]] && use doc && dohtml -r api/* |
96 |
+ } |
97 |
+ python_foreach_impl run_in_build_dir installing |
98 |
+ prune_libtool_files --modules |
99 |
+ |
100 |
+ if use examples; then |
101 |
+ insinto /usr/share/doc/${PF} |
102 |
+ doins -r examples |
103 |
+ fi |
104 |
+} |
105 |
+ |
106 |
+run_in_build_dir() { |
107 |
+ pushd "${BUILD_DIR}" > /dev/null || die |
108 |
+ "$@" |
109 |
+ popd > /dev/null |
110 |
+} |