diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-08-18 18:16:17 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-08-18 18:16:17 +0100 |
commit | fc637fb28da700da71ec2064d65ca5a7a31b9c6c (patch) | |
tree | 326613a08f25851c388715e205576a2e7d25dc4f /dev-python/pywavelets/pywavelets-0.5.2-r1.ebuild | |
parent | b24bd25253fe093f722ab576d29fdc41d04cb1ee (diff) |
gentoo resync : 18.08.2019
Diffstat (limited to 'dev-python/pywavelets/pywavelets-0.5.2-r1.ebuild')
-rw-r--r-- | dev-python/pywavelets/pywavelets-0.5.2-r1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/pywavelets/pywavelets-0.5.2-r1.ebuild b/dev-python/pywavelets/pywavelets-0.5.2-r1.ebuild new file mode 100644 index 000000000000..4efbea0aa77b --- /dev/null +++ b/dev-python/pywavelets/pywavelets-0.5.2-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit distutils-r1 + +MY_PN="${PN/pyw/PyW}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Discrete Wavelet Transforms in Python" +HOMEPAGE="https://pywavelets.readthedocs.io/en/latest/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples test" + +RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/numpydoc[${PYTHON_USEDEP}] ) + test? ( + ${RDEPEND} + dev-python/nose[${PYTHON_USEDEP}] + ) +" + +S="${WORKDIR}/${MY_P}" + +python_test() { + cd "${BUILD_DIR}"/lib || die + nosetests -v . +} + +python_compile_all() { + use doc && emake -C doc html +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/build/html/. ) + distutils-r1_python_install_all + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r demo/* + docompress -x /usr/share/doc/${PF}/examples + fi +} |