diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mod_python.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/mod_python.rb b/Library/Formula/mod_python.rb new file mode 100644 index 000000000..decb08332 --- /dev/null +++ b/Library/Formula/mod_python.rb @@ -0,0 +1,29 @@ +require 'formula' + +class ModPython <Formula + url 'http://www.ibiblio.org/pub/mirrors/apache/httpd/modpython/mod_python-3.3.1.tgz' + homepage 'http://www.modpython.org/' + md5 'a3b0150176b726bd2833dac3a7837dc5' + + def caveats + " * You must manually edit /etc/apache2/httpd.conf to load mod_python.so" + end + + def patches + { :p0 => + "http://trac.macports.org/export/38805/trunk/dports/www/mod_python25/files/patch-src-connobject.c.diff" + } + end + + def install + system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" + + inreplace 'Makefile' do |s| + # Don't install to the system Apache libexec folder + s.change_make_var! "LIBEXECDIR", libexec + end + + system "make" + system "make install" + end +end |
