homebrew-core/Formula/czmq.rb

32 lines
677 B
Ruby
Raw Normal View History

require 'formula'
class Czmq < Formula
homepage 'http://czmq.zeromq.org/'
url 'http://download.zeromq.org/czmq-2.0.3.tar.gz'
sha1 'df8e6d547f43545bcd058697a2476474f9e3a0c1'
2013-09-20 15:15:52 +00:00
head do
url 'https://github.com/zeromq/czmq.git'
depends_on 'autoconf'
depends_on 'automake'
depends_on 'libtool'
end
2013-09-20 15:15:52 +00:00
option :universal
2013-08-07 16:46:36 +00:00
depends_on 'zeromq'
def install
ENV.universal_binary if build.universal?
2013-08-07 16:46:36 +00:00
system "./autogen.sh" if build.head?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
test do
system "#{bin}/czmq_selftest"
end
end