dev-libs/libpreludedb: Drop superfluous calls to python_is_python3

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2020-08-03 23:23:38 +02:00
parent 4a030ae86a
commit 7a4617fa29
3 changed files with 9 additions and 18 deletions

View File

@@ -52,6 +52,7 @@ src_configure() {
local myconf=(
--enable-easy-bindings
--with-swig
--without-python2
$(use_with mysql)
$(use_with postgres postgresql)
$(use_with sqlite sqlite3)
@@ -59,13 +60,9 @@ src_configure() {
if use python; then
python_setup
if python_is_python3; then
myconf+=(--without-python2 --with-python3="${EPYTHON}")
else
myconf+=(--without-python3 --with-python2="${EPYTHON}")
fi
myconf+=( --with-python3="${EPYTHON}" )
else
myconf+=(--without-python2 --without-python3)
myconf+=( --without-python3 )
fi
econf "${myconf[@]}"

View File

@@ -52,6 +52,7 @@ src_configure() {
local myconf=(
--enable-easy-bindings
--with-swig
--without-python2
$(use_with mysql)
$(use_with postgres postgresql)
$(use_with sqlite sqlite3)
@@ -59,13 +60,9 @@ src_configure() {
if use python; then
python_setup
if python_is_python3; then
myconf+=(--without-python2 --with-python3="${EPYTHON}")
else
myconf+=(--without-python3 --with-python2="${EPYTHON}")
fi
myconf+=( --with-python3="${EPYTHON}" )
else
myconf+=(--without-python2 --without-python3)
myconf+=( --without-python3 )
fi
econf "${myconf[@]}"

View File

@@ -58,6 +58,7 @@ src_configure() {
local myconf=(
--enable-easy-bindings
--with-swig
--without-python2
$(use_with mysql)
$(use_with postgres postgresql)
$(use_with sqlite sqlite3)
@@ -65,13 +66,9 @@ src_configure() {
if use python; then
python_setup
if python_is_python3; then
myconf+=(--without-python2 --with-python3="${EPYTHON}")
else
myconf+=(--without-python3 --with-python2="${EPYTHON}")
fi
myconf+=( --with-python3="${EPYTHON}" )
else
myconf+=(--without-python2 --without-python3)
myconf+=( --without-python3 )
fi
econf "${myconf[@]}"