diff options
| author | Adam Vandenberg | 2010-03-19 10:32:12 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-03-19 10:32:12 -0700 |
| commit | bfa655980ab903aa526af103d61cf2bbdc0c025b (patch) | |
| tree | de93b1b1c076fc2e5f80405afaa1abd54a795d5a /Library/Formula | |
| parent | 16ab06582d5ad0eccbfd45ab36f30fdd96bbb607 (diff) | |
| download | homebrew-bfa655980ab903aa526af103d61cf2bbdc0c025b.tar.bz2 | |
mod_python 3.3.1
Diffstat (limited to 'Library/Formula')
| -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 |
