aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorNikolaus Wittenstein2013-08-07 12:26:57 -0400
committerAdam Vandenberg2013-08-07 09:45:11 -0700
commitcb04e3fe806d73aabb5432f7fc967a9521e3fe56 (patch)
treef9e013b3830ccb4e1c1db6680a3439dd3f69c290 /Library/Formula
parentabfaffc4a971788f3d09d04e69e49dc11b6fa96b (diff)
downloadhomebrew-cb04e3fe806d73aabb5432f7fc967a9521e3fe56.tar.bz2
czmq: add HEAD option
Closes #21730. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/czmq.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/czmq.rb b/Library/Formula/czmq.rb
index 8a79d8c5a..f68d0e473 100644
--- a/Library/Formula/czmq.rb
+++ b/Library/Formula/czmq.rb
@@ -2,6 +2,7 @@ require 'formula'
class Czmq < Formula
homepage 'http://czmq.zeromq.org/'
+ head 'https://github.com/zeromq/czmq.git'
url 'http://download.zeromq.org/czmq-1.4.1.tar.gz'
sha1 '8ddb485e9d53bca6bb703c850be40b8da70c4d74'
@@ -9,8 +10,19 @@ class Czmq < Formula
depends_on 'zeromq'
+ if build.head?
+ depends_on 'autoconf'
+ depends_on 'automake'
+ depends_on 'libtool'
+ end
+
def install
ENV.universal_binary if build.universal?
+
+ if build.head?
+ system "./autogen.sh"
+ end
+
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"