# -*- 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.42 v set git_commit c4a03f2 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 eb4c76c68d879ff97056c91a19197fc5adb94c0a \ sha256 3b4cca2ebc76931d8464a2aef1590f989d03fa49ae04ed7072330ce298bf4d65 \ size 223113 # 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}" }