homebrew-core/Formula/libuv.rb

52 lines
1.4 KiB
Ruby
Raw Normal View History

2014-05-28 12:50:37 +00:00
require "formula"
2013-08-06 00:40:00 +00:00
# Note that x.even are stable releases, x.odd are devel releases
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"
bottle do
cellar :any
sha1 "d5791cfcd21caedadd5621de7228a1dc7cd83006" => :mavericks
sha1 "69f380f49bbec2d1066e74bfda73aad797395af2" => :mountain_lion
sha1 "789d58edabb28ca47bc8072000e935a0c958780e" => :lion
end
head do
2014-05-28 12:50:37 +00:00
url "https://github.com/joyent/libuv.git", :branch => "master"
2014-05-28 12:50:37 +00:00
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "libtool" => :build
end
devel do
url "https://github.com/joyent/libuv/archive/v1.0.0-rc1.tar.gz"
2014-09-22 05:21:18 +00:00
sha1 "5be6817b15980b0453b3da3dafb4beea16e90d8f"
version "1.0.0-rc1"
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
end
option :universal
def install
ENV.universal_binary if build.universal?
if build.stable?
2014-05-28 12:50:37 +00:00
system "make", "libuv.dylib"
prefix.install "include"
lib.install "libuv.dylib"
else
system "./autogen.sh"
2014-05-28 12:50:37 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end
end