aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-09-03 20:45:35 -0700
committerAdam Vandenberg2012-09-03 20:46:05 -0700
commit4595aa40996811d6d22237ac2b83eb7e0df3d1ca (patch)
tree349de87511c8cf71d74fca71ef1ff7aeb611ba15 /Library/Formula
parent93a4c48e369920d18bfd8835c8b27e98bccf01f5 (diff)
downloadhomebrew-4595aa40996811d6d22237ac2b83eb7e0df3d1ca.tar.bz2
Move mod_python and mod_wsgi to homebrew-apache.
See: https://github.com/Homebrew/homebrew-apache
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mod_python.rb53
-rw-r--r--Library/Formula/mod_wsgi.rb49
2 files changed, 0 insertions, 102 deletions
diff --git a/Library/Formula/mod_python.rb b/Library/Formula/mod_python.rb
deleted file mode 100644
index 9576489ef..000000000
--- a/Library/Formula/mod_python.rb
+++ /dev/null
@@ -1,53 +0,0 @@
-require 'formula'
-
-class ModPython < Formula
- homepage 'http://www.modpython.org/'
- url 'http://archive.apache.org/dist/httpd/modpython/mod_python-3.3.1.tgz'
- sha1 'e538170fd78e09408b6d8593da980b126a0fef93'
-
- # patch-src-connobject.c.diff from MacPorts
- def patches; DATA; end
-
- def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}"
-
- # Explicitly set the arch in CFLAGS so the PSPModule will build against system Python
- # We remove 'ppc' support, so we can pass Intel-optimized CFLAGS.
- archs = archs_for_command("python")
- archs.remove_ppc!
- ENV.append_to_cflags archs.as_arch_flags
-
- # Don't install to the system Apache libexec folder
- inreplace 'Makefile' do |s|
- s.change_make_var! "LIBEXECDIR", libexec
- end
-
- system "make"
- system "make install"
- end
-
- def caveats; <<-EOS.undent
- To use mod_python, you must manually edit /etc/apache2/httpd.conf to load:
- #{libexec}/mod_python.so
-
- NOTE: mod_python is deprecated. See:
- http://blog.dscpl.com.au/2010/05/modpython-project-soon-to-be-officially.html
-
- mod_wsgi is the suggested replacement.
- EOS
- end
-end
-
-__END__
---- a/src/connobject.c 2006-12-03 05:36:37.000000000 +0100
-+++ b/src/connobject.c 2008-07-30 12:30:10.000000000 +0200
-@@ -139,7 +139,7 @@
- bytes_read = 0;
-
- while ((bytes_read < len || len == 0) &&
-- !(b == APR_BRIGADE_SENTINEL(b) ||
-+ !(b == APR_BRIGADE_SENTINEL(bb) ||
- APR_BUCKET_IS_EOS(b) || APR_BUCKET_IS_FLUSH(b))) {
-
- const char *data;
diff --git a/Library/Formula/mod_wsgi.rb b/Library/Formula/mod_wsgi.rb
deleted file mode 100644
index df0abe909..000000000
--- a/Library/Formula/mod_wsgi.rb
+++ /dev/null
@@ -1,49 +0,0 @@
-require 'formula'
-
-class ModWsgi < Formula
- homepage 'http://code.google.com/p/modwsgi/'
- url 'http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz'
- sha1 'f32d38e5d3ed5de1efd5abefb52678f833dc9166'
-
- head 'http://modwsgi.googlecode.com/svn/trunk/mod_wsgi'
-
- def install
- # Remove a flag added when homebrew isn't in /usr/local
- # causes apxs to fail with "unknown flags" error
- ENV.remove 'CPPFLAGS', "-isystem #{HOMEBREW_PREFIX}/include"
-
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
-
- # We need apxs to specify the right compiler to its libtool, but
- # doing so causes libtool to die unless this flag is also set
- ENV['LTFLAGS'] = '--tag=CC'
-
- inreplace 'Makefile' do |s|
- # APXS uses just "gcc" unless we specify CC this way
- s.gsub! '$(APXS)', "$(APXS) -S CC=#{ENV.cc}"
- # Remove 'ppc' support, so we can pass Intel-optimized CFLAGS.
- cflags = s.get_make_var("CFLAGS")
- cflags.gsub! "-Wc,'-arch ppc7400'", ""
- cflags.gsub! "-Wc,'-arch ppc64'", ""
- cflags.gsub! "-Wc,'-arch x86_64'", "" if Hardware.is_32_bit?
- s.change_make_var! "CFLAGS", cflags
-
- # --libexecdir parameter to ./configure isn't changing this, so cram it in
- # This will be where the Apache module ends up, and we don't want to touch
- # the system libexec.
- s.change_make_var! "LIBEXECDIR", libexec
- end
-
- system "make install"
- end
-
- def caveats
- <<-EOS.undent
- You must manually edit /etc/apache2/httpd.conf to load
- #{libexec}/mod_wsgi.so
-
- On 10.5, you must run Apache in 32-bit mode:
- http://code.google.com/p/modwsgi/wiki/InstallationOnMacOSX
- EOS
- end
-end