# $Id$ PNAME="apache2-mod_python" PVER="3.3.1" PBUILD="r5" STATE="unstable" DESCRIPTION="Mod_python is an apache module that embeds the python interpreter within the server." HOMEPAGE="http://www.modpython.org/" SRCFILE="${PNAME/#apache2-/}-${PVER}.tgz" DEPEND=">= net-www/apache2-2 >= dev-lang/python-2.6" sminclude apache2-module SRC_URI=( http://www.apache.org/dist/httpd/modpython/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-magellan.patch mirror://${PNAME}/${PNAME}-${PVER}-apr_brigade_sentinel.patch mirror://${PNAME}/${PNAME}-${PVER}-apache-2.4.patch ) UP2DATE="updatecmd 'http://www.apache.org/dist/httpd/modpython/?C=M;O=D' | lasttarball tgz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix apache binary search path on magellan mpatch ${PNAME}-${PVER}-magellan.patch || die # fix an build error mpatch ${PNAME}-${PVER}-apr_brigade_sentinel.patch || die # fix build against newer apache mpatch ${PNAME}-${PVER}-apache-2.4.patch || die autoreconf --install --force || die }