98e050bd6c
Replaced the plethora of ternaries we've used all over the place to determine whether x86_64 or i386 is called for.
20 lines
472 B
Ruby
20 lines
472 B
Ruby
require 'formula'
|
|
|
|
class Uwsgi < Formula
|
|
homepage 'http://projects.unbit.it/uwsgi/'
|
|
url 'https://projects.unbit.it/downloads/uwsgi-1.9.11.tar.gz'
|
|
sha1 '2b3d4f225808decb50399b9cdb387e022dd3729d'
|
|
|
|
depends_on :python
|
|
depends_on 'pcre'
|
|
depends_on 'libyaml'
|
|
|
|
def install
|
|
python do
|
|
%w{CFLAGS LDFLAGS}.each { |e| ENV.append e, "-arch #{MacOS.preferred_arch}" }
|
|
|
|
system python, "uwsgiconfig.py", "--build"
|
|
bin.install "uwsgi"
|
|
end
|
|
end
|
|
end
|