diff options
| author | Adam Vandenberg | 2014-05-28 05:50:37 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-28 05:51:36 -0700 |
| commit | e91e19666e228d7942b31f8bc245f11f69727807 (patch) | |
| tree | b0cbaedafb965603b4449f37b2e0593a55ca54ef /Library/Formula/libuv.rb | |
| parent | 32c326b052c2e7ccf84f43091f2fc413e3492bc6 (diff) | |
| download | homebrew-e91e19666e228d7942b31f8bc245f11f69727807.tar.bz2 | |
libuv: style update
Diffstat (limited to 'Library/Formula/libuv.rb')
| -rw-r--r-- | Library/Formula/libuv.rb | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/Library/Formula/libuv.rb b/Library/Formula/libuv.rb index 6f066455f..0ea883476 100644 --- a/Library/Formula/libuv.rb +++ b/Library/Formula/libuv.rb @@ -1,26 +1,26 @@ -require 'formula' +require "formula" # Note that x.even are stable releases, x.odd are devel releases class Libuv < Formula - homepage 'https://github.com/joyent/libuv' - url 'https://github.com/joyent/libuv/archive/v0.10.21.tar.gz' - sha1 '883bb240d84e1db11b22b5b0dfdd117ed6bc6318' + homepage "https://github.com/joyent/libuv" + url "https://github.com/joyent/libuv/archive/v0.10.21.tar.gz" + sha1 "883bb240d84e1db11b22b5b0dfdd117ed6bc6318" head do - url 'https://github.com/joyent/libuv.git', :branch => 'master' + url "https://github.com/joyent/libuv.git", :branch => "master" - depends_on :automake - depends_on :autoconf - depends_on :libtool + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "libtool" => :build end devel do - url 'https://github.com/joyent/libuv/archive/v0.11.25.tar.gz' - sha1 '04ba0c1de5c26f3d065fcb1a4f18f6528b67294c' + url "https://github.com/joyent/libuv/archive/v0.11.25.tar.gz" + sha1 "04ba0c1de5c26f3d065fcb1a4f18f6528b67294c" - depends_on :automake - depends_on :autoconf - depends_on :libtool + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "libtool" => :build end option :universal @@ -29,13 +29,14 @@ class Libuv < Formula ENV.universal_binary if build.universal? if build.stable? - system 'make', 'libuv.dylib' - include.install Dir['include/*'] - lib.install 'libuv.dylib' + system "make", "libuv.dylib" + prefix.install "include" + lib.install "libuv.dylib" else system "./autogen.sh" - system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" - system "make install" + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install" end end end |
