2014-03-17 13:26:01 +00:00
|
|
|
class Fsw < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "File change monitor with multiple backends"
|
2015-07-10 20:54:51 +00:00
|
|
|
homepage "https://emcrisostomo.github.io/fsw/"
|
2015-01-27 13:29:26 +00:00
|
|
|
url "https://github.com/emcrisostomo/fsw/releases/download/1.3.9/fsw-1.3.9.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "9222f76f99ef9841dc937a8f23b529f635ad70b0f004b9dd4afb35c1b0d8f0ff"
|
2014-03-17 13:26:01 +00:00
|
|
|
|
2015-01-27 13:43:25 +00:00
|
|
|
bottle do
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "8f2bef3c6a8c71c9eaf476cfa035c4c5f4a7ade3792260978d6eb43d68c36915" => :yosemite
|
|
|
|
sha256 "e6154369d0f4383524024c58a87a7903545db37244b7311bcb4ffda2ecb0db2d" => :mavericks
|
|
|
|
sha256 "365500d0a239aee9df902e24d5cefba97ab4a07c2d7976f58a1383bbe6f490a8" => :mountain_lion
|
2015-01-27 13:43:25 +00:00
|
|
|
end
|
|
|
|
|
2014-03-17 13:26:01 +00:00
|
|
|
def install
|
2014-04-20 17:56:36 +00:00
|
|
|
ENV.append "CXXFLAGS", "-stdlib=libc++"
|
2014-03-17 13:26:01 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
io = IO.popen("fsw test")
|
2015-01-27 13:29:26 +00:00
|
|
|
(testpath/"test").write("foo")
|
2014-03-17 13:26:01 +00:00
|
|
|
assert_equal File.expand_path("test"), io.gets.strip
|
|
|
|
Process.kill "INT", io.pid
|
|
|
|
Process.wait io.pid
|
|
|
|
end
|
|
|
|
end
|