blob: 9dd22c1c5c2ed9753c442e961c442a650c3e298f (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
NEED_PYTHON=2.4
inherit distutils
DESCRIPTION="Alternative Python bindings for Subversion"
HOMEPAGE="http://samba.org/~jelmer/subvertpy"
SRC_URI="http://samba.org/~jelmer/${PN}/${P}.tar.gz"
IUSE="examples test"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=">=dev-util/subversion-1.4"
DEPEND="${RDEPEND}
dev-python/setuptools
test? ( dev-python/nose )"
src_unpack() {
unpack ${A}
cd "${S}"
if ! use test ; then
epatch "${FILESDIR}/remove_tests.patch"
fi
}
src_test() {
cd build/lib.*/${PN}/tests || die "Tests failed"
nosetests || die "Tests failed"
}
src_install() {
distutils_src_install
insinto "/usr/share/doc/${PF}"
if use examples; then
doins -r examples || die "Install Failed"
fi
}
|