[OE-core] [oe][meta-oe][PATCH] vim: Compile and provide xxd in package vim-xxd
Ioan-Adrian Ratiu
adrian.ratiu at ni.com
Mon Sep 28 11:43:29 UTC 2015
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu at ni.com>
---
meta-oe/recipes-support/vim/vim_7.4.481.bb | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/meta-oe/recipes-support/vim/vim_7.4.481.bb b/meta-oe/recipes-support/vim/vim_7.4.481.bb
index 2ece53b..fcd036b 100644
--- a/meta-oe/recipes-support/vim/vim_7.4.481.bb
+++ b/meta-oe/recipes-support/vim/vim_7.4.481.bb
@@ -59,6 +59,11 @@ EXTRA_OECONF = " \
STRIP=/bin/true \
"
+do_compile_append() {
+ cd "${S}/xxd"
+ make
+}
+
do_install() {
autotools_do_install
@@ -70,17 +75,20 @@ do_install() {
# Install example vimrc from runtime files
install -m 0644 ../runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc
+ install -m 0755 xxd/xxd ${D}${bindir}/xxd
+
# we use --with-features=big as default
mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN}
}
PARALLEL_MAKEINST = ""
-PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc"
+PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-xxd"
FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax"
FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc"
FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor ${bindir}/${BPN}tutor"
FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc"
+FILES_${PN}-xxd = "${bindir}/xxd"
FILES_${PN}-data = "${datadir}/${BPN}"
FILES_${PN}-common = " \
${datadir}/${BPN}/${VIMDIR}/*.vim \
--
2.1.4
More information about the Openembedded-core
mailing list