commit:     00cdc666f7e431bdd5efbdd2bec1f74f960850d7
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 28 19:23:20 2025 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Fri Mar 28 19:30:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00cdc666

dev-python/pysvn: Python 3.13

Closes: https://bugs.gentoo.org/952380
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>

 dev-python/pysvn/pysvn-1.9.22-r1.ebuild | 62 +++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

diff --git a/dev-python/pysvn/pysvn-1.9.22-r1.ebuild 
b/dev-python/pysvn/pysvn-1.9.22-r1.ebuild
new file mode 100644
index 000000000000..ce1efb8e1c39
--- /dev/null
+++ b/dev-python/pysvn/pysvn-1.9.22-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+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.1.8[${PYTHON_USEDEP}]
+       >=dev-vcs/subversion-1.9"
+RDEPEND="${DEPEND}"
+
+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
+}

Reply via email to