1 |
commit: 67a6be80aeae5028c5cfef43e3e2ccf80c17ed93 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 9 05:59:42 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 9 07:22:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67a6be80 |
7 |
|
8 |
dev-python/dbus-python: add 1.3.2 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/dbus-python/Manifest | 1 + |
13 |
dev-python/dbus-python/dbus-python-1.3.2.ebuild | 85 +++++++++++++++++++++++++ |
14 |
2 files changed, 86 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/dbus-python/Manifest b/dev-python/dbus-python/Manifest |
17 |
index 564673c85769..5a867914faec 100644 |
18 |
--- a/dev-python/dbus-python/Manifest |
19 |
+++ b/dev-python/dbus-python/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST dbus-python-1.2.18.tar.gz 578204 BLAKE2B 932a06f4b0145f7a47cf1ab6ea33c14eb4e36570ef548e7557d4aa5b780e49f2d284cdb51f0ec2d8a1cb286097fb9eabb2193d7cbeb387eaf43cbe209b7f11fa SHA512 72f422c59637392bd78b741b66dff2afadcc706452c3e82fdc14b1dc052a0c5cb8a85e2758d18c5cbdc08004419a0b3c16b67b99688d96307084403e72585900 |
22 |
+DIST dbus-python-1.3.2.tar.gz 605495 BLAKE2B 6c60217b3837d655ab4f833b9f21d8f76eb4129cfeaa26586ef7adc8be8f8c5f03464428ff9f281b2566fb0f89cbb5e4b5618bf7cc961faf9f638d9011874839 SHA512 9b2885c9c2914142c72487f766b1cdd28a255d9f5a87eaf8f4eb420c6e096a77f210ac5a4fac9843c6531974872880cc28b7e45940e198856e984dcc0715519a |
23 |
|
24 |
diff --git a/dev-python/dbus-python/dbus-python-1.3.2.ebuild b/dev-python/dbus-python/dbus-python-1.3.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..bdf58d34840c |
27 |
--- /dev/null |
28 |
+++ b/dev-python/dbus-python/dbus-python-1.3.2.ebuild |
29 |
@@ -0,0 +1,85 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..11} ) |
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="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
47 |
+ |
48 |
+IUSE="doc examples test" |
49 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
50 |
+ |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+RDEPEND="${PYTHON_DEPS} |
54 |
+ >=sys-apps/dbus-1.8:= |
55 |
+ >=dev-libs/glib-2.40 |
56 |
+" |
57 |
+DEPEND="${RDEPEND}" |
58 |
+BDEPEND=" |
59 |
+ virtual/pkgconfig |
60 |
+ doc? ( $(python_gen_any_dep ' |
61 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
62 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
63 |
+ ') ) |
64 |
+ test? ( dev-python/pygobject:3[${PYTHON_USEDEP}] |
65 |
+ dev-python/tappy[${PYTHON_USEDEP}] ) |
66 |
+" |
67 |
+ |
68 |
+python_check_deps() { |
69 |
+ python_has_version "dev-python/sphinx[${PYTHON_USEDEP}]" \ |
70 |
+ "dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]" |
71 |
+} |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ default |
75 |
+ # Update py-compile, bug 529502. |
76 |
+ eautoreconf |
77 |
+ python_copy_sources |
78 |
+} |
79 |
+ |
80 |
+src_configure() { |
81 |
+ use doc && python_setup |
82 |
+ local SPHINX_IMPL=${EPYTHON} |
83 |
+ |
84 |
+ configuring() { |
85 |
+ local myconf=( |
86 |
+ --disable-documentation |
87 |
+ |
88 |
+ # Work around broken AX_PYTHON_DEVEL macro. |
89 |
+ # https://bugs.gentoo.org/815136 |
90 |
+ PYTHON_EXTRA_LIBS=' ' |
91 |
+ ) |
92 |
+ [[ ${EPYTHON} == ${SPHINX_IMPL} ]] && |
93 |
+ myconf+=( --enable-documentation ) |
94 |
+ |
95 |
+ econf "${myconf[@]}" |
96 |
+ } |
97 |
+ python_foreach_impl run_in_build_dir configuring |
98 |
+} |
99 |
+ |
100 |
+src_compile() { |
101 |
+ python_foreach_impl run_in_build_dir default |
102 |
+} |
103 |
+ |
104 |
+src_test() { |
105 |
+ unset DBUS_SESSION_BUS_ADDRESS |
106 |
+ python_foreach_impl run_in_build_dir default |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ python_foreach_impl run_in_build_dir default |
111 |
+ find "${D}" -name '*.la' -type f -delete || die |
112 |
+ |
113 |
+ use examples && dodoc -r examples |
114 |
+} |