/[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.8 Revision 1.9
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.8 2013/07/22 20:06:31 grobian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion-r1.eclass,v 1.9 2013/07/23 13:48:00 mgorny 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
39# _bash-completion-r1_get_bashdir completionsdir /usr/share/bash-completion/completions 39# _bash-completion-r1_get_bashdir completionsdir /usr/share/bash-completion/completions
40_bash-completion-r1_get_bashdir() { 40_bash-completion-r1_get_bashdir() {
41 debug-print-function ${FUNCNAME} "${@}" 41 debug-print-function ${FUNCNAME} "${@}"
42 42
43 if $(tc-getPKG_CONFIG) --exists bash-completion; then 43 if $(tc-getPKG_CONFIG) --exists bash-completion; then
44 local pcbc="$($(tc-getPKG_CONFIG) --variable=$1 bash-completion)" 44 local path="$($(tc-getPKG_CONFIG) --variable=$1 bash-completion)"
45 # we need to return unprefixed, so strip from what pkg-config returns 45 # we need to return unprefixed, so strip from what pkg-config returns
46 # to us, bug #477692 46 # to us, bug #477692
47 echo "${pcdb#${EPREFIX}}" 47 echo "${path#${EPREFIX}}"
48 else 48 else
49 echo $2 49 echo $2
50 fi 50 fi
51} 51}
52 52

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20