Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/dbus-python/
Date: Tue, 24 Jul 2018 12:20:18
Message-Id: 1532434793.5654b50c536b43ea8fecc2c83376c1c35c170c5e.mgorny@gentoo
1 commit: 5654b50c536b43ea8fecc2c83376c1c35c170c5e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 24 11:51:49 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 24 12:19:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5654b50c
7
8 dev-python/dbus-python: Bump to 1.2.8 (now using sphinx for docs!)
9
10 dev-python/dbus-python/Manifest | 1 +
11 dev-python/dbus-python/dbus-python-1.2.8.ebuild | 73 +++++++++++++++++++++++++
12 2 files changed, 74 insertions(+)
13
14 diff --git a/dev-python/dbus-python/Manifest b/dev-python/dbus-python/Manifest
15 index 88af6bd6923..2bb62ea43d9 100644
16 --- a/dev-python/dbus-python/Manifest
17 +++ b/dev-python/dbus-python/Manifest
18 @@ -1,3 +1,4 @@
19 DIST dbus-python-1.2.0.tar.gz 602426 BLAKE2B 86f5ba9283256b83d268ff7c27368e587896d58f87b15aefe9d29a90530ced591a2c6814dd37b91274910ed131fe031846071311bc6cc07c11d1f9cdda9e4602 SHA512 013b23e08fa1ed43f53a756587fefbc9770f7c51e93510e555acbd77230b7200693419bba9a69680d790bbaf123f4a195afa38b3eee1143da950fee0b5130bce
20 DIST dbus-python-1.2.4.tar.gz 612112 BLAKE2B cccd3e2f5d700c0d228e7d21fd85e2307357778371742a7fe26a0e419af41886efebb27a73f642d2ecd4603c79f4afe6e7002af95c831180e0e7844c079b2c8c SHA512 efdd9d96a8b56e813c93208d34777f1ca2db96c076d31f13afbcaec3c7770a16a623d5531fe23443130c555240949802503f171f2064d45eee97546d6251304b
21 DIST dbus-python-1.2.6.tar.gz 778893 BLAKE2B 1587bc9b1795e5c416397468b2061c869d923aea0983e604862342b27d37b946b1fcdd3bf07a612dba30087bdc6a5fa734906188c55756edf38d50eb67b7eef6 SHA512 6f2aec81defd2528d9876ec9a83843f8767275a5d6cf1b2b7b7a094f892f552f9a7b3d7b5006465254d410e503108e10138d7dd4cb3f1a4035d7f8d58c4d0684
22 +DIST dbus-python-1.2.8.tar.gz 787426 BLAKE2B 186cb8b1b25b2d2d12ab24ed304819ef18f953232d321bd425e7fda632c79a5a94f7b4118cc09f1bb13a0621980af67b4b55599fbbbcaf0e95f7912f4afd0a2e SHA512 6e486fd560944fc1461a27e6798e2c348c7fdf351602c082a0614c0a6822ff147875212bdcb1f818c0ab12470cffc613c0ffbd292cd9d445d3429bee65765905
23
24 diff --git a/dev-python/dbus-python/dbus-python-1.2.8.ebuild b/dev-python/dbus-python/dbus-python-1.2.8.ebuild
25 new file mode 100644
26 index 00000000000..3857687ebfe
27 --- /dev/null
28 +++ b/dev-python/dbus-python/dbus-python-1.2.8.ebuild
29 @@ -0,0 +1,73 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
36 +PYTHON_REQ_USE="threads(+)"
37 +
38 +inherit autotools python-r1
39 +
40 +DESCRIPTION="Python bindings for the D-Bus messagebus"
41 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/DBusBindings https://dbus.freedesktop.org/doc/dbus-python/"
42 +SRC_URI="https://dbus.freedesktop.org/releases/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="doc examples test"
48 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="
52 + >=sys-apps/dbus-1.8:=
53 + >=dev-libs/glib-2.40
54 + ${PYTHON_DEPS}"
55 +DEPEND="${RDEPEND}
56 + virtual/pkgconfig
57 + doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )
58 + test? ( dev-python/pygobject:3[${PYTHON_USEDEP}]
59 + dev-python/tappy[${PYTHON_USEDEP}] )"
60 +
61 +python_check_deps() {
62 + has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
63 +}
64 +
65 +src_prepare() {
66 + default
67 + # Update py-compile, bug 529502.
68 + eautoreconf
69 + python_copy_sources
70 +}
71 +
72 +src_configure() {
73 + use doc && python_setup
74 + local SPHINX_IMPL=${EPYTHON}
75 +
76 + configuring() {
77 + local myconf=(
78 + --disable-documentation
79 + )
80 + [[ ${EPYTHON} == ${SPHINX_IMPL} ]] &&
81 + myconf+=( --enable-documentation )
82 +
83 + econf "${myconf[@]}"
84 + }
85 + python_foreach_impl run_in_build_dir configuring
86 +}
87 +
88 +src_compile() {
89 + python_foreach_impl run_in_build_dir default
90 +}
91 +
92 +src_test() {
93 + unset DBUS_SESSION_BUS_ADDRESS
94 + python_foreach_impl run_in_build_dir default
95 +}
96 +
97 +src_install() {
98 + python_foreach_impl run_in_build_dir default
99 + find "${D}" -name "*.la" -delete || die
100 +
101 + use examples && dodoc -r examples
102 +}