blob: 68ef49d308f14d7c318b9e96cfdcd223facfd4ec [file] [log] [blame]
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_wsgi/mod_wsgi-3.4.ebuild,v 1.4 2012/11/21 10:13:37 ago Exp $
EAPI="5"
PYTHON_COMPAT=( python2_7 python3_{5,6} )
PYTHON_REQ_USE="threads"
inherit autotools apache-module eutils multilib python-single-r1 toolchain-funcs
DESCRIPTION="An Apache2 module for running Python WSGI applications."
HOMEPAGE="http://code.google.com/p/modwsgi/"
SRC_URI="http://modwsgi.googlecode.com/files/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="*"
IUSE=""
DEPEND=""
RDEPEND="${PYTHON_DEPS}"
APACHE2_MOD_CONF="70_${PN}"
APACHE2_MOD_DEFINE="WSGI"
DOCFILES="README"
need_apache2
src_prepare() {
epatch "${FILESDIR}/${P}"-SYSROOT.patch
epatch "${FILESDIR}/${P}"-sbh-pointer-fix.patch
epatch "${FILESDIR}/${P}"-pylib-suffix.patch
cp "${SYSROOT}/usr/sbin/apxs" "${T}/apxs"
# Update apxs to point to the installbuilddir and includedir in the
# SYSROOT rather than on the build host.
sed -i -E \
-e '/^my \$(installbuild|include)dir/s:=:= $ENV{"SYSROOT"} .:' \
-e '/get_vars\("AP[RU]_CONFIG"\)/s:get_vars:$ENV{"SYSROOT"} .&:' \
"${T}/apxs" || die
eautoconf
}
src_configure() {
econf --prefix="${SYSROOT}" --with-apxs="${T}/apxs"
}
src_compile() {
default
}