Files

57 lines
2.0 KiB
Tcl

# -*- 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/go-task/task 3.50.0 v
go.offline_build no
name go-task
revision 0
homepage https://taskfile.dev
description A task runner / simpler Make alternative written in Go
long_description Task is a task runner / build tool that aims to be simpler \
and easier to use than, for example, GNU Make.
conflicts task
categories devel
installs_libs no
license MIT
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
checksums rmd160 db15a29ef71c5deeb38db93cc140f7994bf6baa3 \
sha256 d026cc8b9a766d623b8d42ae83986268cb2af91927d0ec66015e4053292dce88 \
size 609396 \
build.env-append CGO_ENABLED=0
build.args -o ${worksrcpath}/task \
-ldflags \" \
-s \
-w \
-X ${go.package}/internal/version.version=${version} \
\" \
./cmd/task
destroot {
xinstall -m 0755 ${worksrcpath}/task ${destroot}${prefix}/bin/
# Install bash completion
xinstall -d ${destroot}${prefix}/share/bash-completion/completions
xinstall ${worksrcpath}/completion/bash/task.bash \
${destroot}${prefix}/share/bash-completion/completions/task
# Install fish completion
xinstall -d ${destroot}${prefix}/share/fish/vendor_completions.d
xinstall ${worksrcpath}/completion/fish/task.fish \
${destroot}${prefix}/share/fish/vendor_completions.d/
# Install zsh completion
xinstall -d ${destroot}${prefix}/share/zsh/site-functions
xinstall ${worksrcpath}/completion/zsh/_task \
${destroot}${prefix}/share/zsh/site-functions/
}