vim: only include when x11 in DISTRO_FEATURES

fixes:

 vim:do_install: 6a98ed60a33e0915e83ddf4411cb98a4 -> fab6a8f9b3c3978de44b458939712d90
      bitbake-diffsigs --task vim do_install --signature 6a98ed60a33e0915e83ddf4411cb98a4 fab6a8f9b3c3978de44b458939712d90
      NOTE: Starting bitbake server...
      basehash changed from 7302bf635913317779cf6e19324032a4 to 4a66ac61a894cf5b09db9afc053c77e6
      Variable do_install value changed:
      @@ -11,3 +11,7 @@

           # we use --with-features=big as default
           mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN}
      +	# The mouse being autoenabled is just annoying in xfce4-terminal (mouse
      +	# drag make vim go into visual mode and there is no right click menu),
      +	# delete the block.
      +	sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc

Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Armin Kuster 2018-03-06 07:30:57 -08:00
parent 115d6020d8
commit 729cde5142
2 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1 @@
do_install_append() {
# The mouse being autoenabled is just annoying in xfce4-terminal (mouse
# drag make vim go into visual mode and there is no right click menu),
# delete the block.
sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc
}
require ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '${BPN}_xfce.inc', '', d)}

View File

@ -0,0 +1,6 @@
do_install_append() {
# The mouse being autoenabled is just annoying in xfce4-terminal (mouse
# drag make vim go into visual mode and there is no right click menu),
# delete the block.
sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc
}