homebrew-core/Formula/uwsgi.rb

24 lines
644 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Uwsgi < Formula
homepage 'http://projects.unbit.it/uwsgi/'
2012-04-17 03:53:51 +00:00
url 'http://projects.unbit.it/downloads/uwsgi-1.1.2.tar.gz'
md5 '69d2a89e283a047c750dde858a384e25'
2010-01-13 11:06:52 +00:00
skip_clean :all # stripping breaks the executable
def install
2011-03-19 16:50:37 +00:00
# Find the arch for the Python we are building against.
2010-04-18 23:07:55 +00:00
# We remove 'ppc' support, so we can pass Intel-optimized CFLAGS.
archs = archs_for_command("python")
2011-03-19 16:50:37 +00:00
archs.remove_ppc!
2012-04-17 03:53:51 +00:00
arch_flags = archs.as_arch_flags
2010-04-18 23:07:55 +00:00
2012-04-17 03:53:51 +00:00
ENV.append 'CFLAGS', arch_flags
ENV.append 'LDFLAGS', arch_flags
system "python", "uwsgiconfig.py", "--build"
bin.install "uwsgi"
end
2010-06-22 21:33:53 +00:00
end