homebrew-core/Formula/zeromq.rb
BrewTestBot 673a463e88 zeromq: update 4.0.5 bottle.
Closes Homebrew/homebrew#33241.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-17 19:21:44 +01:00

58 lines
1.5 KiB
Ruby

require 'formula'
class Zeromq < Formula
homepage "http://www.zeromq.org/"
url "http://download.zeromq.org/zeromq-4.0.5.tar.gz"
sha1 "a664ec63661a848ef46114029156a0a6006feecd"
bottle do
cellar :any
revision 1
sha1 "f0b1d5adb4b416e0c30b6f4c3363258b7d285992" => :mavericks
sha1 "34822b161d6443666ea528c196aa0ee83a570c07" => :mountain_lion
sha1 "6a10776dbb0e16892f304cebe8cf4b1a23b9303e" => :lion
end
head do
url "https://github.com/zeromq/libzmq.git"
depends_on :autoconf
depends_on :automake
depends_on :libtool
end
option :universal
option "with-pgm", "Build with PGM extension"
depends_on "pkg-config" => :build
depends_on "libpgm" if build.with? "pgm"
depends_on "libsodium" => :recommended
def install
ENV.universal_binary if build.universal?
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
if build.with? "pgm"
# Use HB libpgm-5.2 because their internal 5.1 is b0rked.
ENV['OpenPGM_CFLAGS'] = %x[pkg-config --cflags openpgm-5.2].chomp
ENV['OpenPGM_LIBS'] = %x[pkg-config --libs openpgm-5.2].chomp
args << "--with-system-pgm"
end
args << "--with-libsodium" if build.with? "libsodium"
system "./autogen.sh" if build.head?
system "./configure", *args
system "make"
system "make", "install"
end
def caveats; <<-EOS.undent
To install the zmq gem on 10.6 with the system Ruby on a 64-bit machine,
you may need to do:
ARCHFLAGS="-arch x86_64" gem install zmq -- --with-zmq-dir=#{opt_prefix}
EOS
end
end