e7b8044af5
The thing that was causing this problem has been fixed in Homebrew.
23 lines
695 B
Ruby
23 lines
695 B
Ruby
require 'formula'
|
|
|
|
class Uwsgi < Formula
|
|
url 'http://projects.unbit.it/downloads/uwsgi-1.0.2.1.tar.gz'
|
|
homepage 'http://projects.unbit.it/uwsgi/'
|
|
md5 '41648cb886c0d1e31a672bad2b45f4c9'
|
|
|
|
def install
|
|
# Find the arch for the Python we are building against.
|
|
# We remove 'ppc' support, so we can pass Intel-optimized CFLAGS.
|
|
archs = archs_for_command("python")
|
|
archs.remove_ppc!
|
|
flags = archs.as_arch_flags
|
|
|
|
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
|
|
end
|