aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2010-02-01 12:18:30 -0800
committerAdam Vandenberg2010-02-01 12:18:30 -0800
commitf1e3645e472b3468cafadf03e61ae6d7ebbbb5f8 (patch)
treea48a29bd43ee5b9cd98ca5313bcc7c9076284664 /Library/Formula
parentb2d5e3625b964e70a934de51b98f4e57b656faf4 (diff)
downloadhomebrew-f1e3645e472b3468cafadf03e61ae6d7ebbbb5f8.tar.bz2
uwsgi 0.9.4
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/uwsgi.rb27
1 files changed, 12 insertions, 15 deletions
diff --git a/Library/Formula/uwsgi.rb b/Library/Formula/uwsgi.rb
index 977dd5c9b..605ae3545 100644
--- a/Library/Formula/uwsgi.rb
+++ b/Library/Formula/uwsgi.rb
@@ -1,28 +1,25 @@
require 'formula'
class Uwsgi <Formula
- url 'http://projects.unbit.it/downloads/uwsgi-0.9.3.tar.gz'
+ url 'http://projects.unbit.it/downloads/uwsgi-0.9.4.tar.gz'
homepage 'http://projects.unbit.it/uwsgi/'
- md5 'dd72040daea5a9ee982f3b3b98946ed9'
-
- def python_archs
- archs_for_command("python").collect{ |arch| "-arch #{arch}" }.join(' ')
- end
+ md5 '07c633072b48c9790fa5d4030c7c9aa3'
def python_version
`python -c "import sys; print '%s.%s' % sys.version_info[:2]"`.chomp
end
def install
- mv 'Makefile.OSX.ub.Py25', 'Makefile'
-
- inreplace "Makefile" do |s|
- s.gsub! "python2.5-config", "python#{ python_version }-config"
- # The arch flags should match your Python's arch flags
- s.gsub! "-arch ppc -arch i386", python_archs
+ case python_version
+ when '2.5'
+ makefile = "Makefile"
+ program = "uwsgi"
+ when '2.6'
+ makefile = "Makefile.Py26"
+ program = "uwsgi26"
end
-
- system "make all"
- bin.install "uwsgi"
+
+ system "make -f #{makefile}"
+ bin.install program
end
end