2013-01-03 15:44:20 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2013-08-06 00:40:00 +00:00
|
|
|
# Note that x.even are stable releases, x.odd are devel releases
|
2013-01-03 15:44:20 +00:00
|
|
|
class Libuv < Formula
|
|
|
|
homepage 'https://github.com/joyent/libuv'
|
2013-12-21 05:21:49 +00:00
|
|
|
url 'https://github.com/joyent/libuv/archive/v0.10.21.tar.gz'
|
|
|
|
sha1 '883bb240d84e1db11b22b5b0dfdd117ed6bc6318'
|
2013-01-03 15:44:20 +00:00
|
|
|
|
2013-12-31 20:06:14 +00:00
|
|
|
head do
|
|
|
|
url 'https://github.com/joyent/libuv.git', :branch => 'master'
|
|
|
|
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
2013-01-03 15:44:20 +00:00
|
|
|
|
2013-01-10 19:01:52 +00:00
|
|
|
option :universal
|
|
|
|
|
2013-01-03 15:44:20 +00:00
|
|
|
def install
|
2013-01-10 19:01:52 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
|
2013-12-31 20:06:14 +00:00
|
|
|
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
|
2013-01-03 15:44:20 +00:00
|
|
|
end
|
|
|
|
end
|