Skip to content

Commit

Permalink
bump to latest and move the port(1) completion to a +dp_completion
Browse files Browse the repository at this point in the history
default_variant (ala zsh)
Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14524 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Charlie Allom committed Oct 10, 2005
1 parent eb09478 commit 7db8d2f
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions sysutils/bash-completion/Portfile
@@ -1,9 +1,8 @@
# $Id: Portfile,v 1.7 2005/04/25 10:27:26 yeled Exp $
# $Id: Portfile,v 1.8 2005/10/10 09:36:11 yeled Exp $

PortSystem 1.0
name bash-completion
version 20050121
revision 2
version 20050721
categories sysutils
maintainers yeled@opendarwin.org
description Programmable bash{2,3} completions.
Expand All @@ -13,16 +12,17 @@ long_description \
homepage http://www.caliban.org/bash/index.shtml
platforms darwin
master_sites http://www.caliban.org/files/bash/
checksums md5 ca8b557b62d4af341f565830d7b25b4f
checksums md5 08e5321ead7079c84822368d7a41deda
use_configure no
default_variants +dp_completion
build {}
destroot {
reinplace "s|\/etc\/bash_completion|${prefix}\/etc\/bash_completion|g" \
${workpath}/bash_completion/bash_completion
system "install -d ${destroot}${prefix}/etc/bash_completion.d"
system "install -m 644 -c ${filesdir}/port.cmd ${destroot}${prefix}/etc/bash_completion.d/port"
system "install -m 755 -c ${workpath}/bash_completion/bash_completion ${destroot}${prefix}/etc/"
xinstall -d ${destroot}${prefix}/etc/bash_completion.d
xinstall -c ${workpath}/bash_completion/bash_completion ${destroot}${prefix}/etc/
}
destroot.keepdirs ${destroot}${prefix}/etc/
post-install {
ui_msg "Set this at the *end* your .bash_profile:"
ui_msg ""
Expand All @@ -31,3 +31,9 @@ post-install {
ui_msg " fi"
ui_msg ""
}

variant dp_completion {
post-destroot {
xinstall -m 644 -c ${filesdir}/port.cmd ${destroot}${prefix}/etc/bash_completion.d/port
}
}

0 comments on commit 7db8d2f

Please sign in to comment.