homebrew-core/Formula/uwsgi.rb

22 lines
510 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Uwsgi < Formula
homepage 'http://projects.unbit.it/uwsgi/'
url 'https://projects.unbit.it/downloads/uwsgi-1.9.11.tar.gz'
sha1 '2b3d4f225808decb50399b9cdb387e022dd3729d'
2010-01-13 11:06:52 +00:00
depends_on :python
depends_on 'pcre'
depends_on 'libyaml'
def install
python do
arch = MacOS.prefer_64_bit? ? 'x86_64' : 'i386'
%w{CFLAGS LDFLAGS}.each { |e| ENV.append e, "-arch #{arch}" }
system python, "uwsgiconfig.py", "--build"
bin.install "uwsgi"
end
end
2010-06-22 21:33:53 +00:00
end