source: trunk/dports/sysutils/cdargs/Portfile

Last change on this file was 76597, checked in by jmr@…, 7 years ago

cdargs: add patch for zsh compatibility (#23239)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 76597 2011-03-01 19:30:15Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            cdargs
6version         1.35
7revision        1
8categories      sysutils
9maintainers     entropy.ch:reg.macports
10description     Bookmarks for the shell
11long_description \
12    CDargs heavily enhances the navigation of the common unix \
13    file-system inside the shell. It plugs into the shell built-in \
14    cd-command (via a shell function or an alias) and thus adds \
15    bookmarks and a browser to it. It enables you to move to a very \
16    distant place in the file-system with just a few keystrokes. \
17    This is the kind of thing that power shell users invent when even \
18    the almighty and wonderful TAB-completion is too much typing.
19
20homepage        http://www.skamphausen.de/cgi-bin/ska/CDargs
21
22platforms       darwin
23
24master_sites    http://www.skamphausen.de/downloads/cdargs/
25
26checksums       md5 50be618d67f0b9f2439526193c69c567 \
27                sha1 20017d09d3259fcd1385754554a3e17a1c975f9b \
28                rmd160 44cbe35281ab29fa48149792c34afa61d117e33d
29
30configure.args  --mandir=${prefix}/share/man
31
32patchfiles      patch-contrib-cdargs-bash.sh.diff
33
34post-destroot {
35    # Install helper files not installed by the Makefile
36    xinstall -d ${destroot}${prefix}/etc/profile.d
37    xinstall -m 644 -W ${worksrcpath}/contrib \
38        cdargs-bash.sh \
39        cdargs-tcsh.csh \
40        ${destroot}${prefix}/etc/profile.d
41}
42
43post-activate {
44    ui_msg "
45To use ${name}, you need to source it from your shell's startup file.
46
47If you're using bash or zsh, add these lines to your bash startup file:
48
49    if \[ -f ${prefix}/etc/profile.d/cdargs-bash.sh \]; then
50        source ${prefix}/etc/profile.d/cdargs-bash.sh
51    fi
52
53If you're using tcsh, add these lines to your tcsh startup file:
54
55    if ( -f ${prefix}/etc/profile.d/cdargs-tcsh.csh ) then
56        source ${prefix}/etc/profile.d/cdargs-tcsh.csh
57    endif
58"
59}
60
61livecheck.url   [lindex ${master_sites} 0]?N=D
62livecheck.regex ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.