# Copyright 2016 Arnaud Lefebvre # Distributed under the terms of the GNU General Public License v2 require alternatives pypi setup-py [ import=setuptools test=pytest blacklist="3" ] SUMMARY="gunicorn is a WSGI HTTP Server for UNIX, fast clients and sleepy applications" HOMEPAGE="http://www.gunicorn.org/" LICENCES="MIT" SLOT="2.7" PLATFORMS="~amd64 ~x86" # Tests are failing with sandbox RESTRICT="test" MYOPTIONS=" ( providers: eventlet gevent tornado gthread gaiohttp ) [[ *description = [ supported asynchrone workers ] ]] " DEPENDENCIES=" build+run: !www-servers/gunicorn:0[<20] [[ description = [ Support for python 2.7 and 3.* is now splitted ] resolution = upgrade-blocked-before ]] run: providers:eventlet? ( dev-python/eventlet[>=0.22.1][python_abis:*(-)?] ) providers:gevent? ( dev-python/gevent[>=20.6.2][python_abis:*(-)?] ) providers:tornado? ( dev-python/tornado[>=5.0.2][python_abis:*(-)?] ) providers:gthread? ( dev-python/futures[python_abis:2.7] ) " GUNICORN_BINS=( "${PN}" "${PN}_paster" "${PN}_django" ) prepare_one_multibuild(){ # This file fails to build with python < 3 # see https://github.com/benoitc/gunicorn/issues/788 edo rm -rf gunicorn/workers/_gaiohttp.py } install_one_multibuild(){ setup-py_install_one_multibuild alternatives=( "${PN}_python" "${MULTIBUILD_TARGET}" "${MULTIBUILD_TARGET}") for b in "${GUNICORN_BINS[@]}"; do alternatives+=( /usr/$(exhost --target)/bin/"${b}" "${b}"${MULTIBUILD_TARGET}) done alternatives_for "${alternatives[@]}" }