From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1087641-garchives=archives.gentoo.org@lists.gentoo.org>
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 E93E8138334
	for <garchives@archives.gentoo.org>; Sat,  4 May 2019 06:59:44 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B11EAE0839;
	Sat,  4 May 2019 06:59:43 +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 84700E0839
	for <gentoo-commits@lists.gentoo.org>; Sat,  4 May 2019 06:59:43 +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 629CE3432CF
	for <gentoo-commits@lists.gentoo.org>; Sat,  4 May 2019 06:59:42 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id E66C9A8
	for <gentoo-commits@lists.gentoo.org>; Sat,  4 May 2019 06:59:40 +0000 (UTC)
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" <polynomial-c@gentoo.org>
Message-ID: <1556953169.1956ce92abd8865e029a0e924d8fc3187c3a9990.polynomial-c@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbytesize/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-libs/libbytesize/libbytesize-2.0.ebuild
X-VCS-Directories: dev-libs/libbytesize/
X-VCS-Committer: polynomial-c
X-VCS-Committer-Name: Lars Wendler
X-VCS-Revision: 1956ce92abd8865e029a0e924d8fc3187c3a9990
X-VCS-Branch: master
Date: Sat,  4 May 2019 06:59:40 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: fd931cab-cc7f-4984-bc54-07e595662ac5
X-Archives-Hash: 50198121dad44491d9c7cf12924f2848

commit:     1956ce92abd8865e029a0e924d8fc3187c3a9990
Author:     Arthur Zamarin <arthurzam+gentoo <AT> gmail <DOT> com>
AuthorDate: Sat May  4 06:48:54 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sat May  4 06:59:29 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1956ce92

dev-libs/libbytesize: Added "python" USE flag

Closes: https://bugs.gentoo.org/684938
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 dev-libs/libbytesize/libbytesize-2.0.ebuild | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/dev-libs/libbytesize/libbytesize-2.0.ebuild b/dev-libs/libbytesize/libbytesize-2.0.ebuild
index 8e8c95ae080..60b36285a57 100644
--- a/dev-libs/libbytesize/libbytesize-2.0.ebuild
+++ b/dev-libs/libbytesize/libbytesize-2.0.ebuild
@@ -13,15 +13,15 @@ SRC_URI="https://github.com/storaged-project/${PN}/archive/${PV}.tar.gz -> ${P}.
 LICENSE="LGPL-2+"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="doc test tools"
+IUSE="doc python test tools"
 
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="
-	${PYTHON_DEPS}
 	dev-libs/gmp:0=
 	dev-libs/mpfr:=
 	dev-libs/libpcre2
+	python? ( ${PYTHON_DEPS} )
 "
 
 DEPEND="
@@ -45,7 +45,7 @@ src_prepare() {
 
 src_configure() {
 	local myeconfargs=(
-		--with-python3
+		$(use_with python python3)
 		$(use_with doc gtk-doc)
 		$(use_with tools)
 	)
@@ -54,6 +54,6 @@ src_configure() {
 
 src_install() {
 	default
-	python_optimize
+	use python && python_optimize
 	find "${ED}" -name "*.la*" -delete || die
 }