diff options
| author | Adam Vandenberg | 2009-08-24 10:14:06 -0700 |
|---|---|---|
| committer | Max Howell | 2009-08-25 02:48:13 +0100 |
| commit | 10133d4cc0ed239b43ab080ee8e2953dc23e92e8 (patch) | |
| tree | 4c1a6bb2d7e199deac4acac135c38fdc269ea0cc /Library | |
| parent | 545ea19b44f2f9140222be91c5374ff372e7aa9a (diff) | |
| download | homebrew-10133d4cc0ed239b43ab080ee8e2953dc23e92e8.tar.bz2 | |
Formula for mod_wsgi.
mod_wsgi is an Apache module that allows wsgi-compliant Python apps to run
under Apache or as separate daemons.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mod_wsgi.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/mod_wsgi.rb b/Library/Formula/mod_wsgi.rb new file mode 100644 index 000000000..c557300a8 --- /dev/null +++ b/Library/Formula/mod_wsgi.rb @@ -0,0 +1,28 @@ +require 'brewkit' + +class ModWsgi <Formula + @url='http://modwsgi.googlecode.com/files/mod_wsgi-2.5.tar.gz' + @sha1='a2ed3fd60b390c3a790aca1c859093ab7a7c2d9d' + @homepage='http://code.google.com/p/modwsgi/' + + def caveats + " * You must manually edit /etc/apache2/httpd.conf to load mod_wsgi.so\n"+ + " * On 10.5, you must run Apache in 32-bit mode:\n"+ + " http://code.google.com/p/modwsgi/wiki/InstallationOnMacOSX" + end + + def install + FileUtils.mv 'LICENCE', 'LICENSE' + system "./configure --prefix='#{prefix}' --disable-debug --disable-dependency-tracking" + + # Just build 32-bit Intel + # The arch flags should match your Python's arch flags. + inreplace 'Makefile', "-Wc,'-arch ppc7400' -Wc,'-arch ppc64' -Wc,'-arch i386' -Wc,'-arch x86_64'", "-Wc,'-arch i386'" + inreplace 'Makefile', "-arch ppc7400 -arch ppc64 -arch i386 -arch x86_64", "-arch i386" + + # --libexecdir parameter to ./configure isn't changing this, so cram it in + inreplace 'Makefile', "LIBEXECDIR = /usr/libexec/apache2", "LIBEXECDIR = #{libexec}" + + system "make install" + end +end |
