homebrew-core/Formula/libuv.rb
Max Riveiro 64de043443 libuv: Add universal option
Closes Homebrew/homebrew#16993.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2013-01-10 11:12:03 -08:00

20 lines
460 B
Ruby

require 'formula'
class Libuv < Formula
homepage 'https://github.com/joyent/libuv'
url 'https://github.com/joyent/libuv/archive/node-v0.9.4.zip'
sha1 '7f2120e79ea037a7b6067689958153ec4198177c'
head 'https://github.com/joyent/libuv.git', :branch => 'master'
option :universal
def install
ENV.universal_binary if build.universal?
system 'make', 'libuv.dylib'
include.install Dir['include/*']
lib.install 'libuv.dylib'
end
end