2013-01-03 15:44:20 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libuv < Formula
|
|
|
|
homepage 'https://github.com/joyent/libuv'
|
2013-03-11 18:11:38 +00:00
|
|
|
url 'https://github.com/joyent/libuv/archive/node-v0.10.0.tar.gz'
|
|
|
|
sha1 '97784d360e471414b0b24013f8a48e67ef3bb0c3'
|
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
|