diff options
| author | Dominyk Tiller | 2014-10-27 19:00:40 +0000 |
|---|---|---|
| committer | Jack Nagel | 2014-10-27 23:37:54 -0500 |
| commit | 8e1485933eea9e4280fa8fb3fda6aba09edda7b1 (patch) | |
| tree | e1098f41ccbcd15ff504802f7a6f3d349de6a468 /Library/Formula | |
| parent | 24e6b4876696b2795aabe5bf516872427ee105ff (diff) | |
| download | homebrew-8e1485933eea9e4280fa8fb3fda6aba09edda7b1.tar.bz2 | |
uwsgi 2.0.8
Version bump, new OpenSSL dependency to fix tapping the system, and a
patch I improvised from gearman for Yosemite to fix compile issues.
Closes #33488.
Closes #33646.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/uwsgi.rb | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/Library/Formula/uwsgi.rb b/Library/Formula/uwsgi.rb index 60a63de81..b9969b013 100644 --- a/Library/Formula/uwsgi.rb +++ b/Library/Formula/uwsgi.rb @@ -2,8 +2,8 @@ require "formula" class Uwsgi < Formula homepage "https://uwsgi-docs.readthedocs.org/en/latest/" - url "http://projects.unbit.it/downloads/uwsgi-2.0.7.tar.gz" - sha1 "0e9d1f881736674221d60a5dd5dfcbc25051d48b" + url "http://projects.unbit.it/downloads/uwsgi-2.0.8.tar.gz" + sha1 "f017faf259f409907dc8c37541370d3e803fba32" head "https://github.com/unbit/uwsgi.git" bottle do @@ -13,6 +13,7 @@ class Uwsgi < Formula end depends_on "pkg-config" => :build + depends_on "openssl" depends_on :python if MacOS.version <= :snow_leopard depends_on "pcre" @@ -43,8 +44,16 @@ class Uwsgi < Formula option "with-php", "Compile with PHP support (PHP must be built for embedding)" option "with-ruby", "Compile with Ruby support" + # This is a hacky patch, but it works. Replace once upstream have a better fix. + # https://github.com/Homebrew/homebrew/issues/33488 + # https://github.com/unbit/uwsgi/issues/760 + if MacOS.version == :yosemite + patch :DATA + end + def install ENV.append %w{CFLAGS LDFLAGS}, "-arch #{MacOS.preferred_arch}" + ENV.append_to_cflags "-DHAVE_HTONLL" if MacOS.version == :yosemite json = build.with?("jansson") ? "jansson" : "yajl" yaml = build.with?("libyaml") ? "libyaml" : "embedded" @@ -153,3 +162,27 @@ class Uwsgi < Formula EOS end end + +__END__ +diff --git a/plugins/emperor_amqp/amqp.c b/plugins/emperor_amqp/amqp.c +index 7b34c66..a6f8a2f 100644 +--- a/plugins/emperor_amqp/amqp.c ++++ b/plugins/emperor_amqp/amqp.c +@@ -2,6 +2,8 @@ + + #define AMQP_CONNECTION_HEADER "AMQP\0\0\x09\x01" + ++#ifndef HAVE_HTONLL ++ + #ifdef __BIG_ENDIAN__ + #define ntohll(x) x + #else +@@ -9,6 +11,8 @@ + #endif + #define htonll(x) ntohll(x) + ++#endif ++ + #define amqp_send(a, b, c) if (send(a, b, c, 0) < 0) { uwsgi_error("send()"); return -1; } + + struct amqp_frame_header { |
