# -*- 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 xwmx nb 7.15.0 github.tarball_from archive revision 0 homepage https://xwmx.github.io/nb/ description \ ${name} is a command line and local web note‑taking, bookmarking, \ archiving, and knowledge base application. long_description \ {*}${description} ${name} creates notes in text-based formats like \ Markdown, Org, LaTeX, and AsciiDoc, can work with files in any format, \ can import and export notes to many document formats, and can create \ private, password-protected encrypted notes and bookmarks. With ${name}, \ you can write notes using Vim, Emacs, VS Code, Sublime Text, and any \ other text editor you like, as well as terminal and GUI web browsers. \ ${name} works in any standard Linux / Unix environment, including macOS \ and Windows via WSL. Optional dependencies can be installed to enhance \ functionality, but ${name} works great without them. categories office platforms any license AGPL-3 maintainers {gmail.com:herby.gillot @herbygillot} \ openmaintainer supported_archs noarch checksums rmd160 47b2d47be286045137c4983e462714e3367c9931 \ sha256 4168df4396ecea1a6fbc6376e8269ee93f0c7f15bcc57256d811d583db28f267 \ size 752490 depends_lib-append port:bash depends_run-append bin:git:git use_configure no patch { foreach script {nb bin/bookmark} { reinplace "s|#!/usr/bin/env bash|#!${prefix}/bin/bash|" \ ${worksrcpath}/${script} } } build {} destroot { xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/ xinstall -m 0755 ${worksrcpath}/bin/bookmark ${destroot}${prefix}/bin/ xinstall -m 0755 ${worksrcpath}/bin/notes ${destroot}${prefix}/bin/ xinstall -d ${destroot}${prefix}/share/bash-completion/completions copy ${worksrcpath}/etc/${name}-completion.bash \ ${destroot}${prefix}/share/bash-completion/completions/${name} xinstall -d ${destroot}${prefix}/share/fish/vendor_completions.d copy ${worksrcpath}/etc/${name}-completion.fish \ ${destroot}${prefix}/share/fish/vendor_completions.d/${name}.fish xinstall -d ${destroot}${prefix}/share/zsh/site-functions copy ${worksrcpath}/etc/${name}-completion.zsh \ ${destroot}${prefix}/share/zsh/site-functions/_${name} }