# -*- 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.51.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  b2df3801b567067f8728ab29b77b233c65099e5a \
                        sha256  ce297cada71e1dca33cd7759e55b28518d2bf317cdced1f3b3f79f40fa1958b5 \
                        size    1882937

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)
"