mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
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>
This commit is contained in:
committed by
Martin Jansa
parent
4e896feefb
commit
29f73dc16d
@@ -15,7 +15,6 @@ SRC_URI = " \
|
||||
ftp://ftp.${PN}.org/pub/${PN}/unix/${PN}-${PV_MAJOR}.tar.bz2;name=${VIMDIR} \
|
||||
ftp://ftp.${PN}.org/pub/${PN}/extra/${PN}-${PV_MAJOR}-extra.tar.gz;name=${VIMDIR}-extra \
|
||||
ftp://ftp.${PN}.org/pub/${PN}/extra/${PN}-${PV_MAJOR}-lang.tar.gz;name=${VIMDIR}-lang \
|
||||
file://vimrc \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/${VIMDIR}/src"
|
||||
@@ -57,10 +56,12 @@ EXTRA_OECONF = " \
|
||||
STRIP=/bin/true \
|
||||
"
|
||||
|
||||
# Work around rpm picking up csh as a dep
|
||||
do_install_append() {
|
||||
# Work around rpm picking up csh as a dep
|
||||
chmod -x ${D}${datadir}/${PN}/${VIMDIR}/tools/vim132
|
||||
install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/${PN}
|
||||
|
||||
# Install example vimrc from runtime files
|
||||
install -m 0644 ../runtime/vimrc_example.vim ${D}/${datadir}/${PN}/vimrc
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-data"
|
||||
|
||||
Reference in New Issue
Block a user