1 | PortSystem 1.0 |
---|
2 | |
---|
3 | name mod_python |
---|
4 | version 3.2.8 |
---|
5 | categories www python |
---|
6 | platforms darwin |
---|
7 | maintainers mww@opendarwin.org |
---|
8 | description Apache2 module that embeds Python within the server. |
---|
9 | long_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 | |
---|
17 | homepage http://www.modpython.org/ |
---|
18 | master_sites apache:httpd/modpython |
---|
19 | extract.suffix .tgz |
---|
20 | checksums md5 d03452979a6a334f73cc2b95b39db331 |
---|
21 | |
---|
22 | depends_lib port:apache2 port:python24 port:flex |
---|
23 | |
---|
24 | |
---|
25 | configure.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 | |
---|
31 | pre-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 | |
---|
37 | post-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 | } |
---|