summaryrefslogtreecommitdiff
path: root/recipes/vim/vim.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-05-31 12:01:05 +0200
committerKoen Kooi <koen@openembedded.org>2009-05-31 12:01:05 +0200
commit6a8b960862f8ab048b42009d6c30d1d5561ad6bb (patch)
tree86ae2e2561bd29d1ce89646ac0512fd4839ef852 /recipes/vim/vim.inc
parentd6606b5feead01f3f6b4e51d0d4cddb601ac7992 (diff)
parentbbbd4a93365f40d6d43e13486172729ebfa3f9ad (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/vim/vim.inc')
-rw-r--r--recipes/vim/vim.inc9
1 files changed, 8 insertions, 1 deletions
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"