# -*- 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 # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. PortSystem 1.0 PortGroup github 1.0 github.setup teddywing readline-incdec 0.0.2 v github.tarball_from archive categories sysutils platforms darwin license GPL-3+ maintainers @teddywing description increment and decrement numbers on the command line long_description Readline bindings to increment and decrement numbers \ on the command line checksums rmd160 8a3aca30f3e2e30141746e050501f15440c47e34 \ sha256 a984f4a29fb4fc15e9d6724a77c693ca73850385e931317e9903816fe0d7efef \ size 339864 use_configure no build {} destroot { xinstall -d ${destroot}${prefix}/share/${name} xinstall -m 644 ${worksrcpath}/incdec.bash \ ${worksrcpath}/incdec-bindings.bash \ ${destroot}${prefix}/share/readline-incdec/ xinstall -m 644 ${worksrcpath}/doc/incdec.7 \ ${destroot}${prefix}/share/man/man7 } notes " The Incdec shell functions must be sourced in order to use them. Add the following line to your Bash profile: source ${prefix}/share/${name}/incdec.bash To enable the default bindings, also add: source ${prefix}/share/${name}/incdec-bindings.bash "