Ignore:
Timestamp:
Nov 15, 2015, 5:47:14 PM (4 years ago)
Author:
mk@…
Message:

autojump: fix broken port (see #49212)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/autojump/Portfile

    r140911 r142561  
    66
    77github.setup        wting autojump 22.2.4 release-v
     8revision            1
    89categories          sysutils
    910platforms           darwin
     
    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}
     
    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/
     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
     36
     37post-destroot {
     38    reinplace "s:${destroot}${prefix}:${prefix}:g" ${destroot}${prefix}/etc/profile.d/autojump.sh
    3939}
     40notes "
     41To use autojump for bash, add the following to the end of your .bashrc:
    4042
    41 notes "
    42 To use autojump for bash, add the following to the end of your .bash_profile:
    43 
    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
     
    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
Note: See TracChangeset for help on using the changeset viewer.