diff options
author | George Hartzell <hartzell@alerce.com> | 2019-01-16 04:11:15 -0800 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2019-01-16 13:11:15 +0100 |
commit | 1f9fe02309c7fc52197458cd50b8b93926964f76 (patch) | |
tree | 7f49c25ad0970b34ddee92eeeec18b9ea48fcc3e | |
parent | 01bd67eb4366f174011a419c4e6a3d16bc4490ff (diff) | |
download | spack-1f9fe02309c7fc52197458cd50b8b93926964f76.tar.gz spack-1f9fe02309c7fc52197458cd50b8b93926964f76.tar.bz2 spack-1f9fe02309c7fc52197458cd50b8b93926964f76.tar.xz spack-1f9fe02309c7fc52197458cd50b8b93926964f76.zip |
Add package for Hugo (static website generator) (#10358)
-rw-r--r-- | var/spack/repos/builtin/packages/hugo/package.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hugo/package.py b/var/spack/repos/builtin/packages/hugo/package.py new file mode 100644 index 0000000000..9e35f37cf8 --- /dev/null +++ b/var/spack/repos/builtin/packages/hugo/package.py @@ -0,0 +1,26 @@ +# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * +from spack.util.executable import which + + +class Hugo(Package): + """The world's fastest framework for building websites.""" + + homepage = "https://gohugo.io" + url = "https://github.com/gohugoio/hugo/archive/v0.53.tar.gz" + + version('0.53', sha256='48e65a33d3b10527101d13c354538379d9df698e5c38f60f4660386f4232e65c') + + # Uses go modules. + # See https://gohugo.io/getting-started/installing/#fetch-from-github + depends_on('go@1.11:', when='@0.48:', type='build') + + def install(self, spec, prefix): + go = which('go') + go('build') + mkdir(prefix.bin) + install('hugo', prefix.bin) |