1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
8 DISTUTILS_IN_SOURCE_BUILD=1 # setup.py applies 2to3 to tests
14 DESCRIPTION="Python bindings for dev-libs/icu"
15 HOMEPAGE="http://pyicu.osafoundation.org/"
16 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
20 KEYWORDS="~amd64 ~x86"
23 RDEPEND="dev-libs/icu"
25 doc? ( dev-python/epydoc )"
28 "${FILESDIR}/${P}-testPre27.patch"
31 S="${WORKDIR}/${MY_P}"
33 DOCS=(CHANGES CREDITS README)
35 python_compile_all() {
37 einfo "Making documentation from ${EPYTHON} build"
38 cd "${BEST_BUILD_DIR}" || die
39 epydoc --html --verbose \
40 --url="${HOMEPAGE}" --name="${MY_P}" \
41 icu.py || die "Making the docs failed!"
49 python_install_all() {
50 distutils-r1_python_install_all