diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-03 22:39:47 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-03 22:39:47 +0100 |
commit | 7f0ccc917c7abe6223784c703d86cd14755691fb (patch) | |
tree | 8c6793f68896b341e22f33d7e6cef88e481f4a8b /dev-python/pysvn/pysvn-1.9.13.ebuild | |
parent | 9aa80713372911cec499b3adb2cd746790920916 (diff) |
gentoo resync : 03.07.2021
Diffstat (limited to 'dev-python/pysvn/pysvn-1.9.13.ebuild')
-rw-r--r-- | dev-python/pysvn/pysvn-1.9.13.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/dev-python/pysvn/pysvn-1.9.13.ebuild b/dev-python/pysvn/pysvn-1.9.13.ebuild new file mode 100644 index 000000000000..6ed9ff4b7d38 --- /dev/null +++ b/dev-python/pysvn/pysvn-1.9.13.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_IN_SOURCE_BUILD=true +DISTUTILS_USE_SETUPTOOLS=bdepend # see setup.py +inherit distutils-r1 toolchain-funcs + +DESCRIPTION="Object-oriented python bindings for subversion" +HOMEPAGE="https://pysvn.sourceforge.io/" +SRC_URI="mirror://sourceforge/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 ~x86-solaris" +IUSE="doc examples" + +DEPEND=" + >=dev-python/pycxx-7.0.2[${PYTHON_USEDEP}] + >=dev-vcs/subversion-1.9" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-respect-flags.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 + # all config options from 1.7.6 are all already set + esetup.py configure + + # Build system mis-assumes that we have a local SVN checkout + # that we can query using command "svnversion -c ..". + # Revision 2061 is release 1.9.13 according to + # https://sourceforge.net/p/pysvn/code/2061/ + echo $'#! /bin/sh\necho 2061' > "${T}"/fake_svnversion.sh || die + chmod a+x "${T}"/fake_svnversion.sh || die +} + +python_compile() { + cd Source || die + emake \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + WC_SVNVERSION="${T}/fake_svnversion.sh" +} + +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 +} |