[25922] trunk/dports/www

source_changes at macosforge.org source_changes at macosforge.org
Wed Jun 6 04:08:41 PDT 2007


Revision: 25922
          http://trac.macosforge.org/projects/macports/changeset/25922
Author:   jwa at macports.org
Date:     2007-06-06 04:08:41 -0700 (Wed, 06 Jun 2007)

Log Message:
-----------
new (old) port, mod_python with its python dependency to set to 2.5

Added Paths:
-----------
    trunk/dports/www/mod_python25/
    trunk/dports/www/mod_python25/Portfile

Added: trunk/dports/www/mod_python25/Portfile
===================================================================
--- trunk/dports/www/mod_python25/Portfile	                        (rev 0)
+++ trunk/dports/www/mod_python25/Portfile	2007-06-06 11:08:41 UTC (rev 25922)
@@ -0,0 +1,52 @@
+# $Id: Portfile 24291 2007-04-21 10:15:39Z mww at macports.org $
+
+PortSystem 1.0
+
+name			mod_python
+version			3.3.1
+categories		www python
+platforms		darwin
+maintainers		mww at macports.org jwa
+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
+
+depends_build	port:flex
+depends_lib		port:apache2 port:python25
+
+configure.cppflags	"-I${prefix}/include/python2.5"
+configure.ldflags-append	"-Wl,-F${prefix}/Library/Frameworks"
+configure.args	--with-apxs=${prefix}/apache2/bin/apxs \
+    --with-python=${prefix}/bin/python2.5 \
+    --with-flex=${prefix}/bin/flex \
+    --enable-so
+
+pre-destroot {
+    xinstall -d -m 755 ${destroot}${prefix}/apache2/modules \
+	${destroot}${prefix}/share/doc
+    file copy ${worksrcpath}/doc-html ${destroot}${prefix}/share/doc/${name}
+}
+
+post-install {
+    ui_msg "########################################################"
+    ui_msg "# to enable mod_python add"
+    ui_msg "#  LoadModule python_module modules/mod_python.so"
+    ui_msg "# to your apache2 config file:"
+    ui_msg "#  ${prefix}/apache2/conf/httpd.conf"
+    ui_msg "########################################################"
+}
+
+livecheck.check	regex
+livecheck.url	http://httpd.apache.org/modules/python-download.cgi
+livecheck.regex	mod_python-(\[0-9\\.\]+)\\.tgz
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070606/ea242a03/attachment.html


More information about the macports-changes mailing list