diff options
| author | Paul Barker <paul@paulbarker.me.uk> | 2013-04-20 12:17:05 +0000 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-22 19:00:56 +0200 |
| commit | 29f73dc16d537726696e408d526085bf88be26e6 (patch) | |
| tree | 18b7ddecbe7560978f755df8e8741c9fd2140273 /meta-oe/recipes-support/vim/vim.inc | |
| parent | 4e896feefbf034a0d0bf5409bc69d86c24859ca4 (diff) | |
| download | meta-openembedded-29f73dc16d537726696e408d526085bf88be26e6.tar.gz | |
vim: use example vimrc from vim runtime files
Rather than keeping our own local vimrc file we can use vimrc_example.vim from
the runtime files distributed with vim. This keeps us up-to-date with changes to
the config when we move to a new vim version.
Also tidy comments around do_install_append so that it is clearer what is
happening.
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/vim/vim.inc')
| -rw-r--r-- | meta-oe/recipes-support/vim/vim.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta-oe/recipes-support/vim/vim.inc b/meta-oe/recipes-support/vim/vim.inc index 359e2c592e..fbc0861997 100644 --- a/meta-oe/recipes-support/vim/vim.inc +++ b/meta-oe/recipes-support/vim/vim.inc | |||
| @@ -15,7 +15,6 @@ SRC_URI = " \ | |||
| 15 | ftp://ftp.${PN}.org/pub/${PN}/unix/${PN}-${PV_MAJOR}.tar.bz2;name=${VIMDIR} \ | 15 | ftp://ftp.${PN}.org/pub/${PN}/unix/${PN}-${PV_MAJOR}.tar.bz2;name=${VIMDIR} \ |
| 16 | ftp://ftp.${PN}.org/pub/${PN}/extra/${PN}-${PV_MAJOR}-extra.tar.gz;name=${VIMDIR}-extra \ | 16 | ftp://ftp.${PN}.org/pub/${PN}/extra/${PN}-${PV_MAJOR}-extra.tar.gz;name=${VIMDIR}-extra \ |
| 17 | ftp://ftp.${PN}.org/pub/${PN}/extra/${PN}-${PV_MAJOR}-lang.tar.gz;name=${VIMDIR}-lang \ | 17 | ftp://ftp.${PN}.org/pub/${PN}/extra/${PN}-${PV_MAJOR}-lang.tar.gz;name=${VIMDIR}-lang \ |
| 18 | file://vimrc \ | ||
| 19 | " | 18 | " |
| 20 | 19 | ||
| 21 | S = "${WORKDIR}/${VIMDIR}/src" | 20 | S = "${WORKDIR}/${VIMDIR}/src" |
| @@ -57,10 +56,12 @@ EXTRA_OECONF = " \ | |||
| 57 | STRIP=/bin/true \ | 56 | STRIP=/bin/true \ |
| 58 | " | 57 | " |
| 59 | 58 | ||
| 60 | # Work around rpm picking up csh as a dep | ||
| 61 | do_install_append() { | 59 | do_install_append() { |
| 60 | # Work around rpm picking up csh as a dep | ||
| 62 | chmod -x ${D}${datadir}/${PN}/${VIMDIR}/tools/vim132 | 61 | chmod -x ${D}${datadir}/${PN}/${VIMDIR}/tools/vim132 |
| 63 | install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/${PN} | 62 | |
| 63 | # Install example vimrc from runtime files | ||
| 64 | install -m 0644 ../runtime/vimrc_example.vim ${D}/${datadir}/${PN}/vimrc | ||
| 64 | } | 65 | } |
| 65 | 66 | ||
| 66 | PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-data" | 67 | PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-data" |
