From 1956ce92abd8865e029a0e924d8fc3187c3a9990 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Sat, 4 May 2019 08:48:54 +0200 Subject: [PATCH] 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 --- 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 8e8c95ae0808..60b36285a575 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 } -- 2.26.2