Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/libvirt-python/
Date: Mon, 28 May 2018 00:22:04
Message-Id: 1527466870.c9ac4903154762ad288240359ec77267d8e5dc95.tamiko@gentoo
1 commit: c9ac4903154762ad288240359ec77267d8e5dc95
2 Author: Georgy Yakovlev <ya <AT> sysdump <DOT> net>
3 AuthorDate: Sun May 27 23:29:26 2018 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Mon May 28 00:21:10 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9ac4903
7
8 dev-python/libvirt-python: add python-3.6 support
9
10 Closes: https://github.com/gentoo/gentoo/pull/8463
11
12 Package-Manager: Portage-2.3.40, Repoman-2.3.9
13 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
14
15 .../libvirt-python/libvirt-python-4.2.0-r1.ebuild | 46 ++++++++++++++++++++++
16 .../libvirt-python/libvirt-python-4.3.0-r1.ebuild | 46 ++++++++++++++++++++++
17 2 files changed, 92 insertions(+)
18
19 diff --git a/dev-python/libvirt-python/libvirt-python-4.2.0-r1.ebuild b/dev-python/libvirt-python/libvirt-python-4.2.0-r1.ebuild
20 new file mode 100644
21 index 00000000000..d097045772d
22 --- /dev/null
23 +++ b/dev-python/libvirt-python/libvirt-python-4.2.0-r1.ebuild
24 @@ -0,0 +1,46 @@
25 +# Copyright 1999-2018 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
31 +
32 +MY_P="${P/_rc/-rc}"
33 +
34 +inherit distutils-r1
35 +
36 +if [[ ${PV} = *9999* ]]; then
37 + inherit git-r3
38 + EGIT_REPO_URI="git://libvirt.org/libvirt-python.git"
39 + SRC_URI=""
40 + KEYWORDS=""
41 + RDEPEND="app-emulation/libvirt:=[-python(-)]"
42 +else
43 + SRC_URI="http://libvirt.org/sources/python/${MY_P}.tar.gz"
44 + KEYWORDS="~amd64 ~arm64 ~x86"
45 + RDEPEND="app-emulation/libvirt:0/${PV}"
46 +fi
47 +S="${WORKDIR}/${P%_rc*}"
48 +
49 +DESCRIPTION="libvirt Python bindings"
50 +HOMEPAGE="https://www.libvirt.org"
51 +LICENSE="LGPL-2"
52 +SLOT="0"
53 +IUSE="examples test"
54 +
55 +DEPEND="${RDEPEND}
56 + virtual/pkgconfig
57 + test? ( dev-python/lxml[${PYTHON_USEDEP}]
58 + dev-python/nose[${PYTHON_USEDEP}] )"
59 +
60 +python_test() {
61 + esetup.py test
62 +}
63 +
64 +python_install_all() {
65 + if use examples; then
66 + dodoc -r examples
67 + docompress -x /usr/share/doc/${PF}/examples
68 + fi
69 + distutils-r1_python_install_all
70 +}
71
72 diff --git a/dev-python/libvirt-python/libvirt-python-4.3.0-r1.ebuild b/dev-python/libvirt-python/libvirt-python-4.3.0-r1.ebuild
73 new file mode 100644
74 index 00000000000..d097045772d
75 --- /dev/null
76 +++ b/dev-python/libvirt-python/libvirt-python-4.3.0-r1.ebuild
77 @@ -0,0 +1,46 @@
78 +# Copyright 1999-2018 Gentoo Foundation
79 +# Distributed under the terms of the GNU General Public License v2
80 +
81 +EAPI=6
82 +
83 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
84 +
85 +MY_P="${P/_rc/-rc}"
86 +
87 +inherit distutils-r1
88 +
89 +if [[ ${PV} = *9999* ]]; then
90 + inherit git-r3
91 + EGIT_REPO_URI="git://libvirt.org/libvirt-python.git"
92 + SRC_URI=""
93 + KEYWORDS=""
94 + RDEPEND="app-emulation/libvirt:=[-python(-)]"
95 +else
96 + SRC_URI="http://libvirt.org/sources/python/${MY_P}.tar.gz"
97 + KEYWORDS="~amd64 ~arm64 ~x86"
98 + RDEPEND="app-emulation/libvirt:0/${PV}"
99 +fi
100 +S="${WORKDIR}/${P%_rc*}"
101 +
102 +DESCRIPTION="libvirt Python bindings"
103 +HOMEPAGE="https://www.libvirt.org"
104 +LICENSE="LGPL-2"
105 +SLOT="0"
106 +IUSE="examples test"
107 +
108 +DEPEND="${RDEPEND}
109 + virtual/pkgconfig
110 + test? ( dev-python/lxml[${PYTHON_USEDEP}]
111 + dev-python/nose[${PYTHON_USEDEP}] )"
112 +
113 +python_test() {
114 + esetup.py test
115 +}
116 +
117 +python_install_all() {
118 + if use examples; then
119 + dodoc -r examples
120 + docompress -x /usr/share/doc/${PF}/examples
121 + fi
122 + distutils-r1_python_install_all
123 +}