Files
2025-10-27 04:14:26 -04:00

59 lines
2.2 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 github 1.0
PortGroup cmake 1.1
github.setup GothenburgBitFactory taskwarrior 3.4.2 v
github.tarball_from releases
revision 0
name task
categories office
description Taskwarrior is a command-line task management tool
long_description Taskwarrior is a command-line todo list manager \
with an interactive interface, GTD features, color themes, \
data synchronization, dependencies, custom reports, and \
charts.
license MIT
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
homepage https://taskwarrior.org/
distname task-${github.version}
checksums rmd160 d489d26685dfdbe5bd71e2dd69d046af82e96178 \
sha256 d302761fcd1268e4a5a545613a2b68c61abd50c0bcaade3b3e68d728dd02e716 \
size 959873
depends_build-append \
port:cargo
depends_lib-append path:lib/pkgconfig/gnutls.pc:gnutls
compiler.cxx_standard 2017
post-destroot {
# Install bash completions
xinstall -d ${destroot}${prefix}/share/bash-completion/completions
xinstall ${worksrcpath}/scripts/bash/task.sh ${destroot}${prefix}/share/bash-completion/completions/task
# Install zsh completions
set site-functions ${destroot}${prefix}/share/zsh/site-functions
xinstall -d ${site-functions}
xinstall ${worksrcpath}/scripts/zsh/_task ${site-functions}/_task
# Install fish completion
set vendor_completions.d ${destroot}${prefix}/share/fish/vendor_completions.d
xinstall -d ${vendor_completions.d}
xinstall ${worksrcpath}/scripts/fish/task.fish ${vendor_completions.d}
# Install vim runtime files
set vim-files ${destroot}${prefix}/share/vim
xinstall -d ${vim-files}
copy ${worksrcpath}/scripts/vim ${vim-files}/vimfiles
# Delete README with install instructions due to its generic filename
delete ${vim-files}/vimfiles/README
}