# -*- 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           golang 1.0

go.setup            github.com/gsamokovarov/jump 0.67.0 v
revision            0

homepage            http://gsamokovarov.com/jump

description         Jump helps you navigate faster by learning your habits.

long_description    Jump integrates with your shell and learns about your \
                    navigational habits by keeping track of the directories \
                    you visit. It gives you the most visited directory for \
                    the shortest search term you type.

categories          sysutils
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

build.cmd           make
build.target        build

destroot {
    xinstall -m 0755 ${worksrcpath}/${name}     ${destroot}${prefix}/bin/
    xinstall -m 0644 ${worksrcpath}/man/j.1     ${destroot}${prefix}/share/man/man1/
    xinstall -m 0644 ${worksrcpath}/man/jump.1  ${destroot}${prefix}/share/man/man1/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  6fd30efe4f78b7b247d66fb177bcdd91408c2fa4 \
                        sha256  b54bc4d1173be7ad5e4866f3b76f02c59506cc66b05fafe4aa3854cad1d2d531 \
                        size    1883692

go.vendors          github.com/gsamokovarov/assert \
                        lock    8cd8ab63a335 \
                        rmd160  0456b0abe2e2f86dd07703a190a3b1cd20202f32 \
                        sha256  241971bf21389fe93795eb10a15988097370b1cc0cf47d52b8be0902ad57918e \
                        size    3407

notes "
${name} needs to be integrated with the shell.  For bash or zsh, add the following to your
~/.bashrc, ~/.bash_profile or ~/.zshrc:

    eval \"\$(jump shell)\"

For fish, add the folloing to your ~/.config/fish/config.fish:

    status --is-interactive; and source (jump shell fish | psub)
"
