aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/zeromq.rb20
1 files changed, 17 insertions, 3 deletions
diff --git a/Library/Formula/zeromq.rb b/Library/Formula/zeromq.rb
index f557a68ad..784afdfef 100644
--- a/Library/Formula/zeromq.rb
+++ b/Library/Formula/zeromq.rb
@@ -1,7 +1,5 @@
class Zeromq < Formula
homepage "http://www.zeromq.org/"
- url "http://download.zeromq.org/zeromq-4.0.5.tar.gz"
- sha1 "a664ec63661a848ef46114029156a0a6006feecd"
revision 2
bottle do
@@ -19,6 +17,18 @@ class Zeromq < Formula
depends_on "libtool" => :build
end
+ stable do
+ url "http://download.zeromq.org/zeromq-4.0.5.tar.gz"
+ sha1 "a664ec63661a848ef46114029156a0a6006feecd"
+
+ patch do
+ # enable --without-libsodium on libzmq < 4.1
+ # zeromq/zeromq4-x#105
+ url "https://gist.githubusercontent.com/minrk/478aab66adf7016158ff/raw/b5ea2d61c3f66db6ff3e266b76d1bec4ad4a238b/without-libsodium.patch"
+ sha1 "68543ff1b0f64b22994cb13b4d24bce8f76cf431"
+ end
+ end
+
option :universal
option "with-libpgm", "Build with PGM extension"
@@ -39,7 +49,11 @@ class Zeromq < Formula
args << "--with-system-pgm"
end
- args << "--with-libsodium" if build.with? "libsodium"
+ if build.with? "libsodium"
+ args << "--with-libsodium"
+ else
+ args << "--without-libsodium"
+ end
system "./autogen.sh" if build.head?
system "./configure", *args