# Copyright 1999-2001 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Zach Forrest # /space/gentoo/cvsroot/gentoo-x86/app-admin/bash-completion/bash-completion-2.05a.ebuild S=${WORKDIR}/${P} DESCRIPTION="Some programmable completion functions for bash 2.05a." SRC_URI="http://www.caliban.org/files/bash/bash_completion.gz" HOMEPAGE="http://www.caliban.org/bash/index.shtml#completion" DEPEND=">=sys-apps/bash-2.05a-r2" src_unpack() { echo "Nothing to unpack (despite what the next message says)." } src_install() { echo "Installing bash_completion into ${D}/etc" mkdir ${D}/etc gzip -dc ${DISTDIR}/bash_completion.gz > ${D}/etc/bash_completion } pkg_postinst () { echo echo "*****************************************************************" echo "* To enable the bash_completion package, a collection of shell *" echo "* functions that take advantage of the programmable completion *" echo "* feature of bash 2.05a and later, add the following code *" echo "* to /etc/profile or /etc/bashrc. *" echo "* *" echo "* Alternatively, if you don't want it to be available to all *" echo "* users, just source it from your ~/.bashrc *" echo "*****************************************************************" echo echo 'if [ "${PS1}" ] && [ ${BASH_VERSION%.*} = "2.05a" ] \' echo ' && [ -f /etc/bash_completion ]; then # interactive shell' echo ' # Source completion code' echo ' . /etc/bash_completion' echo 'fi' echo echo "*****************************************************************" echo "* This is by no means necessary, but if context sensitive *" echo "* completion of cd, cvs, GNU make, ssh, chown, umount, insmod, *" echo "* rmmod, man, find, chkconfig, route, iptables, sudo, and other *" echo "* commands sounds useful, you might want to give it a try. *" echo "*****************************************************************" echo }