bash-completion: fix for openbsd-man
This commit is contained in:
parent
00d5dd40eb
commit
5498446f79
2 changed files with 15 additions and 1 deletions
14
srcpkgs/bash-completion/patches/openbsd-man.patch
Normal file
14
srcpkgs/bash-completion/patches/openbsd-man.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- completions/man.orig
|
||||
+++ completions/man
|
||||
@@ -57,7 +57,10 @@ _man()
|
||||
fi
|
||||
|
||||
local manpath
|
||||
- if [[ $OSTYPE == *@(darwin|linux|freebsd|cygwin)* ]] || _userland GNU; then
|
||||
+ if [[ -r /etc/man.conf ]]; then
|
||||
+ manpath=$(eval echo $(awk '/_default/ { print $2 }' /etc/man.conf))
|
||||
+ manpath=${manpath// /:}
|
||||
+ elif [[ $OSTYPE == *@(darwin|linux|freebsd|cygwin)* ]] || _userland GNU; then
|
||||
manpath=$( manpath 2>/dev/null || command man --path )
|
||||
else
|
||||
manpath=$MANPATH
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'bash-completion'
|
||||
pkgname=bash-completion
|
||||
version=2.1
|
||||
revision=4
|
||||
revision=5
|
||||
noarch="yes"
|
||||
build_style=gnu-configure
|
||||
makedepends="bash"
|
||||
|
|
Loading…
Reference in a new issue