From 2d3750e3dae84c89c9c749f95cf6b3b6cca3e8ce Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 28 May 2009 08:24:11 +0000 Subject: vim: be an alternative to /bin/vi; switch to INC_PR Signed-off-by: Michael Smith Acked-by: Tom Rini --- recipes/vim/vim.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'recipes/vim/vim.inc') diff --git a/recipes/vim/vim.inc b/recipes/vim/vim.inc index f675ce839f..a766acc34d 100644 --- a/recipes/vim/vim.inc +++ b/recipes/vim/vim.inc @@ -3,12 +3,14 @@ SECTION = "console/utils" DEPENDS = "ncurses" LICENSE = "vim" +INC_PR = "r2" + SRC_URI = "ftp://ftp.vim.org/pub/vim/unix/vim-${PV}.tar.bz2 \ file://configure.patch;patch=1" S = "${WORKDIR}/vim${VIMVER}/src" -inherit autotools +inherit autotools update-alternatives do_configure () { rm -f auto/* @@ -28,3 +30,8 @@ FILES_vim-tutor = "${datadir}/vim/vim${VIMVER}/tutor ${bindir}/vimtutor" #FILES_${PN} = "${bindir} ${sbindir} ${libexecdir} ${libdir}/lib*.so.* \ # ${libdir}/*/ ${sysconfdir} ${sharedstatedir} ${localstatedir} \ # /bin /sbin /lib/*/ /lib/*.so* ${datadir}/vim" + +ALTERNATIVE_NAME = "vi" +ALTERNATIVE_PATH = "vim" +ALTERNATIVE_LINK = "${base_bindir}/vi" +ALTERNATIVE_PRIORITY = "100" -- cgit v1.2.3