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/"
|
|
|
|
url "http://download.zeromq.org/czmq-2.2.0.tar.gz"
|
|
|
|
sha1 "2f4fd8de4cf04a68a8f6e88ea7657d8068f472d2"
|
|
|
|
revision 1
|
2011-11-22 22:17:27 +00:00
|
|
|
|
2014-10-24 17:45:41 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-12-30 12:16:54 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "798cef5fd0d7c79123fe60be9db628e8db5fe351" => :yosemite
|
|
|
|
sha1 "c1361edaea2bbea8f30937741b5346e419c3909c" => :mavericks
|
|
|
|
sha1 "9a8556182c8599cf1a32f0cec8e6dc8eed151035" => :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}"]
|
|
|
|
|
|
|
|
if build.stable?
|
|
|
|
args << "--with-libsodium" if build.with? "libsodium"
|
|
|
|
end
|
|
|
|
|
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
|
|
|
|
system "make", "install"
|
2014-06-17 17:44:48 +00:00
|
|
|
rm Dir["#{bin}/*.gsl"]
|
2011-11-22 22:17:27 +00:00
|
|
|
end
|
2013-10-25 22:23:31 +00:00
|
|
|
|
|
|
|
test do
|
2014-06-17 18:57:31 +00:00
|
|
|
bin.cd do
|
|
|
|
system "#{bin}/czmq_selftest"
|
|
|
|
end
|
2013-10-25 22:23:31 +00:00
|
|
|
end
|
2011-11-22 22:17:27 +00:00
|
|
|
end
|