aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/readline-incdec/Portfile
blob: 11b49d4aecf4cc526dc456eae7046b13c88901f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- 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
"