summaryrefslogtreecommitdiff
blob: e4ba42842bedb70454c290c46856e94f9b40aaee (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/hglib/hglib-0.1.ebuild,v 1.1 2011/12/04 12:14:33 maksbotan Exp $

EAPI=3
PYTHON_DEPEND="2"
PYTHON_USE_WITH="threads"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.5 2.6 3.* *-jython"
MY_P="python-${P}"
MY_PN="python-${PN}"

inherit distutils

DESCRIPTION="Library for using the Mercurial Command Server from Python"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/${MY_PN}/${MY_P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"

RDEPEND=">=dev-vcs/mercurial-1.9"
DEPEND="test? ( dev-python/nose )"

S=${WORKDIR}/${MY_P}

src_test() {
	rm tests/test-summary.py # currently fails
	testing() {
#		local testdir="${T}/tests-${PYTHON_ABI}"
#		rm -rf "${testdir}"
		"$(PYTHON)" test.py
	}
	python_execute_function testing
}