/[gentoo-x86]/eclass/bash-completion-r1.eclass
Gentoo

Diff of /eclass/bash-completion-r1.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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-r1.eclass,v 1.5 2013/07/15 23:54:03 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion-r1.eclass,v 1.6 2013/07/22 11:28:42 ssuominen Exp $
4 4
5# @ECLASS: bash-completion-r1.eclass 5# @ECLASS: bash-completion-r1.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# mgorny@gentoo.org 7# mgorny@gentoo.org
8# @BLURB: A few quick functions to install bash-completion files 8# @BLURB: A few quick functions to install bash-completion files
12# EAPI=5 12# EAPI=5
13# 13#
14# src_configure() { 14# src_configure() {
15# econf \ 15# econf \
16# --with-bash-completion-dir="$(get_bashcompdir)" 16# --with-bash-completion-dir="$(get_bashcompdir)"
17# } 17# }
18# 18#
19# src_install() { 19# src_install() {
20# default 20# default
21# 21#
22# newbashcomp contrib/${PN}.bash-completion ${PN} 22# newbashcomp contrib/${PN}.bash-completion ${PN}
23# } 23# }
24# @CODE 24# @CODE
25 25
26inherit toolchain-funcs 26inherit toolchain-funcs
27 27
28case ${EAPI:-0} in 28case ${EAPI:-0} in
64# @FUNCTION: _bash-completion-r1_get_helpersdir 64# @FUNCTION: _bash-completion-r1_get_helpersdir
65# @INTERNAL 65# @INTERNAL
66# @DESCRIPTION: 66# @DESCRIPTION:
67# Get unprefixed bash-completion helpers directory. 67# Get unprefixed bash-completion helpers directory.
68_bash-completion-r1_get_bashhelpersdir() { 68_bash-completion-r1_get_bashhelpersdir() {
69 debug-print-function ${FUNCNAME} "${@}" 69 debug-print-function ${FUNCNAME} "${@}"
70 70
71 _bash-completion-r1_get_bashdir helpersdir /usr/share/bash-completion/helpers 71 _bash-completion-r1_get_bashdir helpersdir /usr/share/bash-completion/helpers
72} 72}
73 73
74# @FUNCTION: get_bashcompdir 74# @FUNCTION: get_bashcompdir
75# @DESCRIPTION: 75# @DESCRIPTION:
76# Get the bash-completion completions directory. 76# Get the bash-completion completions directory.
77get_bashcompdir() { 77get_bashcompdir() {
78 debug-print-function ${FUNCNAME} "${@}" 78 debug-print-function ${FUNCNAME} "${@}"
79 79
80 echo "${EPREFIX}$(_bash-completion-r1_get_bashcompdir)" 80 echo "$(_bash-completion-r1_get_bashcompdir)"
81} 81}
82 82
83# @FUNCTION: get_bashhelpersdir 83# @FUNCTION: get_bashhelpersdir
84# @INTERNAL 84# @INTERNAL
85# @DESCRIPTION: 85# @DESCRIPTION:
86# Get the bash-completion helpers directory. 86# Get the bash-completion helpers directory.
87get_bashhelpersdir() { 87get_bashhelpersdir() {
88 debug-print-function ${FUNCNAME} "${@}" 88 debug-print-function ${FUNCNAME} "${@}"
89 89
90 echo "${EPREFIX}$(_bash-completion-r1_get_bashhelpersdir)" 90 echo "$(_bash-completion-r1_get_bashhelpersdir)"
91} 91}
92 92
93# @FUNCTION: dobashcomp 93# @FUNCTION: dobashcomp
94# @USAGE: file [...] 94# @USAGE: file [...]
95# @DESCRIPTION: 95# @DESCRIPTION:

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20