commit: 3d4a2c3bc5e194ac73017c185f92a16a513fe2f6
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 25 10:54:41 2018 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Jul 25 10:55:28 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d4a2c3b
sys-libs/libblockdev: Use python_is_python3
to check for major python version.
Package-Manager: Portage-2.3.43, Repoman-2.3.10
sys-libs/libblockdev/libblockdev-2.17.ebuild | 13 +++++++++++--
sys-libs/libblockdev/libblockdev-2.18-r1.ebuild | 13 +++++++++++--
2 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/sys-libs/libblockdev/libblockdev-2.17.ebuild
b/sys-libs/libblockdev/libblockdev-2.17.ebuild
index 5e350e43a26..f494d3d270e 100644
--- a/sys-libs/libblockdev/libblockdev-2.17.ebuild
+++ b/sys-libs/libblockdev/libblockdev-2.17.ebuild
@@ -81,8 +81,17 @@ src_configure() {
$(use_with lvm lvm)
$(use_with lvm lvm-dbus)
$(use_with kbd)
- $(use_with python_single_target_python2_7 python2)
- $(use_with !python_single_target_python2_7 python3)
)
+ if python_is_python3 ; then
+ myeconfargs+=(
+ --without-python2
+ --with-python3
+ )
+ else
+ myeconfargs+=(
+ --with-python2
+ --without-python3
+ )
+ fi
econf "${myeconfargs[@]}"
}
diff --git a/sys-libs/libblockdev/libblockdev-2.18-r1.ebuild
b/sys-libs/libblockdev/libblockdev-2.18-r1.ebuild
index eb79e1e1cb4..dbb703c0700 100644
--- a/sys-libs/libblockdev/libblockdev-2.18-r1.ebuild
+++ b/sys-libs/libblockdev/libblockdev-2.18-r1.ebuild
@@ -78,9 +78,18 @@ src_configure() {
$(use_with lvm lvm)
$(use_with lvm lvm-dbus)
$(use_with kbd)
- $(use_with python_single_target_python2_7 python2)
- $(use_with !python_single_target_python2_7 python3)
$(use_with vdo)
)
+ if python_is_python3 ; then
+ myeconfargs+=(
+ --without-python2
+ --with-python3
+ )
+ else
+ myeconfargs+=(
+ --with-python2
+ --without-python3
+ )
+ fi
econf "${myeconfargs[@]}"
}