diff options
| author | Jack Nagel | 2013-12-31 14:06:14 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-31 14:06:14 -0600 |
| commit | 0f56267c899834bfb4f72530114951439c81ab2c (patch) | |
| tree | 6df015638244858b6356851325f3152160a9ef77 /Library | |
| parent | 36e87a744e9eb99ad5228b6988d3d3533678fcd0 (diff) | |
| download | homebrew-0f56267c899834bfb4f72530114951439c81ab2c.tar.bz2 | |
libuv: fix HEAD build
Fixes #25571.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libuv.rb | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/Library/Formula/libuv.rb b/Library/Formula/libuv.rb index d61f952b5..93c7b2164 100644 --- a/Library/Formula/libuv.rb +++ b/Library/Formula/libuv.rb @@ -6,16 +6,27 @@ class Libuv < Formula url 'https://github.com/joyent/libuv/archive/v0.10.21.tar.gz' sha1 '883bb240d84e1db11b22b5b0dfdd117ed6bc6318' - head 'https://github.com/joyent/libuv.git', :branch => 'master' + head do + url 'https://github.com/joyent/libuv.git', :branch => 'master' + + depends_on :automake + depends_on :autoconf + depends_on :libtool + end option :universal def install ENV.universal_binary if build.universal? - system 'make', 'libuv.dylib' - - include.install Dir['include/*'] - lib.install 'libuv.dylib' + if build.stable? + system 'make', 'libuv.dylib' + include.install Dir['include/*'] + lib.install 'libuv.dylib' + else + system "./autogen.sh" + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" + system "make install" + end end end |
