Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: bash-completion.eclass
Date: Sat, 02 Jan 2010 00:07:51
Message-Id: E1NQrX1-0002yC-0v@stork.gentoo.org
1 ulm 10/01/02 00:07:47
2
3 Modified: bash-completion.eclass
4 Log:
5 Add PDEPEND on app-shells/bash-completion, bug 299051.
6
7 Revision Changes Path
8 1.23 eclass/bash-completion.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/bash-completion.eclass?rev=1.23&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/bash-completion.eclass?rev=1.23&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/bash-completion.eclass?r1=1.22&r2=1.23
13
14 Index: bash-completion.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v
17 retrieving revision 1.22
18 retrieving revision 1.23
19 diff -u -r1.22 -r1.23
20 --- bash-completion.eclass 31 Dec 2009 15:57:04 -0000 1.22
21 +++ bash-completion.eclass 2 Jan 2010 00:07:46 -0000 1.23
22 @@ -1,6 +1,6 @@
23 -# Copyright 1999-2008 Gentoo Foundation
24 +# Copyright 1999-2010 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.22 2009/12/31 15:57:04 ulm Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.23 2010/01/02 00:07:46 ulm Exp $
28
29 # @ECLASS: bash-completion.eclass
30 # @MAINTAINER:
31 @@ -25,6 +25,7 @@
32 if [[ ${CATEGORY}/${PN} != app-admin/eselect ]]; then
33 RDEPEND="bash-completion? ( app-admin/eselect )"
34 fi
35 +PDEPEND="bash-completion? ( app-shells/bash-completion )"
36
37 # @FUNCTION: dobashcompletion
38 # @USAGE: < file > [ new_file ]
39 @@ -40,7 +41,7 @@
40 [[ -z "$1" ]] && die "usage: dobashcompletion <file> <new file>"
41 [[ -z "${BASH_COMPLETION_NAME}" ]] && BASH_COMPLETION_NAME="${2:-${PN}}"
42
43 - if useq bash-completion ; then
44 + if use bash-completion ; then
45 insinto /usr/share/bash-completion
46 newins "$1" "${BASH_COMPLETION_NAME}" || die "Failed to install $1"
47 fi
48 @@ -50,7 +51,7 @@
49 # @DESCRIPTION:
50 # The bash-completion pkg_postinst function, which is exported
51 bash-completion_pkg_postinst() {
52 - if useq bash-completion ; then
53 + if use bash-completion ; then
54 elog "In the case that you haven't yet enabled command-line completion"
55 elog "for ${PN}, you can run:"
56 elog