2011-11-22 22:17:27 +00:00
|
|
|
class Czmq < Formula
|
2015-06-05 16:40:53 +00:00
|
|
|
desc "High-level C binding for ZeroMQ"
|
2014-10-24 16:37:26 +00:00
|
|
|
homepage "http://czmq.zeromq.org/"
|
2015-06-23 18:14:14 +00:00
|
|
|
url "http://download.zeromq.org/czmq-3.0.2.tar.gz"
|
|
|
|
sha256 "8bca39ab69375fa4e981daf87b3feae85384d5b40cef6adbe9d5eb063357699a"
|
2015-07-04 13:13:06 +00:00
|
|
|
revision 1
|
2011-11-22 22:17:27 +00:00
|
|
|
|
2014-10-24 17:45:41 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-09-14 07:07:58 +00:00
|
|
|
sha256 "936bd015196746bccb8cf3282564333f1d2bec0b42c509415b56c7ee89104506" => :el_capitan
|
2015-07-05 12:06:02 +00:00
|
|
|
sha256 "cb5e7a40b945b014c92597ce275b76f5a39541e0f96e6ea541cb0d6e706bcfaa" => :yosemite
|
|
|
|
sha256 "42f0561a90ba0d17d17477282a2c2cc3f36ed72eb37209114626f51565852948" => :mavericks
|
|
|
|
sha256 "1b6ecec3b74fb846b025c6da0ae28820569e542eee55c80658c2074a8d2ada87" => :mountain_lion
|
2014-10-24 17:45:41 +00:00
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:52 +00:00
|
|
|
head do
|
2014-10-24 16:37:26 +00:00
|
|
|
url "https://github.com/zeromq/czmq.git"
|
2012-10-09 05:08:47 +00:00
|
|
|
|
2014-10-24 16:37:26 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2013-08-07 16:26:57 +00:00
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:52 +00:00
|
|
|
option :universal
|
|
|
|
|
2014-10-24 16:37:26 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-12-30 12:00:11 +00:00
|
|
|
depends_on "libsodium" => :optional
|
|
|
|
|
|
|
|
if build.with? "libsodium"
|
|
|
|
depends_on "zeromq" => "with-libsodium"
|
|
|
|
else
|
|
|
|
depends_on "zeromq"
|
|
|
|
end
|
2013-08-07 16:46:36 +00:00
|
|
|
|
2011-11-22 22:17:27 +00:00
|
|
|
def install
|
2012-10-09 05:08:47 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2014-10-24 16:37:26 +00:00
|
|
|
|
|
|
|
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
|
2015-06-23 18:14:14 +00:00
|
|
|
args << "--with-libsodium" if build.with? "libsodium"
|
2014-10-24 16:37:26 +00:00
|
|
|
|
2013-08-07 16:46:36 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2014-10-24 16:37:26 +00:00
|
|
|
system "./configure", *args
|
2015-06-05 04:51:12 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "check"
|
2014-10-24 16:37:26 +00:00
|
|
|
system "make", "install"
|
2014-06-17 17:44:48 +00:00
|
|
|
rm Dir["#{bin}/*.gsl"]
|
2015-07-04 13:13:06 +00:00
|
|
|
|
|
|
|
# makecert clashes with Mono. Rename it less generically.
|
|
|
|
mv bin/"makecert", bin/"czmq-makecert"
|
2011-11-22 22:17:27 +00:00
|
|
|
end
|
|
|
|
end
|