1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.*"
12 DESCRIPTION="Parse human-readable date/time expressions"
13 HOMEPAGE="http://code-bear.com/code/parsedatetime/ http://code.google.com/p/parsedatetime/"
14 SRC_URI="http://code-bear.com/code/${PN}/${P}.tar.gz"
18 KEYWORDS="~amd64 ~x86"
21 DEPEND="doc? ( dev-python/epydoc )"
22 RDEPEND="dev-python/pyicu"
24 DOCS="THANKS.txt AUTHORS.txt CHANGES.txt"
27 # A broken and unnecessary test script made it into the release. delete it.
28 if [[ -f "${S}/${PN}/t2.py" ]]; then
29 rm -f "${S}/${PN}/t2.py" || die "Removing t2.py failed!"
35 epydoc --config epydoc.conf || die "Couldn't generate docs"
42 PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" run_tests.py
44 python_execute_function testing
49 dohtml -r docs/* || die "Installing the docs failed!"