summaryrefslogtreecommitdiff
path: root/dh_vim-addon
diff options
context:
space:
mode:
Diffstat (limited to 'dh_vim-addon')
-rwxr-xr-xdh_vim-addon12
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~');
+ }
}
}
});