diff --git a/pipeline/brew/brew.go b/pipeline/brew/brew.go index 831901e9f..99cca0e7f 100644 --- a/pipeline/brew/brew.go +++ b/pipeline/brew/brew.go @@ -30,12 +30,14 @@ const formula = `class {{ .Name }} < Formula version "{{ .Version }}" sha256 "{{ .SHA256 }}" + {{- if .Dependencies }} {{ range $index, $element := .Dependencies }} depends_on "{{ . }}" {{- end }} {{- end }} + {{- if .Conflicts }} {{ range $index, $element := .Conflicts }} conflicts_with "{{ . }}" @@ -48,12 +50,14 @@ const formula = `class {{ .Name }} < Formula {{- end }} end + {{- if .Caveats }} def caveats "{{ .Caveats }}" end {{- end }} + {{- if .Plist }} def plist; <<-EOS.undent {{ .Plist }} @@ -61,6 +65,7 @@ const formula = `class {{ .Name }} < Formula end {{- end }} + {{- if .Test }} def test {{ .Test }}