dev-python/pylatex: added dev-python/quantities with extras use flag

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Denoncin <ddenoncin@gmail.com>
This commit is contained in:
David Denoncin
2020-05-13 12:48:15 +02:00
parent 32fbcd91c1
commit 9967245d2f
2 changed files with 6 additions and 2 deletions

View File

@@ -9,5 +9,6 @@
<use>
<flag name="numpy">Optionally add dev-python/numpy</flag>
<flag name="matplotlib">Optionally add dev-python/matplotlib</flag>
<flag name="extras">Optionally add dev-python/quantities</flag>
</use>
</pkgmetadata>

View File

@@ -17,12 +17,13 @@ SRC_URI="https://github.com/JelteF/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_PN}.ta
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples matplotlib numpy" # quantities can be used also, but is not a gentoo package.
IUSE="examples matplotlib numpy extras"
DEPEND="
dev-python/ordered-set[${PYTHON_USEDEP}]
matplotlib? ( dev-python/matplotlib[$PYTHON_USEDEP] )
numpy? ( dev-python/numpy[$PYTHON_USEDEP] )
extras? ( dev-python/quantities[$PYTHON_USEDEP] )
"
RDEPEND="${DEPEND}"
@@ -48,6 +49,8 @@ python_install_all() {
}
src_test() {
rm "${S}"/tests/test_quantities.py # quantities is not a gentoo package
if ! use extras ; then
rm "${S}"/tests/test_quantities.py # remove if quantities is not installed
fi
distutils-r1_src_test
}