Files
2024-05-14 19:39:03 -04:00

65 lines
1.8 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
github.setup pimterry notes 1.4.0
github.tarball_from archive
revision 0
description \
Simple delightful note taking, with more unix and less lock-in
long_description {*}${description}
categories office
installs_libs no
license MIT
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
supported_archs noarch
platforms any
checksums ${distname}${extract.suffix} \
rmd160 23e1bc5420ea73c4f2f8c75265f2ef96a9ca90b6 \
sha256 0421361d95dd451668101022fac65a18f26814b0d585687a38e162fd3ebba6c2 \
size 762451
depends_build-append \
port:pkgconfig
depends_lib-append port:bash-completion
patchfiles-append patch-Makefile.diff
use_configure no
build {}
destroot.args-append \
PREFIX=${prefix}
pre-destroot {
xinstall -d ${destroot}${prefix}/share/bash-completion/completions/
}
post-destroot {
set fish_comp_path ${destroot}${prefix}/share/fish/vendor_completions.d
xinstall -d ${fish_comp_path}
xinstall -m 0644 ${worksrcpath}/${name}.fish ${fish_comp_path}/
set zsh_comp_path ${destroot}${prefix}/share/zsh/site-functions
xinstall -d ${zsh_comp_path}
xinstall -m 0644 ${worksrcpath}/_${name} ${zsh_comp_path}/
}
notes "
A sample configuration file is available at:
${prefix}/share/notes/examples/config
You can install it to your home directory with the following commands
$ mkdir -p ~/.config/notes
$ cp ${prefix}/share/notes/examples/config ~/.config/notes/config
"