From 3d4a2c3bc5e194ac73017c185f92a16a513fe2f6 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Wed, 25 Jul 2018 12:54:41 +0200 Subject: 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(-) (limited to 'sys-libs') 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[@]}" } -- cgit v1.2.3-65-gdbad