Ticket #49212: Portfile-autojump.diff

File Portfile-autojump.diff, 2.2 KB (added by jpenney (Jason Penney), 9 years ago)

patch for autojump Portfile

  • Portfile

    old new  
    55PortGroup           github 1.0
    66
    77github.setup        wting autojump 22.2.4 release-v
     8revision            1
    89categories          sysutils
    910platforms           darwin
    1011maintainers         nomaintainer
     
    2122depends_run         port:python27
    2223
    2324post-patch {
    24     reinplace "s:/etc/profile.d:${prefix}/etc/profile.d:g" ${worksrcpath}/bin/autojump.sh
    2525    reinplace "s:/usr/bin/env python:${prefix}/bin/python2.7:g" ${worksrcpath}/bin/autojump
    2626}
    2727
     
    2929
    3030build {}
    3131
    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 }
     32destroot.cmd    ${prefix}/bin/python2.7
     33destroot.args   install.py --force
     34destroot.target {}
     35destroot.destdir --destdir=${destroot}${prefix} --zshshare=${destroot}${prefix}/share/zsh/site-functions
    4036
     37post-destroot {
     38    reinplace "s:${destroot}${prefix}:${prefix}:g" ${destroot}${prefix}/etc/profile.d/autojump.sh
     39}
    4140notes "
    42 To use autojump for bash, add the following to the end of your .bash_profile:
     41To use autojump for bash, add the following to the end of your .bashrc:
    4342
    44 if \[ -f ${prefix}/etc/profile.d/autojump.bash \]; then
    45     . ${prefix}/etc/profile.d/autojump.bash
     43if \[ -f ${prefix}/etc/profile.d/autojump.sh \]; then
     44    . ${prefix}/etc/profile.d/autojump.sh
    4645fi
    4746
    4847To use autojump for zsh, add the following to the end of your .zshrc:
    4948
    5049export FPATH=\"\$FPATH:${prefix}/share/zsh/site-functions/\"
    51 if \[ -f ${prefix}/etc/profile.d/autojump.zsh \]; then
    52     . ${prefix}/etc/profile.d/autojump.zsh
     50if \[ -f ${prefix}/etc/profile.d/autojump.sh \]; then
     51    . ${prefix}/etc/profile.d/autojump.sh
    5352fi
    5453
    5554To use zsh tab completion, load compinit in your .zshrc: