1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit go-module bash-completion-r1
7 # The fork with prefetched vendor packages using `go mod vendor`
8 EGO_PN="github.com/g4s8/hugo"
9 GIT_COMMIT="e5194ddedf51ecb3a0c63cf5f5aa82a3be21c8cf"
12 DESCRIPTION="The world's fastest framework for building websites"
13 HOMEPAGE="https://gohugo.io https://github.com/gohugoio/hugo"
14 SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
15 LICENSE="Apache-2.0 Unlicense BSD BSD-2 MPL-2.0"
17 IUSE="+sass +bash-completion"
24 "-X ${EGO_PN}/hugolib.CommitHash=${GIT_COMMIT}" \
25 $(usex sass "-tags extended" "") -o "${S}/bin/hugo" || die
26 bin/hugo gen man || die
27 if use bash-completion ; then
28 bin/hugo gen autocomplete --completionfile hugo || die
34 if use bash-completion ; then
35 dobashcomp hugo || die