Ticket #7820: Portfile

File Portfile, 1.5 KB (added by gk5885@…, 19 years ago)

a portfile for versin 3.2.8

Line 
1PortSystem 1.0
2
3name                    mod_python
4version                 3.2.8
5categories              www python
6platforms               darwin
7maintainers             mww@opendarwin.org
8description             Apache2 module that embeds Python within the server.
9long_description        Mod_python is an Apache 2 module that embeds the \
10                                Python interpreter within the server. With mod_python \
11                                you can write web-based applications in Python that \
12                                will run many times faster than traditional CGI and \
13                                will have access to advanced features such as ability \
14                                to retain database connections and other data between \
15                                hits and access to Apache internals.
16
17homepage                http://www.modpython.org/
18master_sites    apache:httpd/modpython
19extract.suffix  .tgz
20checksums               md5 d03452979a6a334f73cc2b95b39db331
21
22depends_lib             port:apache2 port:python24 port:flex
23
24
25configure.args  LDFLAGS="-Wl,-F${prefix}/Library/Frameworks -L${prefix}/lib" \
26                                --with-apxs=${prefix}/apache2/bin/apxs \
27                                --with-python=${prefix}/bin/python2.4 \
28                                --with-flex=${prefix}/bin/flex \
29                                --enable-so
30
31pre-destroot {
32        xinstall -d -m 755 ${destroot}${prefix}/apache2/modules \
33                ${destroot}${prefix}/share/doc
34        file copy ${worksrcpath}/doc-html ${destroot}${prefix}/share/doc/${name}
35}
36
37post-install {
38        ui_msg "########################################################"
39        ui_msg "# to enable mod_python add"
40        ui_msg "#  LoadModule python_module modules/mod_python.so"
41        ui_msg "# to your apache2 config file:"
42        ui_msg "#  ${prefix}/apache2/conf/httpd.conf"
43        ui_msg "########################################################"
44}