diff options
author | Ulrich Müller <ulm@gentoo.org> | 2010-01-02 00:07:46 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2010-01-02 00:07:46 +0000 |
commit | 460d1ec63708444aa375dfe55a143d5a7cc3659c (patch) | |
tree | f8cb9429489fa5b13803465a84af562f77aef582 /eclass/bash-completion.eclass | |
parent | Fix creation of cache and doc directories. (diff) | |
download | historical-460d1ec63708444aa375dfe55a143d5a7cc3659c.tar.gz historical-460d1ec63708444aa375dfe55a143d5a7cc3659c.tar.bz2 historical-460d1ec63708444aa375dfe55a143d5a7cc3659c.zip |
Add PDEPEND on app-shells/bash-completion, bug 299051.
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 |