mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
template
This commit is contained in:
parent
463711f980
commit
89ec38d28d
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user