2013-12-06 21:21:32 +00:00
|
|
|
class Entr < Formula
|
2015-01-12 13:16:16 +00:00
|
|
|
homepage "http://entrproject.org/"
|
|
|
|
url "http://entrproject.org/code/entr-3.0.tar.gz"
|
|
|
|
sha1 "e7c5f589b2bce839464052b116a051b4d8f43f23"
|
2013-12-06 21:21:32 +00:00
|
|
|
|
2014-03-20 15:07:57 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-12-20 17:01:54 +00:00
|
|
|
sha1 "da32289bea210e36f6dffe7ef419d5ea8654afb2" => :yosemite
|
|
|
|
sha1 "b6a84ff6bddd4d59b3abf4a706b1a70d19e302f4" => :mavericks
|
|
|
|
sha1 "10422a889ccdc6bcb411d505407c43f6412e8443" => :mountain_lion
|
2014-03-20 15:07:57 +00:00
|
|
|
end
|
|
|
|
|
2013-12-06 21:21:32 +00:00
|
|
|
def install
|
2015-01-12 13:16:16 +00:00
|
|
|
ENV["PREFIX"] = prefix
|
|
|
|
ENV["MANPREFIX"] = man
|
2013-12-06 21:21:32 +00:00
|
|
|
system "./configure"
|
|
|
|
system "make"
|
2015-01-12 13:16:16 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
touch testpath/"test.1"
|
|
|
|
fork do
|
|
|
|
sleep 0.5
|
|
|
|
touch testpath/"test.2"
|
|
|
|
end
|
|
|
|
assert_equal "New File", pipe_output("#{bin}/entr -d echo 'New File'", testpath).strip
|
2013-12-06 21:21:32 +00:00
|
|
|
end
|
|
|
|
end
|