# -*- 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/jenkins-zh/jenkins-cli 0.0.44 v set git_commit 4a589b1 categories devel license MIT maintainers {@harens harens} openmaintainer description Allows you manage your Jenkins as an easy way long_description Jenkins CLI allows you manage your Jenkins in an easy way. \ No matter if you're a plugin developer, administrator or just a \ regular user, it is made for you! # Name of the executable set short jcli homepage https://${short}.jenkins-zh.cn checksums ${distname}${extract.suffix} \ rmd160 0a2153716e9d31d4824027a668860b21f650284f \ sha256 1a28cbf9824dccb7775eb3010a577122b1481550487af4c6fbe0022fac07ba76 \ size 221672 # Allows for version number, last commit and build date in `jcli version` # Suppress build date for reproducible builds set build_date SUPPRESSED set cobra_extension github.com/linuxsuren/cobra-extension/version # Issues with vendored deps: allow fetching deps at build time go.offline_build no build.args -ldflags \ '-X ${cobra_extension}.date=${build_date} \ -X ${cobra_extension}.commit=${git_commit} \ -X ${cobra_extension}.version=${version}' destroot { xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${short} } post-destroot { copy ${worksrcpath}/docs/book \ ${destroot}${prefix}/share/doc/${name} # Docs files that aren't in the books dir foreach f {CONTRIBUTING.md LICENSE README-zh.md} { copy ${worksrcpath}/${f} ${destroot}${prefix}/share/doc/${name} } # bash completion set bash_completion_dir ${destroot}${prefix}/etc/bash_completion.d xinstall -d ${bash_completion_dir} system -W ${worksrcpath} "${worksrcpath}/${name} completion --type bash > ${bash_completion_dir}/${short}" # zsh completion set zsh_completion_dir ${destroot}${prefix}/share/zsh/site-functions xinstall -d ${zsh_completion_dir} system -W ${worksrcpath} "${worksrcpath}/${name} completion --type zsh > ${zsh_completion_dir}/_${short}" }