2014-05-28 12:50:37 +00:00
|
|
|
require "formula"
|
2013-01-03 15:44:20 +00:00
|
|
|
|
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
|
2014-05-28 12:50:37 +00:00
|
|
|
homepage "https://github.com/joyent/libuv"
|
|
|
|
url "https://github.com/joyent/libuv/archive/v0.10.21.tar.gz"
|
|
|
|
sha1 "883bb240d84e1db11b22b5b0dfdd117ed6bc6318"
|
2013-01-03 15:44:20 +00:00
|
|
|
|
2014-06-27 09:44:02 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "d5791cfcd21caedadd5621de7228a1dc7cd83006" => :mavericks
|
|
|
|
sha1 "69f380f49bbec2d1066e74bfda73aad797395af2" => :mountain_lion
|
|
|
|
sha1 "789d58edabb28ca47bc8072000e935a0c958780e" => :lion
|
|
|
|
end
|
|
|
|
|
2013-12-31 20:06:14 +00:00
|
|
|
head do
|
2014-05-28 12:50:37 +00:00
|
|
|
url "https://github.com/joyent/libuv.git", :branch => "master"
|
2013-12-31 20:06:14 +00:00
|
|
|
|
2014-05-28 12:50:37 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "libtool" => :build
|
2013-12-31 20:06:14 +00:00
|
|
|
end
|
2013-01-03 15:44:20 +00:00
|
|
|
|
2014-05-28 11:36:04 +00:00
|
|
|
devel do
|
2014-08-01 08:45:32 +00:00
|
|
|
url "https://github.com/joyent/libuv/archive/v0.11.27.tar.gz"
|
|
|
|
sha1 'd7f9bd260e03f5d5dd4f58f832eae67f21aa0127'
|
2014-05-28 11:36:04 +00:00
|
|
|
|
2014-06-14 14:26:27 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-05-28 12:50:37 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "libtool" => :build
|
2014-05-28 11:36:04 +00:00
|
|
|
end
|
|
|
|
|
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-12-31 20:06:14 +00:00
|
|
|
if build.stable?
|
2014-05-28 12:50:37 +00:00
|
|
|
system "make", "libuv.dylib"
|
|
|
|
prefix.install "include"
|
|
|
|
lib.install "libuv.dylib"
|
2013-12-31 20:06:14 +00:00
|
|
|
else
|
|
|
|
system "./autogen.sh"
|
2014-05-28 12:50:37 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
2013-12-31 20:06:14 +00:00
|
|
|
end
|
2013-01-03 15:44:20 +00:00
|
|
|
end
|
|
|
|
end
|