2011-11-22 22:17:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Czmq < Formula
|
|
|
|
homepage 'http://czmq.zeromq.org/'
|
2014-06-17 17:44:48 +00:00
|
|
|
url 'http://download.zeromq.org/czmq-2.2.0.tar.gz'
|
|
|
|
sha1 '8fc5038a8e086a8f0afa6d8f6beea2fe50525ecc'
|
2011-11-22 22:17:27 +00:00
|
|
|
|
2013-09-20 15:15:52 +00:00
|
|
|
head do
|
|
|
|
url 'https://github.com/zeromq/czmq.git'
|
2012-10-09 05:08:47 +00:00
|
|
|
|
2014-06-20 23:41:41 +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
|
|
|
|
|
2013-08-07 16:46:36 +00:00
|
|
|
depends_on 'zeromq'
|
|
|
|
|
2011-11-22 22:17:27 +00:00
|
|
|
def install
|
2012-10-09 05:08:47 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2013-08-07 16:46:36 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2011-11-22 22:17:27 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
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
|