summaryrefslogtreecommitdiff
blob: e380527f71448dae579060b4c4169d1d4bb0b14f (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/hgsubversion/hgsubversion-1.0.ebuild,v 1.1 2010/03/06 13:11:22 djc Exp $

EAPI="2"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"

inherit distutils

DESCRIPTION="hgsubversion is a Mercurial extension for working with Subversion"
HOMEPAGE="http://bitbucket.org/durin42/hgsubversion http://pypi.python.org/pypi/hgsubversion"
SRC_URI="http://bitbucket.org/durin42/${PN}/get/${PV}.tar.gz -> ${PN}-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

RDEPEND=">=dev-vcs/mercurial-1.4
		>=dev-util/subversion-1.5[python]"
DEPEND="test? ( dev-python/nose )"
RESTRICT_PYTHON_ABIS="3.*"

DOCS="README"

S="${WORKDIR}/${PN}"

src_test() {
	cd "${S}/tests"
	testing() {
		"$(PYTHON)" run.py
	}
	python_execute_function testing
}