aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorChris Hoffman2010-06-28 19:20:27 -0500
committerAdam Vandenberg2010-08-08 08:50:26 -0700
commit4d3098728d61128ff32e0d4a686a4f3a7de7954f (patch)
treea4ee7cd61a82d48753b830a93d8ea0654ebed368 /Library
parentfdb41a310f793f416444e8edcbbd4f80e39e28db (diff)
downloadhomebrew-4d3098728d61128ff32e0d4a686a4f3a7de7954f.tar.bz2
Update uwsgi formula with new version and proper linking to custom pythons on path
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/uwsgi.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/Library/Formula/uwsgi.rb b/Library/Formula/uwsgi.rb
index 94cca6100..dd8faf276 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.5.1.tar.gz'
+ url 'http://projects.unbit.it/downloads/uwsgi-0.9.5.3.tar.gz'
homepage 'http://projects.unbit.it/uwsgi/'
- md5 'cc032e0f0e987a848606d3bc90241756'
+ md5 'f4835859bc87080a58289b980b7ae15c'
def install
# Find the archs of the Python we are building against.
@@ -14,7 +14,12 @@ class Uwsgi <Formula
flags = archs.collect{ |a| "-arch #{a}" }.join(' ')
- system "CFLAGS='#{flags}' LDFLAGS='#{flags}' python uwsgiconfig.py --build"
+ ENV.append 'CFLAGS', flags
+ ENV.append 'LDFLAGS', flags
+
+ inreplace 'uwsgiconfig.py', "PYLIB_PATH = ''", "PYLIB_PATH = '#{%x[python-config --ldflags].chomp[/-L(.*?) -l/, 1]}'"
+
+ system "python uwsgiconfig.py --build"
bin.install "uwsgi"
end