blob: c658b7e404a08c6a4d675ba983984da84ae99212 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 toolchain-funcs
DESCRIPTION="Object-oriented python bindings for subversion"
HOMEPAGE="https://pysvn.sourceforge.io/"
SRC_URI="https://downloads.sourceforge.net/project/pysvn/pysvn/V${PV}/${P}.tar.gz"
LICENSE="Apache-1.1"
SLOT="0"
KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="doc examples"
DEPEND="
>=dev-python/pycxx-7.0.2[${PYTHON_USEDEP}]
>=dev-vcs/subversion-1.9"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-1.9.18-tests-3.11.patch
)
python_prepare_all() {
# Don't use internal copy of dev-python/pycxx.
rm -r Import || die
distutils-r1_python_prepare_all
}
python_configure() {
cd Source || die
CC="$(tc-getCC)" CCC="$(tc-getCXX)" \
esetup.py configure
}
python_compile() {
cd Source || die
emake
}
python_test() {
cd Tests || die
emake
}
python_install() {
cd Source || die
python_domodule pysvn
}
python_install_all() {
use doc && local HTML_DOCS=( Docs/. )
if use examples; then
docinto examples
dodoc -r Examples/Client/.
docompress -x /usr/share/doc/${PF}/examples
fi
distutils-r1_python_install_all
}
|