# $Id$ PortSystem 1.0 PortGroup github 1.0 github.setup scop bash-completion 2.4 epoch 1 conflicts bash-completion-devel categories sysutils platforms darwin supported_archs noarch license GPL-2+ maintainers raimue description Programmable bash completions long_description \ Programmable completion library for bash. This port requires bash >=4.1 and \ is meant to be used together with the bash port. github.tarball_from releases use_xz yes checksums rmd160 a560b9b7242d09b775843990c42d34dcd2473e48 \ sha256 c0f76b5202fec9ef8ffba82f5605025ca003f27cfd7a85115f838ba5136890f6 depends_run port:bash patchfiles patch-vpnc.diff \ patch-fix-quote-readline-by-ref.diff \ patch-remove-pkgutil.diff post-patch { reinplace "s:/etc/bash_completion:${prefix}/etc/bash_completion:g" \ ${worksrcpath}/bash_completion reinplace "s:readlink -f:readlink:g" \ ${worksrcpath}/bash_completion # Fix vpnc config location, #29281 reinplace "s:@@PREFIX@@:${prefix}:g" \ ${worksrcpath}/completions/vpnc } use_autoreconf yes post-destroot { xinstall -m 644 -W ${filespath} port launchctl \ ${destroot}${prefix}/share/bash-completion/completions/ # Add a link for compatibility with versions <2.0 of this port ln -s ${prefix}/etc/profile.d/bash_completion.sh ${destroot}${prefix}/etc/bash_completion } notes " To use bash_completion, add the following lines at the end of your .bash_profile: if \[ -f ${prefix}/etc/profile.d/bash_completion.sh ]; then . ${prefix}/etc/profile.d/bash_completion.sh fi " if {${os.platform} eq "darwin" && ${os.subplatform} eq "macosx"} { # Insert an empty line into the notes notes-append "" notes-append " The port bash-completion >=2.0 requires bash >=4.1; please make sure you are using ${prefix}/bin/bash by changing the preferences of your terminal accordingly. If your version of bash is too old, the script above will not modify your shell environment and no extended completion will be available. " } subport bash-completion-devel { epoch 0 conflicts bash-completion # nothing special at the moment }