From 977ff1034f39c0e693d6cbc1ef12743ac07121ee Mon Sep 17 00:00:00 2001 From: Philip Sequeira Date: Fri, 10 Oct 2014 13:58:41 -0400 Subject: build: make zsh completion directory configurable Also, use the zsh default location (rather than the Debian one). --- wscript | 1 + wscript_build.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 4ac0479f57..131bf04754 100644 --- a/wscript +++ b/wscript @@ -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): diff --git a/wscript_build.py b/wscript_build.py index a3548a4f59..09f0837de2 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -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( -- cgit v1.2.3