summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-07-25 12:54:41 +0200
committerLars Wendler <polynomial-c@gentoo.org>2018-07-25 12:55:28 +0200
commit3d4a2c3bc5e194ac73017c185f92a16a513fe2f6 (patch)
tree22169b81c6b37f3a1dcb58802c5b32cf4c222452 /sys-libs
parentdev-lang/python: Stable for HPPA too. (diff)
downloadgentoo-3d4a2c3bc5e194ac73017c185f92a16a513fe2f6.tar.gz
gentoo-3d4a2c3bc5e194ac73017c185f92a16a513fe2f6.tar.bz2
gentoo-3d4a2c3bc5e194ac73017c185f92a16a513fe2f6.zip
sys-libs/libblockdev: Use python_is_python3
to check for major python version. Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/libblockdev/libblockdev-2.17.ebuild13
-rw-r--r--sys-libs/libblockdev/libblockdev-2.18-r1.ebuild13
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 5e350e43a262..f494d3d270ef 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 eb79e1e1cb49..dbb703c07001 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[@]}"
}