# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="WSGI implementation running on a sever which does ajp"
HOMEPAGE="http://www.saddi.com/software/ajp-wsgi/"
SRC_URI="http://www.saddi.com/software/ajp-wsgi/dist/${P}.tar.bz2"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=">=dev-lang/python-2.5-r1"
RDEPEND="${DEPEND}"

src_compile() {
	sed -ie "s/CFLAGS=/CFLAGS+=/" Makefile.in
	python ./configure.py || die "python ./configure.py failed"
	emake || die "emake failed"
}

src_install() {
	dobin ajp-wsgi || die "installing ajp-wsgi failed"
	dodoc README
}

