diff options
| author | Adam Vandenberg | 2010-04-18 16:07:55 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-18 16:07:55 -0700 |
| commit | 352f9b080af8447f7b128ad078ade076ebb0c210 (patch) | |
| tree | ddcb76a488043d066be478efd2ff42a75657df5b /Library/Formula | |
| parent | 153cfb2d28b62d7a779b76937c2de62fcdb2d374 (diff) | |
| download | homebrew-352f9b080af8447f7b128ad078ade076ebb0c210.tar.bz2 | |
uwsgi 0.9.4.3
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/uwsgi.rb | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Library/Formula/uwsgi.rb b/Library/Formula/uwsgi.rb index 605ae3545..f92403174 100644 --- a/Library/Formula/uwsgi.rb +++ b/Library/Formula/uwsgi.rb @@ -1,9 +1,9 @@ require 'formula' class Uwsgi <Formula - url 'http://projects.unbit.it/downloads/uwsgi-0.9.4.tar.gz' + url 'http://projects.unbit.it/downloads/uwsgi-0.9.4.3.tar.gz' homepage 'http://projects.unbit.it/uwsgi/' - md5 '07c633072b48c9790fa5d4030c7c9aa3' + md5 '5f6a7385138deccfd5f8a80f2e0dea04' def python_version `python -c "import sys; print '%s.%s' % sys.version_info[:2]"`.chomp @@ -19,6 +19,19 @@ class Uwsgi <Formula program = "uwsgi26" end + # Find the archs of the Python we are building against. + # We remove 'ppc' support, so we can pass Intel-optimized CFLAGS. + archs = archs_for_command("python") + archs.delete :ppc7400 + archs.delete :ppc64 + + flags = archs.collect{ |a| "-arch #{a}" }.join(' ') + + inreplace makefile do |s| + s.change_make_var! "CFLAGS", "$(PYTHON_CFLAGS) $(XML_CFLAGS) #{flags}" + s.change_make_var! "LD_FLAGS", "$(PYTHON_LIBS) $(XML_LIBS) #{flags}" + end + system "make -f #{makefile}" bin.install program end |
