You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
54 lines
1.2 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
10 years ago
|
|
||
9 years ago
|
EAPI=5
|
||
|
|
||
|
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||
10 years ago
|
|
||
|
inherit distutils-r1
|
||
|
|
||
|
DESCRIPTION="A WSGI HTTP Server for UNIX"
|
||
9 years ago
|
HOMEPAGE="http://gunicorn.org http://pypi.python.org/pypi/gunicorn https://github.com/benoitc/gunicorn"
|
||
10 years ago
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
9 years ago
|
IUSE="doc examples test"
|
||
10 years ago
|
|
||
10 years ago
|
RDEPEND="dev-python/setproctitle[${PYTHON_USEDEP}]"
|
||
9 years ago
|
DEPEND="
|
||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||
10 years ago
|
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||
9 years ago
|
test? (
|
||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||
|
)"
|
||
10 years ago
|
|
||
|
DOCS="README.rst"
|
||
|
|
||
9 years ago
|
python_prepare_all() {
|
||
10 years ago
|
# these tests requires an already installed version of gunicorn
|
||
9 years ago
|
rm tests/test_003-config.py || die
|
||
10 years ago
|
|
||
|
sed -ie "s/..\/bin/\/usr\/bin\//" docs/Makefile || die
|
||
|
|
||
9 years ago
|
distutils-r1_python_prepare_all
|
||
10 years ago
|
}
|
||
|
|
||
|
python_compile_all() {
|
||
|
use doc && emake -C docs html
|
||
|
}
|
||
|
|
||
|
python_test() {
|
||
|
py.test -v || die "Testing failed with ${EPYTHON}"
|
||
|
}
|
||
|
|
||
|
python_install_all() {
|
||
|
use doc && local HTML_DOCS=( docs/build/html/. )
|
||
9 years ago
|
use examples && EXAMPLES=( examples/. )
|
||
10 years ago
|
|
||
|
distutils-r1_python_install_all
|
||
|
}
|