homebrew-core/Formula/watchman.rb
Brett Koonce df330f7cbd watchman v2.9.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-10-18 18:04:47 -07:00

30 lines
902 B
Ruby

require 'formula'
class Watchman < Formula
homepage 'https://github.com/facebook/watchman'
head 'https://github.com/facebook/watchman.git'
url 'https://github.com/facebook/watchman/archive/v2.9.1.tar.gz'
sha1 '68d2893abc5c0c2fafeeeb8d632a78e292a531e2'
depends_on :autoconf
depends_on :automake
depends_on 'pkg-config' => :build
depends_on 'pcre'
def install
system "./autogen.sh"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-pcre"
system "make"
system "make install"
end
def caveats; <<-EOS.undent
To increase file limits add 'kern.maxfiles=10485760' and 'kern.maxfilesperproc=10485760'
to /etc/sysctl.conf (use 'sysctl -w' to do so immediately).
See https://github.com/facebook/watchman#max-os-file-descriptor-limits
EOS
end
end