From b1c81de4fadbd00897700a7321f03b390d952b2e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 26 Aug 2021 00:09:36 +0100 Subject: gentoo resync : 26.08.2021 --- .../uncertainties/uncertainties-3.1.6.ebuild | 25 +++++++--------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'dev-python/uncertainties/uncertainties-3.1.6.ebuild') diff --git a/dev-python/uncertainties/uncertainties-3.1.6.ebuild b/dev-python/uncertainties/uncertainties-3.1.6.ebuild index 96b4e0d8f983..c7a176fb8e25 100644 --- a/dev-python/uncertainties/uncertainties-3.1.6.ebuild +++ b/dev-python/uncertainties/uncertainties-3.1.6.ebuild @@ -3,8 +3,8 @@ EAPI=8 -PYTHON_COMPAT=( python3_{8..9} ) -inherit distutils-r1 +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 optfeature DESCRIPTION="Python module for calculations with uncertainties" HOMEPAGE="https://pythonhosted.org/uncertainties/" @@ -13,24 +13,15 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="doc" -RDEPEND=" - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/future[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND}" -BDEPEND=" - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) +RDEPEND="dev-python/future[${PYTHON_USEDEP}]" +BDEPEND="${RDEPEND} + test? ( dev-python/numpy[${PYTHON_USEDEP}] ) " distutils_enable_tests nose +distutils_enable_sphinx doc --no-autodoc -python_compile_all() { - use doc && "${PYTHON}" setup.py build_sphinx -} - -python_install_all() { - use doc && local HTML_DOCS=( build/sphinx/html/. ) - distutils-r1_python_install_all +pkg_postinst() { + optfeature "numpy support" dev-python/numpy } -- cgit v1.2.3