Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/dbus-python/
Date: Tue, 07 Sep 2021 14:08:49
Message-Id: 1631023717.ecc4b8e00c2e27a6ea52d05c01bcd331f118277c.pacho@gentoo
1 commit: ecc4b8e00c2e27a6ea52d05c01bcd331f118277c
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 7 13:45:02 2021 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 14:08:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecc4b8e0
7
8 dev-python/dbus-python: Bump to 1.2.18
9
10 Closes: https://bugs.gentoo.org/719626
11 Package-Manager: Portage-3.0.22, Repoman-3.0.3
12 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
13
14 dev-python/dbus-python/Manifest | 1 +
15 dev-python/dbus-python/dbus-python-1.2.18.ebuild | 81 ++++++++++++++++++++++++
16 2 files changed, 82 insertions(+)
17
18 diff --git a/dev-python/dbus-python/Manifest b/dev-python/dbus-python/Manifest
19 index 40ba4cdce24..200202a96a5 100644
20 --- a/dev-python/dbus-python/Manifest
21 +++ b/dev-python/dbus-python/Manifest
22 @@ -1 +1,2 @@
23 DIST dbus-python-1.2.16.tar.gz 576701 BLAKE2B 58d9f9ea092cd3a6b872c084a6159baf03f1aab615282e161a0e3da1d01ff5f4940862e693d21907b0c146d285b9067386759a1306ae2e6907f5e2ff4ef9944d SHA512 e76c00c5fd3fe6884e4c24f258987fd3b80d21bd4e0f96aa8fda152078a860b62321324f6efcbfe7226d5ab2521a14b5bda7cf2468d2cae5f376c124a71aa05c
24 +DIST dbus-python-1.2.18.tar.gz 578204 BLAKE2B 932a06f4b0145f7a47cf1ab6ea33c14eb4e36570ef548e7557d4aa5b780e49f2d284cdb51f0ec2d8a1cb286097fb9eabb2193d7cbeb387eaf43cbe209b7f11fa SHA512 72f422c59637392bd78b741b66dff2afadcc706452c3e82fdc14b1dc052a0c5cb8a85e2758d18c5cbdc08004419a0b3c16b67b99688d96307084403e72585900
25
26 diff --git a/dev-python/dbus-python/dbus-python-1.2.18.ebuild b/dev-python/dbus-python/dbus-python-1.2.18.ebuild
27 new file mode 100644
28 index 00000000000..81900501238
29 --- /dev/null
30 +++ b/dev-python/dbus-python/dbus-python-1.2.18.ebuild
31 @@ -0,0 +1,81 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7..10} )
38 +PYTHON_REQ_USE="threads(+)"
39 +
40 +inherit autotools python-r1
41 +
42 +DESCRIPTION="Python bindings for the D-Bus messagebus"
43 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/DBusBindings/ https://dbus.freedesktop.org/doc/dbus-python/"
44 +SRC_URI="https://dbus.freedesktop.org/releases/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
49 +
50 +IUSE="doc examples test"
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +
53 +RESTRICT="!test? ( test )"
54 +
55 +RDEPEND="${PYTHON_DEPS}
56 + >=sys-apps/dbus-1.8:=
57 + >=dev-libs/glib-2.40
58 +"
59 +DEPEND="${RDEPEND}"
60 +BDEPEND="
61 + virtual/pkgconfig
62 + doc? ( $(python_gen_any_dep '
63 + dev-python/sphinx[${PYTHON_USEDEP}]
64 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
65 + ') )
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 + has_version "dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]"
73 +}
74 +
75 +src_prepare() {
76 + default
77 + # Update py-compile, bug 529502.
78 + eautoreconf
79 + python_copy_sources
80 +}
81 +
82 +src_configure() {
83 + use doc && python_setup
84 + local SPHINX_IMPL=${EPYTHON}
85 +
86 + configuring() {
87 + local myconf=(
88 + --disable-documentation
89 + )
90 + [[ ${EPYTHON} == ${SPHINX_IMPL} ]] &&
91 + myconf+=( --enable-documentation )
92 +
93 + econf "${myconf[@]}"
94 + }
95 + python_foreach_impl run_in_build_dir configuring
96 +}
97 +
98 +src_compile() {
99 + python_foreach_impl run_in_build_dir default
100 +}
101 +
102 +src_test() {
103 + unset DBUS_SESSION_BUS_ADDRESS
104 + python_foreach_impl run_in_build_dir default
105 +}
106 +
107 +src_install() {
108 + python_foreach_impl run_in_build_dir default
109 + find "${D}" -name '*.la' -type f -delete || die
110 +
111 + use examples && dodoc -r examples
112 +}