# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup golang 1.0 go.setup github.com/gohugoio/hugo 0.127.0 v go.offline_build no github.tarball_from archive revision 0 checksums rmd160 26bcbf9ba0080de6b0dddc123a1c030ac8bc172a \ sha256 549c7ebdf2ee6b3107ea10a9fbd9932a91bb3f30f7e8839245f6d8e318aca88c \ size 21132608 categories www installs_libs no license Apache-2 maintainers {isi.edu:calvin @cardi} \ {gmail.com:herby.gillot @herbygillot} \ openmaintainer description A Fast and Flexible Static Site Generator built with love in GoLang long_description {*}${description} build.pre_args-append \ -ldflags \"-X ${go.package}/common/hugo.vendorInfo=macports\" # build hugo extended with Sass/SCSS support by default build.args-append --tags extended depends_run-append path:etc/bash_completion:bash-completion destroot { xinstall -d ${destroot}${prefix}/bin xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name} } post-destroot { # generate man pages then install them system -W ${worksrcpath} "${worksrcpath}/${name} gen man" xinstall -d -m 0755 ${destroot}${prefix}/share/man/man1 xinstall -m 0644 {*}[glob ${worksrcpath}/man/*.1] ${destroot}${prefix}/share/man/man1/ # generate bash completion then install them system -W ${worksrcpath} "${worksrcpath}/${name} completion bash > hugo.sh" xinstall -d ${destroot}${prefix}/share/bash-completion/completions/ xinstall -m 0644 ${worksrcpath}/hugo.sh ${destroot}${prefix}/share/bash-completion/completions/${name} # generation fish completion then install them system -W ${worksrcpath} "${worksrcpath}/${name} completion fish > hugo.fish" xinstall -d ${destroot}${prefix}/share/fish/vendor_completions.d/ xinstall -m 644 ${worksrcpath}/hugo.fish ${destroot}${prefix}/share/fish/vendor_completions.d/ # generation zsh completion then install them system -W ${worksrcpath} "${worksrcpath}/${name} completion zsh > _hugo" xinstall -d ${destroot}${prefix}/share/zsh/site-functions/ xinstall -m 644 ${worksrcpath}/_hugo ${destroot}${prefix}/share/zsh/site-functions/ }