# $Id: Portfile 57088 2009-09-06 14:03:44Z raimue@macports.org $ PortSystem 1.0 name mod_wsgi version 2.5 categories www python platforms darwin maintainers nomaintainer 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 googlecode:modwsgi checksums md5 43ad11c477799e2f780c50197c420afd \ sha1 a2ed3fd60b390c3a790aca1c859093ab7a7c2d9d \ rmd160 c1c2b72deca98eaa9e7bee256b027b5e0488b2fc patchfiles patch-configure.diff depends_lib port:apache2 configure.args --with-apxs=${prefix}/apache2/bin/apxs 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 "########################################################" } if {![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26] && ![variant_isset python31]} { default_variants +python26 } variant python24 conflicts python25 python26 python31 description {Use Python 2.4} { depends_lib-append port:python24 configure.args-append --with-python=${prefix}/bin/python2.4 } variant python25 conflicts python24 python26 python31 description {Use Python 2.5} { depends_lib-append port:python25 configure.args-append --with-python=${prefix}/bin/python2.5 } variant python26 conflicts python24 python25 python31 description {Use Python 2.6} { depends_lib-append port:python26 configure.args-append --with-python=${prefix}/bin/python2.6 } variant python31 conflicts python24 python25 python26 description {Use Python 3.1} { depends_lib-append port:python31 configure.args-append --with-python=${prefix}/bin/python3.1 }