# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils 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-lang/python:2.6 dev-libs/libxml2 " DEPEND="${RDEPEND}" src_unpack() { unpack ${A} cd ${S} sed -i -e 's|python2.6-config|python-config-2.6|g' Makefile.Py26 || \ die "sed Makefile.Py26 failed" } src_compile() { # there is a different Makefile for each python version. emake -f Makefile.Py26 || die "emake failed" } src_install() { newbin uwsgi26 uwsgi || die "failed to install uwsgi binary" }