aboutsummaryrefslogtreecommitdiff
blob: 4017e66c17c74c88eedd9496addfe9d51e7b24bb (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="4"
PYTHON_DEPEND="2:2.6"
SUPPORT_PYTHON_ABIS=1
RESTRICT_PYTHON_ABIS="2.5 3.*"
DISTUTILS_SRC_TEST=setup.py
inherit distutils eutils

DESCRIPTION="Manuel lets you build tested documentation."
HOMEPAGE="http://packages.python.org/manuel/ http://pypi.python.org/pypi/manuel"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

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

DEPEND="dev-python/setuptools
	dev-python/six"
#	test? ( net-zope/zope-testing )"
RDEPEND="${DEPEND}"

DOCS=( CHANGES.txt )

src_prepare() {
	epatch "${FILESDIR}"/${P}-rm_zope_test.patch
}

src_test() {
	testing() {
		pushd build-${PYTHON_ABI}/lib > /dev/null
#		PYTHONPATH=. 
		"$(PYTHON)" -m ${PN}.tests
		popd > /dev/null
	}
	python_execute_function testing
}