commit: ffe97e09f163835b9b2c4f6ac237fa67d3739b38
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 6 12:46:27 2017 +0000
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
CommitDate: Thu Apr 6 12:46:46 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffe97e09
www-servers/uwsgi: add gevent python3 support fixes #597022
Package-Manager: Portage-2.3.4, Repoman-2.3.2
www-servers/uwsgi/uwsgi-2.0.15.ebuild | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/www-servers/uwsgi/uwsgi-2.0.15.ebuild
b/www-servers/uwsgi/uwsgi-2.0.15.ebuild
index f4d91799038..b14c43d4029 100644
--- a/www-servers/uwsgi/uwsgi-2.0.15.ebuild
+++ b/www-servers/uwsgi/uwsgi-2.0.15.ebuild
@@ -3,7 +3,7 @@
EAPI=5
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
PYTHON_REQ_USE="threads(+)"
RUBY_OPTIONAL="yes"
@@ -116,7 +116,7 @@ CDEPEND="sys-libs/zlib
)
pypy? ( virtual/pypy )
python? ( ${PYTHON_DEPS} )
- python_gevent? ( >=dev-python/gevent-1.0.1[$(python_gen_usedep
'python2*')] )
+ python_gevent? ( >=dev-python/gevent-1.2.1[${PYTHON_USEDEP}] )
ruby? ( $(ruby_implementations_depend) )"
DEPEND="${CDEPEND}
virtual/pkgconfig"
@@ -131,9 +131,9 @@ APXS2_S="${S}/apache2"
APACHE2_MOD_CONF="42_mod_uwsgi-r2 42_mod_uwsgi"
# FIXME: is this patch still useful?
-# PATCHES=(
-# "${FILESDIR}/2.0.14-php-plugin.patch"
-# )
+PATCHES=(
+ "${FILESDIR}/2.0.14-php-plugin.patch"
+)
src_unpack() {
default
@@ -260,9 +260,7 @@ python_compile_plugins() {
fi
if use python_gevent ; then
- if [[ "${PYV}" == "27" ]] ; then
- ${PYTHON} uwsgiconfig.py --plugin plugins/gevent gentoo
gevent${PYV} || die "building plugin for gevent-support in ${EPYTHON} failed"
- fi
+ ${PYTHON} uwsgiconfig.py --plugin plugins/gevent gentoo
gevent${PYV} || die "building plugin for gevent-support in ${EPYTHON} failed"
fi
if use pypy ; then
@@ -397,11 +395,7 @@ pkg_postinst() {
fi
fi
if use python_gevent ; then
- if [[ ${EPYTHON} == python2* ]] ; then
- elog " '--plugins ${EPYV},gevent${PYV}' for
gevent support in ${EPYTHON}"
- else
- elog " (gevent is currently not supported in
${EPYTHON})"
- fi
+ elog " '--plugins ${EPYV},gevent${PYV}' for gevent
support in ${EPYTHON}"
fi
}