2015-04-08 16:22:29 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2012-02-08 10:13:10 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-10 23:59:40 +03:00
|
|
|
# $Id$
|
2012-02-08 10:13:10 +04:00
|
|
|
|
2013-05-17 17:45:44 +04:00
|
|
|
EAPI=5
|
2015-04-08 16:22:29 +03:00
|
|
|
PYTHON_COMPAT=( python2_7 )
|
2012-02-08 10:13:10 +04:00
|
|
|
|
2013-05-17 17:45:44 +04:00
|
|
|
inherit distutils-r1
|
2012-02-08 10:13:10 +04:00
|
|
|
|
|
|
|
DESCRIPTION="Alternative Python bindings for Subversion"
|
|
|
|
HOMEPAGE="http://samba.org/~jelmer/subvertpy/ http://pypi.python.org/pypi/subvertpy"
|
|
|
|
SRC_URI="http://samba.org/~jelmer/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="|| ( LGPL-2.1 LGPL-3 )"
|
|
|
|
SLOT="0"
|
2013-06-26 15:42:14 +04:00
|
|
|
KEYWORDS="amd64 x86"
|
2013-05-17 17:45:44 +04:00
|
|
|
IUSE="test"
|
2012-02-08 10:13:10 +04:00
|
|
|
|
|
|
|
RDEPEND=">=dev-vcs/subversion-1.4"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
test? ( || (
|
|
|
|
dev-python/testtools
|
|
|
|
) )"
|
|
|
|
|
2013-05-17 17:45:44 +04:00
|
|
|
DOCS=( NEWS AUTHORS )
|
|
|
|
S=${WORKDIR}
|
2012-02-08 10:13:10 +04:00
|
|
|
|
2014-12-29 09:26:43 +03:00
|
|
|
python_compile() {
|
|
|
|
python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
|
|
|
distutils-r1_python_compile
|
|
|
|
}
|
|
|
|
|
2013-05-17 17:45:44 +04:00
|
|
|
python_test() {
|
|
|
|
distutils_install_for_testing
|
|
|
|
pushd man > /dev/null
|
|
|
|
# hack: the subvertpy in . has no compiled modules, so cd into any
|
|
|
|
# directory to give the installed version precedence on PYTHONPATH
|
|
|
|
${PYTHON} -m unittest subvertpy.tests.test_suite
|
|
|
|
popd man > /dev/null
|
2012-02-08 10:13:10 +04:00
|
|
|
}
|