aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/uwsgi.rb
blob: 97972d51521a18e187e49069fe9a2b96ebd0279f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Uwsgi < Formula
  homepage 'http://projects.unbit.it/uwsgi/'
  url 'http://projects.unbit.it/downloads/uwsgi-1.9.18.2.tar.gz'
  sha1 '613328a2da84a7eb3b6f01f892833f2ef8e591ca'

  depends_on :python
  depends_on 'pcre'
  depends_on 'libyaml'

  def install
    python do
      %w{CFLAGS LDFLAGS}.each { |e| ENV.append e, "-arch #{MacOS.preferred_arch}" }

      system python, "uwsgiconfig.py", "--build"
      bin.install "uwsgi"
    end
  end
end