blob: 9e88c5ba50a12cf11d5a784000420a462a921ca2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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
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
end
|