Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pysvn/
Date: Sun, 03 Jul 2022 13:11:12
Message-Id: 1656853828.90007a7c10204e0d43e1ec932258c70b2affba69.sping@gentoo
1 commit: 90007a7c10204e0d43e1ec932258c70b2affba69
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 3 13:04:55 2022 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 13:10:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90007a7c
7
8 dev-python/pysvn: Python 3.10 + EAPI 8
9
10 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12
13 dev-python/pysvn/pysvn-1.9.15-r1.ebuild | 62 +++++++++++++++++++++++++++++++++
14 1 file changed, 62 insertions(+)
15
16 diff --git a/dev-python/pysvn/pysvn-1.9.15-r1.ebuild b/dev-python/pysvn/pysvn-1.9.15-r1.ebuild
17 new file mode 100644
18 index 000000000000..fb4f890e42e8
19 --- /dev/null
20 +++ b/dev-python/pysvn/pysvn-1.9.15-r1.ebuild
21 @@ -0,0 +1,62 @@
22 +# Copyright 1999-2022 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +DISTUTILS_IN_SOURCE_BUILD=true
29 +DISTUTILS_USE_SETUPTOOLS=bdepend # see setup.py
30 +inherit distutils-r1 toolchain-funcs
31 +
32 +DESCRIPTION="Object-oriented python bindings for subversion"
33 +HOMEPAGE="https://pysvn.sourceforge.io/"
34 +SRC_URI="mirror://sourceforge/project/pysvn/pysvn/V${PV}/${P}.tar.gz"
35 +
36 +LICENSE="Apache-1.1"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
39 +IUSE="doc examples"
40 +
41 +DEPEND="
42 + >=dev-python/pycxx-7.0.2[${PYTHON_USEDEP}]
43 + >=dev-vcs/subversion-1.9"
44 +RDEPEND="${DEPEND}"
45 +
46 +python_prepare_all() {
47 + # Don't use internal copy of dev-python/pycxx.
48 + rm -r Import || die
49 +
50 + distutils-r1_python_prepare_all
51 +}
52 +
53 +python_configure() {
54 + cd Source || die
55 + CC="$(tc-getCC)" CCC="$(tc-getCXX)" \
56 + esetup.py configure
57 +}
58 +
59 +python_compile() {
60 + cd Source || die
61 + emake
62 +}
63 +
64 +python_test() {
65 + cd Tests || die
66 + emake
67 +}
68 +
69 +python_install() {
70 + cd Source || die
71 + python_domodule pysvn
72 +}
73 +
74 +python_install_all() {
75 + use doc && local HTML_DOCS=( Docs/. )
76 + if use examples; then
77 + docinto examples
78 + dodoc -r Examples/Client/.
79 + docompress -x /usr/share/doc/${PF}/examples
80 + fi
81 +
82 + distutils-r1_python_install_all
83 +}