summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2015-10-07 14:20:31 +0200
committerUltrabug <ultrabug@gentoo.org>2015-10-07 14:20:31 +0200
commitf6e6bec3d4d96f82b68e116d5b0a050ae927373d (patch)
treec94ddd0670a5bec0041016009018cde54e665949
parentdev-ros/filters: Backport upstream fix to build without rostest when tests ar... (diff)
downloadgentoo-f6e6bec3d4d96f82b68e116d5b0a050ae927373d.tar.gz
gentoo-f6e6bec3d4d96f82b68e116d5b0a050ae927373d.tar.bz2
gentoo-f6e6bec3d4d96f82b68e116d5b0a050ae927373d.zip
www-servers/uwsgi: ebuild qa thx to hasufell
-rw-r--r--www-servers/uwsgi/uwsgi-2.0.11.2.ebuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/www-servers/uwsgi/uwsgi-2.0.11.2.ebuild b/www-servers/uwsgi/uwsgi-2.0.11.2.ebuild
index 53c5f52d57f8..cab9f472635f 100644
--- a/www-servers/uwsgi/uwsgi-2.0.11.2.ebuild
+++ b/www-servers/uwsgi/uwsgi-2.0.11.2.ebuild
@@ -4,7 +4,7 @@
EAPI="5"
-PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
RUBY_OPTIONAL="yes"
USE_RUBY="ruby19 ruby20 ruby21"
@@ -203,7 +203,7 @@ src_configure() {
-e "s|VAR_PLUGIN_DIR|/usr/$(get_libdir)/uwsgi|" \
-e "s|VAR_BUILD_DIR|${T}/plugins|" \
-e "s|VAR_EMBEDDED|${embedded_plugins// /, }|" \
- buildconf/gentoo.ini
+ buildconf/gentoo.ini || die "sed failed"
use caps || sed -i -e 's|sys/capability.h|DISABLED|' uwsgiconfig.py || die "sed failed"
use zeromq || sed -i -e 's|uuid/uuid.h|DISABLED|' uwsgiconfig.py || die "sed failed"
@@ -218,7 +218,7 @@ src_configure() {
}
each_ruby_compile() {
- cd "${WORKDIR}/${MY_P}"
+ cd "${WORKDIR}/${MY_P}" || die "sed failed"
UWSGICONFIG_RUBYPATH="${RUBY}" python uwsgiconfig.py --plugin plugins/rack gentoo rack_${RUBY##*/} || die "building plugin for ${RUBY} failed"
UWSGICONFIG_RUBYPATH="${RUBY}" python uwsgiconfig.py --plugin plugins/fiber gentoo fiber_${RUBY##*/}|| die "building fiber plugin for ${RUBY} failed"
@@ -239,19 +239,19 @@ python_compile_plugins() {
${PYTHON} uwsgiconfig.py --plugin plugins/python gentoo ${EPYV} || die "building plugin for ${EPYTHON} failed"
if use python_asyncio ; then
- if [ "${PYV}" == "34" ] ; then
+ if [[ "${PYV}" == "34" || "${PYV}" == "35" ]] ; then
${PYTHON} uwsgiconfig.py --plugin plugins/asyncio gentoo asyncio${PYV} || die "building plugin for asyncio-support in ${EPYTHON} failed"
fi
fi
if use python_gevent ; then
- if [ "${PYV}" == "27" ] ; then
+ if [[ "${PYV}" == "27" ]] ; then
${PYTHON} uwsgiconfig.py --plugin plugins/gevent gentoo gevent${PYV} || die "building plugin for gevent-support in ${EPYTHON} failed"
fi
fi
if use pypy ; then
- if [ "${PYV}" == "27" ] ; then
+ if [[ "${PYV}" == "27" ]] ; then
# TODO: do some proper patching ? The wiki didn't help... I gave up for now.
# QA: RWX --- --- usr/lib64/uwsgi/pypy_plugin.so
append-ldflags -Wl,-z,noexecstack