# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/subvertpy/subvertpy-0.9.0.ebuild,v 1.2 2013/01/07 08:51:58 mgorny Exp $ EAPI="3" PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="2.5 3.* *-jython 2.7-pypy-1.8" DISTUTILS_SRC_TEST="nosetests" inherit distutils 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" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=">=dev-vcs/subversion-1.4" DEPEND="${RDEPEND} test? ( || ( dev-lang/python:2.7 virtual/python-unittest2 dev-python/testtools ) )" PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") DOCS="NEWS AUTHORS" distutils_src_test_pre_hook() { local module for module in _ra client repos wc; do ln -fs "../$(ls -d build-${PYTHON_ABI}/lib.*)/subvertpy/${module}.so" "subvertpy/${module}.so" || die "Symlinking subvertpy/${module}.so failed with $(python_get_implementation) $(python_get_version)" done }