source: trunk/dports/sysutils/bash-completion/Portfile @ 34334

Last change on this file since 34334 was 34334, checked in by raimue@…, 12 years ago

sysutils/bash-completion:
Add livecheck (requires r34331)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 34334 2008-02-21 19:11:36Z raimue@macports.org $
2
3PortSystem      1.0
4
5name            bash-completion
6version         20060301
7revision        1
8categories      sysutils
9platforms       darwin
10maintainers     raimue
11description     Programmable bash{2,3} completions.
12long_description \
13    Programmable completion library for bash
14
15homepage        http://www.caliban.org/bash/index.shtml
16master_sites    http://www.caliban.org/files/bash/
17checksums       md5 ed95a89f57357a42b8e4eb95487bf9d0 \
18                sha1 19521f0fde4d9d06401ccd26ed4ec33d7d3aa23d
19
20use_bzip2       yes
21
22use_configure   no
23build           {}
24
25worksrcdir      [strsed $name "s/-/_/"]
26
27destroot {
28    reinplace "s:/etc/bash_completion:${prefix}/etc/bash_completion:g" \
29        ${worksrcpath}/bash_completion
30    xinstall -d ${destroot}${prefix}/etc/bash_completion.d
31    xinstall -m 755 ${worksrcpath}/bash_completion ${destroot}${prefix}/etc/
32    xinstall -m 644 ${filespath}/port.cmd ${destroot}${prefix}/etc/bash_completion.d/port
33}
34destroot.keepdirs   ${destroot}${prefix}/etc/
35
36post-install {
37    ui_msg  "Set this at the *end* your .bash_profile:"
38    ui_msg  ""
39    ui_msg  "    if \[ -f ${prefix}/etc/bash_completion ]; then"
40    ui_msg  "        . ${prefix}/etc/bash_completion"
41    ui_msg  "    fi"
42    ui_msg  ""
43}
44
45livecheck.check     regex
46livecheck.url       ${master_sites}
47livecheck.regex     ${name}-(\[0-9\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.