Skip to content

Commit ad1bfc8

Browse files
committed
sift 0.9.0
Closes #6184. Signed-off-by: ilovezfs <[email protected]>
1 parent 2dec1f4 commit ad1bfc8

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

Formula/sift.rb

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
class Sift < Formula
44
desc "Fast and powerful open source alternative to grep"
55
homepage "https://sift-tool.org"
6-
url "https://github.com/svent/sift/archive/v0.8.0.tar.gz"
7-
sha256 "8686e560771392dde526b12b684015c5b1ca52089119011342f8073513c40751"
6+
url "https://github.com/svent/sift/archive/v0.9.0.tar.gz"
7+
sha256 "bbbd5c472c36b78896cd7ae673749d3943621a6d5523d47973ed2fc6800ae4c8"
88

99
bottle do
1010
cellar :any_skip_relocation
@@ -25,26 +25,23 @@ class Sift < Formula
2525
:revision => "7cef48da76dca6a496faa7fe63e39ed665cbd219"
2626
end
2727

28-
go_resource "github.com/svent/sift" do
29-
url "https://github.com/svent/sift.git",
30-
:revision => "2d175c4137cad933fa40e0af69020bd658ef5fb3"
31-
end
32-
3328
go_resource "golang.org/x/crypto" do
3429
url "https://go.googlesource.com/crypto.git",
35-
:revision => "1f22c0103821b9390939b6776727195525381532"
30+
:revision => "3c0d69f1777220f1a1d2ec373cb94a282f03eb42"
3631
end
3732

3833
def install
3934
ENV["GOPATH"] = buildpath
40-
35+
(buildpath/"src/github.com/svent/sift").install buildpath.children
4136
Language::Go.stage_deps resources, buildpath/"src"
42-
43-
system "go", "build", "-o", bin/"sift"
37+
cd "src/github.com/svent/sift" do
38+
system "go", "build", "-o", bin/"sift"
39+
prefix.install_metafiles
40+
end
4441
end
4542

4643
test do
47-
(testpath/"test.txt").write "where is foo"
48-
assert_match(/where is foo/, shell_output("#{bin/"sift"} foo #{testpath}"))
44+
(testpath/"test.txt").write("where is foo\n")
45+
assert_match "where is foo", shell_output("#{bin}/sift foo #{testpath}")
4946
end
5047
end

0 commit comments

Comments
 (0)