diff options
Diffstat (limited to 'eclass/bash-completion.eclass')
-rw-r--r-- | eclass/bash-completion.eclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/eclass/bash-completion.eclass b/eclass/bash-completion.eclass index 48eefb094208..c37c75d96a4e 100644 --- a/eclass/bash-completion.eclass +++ b/eclass/bash-completion.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.22 2009/12/31 15:57:04 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.23 2010/01/02 00:07:46 ulm Exp $ # @ECLASS: bash-completion.eclass # @MAINTAINER: @@ -25,6 +25,7 @@ IUSE="bash-completion" if [[ ${CATEGORY}/${PN} != app-admin/eselect ]]; then RDEPEND="bash-completion? ( app-admin/eselect )" fi +PDEPEND="bash-completion? ( app-shells/bash-completion )" # @FUNCTION: dobashcompletion # @USAGE: < file > [ new_file ] @@ -40,7 +41,7 @@ dobashcompletion() { [[ -z "$1" ]] && die "usage: dobashcompletion <file> <new file>" [[ -z "${BASH_COMPLETION_NAME}" ]] && BASH_COMPLETION_NAME="${2:-${PN}}" - if useq bash-completion ; then + if use bash-completion ; then insinto /usr/share/bash-completion newins "$1" "${BASH_COMPLETION_NAME}" || die "Failed to install $1" fi @@ -50,7 +51,7 @@ dobashcompletion() { # @DESCRIPTION: # The bash-completion pkg_postinst function, which is exported bash-completion_pkg_postinst() { - if useq bash-completion ; then + if use bash-completion ; then elog "In the case that you haven't yet enabled command-line completion" elog "for ${PN}, you can run:" elog |