# $Id: Portfile 49736 2009-04-17 02:00:30Z blb@macports.org $

PortSystem 1.0

name            mod_wsgi
version         1.1
revision        1
categories      www python
platforms       darwin
maintainers     taywa.ch:ys
description     Python WSGI adapter module for Apache.
long_description The mod_wsgi module is written in C code directly against \
the internal Apache and Python application programming interfaces. As such, \
for hosting WSGI applications in conjunction with Apache it has a lower \
memory overhead and performs better than existing WSGI adapters for \
mod_python or alternative FASTCGI/SCGI/CGI based solutions.

homepage        http://www.modwsgi.org/
master_sites    http://modwsgi.googlecode.com/files/
checksums       md5 40b56807c8b685133fede6b59c32600f \
                sha1 a82e79d5d429dba64ef1e0d65b502577f0434649
                
depends_lib     port:apache2 port:python24

patchfiles      patch-configure.diff

configure.args \
                --with-apxs=${prefix}/apache2/bin/apxs \
                --with-python=${prefix}/bin/python2.4

destroot.violate_mtree yes
pre-destroot {
    xinstall -d -m 755 ${destroot}${prefix}/apache2/modules
}

post-install {
    ui_msg "########################################################"
    ui_msg "# To enable mod_wsgi add"
    ui_msg "#  LoadModule wsgi_module modules/mod_wsgi.so"
    ui_msg "# to your apache2 config file:"
    ui_msg "#  ${prefix}/apache2/conf/httpd.conf"
    ui_msg "########################################################"
}
