www-servers/uwsgi: avoid using obsolete ruby targets

Only use ruby targets that are still available, rather than those
listed in USE_RUBY.

Fixes: https://bugs.gentoo.org/687762
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2019-08-03 08:24:14 +02:00
parent 57911d8951
commit 2c8fe3dd47
4 changed files with 16 additions and 24 deletions
+4 -6
View File
@@ -389,12 +389,10 @@ pkg_postinst() {
use python && python_foreach_impl python_pkg_postinst
if use ruby ; then
for ruby in $USE_RUBY; do
if use ruby_targets_${ruby} ; then
elog " '--plugins rack_${ruby/.}' for ${ruby}"
elog " '--plugins fiber_${ruby/.}' for ${ruby} fibers"
elog " '--plugins rbthreads_${ruby/.}' for ${ruby} rbthreads"
fi
for ruby in $(ruby_get_use_implementations) ; do
elog " '--plugins rack_${ruby/.}' for ${ruby}"
elog " '--plugins fiber_${ruby/.}' for ${ruby} fibers"
elog " '--plugins rbthreads_${ruby/.}' for ${ruby} rbthreads"
done
fi
}
+4 -6
View File
@@ -399,12 +399,10 @@ pkg_postinst() {
use python && python_foreach_impl python_pkg_postinst
if use ruby ; then
for ruby in $USE_RUBY; do
if use ruby_targets_${ruby} ; then
elog " '--plugins rack_${ruby/.}' for ${ruby}"
elog " '--plugins fiber_${ruby/.}' for ${ruby} fibers"
elog " '--plugins rbthreads_${ruby/.}' for ${ruby} rbthreads"
fi
for ruby in $(ruby_get_use_implementations) ; do
elog " '--plugins rack_${ruby/.}' for ${ruby}"
elog " '--plugins fiber_${ruby/.}' for ${ruby} fibers"
elog " '--plugins rbthreads_${ruby/.}' for ${ruby} rbthreads"
done
fi
}
+4 -6
View File
@@ -404,12 +404,10 @@ pkg_postinst() {
use python && python_foreach_impl python_pkg_postinst
if use ruby ; then
for ruby in $USE_RUBY; do
if use ruby_targets_${ruby} ; then
elog " '--plugins rack_${ruby/.}' for ${ruby}"
elog " '--plugins fiber_${ruby/.}' for ${ruby} fibers"
elog " '--plugins rbthreads_${ruby/.}' for ${ruby} rbthreads"
fi
for ruby in $(ruby_get_use_implementations) ; do
elog " '--plugins rack_${ruby/.}' for ${ruby}"
elog " '--plugins fiber_${ruby/.}' for ${ruby} fibers"
elog " '--plugins rbthreads_${ruby/.}' for ${ruby} rbthreads"
done
fi
}
+4 -6
View File
@@ -390,12 +390,10 @@ pkg_postinst() {
use python && python_foreach_impl python_pkg_postinst
if use ruby ; then
for ruby in $USE_RUBY; do
if use ruby_targets_${ruby} ; then
elog " '--plugins rack_${ruby/.}' for ${ruby}"
elog " '--plugins fiber_${ruby/.}' for ${ruby} fibers"
elog " '--plugins rbthreads_${ruby/.}' for ${ruby} rbthreads"
fi
for ruby in $(ruby_get_use_implementations) ; do
elog " '--plugins rack_${ruby/.}' for ${ruby}"
elog " '--plugins fiber_${ruby/.}' for ${ruby} fibers"
elog " '--plugins rbthreads_${ruby/.}' for ${ruby} rbthreads"
done
fi
}