# -*- 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 # $Id: Portfile 105745 2013-05-04 09:42:45Z ryandesign@macports.org $ PortSystem 1.0 PortGroup github 1.0 github.setup joelthelion autojump 21.5.8 release-v categories sysutils platforms darwin maintainers gmail.com:johnny.kuan license GPL-3+ supported_archs noarch description a cd command that learns long_description ${name} is ${description}. checksums rmd160 aec113b3663da4c420ceb3efaa54394f80dcbb03 \ sha256 e70973cd4624398f186da112459b30e2430f2144f6f0535d06d219e502d22bbe depends_run port:python27 post-patch { reinplace "s:/etc/profile.d:${prefix}/etc/profile.d:g" ${worksrcpath}/bin/autojump.sh reinplace "s:/usr/bin/env python:${prefix}/bin/python2.7:g" ${worksrcpath}/bin/autojump } use_configure no build {} destroot { xinstall -m 755 -W ${worksrcpath}/bin autojump ${destroot}${prefix}/bin/ xinstall -m 755 -W ${worksrcpath}/docs autojump.1 ${destroot}${prefix}/share/man/man1/ xinstall -d ${destroot}${prefix}/etc/profile.d/ xinstall -m 644 -W ${worksrcpath}/bin autojump.sh autojump.bash autojump.zsh ${destroot}${prefix}/etc/profile.d/ xinstall -d ${destroot}${prefix}/share/zsh/site-functions/ xinstall -m 644 -W ${worksrcpath}/bin _j ${destroot}${prefix}/share/zsh/site-functions/ } notes " To use autojump for bash, add the following to the end of your .bash_profile: if \[ -f ${prefix}/etc/profile.d/autojump.bash \]; then . ${prefix}/etc/profile.d/autojump.bash fi To use autojump for zsh, add the following to the end of your .zshrc: export FPATH=\"\$FPATH:${prefix}/share/zsh/site-functions/\" if \[ -f ${prefix}/etc/profile.d/autojump.zsh \]; then . ${prefix}/etc/profile.d/autojump.zsh fi To use zsh tab completion, load compinit in your .zshrc: autoload -U compinit; compinit "