Ticket #29569: Portfile

File Portfile, 1.8 KB (added by johnny.kuan@…, 13 years ago)

autojump portfile

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