2013-12-06 21:21:32 +00:00
|
|
|
class Entr < Formula
|
2015-01-12 13:16:16 +00:00
|
|
|
homepage "http://entrproject.org/"
|
2015-03-12 00:51:47 +00:00
|
|
|
url "http://entrproject.org/code/entr-3.1.tar.gz"
|
|
|
|
mirror "https://bitbucket.org/eradman/entr/get/entr-3.1.tar.gz"
|
|
|
|
sha256 "f0f27e8fc610936f5ec72891687fc77e0df0b21172f14e85ff381d2fe5e3aadd"
|
2013-12-06 21:21:32 +00:00
|
|
|
|
2014-03-20 15:07:57 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-03-12 01:21:42 +00:00
|
|
|
sha256 "542fb9bb0afac1abf0cf0ab2453f2306dae13c16f49acfd4f0b9d0bfbb3d4fdd" => :yosemite
|
|
|
|
sha256 "63067a6f69ff0f08e11051122d90c3aa6e6725546541149015d905b14296812f" => :mavericks
|
|
|
|
sha256 "1e5079627fddee8edb06f74153ad6de06d507032467b8ecfc241c28a943b740e" => :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
|