aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/uwsgi.rb37
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 {