homebrew-core/Formula/czmq.rb

52 lines
1.5 KiB
Ruby
Raw Normal View History

class Czmq < Formula
desc "High-level C binding for ZeroMQ"
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"
revision 1
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
url "https://github.com/zeromq/czmq.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
2013-09-20 15:15:52 +00:00
option :universal
depends_on "pkg-config" => :build
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
def install
ENV.universal_binary if build.universal?
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
2015-06-23 18:14:14 +00:00
args << "--with-libsodium" if build.with? "libsodium"
2013-08-07 16:46:36 +00:00
system "./autogen.sh" if build.head?
system "./configure", *args
system "make"
system "make", "check"
system "make", "install"
rm Dir["#{bin}/*.gsl"]
# makecert clashes with Mono. Rename it less generically.
mv bin/"makecert", bin/"czmq-makecert"
end
end