| 1 | # Copyright 1999-2008 Gentoo Foundation |
1 | # Copyright 1999-2008 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.17 2008/07/17 09:38:08 pva Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.18 2009/02/20 06:16:15 darkside Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: bash-completion.eclass |
5 | # @ECLASS: bash-completion.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # shell-tools@gentoo.org. |
7 | # shell-tools@gentoo.org. |
| 8 | # |
8 | # |
| … | |
… | |
| 19 | |
19 | |
| 20 | EXPORT_FUNCTIONS pkg_postinst |
20 | EXPORT_FUNCTIONS pkg_postinst |
| 21 | |
21 | |
| 22 | IUSE="bash-completion" |
22 | IUSE="bash-completion" |
| 23 | |
23 | |
| 24 | # bash-completion-config is deprecated in favor of eselect, |
24 | RDEPEND="bash-completion? ( app-admin/eselect )" |
| 25 | # however, eselect currently lacks stable keywords. |
|
|
| 26 | RDEPEND="bash-completion? |
|
|
| 27 | ( || ( |
|
|
| 28 | app-admin/eselect |
|
|
| 29 | app-shells/bash-completion-config |
|
|
| 30 | ) |
|
|
| 31 | )" |
|
|
| 32 | |
25 | |
| 33 | # @FUNCTION: dobashcompletion |
26 | # @FUNCTION: dobashcompletion |
| 34 | # @USAGE: < file > [ new_file ] |
27 | # @USAGE: < file > [ new_file ] |
| 35 | # @DESCRIPTION: |
28 | # @DESCRIPTION: |
| 36 | # First arg, <file>, is required and is the location of the bash-completion |
29 | # First arg, <file>, is required and is the location of the bash-completion |