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-08-06 00:40:00 +00:00
|
|
|
url 'https://github.com/joyent/libuv/archive/v0.10.13.tar.gz'
|
|
|
|
sha1 'f1bb5671ef6b45606d4cf17816f173dda3d47a92'
|
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
|