1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 RESTRICT_PYTHON_ABIS="3.* *-jython"
9 DISTUTILS_SRC_TEST=setup.py
11 inherit base distutils
15 DESCRIPTION="Python bindings for dev-libs/icu"
16 HOMEPAGE="http://pyicu.osafoundation.org/"
17 SRC_URI="mirror://pypi/P/${MY_PN}/${MY_P}.tar.gz"
21 KEYWORDS="~amd64 ~x86"
24 RDEPEND=">=dev-libs/icu-4.6"
26 doc? ( dev-python/epydoc )"
28 S="${WORKDIR}/${MY_P}"
30 DOCS="CHANGES CREDITS README"
32 "${FILESDIR}/r191-tzinfo.patch" # epydoc will fail without this
40 distutils_src_compile_post_hook() {
42 echo " * Making documentation"
43 PYTHONPATH=$(_distutils_get_PYTHONPATH) \
44 epydoc --html --verbose --url="${HOMEPAGE}" --name="${MY_P}" \
45 icu.py || die "Making the docs failed!"
52 dohtml -r html/* || die "Installing the docs failed!"