# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" SUPPORT_PYTHON_ABIS="1" inherit distutils DESCRIPTION="A WSGI HTTP Server for UNIX, fast clients and nothing else" HOMEPAGE="http://github.com/benoitc/gunicorn" SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" IUSE="django paste" KEYWORDS="~amd64 ~x86" RDEPEND="django? ( dev-python/django ) paste? ( dev-python/paste )" DEPEND="dev-python/setuptools" RESTRICT_PYTHON_ABIS="3.*" src_prepare() { use django || sed -i -e '/gunicorn_django/d' "${S}"/setup.py || die "sed failed" use paste || sed -i -e '/gunicorn_paste/,/paste_server/d' "${S}"/setup.py || die "sed failed" } src_install() { distutils_src_install dodoc README.rst || die "Install failed" }