hugo: add v0.106.0 (#34023)

This commit is contained in:
Alec Scott 2022-11-20 21:22:32 -06:00 committed by GitHub
parent 0706919b09
commit f8a6e3ad90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,9 @@ class Hugo(Package):
executables = ["^hugo$"]
maintainers = ["alecbcs"]
version("0.106.0", sha256="9219434beb51466487b9f8518edcbc671027c1998e5a5820d76d517e1dfbd96a")
version("0.74.3", sha256="9b296fa0396c20956fa6a1f7afadaa78739af62c277b6c0cfae79a91b0fe823f")
version("0.68.3", sha256="38e743605e45e3aafd9563feb9e78477e72d79535ce83b56b243ff991d3a2b6e")
version("0.53", sha256="48e65a33d3b10527101d13c354538379d9df698e5c38f60f4660386f4232e65c")
@ -23,6 +26,7 @@ class Hugo(Package):
# Uses go modules.
# See https://gohugo.io/getting-started/installing/#fetch-from-github
depends_on("go@1.11:", when="@0.48:", type="build")
depends_on("go@1.18:", when="@0.106:", type="build")
variant("extended", default=False, description="Enable extended features")
@ -40,7 +44,6 @@ def install(self, spec, prefix):
if self.spec.satisfies("+extended"):
go_args.extend(["--tags", "extended"])
go = which("go")
go(*go_args)
mkdir(prefix.bin)
mkdirp(prefix.bin)
install("hugo", prefix.bin)