homebrew-core/Formula/czmq.rb
Asmod4n fd274de1db czmq: added pkg-config dependency for HEAD
Closes Homebrew/homebrew#33006.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-10-07 15:13:22 -05:00

35 lines
796 B
Ruby

require 'formula'
class Czmq < Formula
homepage 'http://czmq.zeromq.org/'
url 'http://download.zeromq.org/czmq-2.2.0.tar.gz'
sha1 '2f4fd8de4cf04a68a8f6e88ea7657d8068f472d2'
head do
url 'https://github.com/zeromq/czmq.git'
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'pkg-config' => :build
end
option :universal
depends_on 'zeromq'
def install
ENV.universal_binary if build.universal?
system "./autogen.sh" if build.head?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
rm Dir["#{bin}/*.gsl"]
end
test do
bin.cd do
system "#{bin}/czmq_selftest"
end
end
end