Ticket #19094: Portfile

File Portfile, 1.7 KB (added by tomvons@…, 16 years ago)
Line 
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
4PortSystem 1.0
5
6name            mod_wsgi
7version         2.3
8categories      www python
9platforms       darwin
10maintainers     nomaintainer
11description     Python WSGI adapter module for Apache.
12long_description The aim of mod_wsgi is to implement a simple \
13to use Apache module which can host any Python application \
14which supports the Python WSGI interface. The module would be \
15suitable for use in hosting high performance production web \
16sites, as well as your average self managed personal sites \
17running on web hosting services.
18
19homepage        http://www.modwsgi.org/
20master_sites    http://modwsgi.googlecode.com/files/
21checksums       md5 c686e1c498dbe5753fe491c3cf61cff4 \
22                sha1 7a28710b1ce02a48e4dc77189e37dcbffa0ed26b
23               
24depends_lib     port:apache2 port:python25
25
26configure.cppflags-append \
27                "-I${prefix}/include/python2.5"
28configure.ldflags-append \
29                "-Wl,-F${prefix}/Library/Frameworks"
30configure.args \
31                --with-apxs=${prefix}/apache2/bin/apxs \
32                --with-python=${prefix}/bin/python2.5
33
34destroot.violate_mtree yes
35pre-destroot {
36    xinstall -d -m 755 ${destroot}${prefix}/apache2/modules
37}
38
39post-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}