| 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
|---|
| 2 | # $Id: Portfile 38416 2008-07-19 07:45:19Z jmr@macports.org $ |
|---|
| 3 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | |
|---|
| 6 | name mod_wsgi |
|---|
| 7 | version 2.3 |
|---|
| 8 | categories www python |
|---|
| 9 | platforms darwin |
|---|
| 10 | maintainers nomaintainer |
|---|
| 11 | description Python WSGI adapter module for Apache. |
|---|
| 12 | long_description The aim of mod_wsgi is to implement a simple \ |
|---|
| 13 | to use Apache module which can host any Python application \ |
|---|
| 14 | which supports the Python WSGI interface. The module would be \ |
|---|
| 15 | suitable for use in hosting high performance production web \ |
|---|
| 16 | sites, as well as your average self managed personal sites \ |
|---|
| 17 | running on web hosting services. |
|---|
| 18 | |
|---|
| 19 | homepage http://www.modwsgi.org/ |
|---|
| 20 | master_sites http://modwsgi.googlecode.com/files/ |
|---|
| 21 | checksums md5 c686e1c498dbe5753fe491c3cf61cff4 \ |
|---|
| 22 | sha1 7a28710b1ce02a48e4dc77189e37dcbffa0ed26b |
|---|
| 23 | |
|---|
| 24 | depends_lib port:apache2 port:python25 |
|---|
| 25 | |
|---|
| 26 | configure.cppflags-append \ |
|---|
| 27 | "-I${prefix}/include/python2.5" |
|---|
| 28 | configure.ldflags-append \ |
|---|
| 29 | "-Wl,-F${prefix}/Library/Frameworks" |
|---|
| 30 | configure.args \ |
|---|
| 31 | --with-apxs=${prefix}/apache2/bin/apxs \ |
|---|
| 32 | --with-python=${prefix}/bin/python2.5 |
|---|
| 33 | |
|---|
| 34 | destroot.violate_mtree yes |
|---|
| 35 | pre-destroot { |
|---|
| 36 | xinstall -d -m 755 ${destroot}${prefix}/apache2/modules |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | post-install { |
|---|
| 40 | ui_msg "########################################################" |
|---|
| 41 | ui_msg "# To enable mod_wsgi add" |
|---|
| 42 | ui_msg "# LoadModule wsgi_module modules/mod_wsgi.so" |
|---|
| 43 | ui_msg "# to your apache2 config file:" |
|---|
| 44 | ui_msg "# ${prefix}/apache2/conf/httpd.conf" |
|---|
| 45 | ui_msg "########################################################" |
|---|
| 46 | } |
|---|