zeromq: explicitly disable libsodium

default value for `--with-libsodium` changed from false to true between 4.0 and 4.1

include patch required for libzmq-4.0 to support `--without-libsodium`
backported from zeromq/zeromq4-x#105

Closes Homebrew/homebrew#36875.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
This commit is contained in:
Min RK 2015-02-16 14:26:20 -08:00 committed by Tim D. Smith
parent 99b9de88a3
commit 92c500779c

View file

@ -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