commit:     6ae4a51986ef113810101e7bb79ae38bb0ed427c
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  5 22:39:29 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Sep  5 22:39:59 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ae4a519

sys-libs/libblockdev: python is non-optional (bug #629768).

Package-Manager: Portage-2.3.8, Repoman-2.3.3

 sys-libs/libblockdev/libblockdev-2.11.ebuild | 10 +++++-----
 sys-libs/libblockdev/libblockdev-2.12.ebuild | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/sys-libs/libblockdev/libblockdev-2.11.ebuild 
b/sys-libs/libblockdev/libblockdev-2.11.ebuild
index 11dae613f10..6a7e87b7e89 100644
--- a/sys-libs/libblockdev/libblockdev-2.11.ebuild
+++ b/sys-libs/libblockdev/libblockdev-2.11.ebuild
@@ -15,7 +15,7 @@ 
SRC_URI="https://github.com/rhinstaller/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}
 LICENSE="LGPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="bcache crypt dmraid doc lvm kbd python test"
+IUSE="bcache crypt dmraid doc lvm kbd test"
 
 CDEPEND="
        >=dev-libs/glib-2.42.2
@@ -36,7 +36,7 @@ CDEPEND="
                virtual/udev
        )
        kbd? ( >=sys-apps/kmod-19 )
-       python? ( ${PYTHON_DEPS} )
+       ${PYTHON_DEPS}
 "
 
 DEPEND="
@@ -49,12 +49,12 @@ RDEPEND="
        ${CDEPEND}
 "
 
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 S="${WORKDIR}/${MY_P}"
 
 pkg_setup() {
-       use python && python-single-r1_pkg_setup
+       python-single-r1_pkg_setup
 }
 
 src_prepare() {
@@ -67,6 +67,7 @@ src_configure() {
                --with-btrfs
                --with-fs
                --with-part
+               --with-python3
                --without-mpath
                $(use_enable test tests)
                $(use_with bcache)
@@ -76,7 +77,6 @@ src_configure() {
                $(use_with lvm lvm)
                $(use_with lvm lvm-dbus)
                $(use_with kbd)
-               $(use_with python python3)
        )
        econf "${myeconfargs[@]}"
 }

diff --git a/sys-libs/libblockdev/libblockdev-2.12.ebuild 
b/sys-libs/libblockdev/libblockdev-2.12.ebuild
index 1da1e81fbb7..53c3efbcb20 100644
--- a/sys-libs/libblockdev/libblockdev-2.12.ebuild
+++ b/sys-libs/libblockdev/libblockdev-2.12.ebuild
@@ -15,7 +15,7 @@ 
SRC_URI="https://github.com/rhinstaller/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}
 LICENSE="LGPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="bcache +crypt dmraid doc lvm kbd python test"
+IUSE="bcache +crypt dmraid doc lvm kbd test"
 
 CDEPEND="
        >=dev-libs/glib-2.42.2
@@ -36,7 +36,7 @@ CDEPEND="
                virtual/udev
        )
        kbd? ( >=sys-apps/kmod-19 )
-       python? ( ${PYTHON_DEPS} )
+       ${PYTHON_DEPS}
 "
 
 DEPEND="
@@ -49,12 +49,12 @@ RDEPEND="
        ${CDEPEND}
 "
 
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 S="${WORKDIR}/${MY_P}"
 
 pkg_setup() {
-       use python && python-single-r1_pkg_setup
+       python-single-r1_pkg_setup
 }
 
 src_prepare() {
@@ -67,6 +67,7 @@ src_configure() {
                --with-btrfs
                --with-fs
                --with-part
+               --with-python3
                --without-mpath
                $(use_enable test tests)
                $(use_with bcache)
@@ -76,7 +77,6 @@ src_configure() {
                $(use_with lvm lvm)
                $(use_with lvm lvm-dbus)
                $(use_with kbd)
-               $(use_with python python3)
        )
        econf "${myeconfargs[@]}"
 }

Reply via email to