aboutsummaryrefslogtreecommitdiff
blob: 70c59ba4df188667b1cdef0a37903840479a97c3 (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
# 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="~alpha ~amd64 ~ppc ~sparc ~x86"
IUSE="test"

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

DOCS=( CHANGES.txt )

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

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

		popd build-${PYTHON_ABI}/lib > /dev/null
	}
	python_execute_function testing
}