aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libuv.rb
blob: 8010c777f59626bcf205177db7325ba9980f0597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Libuv < Formula
  homepage 'https://github.com/joyent/libuv'
  url 'https://github.com/joyent/libuv/archive/node-v0.10.0.tar.gz'
  sha1 '97784d360e471414b0b24013f8a48e67ef3bb0c3'

  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