Ticket #49212: Portfile-autojump.diff
File Portfile-autojump.diff, 2.2 KB (added by jpenney (Jason Penney), 9 years ago) |
---|
-
Portfile
old new 5 5 PortGroup github 1.0 6 6 7 7 github.setup wting autojump 22.2.4 release-v 8 revision 1 8 9 categories sysutils 9 10 platforms darwin 10 11 maintainers nomaintainer … … 21 22 depends_run port:python27 22 23 23 24 post-patch { 24 reinplace "s:/etc/profile.d:${prefix}/etc/profile.d:g" ${worksrcpath}/bin/autojump.sh25 25 reinplace "s:/usr/bin/env python:${prefix}/bin/python2.7:g" ${worksrcpath}/bin/autojump 26 26 } 27 27 … … 29 29 30 30 build {} 31 31 32 destroot { 33 xinstall -m 755 -W ${worksrcpath}/bin autojump ${destroot}${prefix}/bin/ 34 xinstall -m 755 -W ${worksrcpath}/docs autojump.1 ${destroot}${prefix}/share/man/man1/ 35 xinstall -d ${destroot}${prefix}/etc/profile.d/ 36 xinstall -m 644 -W ${worksrcpath}/bin autojump.sh autojump.bash autojump.zsh ${destroot}${prefix}/etc/profile.d/ 37 xinstall -d ${destroot}${prefix}/share/zsh/site-functions/ 38 xinstall -m 644 -W ${worksrcpath}/bin _j ${destroot}${prefix}/share/zsh/site-functions/ 39 } 32 destroot.cmd ${prefix}/bin/python2.7 33 destroot.args install.py --force 34 destroot.target {} 35 destroot.destdir --destdir=${destroot}${prefix} --zshshare=${destroot}${prefix}/share/zsh/site-functions 40 36 37 post-destroot { 38 reinplace "s:${destroot}${prefix}:${prefix}:g" ${destroot}${prefix}/etc/profile.d/autojump.sh 39 } 41 40 notes " 42 To use autojump for bash, add the following to the end of your .bash _profile:41 To use autojump for bash, add the following to the end of your .bashrc: 43 42 44 if \[ -f ${prefix}/etc/profile.d/autojump. bash \]; then45 . ${prefix}/etc/profile.d/autojump. bash43 if \[ -f ${prefix}/etc/profile.d/autojump.sh \]; then 44 . ${prefix}/etc/profile.d/autojump.sh 46 45 fi 47 46 48 47 To use autojump for zsh, add the following to the end of your .zshrc: 49 48 50 49 export FPATH=\"\$FPATH:${prefix}/share/zsh/site-functions/\" 51 if \[ -f ${prefix}/etc/profile.d/autojump. zsh \]; then52 . ${prefix}/etc/profile.d/autojump. zsh50 if \[ -f ${prefix}/etc/profile.d/autojump.sh \]; then 51 . ${prefix}/etc/profile.d/autojump.sh 53 52 fi 54 53 55 54 To use zsh tab completion, load compinit in your .zshrc: