1 | # $Id: Portfile 60651 2009-11-19 02:56:54Z blb@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mod_wsgi |
---|
6 | version 3.1 |
---|
7 | categories www python |
---|
8 | platforms darwin |
---|
9 | maintainers nomaintainer |
---|
10 | description Python WSGI adapter module for Apache. |
---|
11 | long_description The mod_wsgi module is written in C code directly against \ |
---|
12 | the internal Apache and Python application programming interfaces. As such, \ |
---|
13 | for hosting WSGI applications in conjunction with Apache it has a lower \ |
---|
14 | memory overhead and performs better than existing WSGI adapters for \ |
---|
15 | mod_python or alternative FASTCGI/SCGI/CGI based solutions. |
---|
16 | |
---|
17 | homepage http://www.modwsgi.org/ |
---|
18 | master_sites googlecode:modwsgi |
---|
19 | checksums md5 f9aabdcd7a3f66a2319d10793477f9e9 \ |
---|
20 | sha1 4bfbfc07e6bb33df4eb7b78c4e65126d926441b8 \ |
---|
21 | rmd160 363e5f2fa2eb7f41472447b8ee91204f4118dd0a |
---|
22 | |
---|
23 | depends_lib port:apache2 |
---|
24 | |
---|
25 | configure.args --with-apxs=${prefix}/apache2/bin/apxs \ |
---|
26 | --disable-framework |
---|
27 | |
---|
28 | destroot.violate_mtree yes |
---|
29 | pre-destroot { |
---|
30 | xinstall -d -m 755 ${destroot}${prefix}/apache2/modules |
---|
31 | } |
---|
32 | |
---|
33 | post-install { |
---|
34 | ui_msg "########################################################" |
---|
35 | ui_msg "# To enable mod_wsgi add" |
---|
36 | ui_msg "# LoadModule wsgi_module modules/mod_wsgi.so" |
---|
37 | ui_msg "# to your apache2 config file:" |
---|
38 | ui_msg "# ${prefix}/apache2/conf/httpd.conf" |
---|
39 | ui_msg "########################################################" |
---|
40 | } |
---|
41 | |
---|
42 | if {![variant_isset python24] |
---|
43 | && ![variant_isset python25] |
---|
44 | && ![variant_isset python26] |
---|
45 | && ![variant_isset python31]} { |
---|
46 | default_variants +python26 |
---|
47 | } |
---|
48 | |
---|
49 | variant python24 conflicts python25 python26 python31 description {Use Python 2.4} { |
---|
50 | depends_lib-append port:python24 |
---|
51 | configure.args-append --with-python=${prefix}/bin/python2.4 |
---|
52 | } |
---|
53 | |
---|
54 | variant python25 conflicts python24 python26 python31 description {Use Python 2.5} { |
---|
55 | depends_lib-append port:python25 |
---|
56 | configure.args-append --with-python=${prefix}/bin/python2.5 |
---|
57 | } |
---|
58 | |
---|
59 | variant python26 conflicts python24 python25 python31 description {Use Python 2.6} { |
---|
60 | depends_lib-append port:python26 |
---|
61 | configure.args-append --with-python=${prefix}/bin/python2.6 |
---|
62 | } |
---|
63 | |
---|
64 | variant python31 conflicts python24 python25 python26 description {Use Python 3.1} { |
---|
65 | depends_lib-append port:python31 |
---|
66 | configure.args-append --with-python=${prefix}/bin/python3.1 |
---|
67 | } |
---|