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-10-18 21:12:30 +00:00
|
|
|
url 'https://github.com/joyent/libuv/archive/v0.10.18.tar.gz'
|
|
|
|
sha1 '31fbe2c9e1b2d0f57cfbafd55818734dc545e36a'
|
2013-01-03 15:44:20 +00:00
|
|
|
|
|
|
|
head 'https://github.com/joyent/libuv.git', :branch => 'master'
|
|
|
|
|
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-01-03 15:44:20 +00:00
|
|
|
system 'make', 'libuv.dylib'
|
|
|
|
|
|
|
|
include.install Dir['include/*']
|
|
|
|
lib.install 'libuv.dylib'
|
|
|
|
end
|
|
|
|
end
|