Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 513392
Collapse All | Expand All

(-)dulwich-0.9.5.ebuild (-9 / +13 lines)
Lines 3-28 Link Here
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/dulwich/dulwich-0.9.5.ebuild,v 1.2 2014/03/31 21:16:47 mgorny Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-python/dulwich/dulwich-0.9.5.ebuild,v 1.2 2014/03/31 21:16:47 mgorny Exp $
4
4
5
EAPI=5
5
EAPI=5
6
PYTHON_COMPAT=( python{2_6,2_7} pypy pypy2_0 )
6
PYTHON_COMPAT=( python2_7 pypy )
7
7
8
inherit distutils-r1
8
inherit distutils-r1
9
9
10
DESCRIPTION="Dulwich is a pure-Python implementation of the Git file formats and protocols."
10
DESCRIPTION="Dulwich is a pure-Python implementation of the Git file formats and protocols."
11
HOMEPAGE="http://samba.org/~jelmer/dulwich/ http://pypi.python.org/pypi/dulwich"
11
HOMEPAGE="https://github.com/jelmer/dulwich/  http://pypi.python.org/pypi/dulwich"
12
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
12
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
13
13
14
LICENSE="GPL-2"
14
LICENSE="GPL-2"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
17
IUSE="doc test"
17
IUSE="doc examples test"
18
18
19
RDEPEND=""
19
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
20
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
20
	test? (
21
	test? ( ${RDEPEND}
21
		dev-python/nose[${PYTHON_USEDEP}]
22
		dev-python/gevent[$(python_gen_usedep python2_7)]
22
		virtual/python-unittest2[${PYTHON_USEDEP}]
23
		virtual/python-unittest2[${PYTHON_USEDEP}]
23
	)"
24
	)"
24
RDEPEND=""
25
26
DISTUTILS_IN_SOURCE_BUILD=1
25
DISTUTILS_IN_SOURCE_BUILD=1
27
26
28
python_compile_all() {
27
python_compile_all() {
Lines 30-40 Link Here
30
}
29
}
31
30
32
python_test() {
31
python_test() {
33
	ln -s "${BUILD_DIR}"/lib/dulwich/*.so dulwich/ || die
32
	# https://github.com/jelmer/dulwich/issues/196
34
	nosetests -v || die "Tests failed under ${EPYTHON}"
33
	if [[ "${EPYTHON}" == pypy ]]; then
34
		"${PYTHON}" -m unittest dulwich.tests.test_suite || die "Tests failed under pypy"
35
	else
36
		emake check
37
	fi
35
}
38
}
36
39
37
python_install_all() {
40
python_install_all() {
38
	use doc && local HTML_DOCS=( docs/build/html/. )
41
	use doc && local HTML_DOCS=( docs/build/html/. )
42
	use examples && local EXAMPLES=( examples/. )
39
	distutils-r1_python_install_all
43
	distutils-r1_python_install_all
40
}
44
}

Return to bug 513392