# -*- 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/homeport/dyff 1.9.0 v go.offline_build no github.tarball_from archive revision 0 description diff tool for YAML files, and sometimes JSON long_description {*}${description} categories textproc installs_libs no license MIT maintainers {gmail.com:herby.gillot @herbygillot} \ openmaintainer checksums rmd160 e21595d630c37e5947f235c85be6e90d9b4fdce8 \ sha256 3a6842d46d2cd71b24d7e11096786da4d7574535674428975bd4d2cad0e6e0b7 \ size 1213298 build.pre_args-append \ -ldflags \"-X ${go.package}/internal/cmd.version=${version}\" build.args ./cmd/${name} post-build { # Generate completion files file mkdir ${worksrcpath}/completion foreach _shell {bash fish zsh} { system -W ${worksrcpath} \ "./${name} completion ${_shell} > ./completion/${name}.${_shell}" } } destroot { xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/ xinstall -d ${destroot}${prefix}/share/bash-completion/completions copy ${worksrcpath}/completion/${name}.bash \ ${destroot}${prefix}/share/bash-completion/completions/${name} xinstall -d ${destroot}${prefix}/share/fish/vendor_completions.d copy ${worksrcpath}/completion/${name}.fish \ ${destroot}${prefix}/share/fish/vendor_completions.d/ xinstall -d ${destroot}${prefix}/share/zsh/site-functions copy ${worksrcpath}/completion/${name}.zsh \ ${destroot}${prefix}/share/zsh/site-functions/_${name} }