From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D5F571382C5 for ; Wed, 13 May 2020 10:49:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 108D6E0922; Wed, 13 May 2020 10:49:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ED242E0922 for ; Wed, 13 May 2020 10:49:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 622293505BE for ; Wed, 13 May 2020 10:49:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E00661AC for ; Wed, 13 May 2020 10:49:27 +0000 (UTC) From: "David Denoncin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Denoncin" Message-ID: <1589366963.9967245d2f7cb62fcbca8566e0aecb03ae8edfa4.ddenoncin@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pylatex/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pylatex/metadata.xml dev-python/pylatex/pylatex-1.3.1.ebuild X-VCS-Directories: dev-python/pylatex/ X-VCS-Committer: ddenoncin X-VCS-Committer-Name: David Denoncin X-VCS-Revision: 9967245d2f7cb62fcbca8566e0aecb03ae8edfa4 X-VCS-Branch: dev Date: Wed, 13 May 2020 10:49:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: da25eb05-95ae-4c55-b617-3d9cec7b6542 X-Archives-Hash: ee700ff60f873f44103b7264effef39f commit: 9967245d2f7cb62fcbca8566e0aecb03ae8edfa4 Author: David Denoncin gmail com> AuthorDate: Wed May 13 10:48:15 2020 +0000 Commit: David Denoncin gmail 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 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 @@ Optionally add dev-python/numpy Optionally add dev-python/matplotlib + Optionally add dev-python/quantities 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 }