homebrew-core/Formula/entr.rb
Xu Cheng ead88b36d0 entr: add test and modernize
Closes Homebrew/homebrew#35780.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-12 14:25:57 +00:00

29 lines
749 B
Ruby

class Entr < Formula
homepage "http://entrproject.org/"
url "http://entrproject.org/code/entr-3.0.tar.gz"
sha1 "e7c5f589b2bce839464052b116a051b4d8f43f23"
bottle do
cellar :any
sha1 "da32289bea210e36f6dffe7ef419d5ea8654afb2" => :yosemite
sha1 "b6a84ff6bddd4d59b3abf4a706b1a70d19e302f4" => :mavericks
sha1 "10422a889ccdc6bcb411d505407c43f6412e8443" => :mountain_lion
end
def install
ENV["PREFIX"] = prefix
ENV["MANPREFIX"] = man
system "./configure"
system "make"
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
end
end