diff options
Diffstat (limited to 'sys-libs/libblockdev/libblockdev-2.17.ebuild')
-rw-r--r-- | sys-libs/libblockdev/libblockdev-2.17.ebuild | 13 |
1 files changed, 11 insertions, 2 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[@]}" } |