blob: aede256f9feec36c70576e8d5b5c9bb96f1d7055 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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
|