diff mbox series

[2/4] vim-xxd: introduce new recipe for xxd

Message ID 20260508214020.2488025-3-joaomarcos.costa@bootlin.com
State New
Headers show
Series Split vim and xxd in different recipes | expand

Commit Message

Joao Marcos Costa May 8, 2026, 9:40 p.m. UTC
This new recipe's main purpose is to handle xxd in the simplest way
possible, stripping it from any needless tasks and/or dependencies that
come from the fact it was originally provided by the same recipe as Vim.

Not only this recipe is faster to build, but it still provides the very
same program for both build-time and run-time, so there should be no
migration needed by the recipes depend on xxd.

Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
---
 meta/conf/distro/include/maintainers.inc |  1 +
 meta/recipes-support/vim/vim-xxd_9.2.bb  | 29 ++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 meta/recipes-support/vim/vim-xxd_9.2.bb
diff mbox series

Patch

diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index f98305e930..7d45bfaf65 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -871,6 +871,7 @@  RECIPE_MAINTAINER:pn-vala = "Unassigned <unassigned@yoctoproject.org>"
 RECIPE_MAINTAINER:pn-valgrind = "Mingli Yu <mingli.yu@windriver.com>"
 RECIPE_MAINTAINER:pn-vim = "Unassigned <unassigned@yoctoproject.org>"
 RECIPE_MAINTAINER:pn-vim-tiny = "Unassigned <unassigned@yoctoproject.org>"
+RECIPE_MAINTAINER:pn-vim-xxd = "João Marcos Costa <joaomarcos.costa@bootlin.com>"
 RECIPE_MAINTAINER:pn-virglrenderer = "Unassigned <unassigned@yoctoproject.org>"
 RECIPE_MAINTAINER:pn-volatile-binds = "Chen Qi <Qi.Chen@windriver.com>"
 RECIPE_MAINTAINER:pn-vte = "Unassigned <unassigned@yoctoproject.org>"
diff --git a/meta/recipes-support/vim/vim-xxd_9.2.bb b/meta/recipes-support/vim/vim-xxd_9.2.bb
new file mode 100644
index 0000000000..d876efec4e
--- /dev/null
+++ b/meta/recipes-support/vim/vim-xxd_9.2.bb
@@ -0,0 +1,29 @@ 
+SUMMARY = "Hex dump and reverse utility from the Vim source tree"
+DESCRIPTION = "xxd is a small utility usually distributed with Vim that creates hex dumps from binary data and can also convert hex dumps back to their original form."
+SECTION = "console/utils"
+HOMEPAGE = "https://www.vim.org/"
+BUGTRACKER = "https://github.com/vim/vim/issues"
+
+require vim-sources.inc
+
+inherit update-alternatives
+
+PROVIDES += "xxd"
+
+do_compile() {
+    cd  ${S}/src/xxd;
+    oe_runmake xxd
+}
+
+do_install() {
+    install -d ${D}${bindir}
+    install -m 0755 src/xxd/xxd ${D}${bindir}
+}
+
+RPROVIDES:${PN} += "xxd"
+
+ALTERNATIVE:${PN} = "xxd"
+ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"
+ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd"
+
+BBCLASSEXTEND = "native nativesdk"