1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00
This commit is contained in:
Carlos Alexandro Becker 2017-07-16 12:35:34 -03:00
parent 463711f980
commit 89ec38d28d
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -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 }}