# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" inherit eutils python DESCRIPTION="uWSGI server for python webapps" HOMEPAGE="http://projects.unbit.it/uwsgi/" SRC_URI="http://projects.unbit.it/downloads/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=" dev-libs/libxml2 " DEPEND="${RDEPEND}" RESTRICT_PYTHON_ABIS="3.*" src_prepare() { python_copy_sources preparation() { PYTHON_VERSION=$(python_get_version) sed -i -e "s/python$(python_get_version)\-config/python-config-$(python_get_version)/g" Makefile.Py${PYTHON_VERSION//./} || \ die "sed Makefile.Py${PYTHON_VERSION//./} failed" } python_execute_function -s preparation } src_compile() { compilation() { PYTHON_VERSION=$(python_get_version) # there is a different Makefile for each python version. emake -f Makefile.Py${PYTHON_VERSION//./} || die "emake failed" } python_execute_function -s compilation } src_install() { installation() { PYTHON_VERSION=$(python_get_version) # there is a different Makefile for each python version. into /usr dobin uwsgi } python_execute_function -s installation }