mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-libs/libblockdev: Use python_is_python3
to check for major python version. Package-Manager: Portage-2.3.43, Repoman-2.3.10
This commit is contained in:
@@ -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[@]}"
|
||||
}
|
||||
|
||||
@@ -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[@]}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user