Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 350854 Details for
Bug 472938
app-shells/bash-completion-2.1: use upstream build-sys, use upstream path(s) like /usr/share/bash-completion/completions, upstream completions autoloader etc.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bash-completion-r1.eclass.patch
bash-completion-r1.eclass.patch (text/plain), 1.96 KB, created by
Samuli Suominen (RETIRED)
on 2013-06-12 22:17:29 UTC
(
hide
)
Description:
bash-completion-r1.eclass.patch
Filename:
MIME Type:
Creator:
Samuli Suominen (RETIRED)
Created:
2013-06-12 22:17:29 UTC
Size:
1.96 KB
patch
obsolete
>--- bash-completion-r1.eclass 2013-06-13 01:09:24.933961265 +0300 >+++ /tmp/bash-completion-r1.eclass 2013-06-13 01:08:51.846963274 +0300 >@@ -9,7 +9,7 @@ > # @EXAMPLE: > # > # @CODE >-# EAPI=4 >+# EAPI=5 > # > # src_install() { > # default >@@ -17,12 +17,55 @@ > # newbashcomp contrib/${PN}.bash-completion ${PN} > # } > # @CODE >+# >+# @CODE >+# EAPI=5 >+# >+# src_configure() { >+# econf \ >+# --with-udevdir="$(get_bashcompdir)" >+# } >+# @CODE >+ >+inherit toolchain-funcs > > case ${EAPI:-0} in > 0|1|2|3|4|5) ;; > *) die "EAPI ${EAPI} unsupported (yet)." > esac > >+_get_bashdir() { >+ if $($(tc-getPKG_CONFIG) --exists bash-completion); then >+ echo "$($(tc-getPKG_CONFIG) --variable=$1 bash-completion)" >+ else >+ echo $2 >+ fi >+} >+ >+# @FUNCTION: get_bashcompdir >+# @RETURN: completionsdir value from bash-completion.pc if it's available >+# @DESCRIPTION: >+# If bash-completion.pc pkg-config file is available, query the correct >+# "completionsdir=" value and return it >+# Otherwise fallback to /usr/share/bash-completion/completions >+get_bashcompdir() { >+ if has_version '<app-shells/bash-completion-2.1-r1'; then >+ _get_bashdir completionsdir /usr/share/bash-completion >+ else >+ _get_bashdir completionsdir /usr/share/bash-completion/completions >+ fi >+} >+ >+# @FUNCTION: get_bashhelpersdir >+# @RETURN: helpersdir value from bash-completion.pc if it's available >+# @DESCRIPTION: >+# If bash-completion.pc pkg-config file is available, query the correct >+# "helpersdir=" value and return it >+# Otherwise fallback to /usr/share/bash-completion/completions >+get_bashhelpersdir() { >+ _get_bashdir helpersdir /usr/share/bash-completion/helpers >+} >+ > # @FUNCTION: dobashcomp > # @USAGE: file [...] > # @DESCRIPTION: >@@ -32,7 +75,7 @@ > debug-print-function ${FUNCNAME} "${@}" > > ( >- insinto /usr/share/bash-completion >+ insinto "$(get_bashcompdir)" > doins "${@}" > ) > } >@@ -46,7 +89,7 @@ > debug-print-function ${FUNCNAME} "${@}" > > ( >- insinto /usr/share/bash-completion >+ insinto "$(get_bashcompdir)" > newins "${@}" > ) > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 472938
:
350726
| 350854 |
350856