# $Id: Portfile 129623 2014-12-17 02:46:05Z jmr@macports.org $ PortSystem 1.0 name mod_python version 3.3.1 revision 2 categories www python platforms darwin license Apache-2 maintainers nomaintainer description Apache2 module that embeds Python within the server. long_description \ Mod_python is an Apache 2 module that embeds the Python interpreter \ within the server. With mod_python you can write web-based applications \ in Python that will run many times faster than traditional CGI and will \ have access to advanced features such as ability to retain database \ connections and other data between hits and access to Apache internals. homepage http://www.modpython.org/ master_sites apache:httpd/modpython extract.suffix .tgz checksums sha1 e538170fd78e09408b6d8593da980b126a0fef93 \ rmd160 f78f93172963317f4318f8f2455419743c8fb4f5 if {$subport ne $name && $subport ne "mod_python25"} { depends_build port:flex depends_lib port:apache2 patchfiles patch-dist-Makefile.in.diff \ patch-src-connobject.c.diff \ patch-configure.diff configure.args --with-apxs=${prefix}/apache2/bin/apxs \ --with-flex=${prefix}/bin/flex \ --enable-so destroot.violate_mtree yes pre-destroot { xinstall -d -m 755 ${destroot}${prefix}/apache2/modules \ ${destroot}${prefix}/share/doc file copy ${worksrcpath}/doc-html ${destroot}${prefix}/share/doc/${subport} } notes "To enable ${subport}, add LoadModule python_module modules/mod_python.so to your apache2 config file: ${prefix}/apache2/conf/httpd.conf" } elseif {$subport eq $name} { # mod_python used to be for python 2.4 replaced_by mod_python27 depends_lib port:mod_python27 use_configure no build {} destroot { xinstall -d ${destroot}${prefix}/share/doc/${name} system "echo This port is a stub. > ${destroot}${prefix}/share/doc/${name}/README" } supported_archs noarch livecheck.type regex livecheck.url http://archive.apache.org/dist/httpd/modpython/ livecheck.regex mod_python-(\[0-9\\.\]+)\\.tgz } subport mod_python27 { conflicts mod_python26 revision 0 depends_lib-append port:python27 configure.args-append --with-python=${prefix}/bin/python2.7 } subport mod_python26 { conflicts mod_python27 revision 0 depends_lib-append port:python26 configure.args-append --with-python=${prefix}/bin/python2.6 } subport mod_python25 { revision 4 replaced_by mod_python27 pre-fetch { error "This port is only a stub and is replaced by $replaced_by" } }