Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/dbus-python/
Date: Mon, 02 Dec 2019 12:57:07
Message-Id: 1575291417.c9c91b9663e8dcb2d8dacf92761e8aa7fc231e2b.polynomial-c@gentoo
1 commit: c9c91b9663e8dcb2d8dacf92761e8aa7fc231e2b
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 2 12:55:11 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 2 12:56:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9c91b96
7
8 dev-python/dbus-python: Bump to version 1.2.14
9
10 which fixes python-3.8 issues
11
12 Package-Manager: Portage-2.3.80, Repoman-2.3.19
13 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
14
15 dev-python/dbus-python/Manifest | 1 +
16 dev-python/dbus-python/dbus-python-1.2.14.ebuild | 78 ++++++++++++++++++++++++
17 2 files changed, 79 insertions(+)
18
19 diff --git a/dev-python/dbus-python/Manifest b/dev-python/dbus-python/Manifest
20 index 0e3f445385a..ab0fb118655 100644
21 --- a/dev-python/dbus-python/Manifest
22 +++ b/dev-python/dbus-python/Manifest
23 @@ -1,2 +1,3 @@
24 DIST dbus-python-1.2.12.tar.gz 574727 BLAKE2B e5516e7109fad089af51d3e5db3921d056f327c27f9b74a870b1b31b04ba952ad3c9ba5916a18d674ab1179b94cf516b24e046feded8f2e542b196d162038944 SHA512 6f90eaeeb74ea71a026a331d4c611911eda6dfb6c9086a0a80352f9963a9ae126db6f3e32d183916b8517f177fc947f1ddb15df83ff0b5c886532116868383b4
25 +DIST dbus-python-1.2.14.tar.gz 576181 BLAKE2B 4e36c3d0ed07ce6c7514e2699b6cf5d0a75332c8dab3ca90e2d451d6649c26f61b2173b4b7f230c54df2b9f4214d0f3c54a45c233d6e8fd38bf39a6312f480fc SHA512 773d66e40ab514639f1c5c619362659f290ddd5ae944eb8e09b5752624f3c86305b6c1d5562e290b36f1e6cf43f6d39cd4a227e18ff41499877546982ceebb51
26 DIST dbus-python-1.2.4.tar.gz 612112 BLAKE2B cccd3e2f5d700c0d228e7d21fd85e2307357778371742a7fe26a0e419af41886efebb27a73f642d2ecd4603c79f4afe6e7002af95c831180e0e7844c079b2c8c SHA512 efdd9d96a8b56e813c93208d34777f1ca2db96c076d31f13afbcaec3c7770a16a623d5531fe23443130c555240949802503f171f2064d45eee97546d6251304b
27
28 diff --git a/dev-python/dbus-python/dbus-python-1.2.14.ebuild b/dev-python/dbus-python/dbus-python-1.2.14.ebuild
29 new file mode 100644
30 index 00000000000..5526593b6e8
31 --- /dev/null
32 +++ b/dev-python/dbus-python/dbus-python-1.2.14.ebuild
33 @@ -0,0 +1,78 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} )
40 +PYTHON_REQ_USE="threads(+)"
41 +
42 +inherit autotools python-r1
43 +
44 +DESCRIPTION="Python bindings for the D-Bus messagebus"
45 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/DBusBindings https://dbus.freedesktop.org/doc/dbus-python/"
46 +SRC_URI="https://dbus.freedesktop.org/releases/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
51 +
52 +IUSE="doc examples test"
53 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
54 +
55 +RESTRICT="!test? ( test )"
56 +
57 +RDEPEND="${PYTHON_DEPS}
58 + >=sys-apps/dbus-1.8:=
59 + >=dev-libs/glib-2.40
60 +"
61 +DEPEND="${RDEPEND}"
62 +BDEPEND="
63 + dev-python/setuptools[${PYTHON_USEDEP}]
64 + virtual/pkgconfig
65 + doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )
66 + test? ( dev-python/pygobject:3[${PYTHON_USEDEP}]
67 + dev-python/tappy[${PYTHON_USEDEP}] )
68 +"
69 +
70 +python_check_deps() {
71 + has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
72 +}
73 +
74 +src_prepare() {
75 + default
76 + # Update py-compile, bug 529502.
77 + eautoreconf
78 + python_copy_sources
79 +}
80 +
81 +src_configure() {
82 + use doc && python_setup
83 + local SPHINX_IMPL=${EPYTHON}
84 +
85 + configuring() {
86 + local myconf=(
87 + --disable-documentation
88 + )
89 + [[ ${EPYTHON} == ${SPHINX_IMPL} ]] &&
90 + myconf+=( --enable-documentation )
91 +
92 + econf "${myconf[@]}"
93 + }
94 + python_foreach_impl run_in_build_dir configuring
95 +}
96 +
97 +src_compile() {
98 + python_foreach_impl run_in_build_dir default
99 +}
100 +
101 +src_test() {
102 + unset DBUS_SESSION_BUS_ADDRESS
103 + python_foreach_impl run_in_build_dir default
104 +}
105 +
106 +src_install() {
107 + python_foreach_impl run_in_build_dir default
108 + find "${D}" -name '*.la' -type f -delete || die
109 +
110 + use examples && dodoc -r examples
111 +}