aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libuv.rb
blob: e026d50714cca87a1e241014aeb671f0e3b753f6 (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/v0.10.3.tar.gz'
  sha1 'ec458e098e1ce0eb52c83928fc012d83c364d8e9'

  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