1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name autojump |
---|
7 | version 15 |
---|
8 | categories sysutils |
---|
9 | platforms darwin |
---|
10 | maintainers jkuan |
---|
11 | description A cd command that learns |
---|
12 | long_description \ |
---|
13 | A cd command that learns |
---|
14 | |
---|
15 | homepage http://github.com/joelthelion/autojump |
---|
16 | master_sites http://cloud.github.com/downloads/joelthelion/autojump |
---|
17 | distname autojump_v${version} |
---|
18 | |
---|
19 | checksums md5 a4a36d774ccb27cbcc9dcc6e2528632b \ |
---|
20 | sha1 aba6ba8dc8d5624fc660a947f835f731e594969f \ |
---|
21 | rmd160 f479dee936fa4ffc746fcffacf33fa2602673503 |
---|
22 | |
---|
23 | post-patch { |
---|
24 | reinplace "s:/etc/profile.d:${prefix}/etc/profile.d:g" \ |
---|
25 | ${worksrcpath}/autojump.sh |
---|
26 | } |
---|
27 | |
---|
28 | use_configure off |
---|
29 | build {} |
---|
30 | |
---|
31 | destroot { |
---|
32 | xinstall -m 755 -W ${worksrcpath} autojump ${destroot}${prefix}/bin/ |
---|
33 | xinstall -m 755 -W ${worksrcpath} autojump.1 ${destroot}${prefix}/share/man/man1/ |
---|
34 | xinstall -d ${destroot}${prefix}/etc/profile.d/ |
---|
35 | xinstall -m 644 -W ${worksrcpath} autojump.sh ${destroot}${prefix}/etc/profile.d/ |
---|
36 | xinstall -m 644 -W ${worksrcpath} autojump.bash ${destroot}${prefix}/etc/profile.d/ |
---|
37 | xinstall -m 644 -W ${worksrcpath} autojump.zsh ${destroot}${prefix}/etc/profile.d/ |
---|
38 | xinstall -d ${destroot}${prefix}/share/zsh/site-functions/ |
---|
39 | xinstall -m 644 -W ${worksrcpath} _j ${destroot}${prefix}/share/zsh/site-functions/ |
---|
40 | } |
---|
41 | |
---|
42 | notes " |
---|
43 | To use autojump for bash, add the following to the end of your .bash_profile: |
---|
44 | if \[ -f ${prefix}/etc/profile.d/autojump.sh \]; then |
---|
45 | . ${prefix}/etc/profile.d/autojump.sh |
---|
46 | fi |
---|
47 | |
---|
48 | To use autojump for zsh, add the following to the end of your .zshrc: |
---|
49 | export FPATH=\"\$FPATH:${prefix}/share/zsh/site-functions/\" |
---|
50 | if \[ -f ${prefix}/etc/profile.d/autojump.sh \]; then |
---|
51 | . ${prefix}/etc/profile.d/autojump.sh |
---|
52 | fi |
---|
53 | " |
---|