[oe] [meta-oe][PATCH] vim: Compile and provide xxd in package vim-xxd

Khem Raj raj.khem at gmail.com
Mon Sep 28 16:07:58 UTC 2015


> On Sep 28, 2015, at 4:44 AM, Ioan-Adrian Ratiu <adrian.ratiu at ni.com> wrote:
> 
> 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

why not oe_runmake ?

> +}
> +
> 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
> 
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20150928/8485ef12/attachment-0002.sig>


More information about the Openembedded-devel mailing list