summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/vim
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2022-06-08 09:42:45 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-08 21:55:56 +0100
commit5f249a407f6abbf72804be2660d618c45b02932e (patch)
treed1aae7e0045d13a582b93dd0fb48f7398cca196b /meta/recipes-support/vim
parent1025118484c1f0359a1909d4e9246c68615d0f98 (diff)
downloadpoky-5f249a407f6abbf72804be2660d618c45b02932e.tar.gz
vim: put xxd in its own package
The xxd tool can be quite handy by itself, and doesn't have anything to do with vim per se. Make it possible to include the rather tiny xxd in a rootfs without pulling in the several MB vim binary and associated data. For backwards compatibility, add an RDEPENDS from the main package to the new vim-xxd package. (From OE-Core rev: 06ed2aa93fc25a681e3a00ee120d9395b04845da) Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/vim')
-rw-r--r--meta/recipes-support/vim/vim_8.2.bb8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-support/vim/vim_8.2.bb b/meta/recipes-support/vim/vim_8.2.bb
index f358e61132..fee9f055e9 100644
--- a/meta/recipes-support/vim/vim_8.2.bb
+++ b/meta/recipes-support/vim/vim_8.2.bb
@@ -2,14 +2,18 @@ require vim.inc
2 2
3PROVIDES = "xxd" 3PROVIDES = "xxd"
4 4
5RDEPENDS:${PN} = "ncurses-terminfo-base" 5RDEPENDS:${PN} = "ncurses-terminfo-base ${PN}-xxd"
6# Recommend that runtime data is installed along with vim 6# Recommend that runtime data is installed along with vim
7RRECOMMENDS:${PN} = "${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-common" 7RRECOMMENDS:${PN} = "${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-common"
8 8
9PACKAGECONFIG:class-native = "" 9PACKAGECONFIG:class-native = ""
10BBCLASSEXTEND = "native nativesdk" 10BBCLASSEXTEND = "native nativesdk"
11 11
12ALTERNATIVE:${PN}:append = " xxd" 12PACKAGES =+ "${PN}-xxd"
13FILES:${PN}-xxd = "${bindir}/xxd"
14RPROVIDES:${PN}-xxd = "xxd"
15
16ALTERNATIVE:${PN}-xxd = "xxd"
13ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd" 17ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"
14ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd" 18ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd"
15 19