1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_5,3_6} )
13 DESCRIPTION="Discrete Wavelet Transforms in Python"
14 HOMEPAGE="https://pywavelets.readthedocs.io/en/latest/"
15 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
19 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
20 IUSE="doc examples test"
21 RESTRICT="!test? ( test )"
23 RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
25 dev-python/cython[${PYTHON_USEDEP}]
26 doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
27 dev-python/numpydoc[${PYTHON_USEDEP}] )
30 dev-python/nose[${PYTHON_USEDEP}]
34 S="${WORKDIR}/${MY_P}"
37 cd "${BUILD_DIR}"/lib || die
41 python_compile_all() {
42 use doc && emake -C doc html
45 python_install_all() {
46 use doc && local HTML_DOCS=( doc/build/html/. )
47 distutils-r1_python_install_all
49 insinto /usr/share/doc/${PF}/examples
51 docompress -x /usr/share/doc/${PF}/examples