build: make zsh completion directory configurable

Also, use the zsh default location (rather than the Debian one).
This commit is contained in:
Philip Sequeira 2014-10-10 13:58:41 -04:00 committed by wm4
parent ab41b8d27b
commit 977ff1034f
2 changed files with 2 additions and 1 deletions

View File

@ -768,6 +768,7 @@ _INSTALL_DIRS_LIST = [
('datadir', '${PREFIX}/share', 'data files'),
('mandir', '${DATADIR}/man', 'man pages '),
('docdir', '${DATADIR}/doc/mpv', 'documentation files'),
('zshdir', '${DATADIR}/zsh/site-functions', 'zsh completion functions'),
]
def options(opt):

View File

@ -563,7 +563,7 @@ def build(ctx):
if ctx.dependency_satisfied('zsh-comp'):
ctx.zshcomp(target = "etc/_mpv")
ctx.install_files(
ctx.env.DATADIR + '/zsh/vendor-completions',
ctx.env.ZSHDIR,
['etc/_mpv'])
ctx.install_files(