From: "David Denoncin" <ddenoncin@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pylatex/
Date: Wed, 13 May 2020 10:49:27 +0000 (UTC) [thread overview]
Message-ID: <1589366963.9967245d2f7cb62fcbca8566e0aecb03ae8edfa4.ddenoncin@gentoo> (raw)
commit: 9967245d2f7cb62fcbca8566e0aecb03ae8edfa4
Author: David Denoncin <ddenoncin <AT> gmail <DOT> com>
AuthorDate: Wed May 13 10:48:15 2020 +0000
Commit: David Denoncin <ddenoncin <AT> gmail <DOT> com>
CommitDate: Wed May 13 10:49:23 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9967245d
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 <AT> gmail.com>
dev-python/pylatex/metadata.xml | 1 +
dev-python/pylatex/pylatex-1.3.1.ebuild | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dev-python/pylatex/metadata.xml b/dev-python/pylatex/metadata.xml
index ab99695..212167a 100644
--- a/dev-python/pylatex/metadata.xml
+++ b/dev-python/pylatex/metadata.xml
@@ -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>
diff --git a/dev-python/pylatex/pylatex-1.3.1.ebuild b/dev-python/pylatex/pylatex-1.3.1.ebuild
index 97967ff..c15bb8b 100644
--- a/dev-python/pylatex/pylatex-1.3.1.ebuild
+++ b/dev-python/pylatex/pylatex-1.3.1.ebuild
@@ -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
}
next reply other threads:[~2020-05-13 10:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-13 10:49 David Denoncin [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-07-19 11:20 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pylatex/ David Denoncin
2020-07-01 22:02 David Denoncin
2020-06-14 19:23 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-06-14 19:22 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-06-09 15:15 Andrew Ammerlaan
2020-05-23 12:29 David Denoncin
2020-05-18 1:25 David Denoncin
2020-05-11 1:11 David Denoncin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1589366963.9967245d2f7cb62fcbca8566e0aecb03ae8edfa4.ddenoncin@gentoo \
--to=ddenoncin@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox