homebrew-core/Formula/uwsgi.rb

19 lines
459 B
Ruby

require 'formula'
class Uwsgi < Formula
homepage 'http://projects.unbit.it/uwsgi/'
url 'http://projects.unbit.it/downloads/uwsgi-1.9.8.tar.gz'
sha1 '41f6b838228d980a60d99c412a5ad16b4ba9bfe4'
depends_on 'pcre'
depends_on 'libyaml'
def install
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