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