app-editors/vim: do not create symlink vimdiff for minimal

A symlink `vimdiff` should not be created, if the USE flag `minimal` is
enabled. Otherwise running `vimdiff` results in failure like that:

```
$ vimdiff aaa bbb
This Vim was not compiled with the diff feature.
```
This commit is contained in:
Dongsu Park 2020-12-04 10:30:37 +01:00
parent 58ece612c3
commit 728b8e7495

View File

@ -276,7 +276,10 @@ src_install() {
# Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
# managed by eselect-vi
dobin src/vim
dosym vim /usr/bin/vimdiff
# Flatcar: disable vimdiff symlink if minimal
if ! use minimal ; then
dosym vim /usr/bin/vimdiff
fi
dosym vim /usr/bin/rvim
dosym vim /usr/bin/rview
if use vim-pager ; then