diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/glymur/glymur-0.8.10.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/glymur/glymur-0.8.10.ebuild')
-rw-r--r-- | dev-python/glymur/glymur-0.8.10.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/glymur/glymur-0.8.10.ebuild b/dev-python/glymur/glymur-0.8.10.ebuild new file mode 100644 index 000000000000..0a19aa6c6587 --- /dev/null +++ b/dev-python/glymur/glymur-0.8.10.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 +MYPN=Glymur +MYP=${MYPN}-${PV} + +DESCRIPTION="Python tools for accessing JPEG2000 files" +HOMEPAGE="https://github.com/quintusdias/glymur" +SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +RDEPEND=" + dev-python/contextlib2[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + media-libs/openjpeg:2= +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + dev-python/numpydoc[${PYTHON_USEDEP}] + ) +" + +S="${WORKDIR}/${MYP}" + +python_compile_all() { + if use doc; then + emake -C docs html + HTML_DOCS=( docs/build/html/. ) + fi +} + +python_test() { + "${EPYTHON}" -m unittest discover || die +} |