mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
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:
@@ -9,5 +9,6 @@
|
|||||||
<use>
|
<use>
|
||||||
<flag name="numpy">Optionally add dev-python/numpy</flag>
|
<flag name="numpy">Optionally add dev-python/numpy</flag>
|
||||||
<flag name="matplotlib">Optionally add dev-python/matplotlib</flag>
|
<flag name="matplotlib">Optionally add dev-python/matplotlib</flag>
|
||||||
|
<flag name="extras">Optionally add dev-python/quantities</flag>
|
||||||
</use>
|
</use>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
|||||||
@@ -17,12 +17,13 @@ SRC_URI="https://github.com/JelteF/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_PN}.ta
|
|||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64 ~x86"
|
KEYWORDS="~amd64 ~x86"
|
||||||
IUSE="examples matplotlib numpy" # quantities can be used also, but is not a gentoo package.
|
IUSE="examples matplotlib numpy extras"
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
dev-python/ordered-set[${PYTHON_USEDEP}]
|
dev-python/ordered-set[${PYTHON_USEDEP}]
|
||||||
matplotlib? ( dev-python/matplotlib[$PYTHON_USEDEP] )
|
matplotlib? ( dev-python/matplotlib[$PYTHON_USEDEP] )
|
||||||
numpy? ( dev-python/numpy[$PYTHON_USEDEP] )
|
numpy? ( dev-python/numpy[$PYTHON_USEDEP] )
|
||||||
|
extras? ( dev-python/quantities[$PYTHON_USEDEP] )
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
@@ -48,6 +49,8 @@ python_install_all() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_test() {
|
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
|
distutils-r1_src_test
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user