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
 }

Reply via email to