Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/dbus-python/
Date: Wed, 14 Feb 2018 23:49:07
Message-Id: 1518652127.7517af4879a0a107b7f33a30472e4ff3ef23bd9e.mrueg@gentoo
1 commit: 7517af4879a0a107b7f33a30472e4ff3ef23bd9e
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 14 23:48:47 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 14 23:48:47 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7517af48
7
8 dev-python/dbus-python: Version bump to 1.2.6
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-python/dbus-python/Manifest | 1 +
13 dev-python/dbus-python/dbus-python-1.2.6.ebuild | 90 +++++++++++++++++++++++++
14 2 files changed, 91 insertions(+)
15
16 diff --git a/dev-python/dbus-python/Manifest b/dev-python/dbus-python/Manifest
17 index 53726f31b9a..88af6bd6923 100644
18 --- a/dev-python/dbus-python/Manifest
19 +++ b/dev-python/dbus-python/Manifest
20 @@ -1,2 +1,3 @@
21 DIST dbus-python-1.2.0.tar.gz 602426 BLAKE2B 86f5ba9283256b83d268ff7c27368e587896d58f87b15aefe9d29a90530ced591a2c6814dd37b91274910ed131fe031846071311bc6cc07c11d1f9cdda9e4602 SHA512 013b23e08fa1ed43f53a756587fefbc9770f7c51e93510e555acbd77230b7200693419bba9a69680d790bbaf123f4a195afa38b3eee1143da950fee0b5130bce
22 DIST dbus-python-1.2.4.tar.gz 612112 BLAKE2B cccd3e2f5d700c0d228e7d21fd85e2307357778371742a7fe26a0e419af41886efebb27a73f642d2ecd4603c79f4afe6e7002af95c831180e0e7844c079b2c8c SHA512 efdd9d96a8b56e813c93208d34777f1ca2db96c076d31f13afbcaec3c7770a16a623d5531fe23443130c555240949802503f171f2064d45eee97546d6251304b
23 +DIST dbus-python-1.2.6.tar.gz 778893 BLAKE2B 1587bc9b1795e5c416397468b2061c869d923aea0983e604862342b27d37b946b1fcdd3bf07a612dba30087bdc6a5fa734906188c55756edf38d50eb67b7eef6 SHA512 6f2aec81defd2528d9876ec9a83843f8767275a5d6cf1b2b7b7a094f892f552f9a7b3d7b5006465254d410e503108e10138d7dd4cb3f1a4035d7f8d58c4d0684
24
25 diff --git a/dev-python/dbus-python/dbus-python-1.2.6.ebuild b/dev-python/dbus-python/dbus-python-1.2.6.ebuild
26 new file mode 100644
27 index 00000000000..169ee6c62d2
28 --- /dev/null
29 +++ b/dev-python/dbus-python/dbus-python-1.2.6.ebuild
30 @@ -0,0 +1,90 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
37 +PYTHON_REQ_USE="threads(+)"
38 +
39 +inherit autotools eutils python-r1
40 +
41 +DESCRIPTION="Python bindings for the D-Bus messagebus"
42 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/DBusBindings https://dbus.freedesktop.org/doc/dbus-python/"
43 +SRC_URI="https://dbus.freedesktop.org/releases/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~m68k-mint"
48 +IUSE="doc examples test"
49 +# API docs generated with epydoc, which is python2-only
50 +REQUIRED_USE="
51 + ${PYTHON_REQUIRED_USE}
52 + doc? ( python_targets_python2_7 )"
53 +
54 +RDEPEND="
55 + >=dev-libs/dbus-glib-0.108:=
56 + >=sys-apps/dbus-1.8:=
57 + >=dev-libs/glib-2.40
58 + ${PYTHON_DEPS}"
59 +DEPEND="${RDEPEND}
60 + virtual/pkgconfig
61 + doc? (
62 + dev-python/docutils[python_targets_python2_7?]
63 + =dev-python/epydoc-3*[python_targets_python2_7?] )
64 + test? ( dev-python/pygobject:3[${PYTHON_USEDEP}] )"
65 +
66 +src_prepare() {
67 + default
68 + # Update py-compile, bug 529502.
69 + eautoreconf
70 + python_copy_sources
71 +}
72 +
73 +src_configure() {
74 + configuring() {
75 + local PYTHON_CONFIG
76 + python_export PYTHON_CONFIG
77 +
78 + # epydoc is python2-only, bug #447642
79 + local apidocs=--disable-api-docs
80 + [[ ${EPYTHON/.*} = "python2" ]] && apidocs=$(use_enable doc api-docs)
81 +
82 + econf \
83 + --docdir="${EPREFIX}"/usr/share/doc/${PF} \
84 + --disable-html-docs \
85 + ${apidocs} \
86 + PYTHON_INCLUDES="$(${PYTHON_CONFIG} --includes)" \
87 + PYTHON_LIBS="$(${PYTHON_CONFIG} --ldflags)"
88 + # configure assumes that ${PYTHON}-config executable exists :/
89 + }
90 + python_foreach_impl run_in_build_dir configuring
91 +}
92 +
93 +src_compile() {
94 + python_foreach_impl run_in_build_dir default
95 +}
96 +
97 +src_test() {
98 + unset DBUS_SESSION_BUS_ADDRESS
99 + python_foreach_impl run_in_build_dir default
100 +}
101 +
102 +src_install() {
103 + installing() {
104 + default
105 + [[ ${EPYTHON/.*} = "python2" ]] && use doc && dohtml -r api/*
106 + }
107 + python_foreach_impl run_in_build_dir installing
108 + prune_libtool_files --modules
109 +
110 + if use examples; then
111 + insinto /usr/share/doc/${PF}
112 + doins -r examples
113 + fi
114 +}
115 +
116 +run_in_build_dir() {
117 + pushd "${BUILD_DIR}" > /dev/null || die
118 + "$@"
119 + popd > /dev/null
120 +}