Ticket #22882: Portfile

File Portfile, 2.3 KB (added by bretthoerner@…, 15 years ago)

mod_wsgi 3.1 Portfile

Line 
1# $Id: Portfile 60651 2009-11-19 02:56:54Z blb@macports.org $
2
3PortSystem 1.0
4
5name            mod_wsgi
6version         3.1
7categories      www python
8platforms       darwin
9maintainers     nomaintainer
10description     Python WSGI adapter module for Apache.
11long_description The mod_wsgi module is written in C code directly against \
12the internal Apache and Python application programming interfaces. As such, \
13for hosting WSGI applications in conjunction with Apache it has a lower \
14memory overhead and performs better than existing WSGI adapters for \
15mod_python or alternative FASTCGI/SCGI/CGI based solutions.
16
17homepage        http://www.modwsgi.org/
18master_sites    googlecode:modwsgi
19checksums       md5     f9aabdcd7a3f66a2319d10793477f9e9 \
20                sha1    4bfbfc07e6bb33df4eb7b78c4e65126d926441b8 \
21                rmd160  363e5f2fa2eb7f41472447b8ee91204f4118dd0a
22
23depends_lib     port:apache2
24
25configure.args  --with-apxs=${prefix}/apache2/bin/apxs \
26                --disable-framework
27
28destroot.violate_mtree yes
29pre-destroot {
30    xinstall -d -m 755 ${destroot}${prefix}/apache2/modules
31}
32
33post-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
42if {![variant_isset python24]
43    && ![variant_isset python25]
44    && ![variant_isset python26]
45    && ![variant_isset python31]} {
46    default_variants +python26
47}
48
49variant 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
54variant 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
59variant 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
64variant 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}