3
3
class Sift < Formula
4
4
desc "Fast and powerful open source alternative to grep"
5
5
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 "
8
8
9
9
bottle do
10
10
cellar :any_skip_relocation
@@ -25,26 +25,23 @@ class Sift < Formula
25
25
:revision => "7cef48da76dca6a496faa7fe63e39ed665cbd219"
26
26
end
27
27
28
- go_resource "github.com/svent/sift" do
29
- url "https://github.com/svent/sift.git" ,
30
- :revision => "2d175c4137cad933fa40e0af69020bd658ef5fb3"
31
- end
32
-
33
28
go_resource "golang.org/x/crypto" do
34
29
url "https://go.googlesource.com/crypto.git" ,
35
- :revision => "1f22c0103821b9390939b6776727195525381532 "
30
+ :revision => "3c0d69f1777220f1a1d2ec373cb94a282f03eb42 "
36
31
end
37
32
38
33
def install
39
34
ENV [ "GOPATH" ] = buildpath
40
-
35
+ ( buildpath / "src/github.com/svent/sift" ) . install buildpath . children
41
36
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
44
41
end
45
42
46
43
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 } " )
49
46
end
50
47
end
0 commit comments