mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 19:39:48 -05:00
19 lines
457 B
Ruby
19 lines
457 B
Ruby
require 'formula'
|
|
|
|
class Uwsgi < Formula
|
|
homepage 'http://projects.unbit.it/uwsgi/'
|
|
url 'http://projects.unbit.it/downloads/uwsgi-1.9.tar.gz'
|
|
sha1 'd09cd6764d3e1e6617ad27a1c634b097d2c4c312'
|
|
|
|
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
|