DESCR

A relatively new feature in bash is programmable completion, which
has been available since the beta version of 2.04. Programmable
completion will be familiar to you if you are a zsh user. It also
exists, albeit in a much less usable form, in tcsh.

Standard completion

bash has offered many forms of completion since its inception,
including path, file, user, host and variable completion.

* Path-name completion
* File-name completion
* User-name completion
* Host-name completion
* Variable-name completion

Programmable completion indefinitely extends the type of completion
you can perform.

This package contains a variety of completions for various programs.

MESSAGE

===========================================================================
$NetBSD: MESSAGE,v 1.1 2009/09/25 12:29:26 wiz Exp $

To use this, source the included bash fragment in your startup
files, i.e. include something like:

if [ -r ${PREFIX}/share/bash-completion/bash_completion ]; then
. ${PREFIX}/share/bash-completion/bash_completion
fi

in ~/.bashrc or ~/.bash_profile.

===========================================================================

Makefile

# $NetBSD: Makefile,v 1.4 2009/09/29 17:19:11 wiz Exp $
#
# Note to packagers:
# packages installing additional completion files should drop
# them into ${DESTDIR}${PREFIX}/share/bash-completion.d
# with the name of the package as file name.

DISTNAME= bash-completion-1.0
PKGREVISION= 1
CATEGORIES= shells
MASTER_SITES= http://bash-completion.alioth.debian.org/files/

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://bash-completion.alioth.debian.org/
COMMENT= Programmable completion specifications for bash
LICENSE= gnu-gpl-v2

PKG_DESTDIR_SUPPORT= user-destdir

USE_TOOLS+= bash:run

USE_LANGUAGES= # none

INSTALLATION_DIRS= bin share/bash-completion
INSTALLATION_DIRS+= share/bash-completion.d
INSTALLATION_DIRS+= share/doc/bash-completion

SUBST_CLASSES+= path
SUBST_SED.path+= -e "s,/etc/bash_completion.d,${PREFIX}/share/bash-completion.d,g"
SUBST_SED.path+= -e "s,/etc/bash_completion,${PREFIX}/share/bash-completion/bash_completion,g"
SUBST_STAGE.path+= pre-build
SUBST_FILES.path+= bash_completion* README
SUBST_MESSAGE.path= Fixing path to completion files.

do-build:

do-install:
${INSTALL_DATA} ${WRKSRC}/README \
${DESTDIR}${PREFIX}/share/doc/bash-completion
${INSTALL_DATA} ${WRKSRC}/bash_completion \
${DESTDIR}${PREFIX}/share/bash-completion
${INSTALL_DATA} ${WRKSRC}/bash_completion.sh \
${DESTDIR}${PREFIX}/share/bash-completion
${INSTALL_DATA} ${WRKSRC}/contrib/* \
${DESTDIR}${PREFIX}/share/bash-completion.d

.include "../../mk/bsd.pkg.mk"

PLIST

@comment $NetBSD: PLIST,v 1.3 2009/09/25 12:29:26 wiz Exp $
share/bash-completion/bash_completion
share/bash-completion/bash_completion.sh
share/bash-completion.d/_subversion
share/bash-completion.d/apache2ctl
share/bash-completion.d/bitkeeper
share/bash-completion.d/bittorrent
share/bash-completion.d/brctl
share/bash-completion.d/cksfv
share/bash-completion.d/clisp
share/bash-completion.d/cowsay
share/bash-completion.d/cpan2dist
share/bash-completion.d/dsniff
share/bash-completion.d/freeciv
share/bash-completion.d/gcl
share/bash-completion.d/gkrellm
share/bash-completion.d/gnatmake
share/bash-completion.d/gpg2
share/bash-completion.d/harbour
share/bash-completion.d/isql
share/bash-completion.d/larch
share/bash-completion.d/lilypond
share/bash-completion.d/lisp
share/bash-completion.d/lzma
share/bash-completion.d/lzop
share/bash-completion.d/mailman
share/bash-completion.d/mcrypt
share/bash-completion.d/minicom
share/bash-completion.d/modules
share/bash-completion.d/monodevelop
share/bash-completion.d/mtx
share/bash-completion.d/net-tools
share/bash-completion.d/p4
share/bash-completion.d/povray
share/bash-completion.d/qdbus
share/bash-completion.d/qemu
share/bash-completion.d/quota-tools
share/bash-completion.d/rdesktop
share/bash-completion.d/ri
share/bash-completion.d/sbcl
share/bash-completion.d/sitecopy
share/bash-completion.d/snownews
share/bash-completion.d/ssh
share/bash-completion.d/svk
share/bash-completion.d/unace
share/bash-completion.d/unrar
share/bash-completion.d/vncviewer
share/doc/bash-completion/README

distinfo

$NetBSD: distinfo,v 1.2 2009/09/25 12:29:26 wiz Exp $

SHA1 (bash-completion-1.0.tar.gz) = 61040795731f5ff509c46e818a1edf0a7a93e11d
RMD160 (bash-completion-1.0.tar.gz) = b590c2633c5c10c3e98b14a74f4e96c910b6177d
Size (bash-completion-1.0.tar.gz) = 143578 bytes
SHA1 (patch-aa) = 6c6685a3fa99c2e0585843a1138a225b2c2ea537