diff options
author | James McCoy <jamessan@debian.org> | 2019-01-05 15:16:11 -0500 |
---|---|---|
committer | James McCoy <jamessan@debian.org> | 2019-01-05 15:16:11 -0500 |
commit | 772cf822785a8b7a4a387bb81e8642bb5b874b28 (patch) | |
tree | 6dc730543a226b259797b0c57ee203e6cb8cbc2a | |
parent | 3796759a8deccb0a4859230e7f72dedb61352089 (diff) |
Add (neo)vim:Depends substvars for minimal "packages" support
Signed-off-by: James McCoy <jamessan@debian.org>
-rwxr-xr-x | dh_vim-addon | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dh_vim-addon b/dh_vim-addon index 6d0a0f1..f04809f 100755 --- a/dh_vim-addon +++ b/dh_vim-addon @@ -58,6 +58,8 @@ format is a set of lines, where each line lists a file or files, relative to the package build directory, which are part of the addon. Wildcards may be used in the names of the files to install. +The C<${vim:Depends}> substvar will be set with any required dependencies. + =item debian/I<package>.vim-opt-addon =item debian/I<package>.neovim-opt-addon @@ -65,6 +67,8 @@ used in the names of the files to install. This file follows the same format as F<vim-addon>, however the files will be installed as an optional addon in I<package>. +The C<${neovim:Depends}> substvar will be set with any required dependencies. + =back =cut @@ -117,6 +121,14 @@ on_items_in_parallel(\@packages, sub { if (scalar(%tagdirs)) { doit('helpztags', sort keys %tagdirs); } + + if ($pkgfilebase =~ m/neovim/) { + # First version with good "packages" support + addsubstvar($package, 'neovim:Depends', 'neovim', '>= 0.2.2-1~'); + } else { + # First version with $VIM/vimfiles as a directory instead of a symlink to /etc/vim + addsubstvar($package, 'vim:Depends', 'vim', '>= 2:8.1.0693-2~'); + } } } }); |