mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
vim: Add vim/tiny-vim/gvim 7.2 (patchset 446)
Changes from org.oe.dev: * Include latest (stable) patchset * Change from RCONFLICTS to RREPLACES where possible (gvim->vim->tiny-vim) Signed-off-by: Michael Lippautz <michael.lippautz@gmail.com>
This commit is contained in:
parent
02e3e6814c
commit
55fccdc2be
5426
meta-oe/recipes-support/vim/files/401-446.diff
Normal file
5426
meta-oe/recipes-support/vim/files/401-446.diff
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@
|
||||
upstream: http://groups.google.com/group/vim_dev/browse_thread/thread/5685c3b859e3c793#
|
||||
status: reported upstream
|
||||
--- vim72-orig/src/configure.in 2010-09-29 19:13:33.000000000 +0200
|
||||
+++ vim72/src/configure.in 2010-09-29 19:17:07.000000000 +0200
|
||||
@@ -35,10 +35,10 @@
|
||||
fi
|
||||
if test "$GCC" = yes; then
|
||||
dnl method that should work for nearly all versions
|
||||
- gccversion=`"$CC" -dumpversion`
|
||||
+ gccversion=`$CC -dumpversion`
|
||||
if test "x$gccversion" = "x"; then
|
||||
dnl old method; fall-back for when -dumpversion doesn't work
|
||||
- gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[[^0-9]]*\([[0-9]]\.[[0-9.]]*\).*$/\1/g'`
|
||||
+ gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[[^0-9]]*\([[0-9]]\.[[0-9.]]*\).*$/\1/g'`
|
||||
fi
|
||||
dnl version 4.0.1 was reported to cause trouble on Macintosh by Marcin Dalecki
|
||||
if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
|
||||
96
meta-oe/recipes-support/vim/files/vimrc
Normal file
96
meta-oe/recipes-support/vim/files/vimrc
Normal file
@ -0,0 +1,96 @@
|
||||
" An example for a vimrc file.
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last change: 2008 Jul 02
|
||||
"
|
||||
" To use it, copy it to
|
||||
" for Unix and OS/2: ~/.vimrc
|
||||
" for Amiga: s:.vimrc
|
||||
" for MS-DOS and Win32: $VIM\_vimrc
|
||||
" for OpenVMS: sys$login:.vimrc
|
||||
|
||||
" When started as "evim", evim.vim will already have done these settings.
|
||||
if v:progname =~? "evim"
|
||||
finish
|
||||
endif
|
||||
|
||||
" Use Vim settings, rather then Vi settings (much better!).
|
||||
" This must be first, because it changes other options as a side effect.
|
||||
set nocompatible
|
||||
|
||||
" allow backspacing over everything in insert mode
|
||||
set backspace=indent,eol,start
|
||||
|
||||
if has("vms")
|
||||
set nobackup " do not keep a backup file, use versions instead
|
||||
else
|
||||
set backup " keep a backup file
|
||||
endif
|
||||
set history=50 " keep 50 lines of command line history
|
||||
set ruler " show the cursor position all the time
|
||||
set showcmd " display incomplete commands
|
||||
set incsearch " do incremental searching
|
||||
|
||||
" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
|
||||
" let &guioptions = substitute(&guioptions, "t", "", "g")
|
||||
|
||||
" Don't use Ex mode, use Q for formatting
|
||||
map Q gq
|
||||
|
||||
" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo,
|
||||
" so that you can undo CTRL-U after inserting a line break.
|
||||
inoremap <C-U> <C-G>u<C-U>
|
||||
|
||||
" In many terminal emulators the mouse works just fine, thus enable it.
|
||||
if has('mouse')
|
||||
set mouse=a
|
||||
endif
|
||||
|
||||
" Switch syntax highlighting on, when the terminal has colors
|
||||
" Also switch on highlighting the last used search pattern.
|
||||
"if &t_Co > 2 || has("gui_running")
|
||||
" syntax on
|
||||
" set hlsearch
|
||||
"endif
|
||||
|
||||
" Only do this part when compiled with support for autocommands.
|
||||
if has("autocmd")
|
||||
|
||||
" Enable file type detection.
|
||||
" Use the default filetype settings, so that mail gets 'tw' set to 72,
|
||||
" 'cindent' is on in C files, etc.
|
||||
" Also load indent files, to automatically do language-dependent indenting.
|
||||
filetype plugin indent on
|
||||
|
||||
" Put these in an autocmd group, so that we can delete them easily.
|
||||
augroup vimrcEx
|
||||
au!
|
||||
|
||||
" For all text files set 'textwidth' to 78 characters.
|
||||
autocmd FileType text setlocal textwidth=78
|
||||
|
||||
" When editing a file, always jump to the last known cursor position.
|
||||
" Don't do it when the position is invalid or when inside an event handler
|
||||
" (happens when dropping a file on gvim).
|
||||
" Also don't do it when the mark is in the first line, that is the default
|
||||
" position when opening a file.
|
||||
autocmd BufReadPost *
|
||||
\ if line("'\"") > 1 && line("'\"") <= line("$") |
|
||||
\ exe "normal! g`\"" |
|
||||
\ endif
|
||||
|
||||
augroup END
|
||||
|
||||
else
|
||||
|
||||
set autoindent " always set autoindenting on
|
||||
|
||||
endif " has("autocmd")
|
||||
|
||||
" Convenient command to see the difference between the current buffer and the
|
||||
" file it was loaded from, thus the changes you made.
|
||||
" Only define it when not defined already.
|
||||
if !exists(":DiffOrig")
|
||||
command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
|
||||
\ | wincmd p | diffthis
|
||||
endif
|
||||
10
meta-oe/recipes-support/vim/gvim_7.2.446.bb
Normal file
10
meta-oe/recipes-support/vim/gvim_7.2.446.bb
Normal file
@ -0,0 +1,10 @@
|
||||
VIMGUI = "gtk2"
|
||||
VIMX = "--with-x"
|
||||
|
||||
require vim_${PV}.bb
|
||||
|
||||
DEPENDS += "gtk+ xt"
|
||||
|
||||
EXTRA_OECONF += "--enable-gtk2-test"
|
||||
|
||||
RREPLACES_${PN} = "vim vim-tiny"
|
||||
5
meta-oe/recipes-support/vim/vim-tiny_7.2.446.bb
Normal file
5
meta-oe/recipes-support/vim/vim-tiny_7.2.446.bb
Normal file
@ -0,0 +1,5 @@
|
||||
VIMFEATURES = "tiny"
|
||||
|
||||
require vim_${PV}.bb
|
||||
|
||||
RCONFLICTS_${PN} = "gvim vim"
|
||||
77
meta-oe/recipes-support/vim/vim.inc
Normal file
77
meta-oe/recipes-support/vim/vim.inc
Normal file
@ -0,0 +1,77 @@
|
||||
DESCRIPTION = "Vi IMproved - enhanced vi editor"
|
||||
SECTION = "console/utils"
|
||||
DEPENDS = "ncurses"
|
||||
# vimdiff doesn't like busybox diff
|
||||
RSUGGESTS_${PN} = "diffutils"
|
||||
LICENSE = "vim"
|
||||
LIC_FILES_CHKSUM = "file://README.txt;md5=72c4840d07b65659b60b3fa405c7da36"
|
||||
|
||||
PV_MAJOR = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
|
||||
VIMDIR = "${@bb.data.getVar('PV',d,1).split('.')[0]}${@bb.data.getVar('PV',d,1).split('.')[1]}"
|
||||
|
||||
INC_PR = "r10"
|
||||
|
||||
SRC_URI = " \
|
||||
ftp://ftp.vim.org/pub/vim/unix/vim-${PV_MAJOR}.tar.bz2;name=vim${PV_MAJOR}tarbz2 \
|
||||
ftp://ftp.vim.org/pub/vim/extra/vim-${PV_MAJOR}-extra.tar.gz;name=vim${PV_MAJOR}extratargz \
|
||||
ftp://ftp.vim.org/pub/vim/extra/vim-${PV_MAJOR}-lang.tar.gz;name=vim${PV_MAJOR}langtargz \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/vim${VIMDIR}/src"
|
||||
|
||||
inherit autotools update-alternatives
|
||||
|
||||
# vim configure.in contains functions which got 'dropped' by autotools.bbclass
|
||||
do_configure () {
|
||||
rm -f auto/*
|
||||
touch auto/config.mk
|
||||
aclocal
|
||||
autoconf
|
||||
oe_runconf
|
||||
touch auto/configure
|
||||
touch auto/config.mk auto/config.h
|
||||
}
|
||||
|
||||
|
||||
|
||||
VIMFEATURES ?= "big"
|
||||
VIMX ?= "--without-x"
|
||||
VIMGUI ?= "no"
|
||||
|
||||
EXTRA_OECONF = " \
|
||||
--enable-gui=${VIMGUI} \
|
||||
--with-features=${VIMFEATURES} \
|
||||
${VIMX} \
|
||||
--disable-gpm \
|
||||
--disable-gtktest \
|
||||
--disable-xim \
|
||||
--disable-netbeans \
|
||||
--with-tlib=ncurses \
|
||||
ac_cv_small_wchar_t=no \
|
||||
vim_cv_getcwd_broken=no \
|
||||
vim_cv_memmove_handles_overlap=yes \
|
||||
vim_cv_stat_ignores_slash=no \
|
||||
vim_cv_terminfo=yes \
|
||||
vim_cv_tgent=non-zero \
|
||||
vim_cv_toupper_broken=no \
|
||||
vim_cv_tty_group=world \
|
||||
"
|
||||
|
||||
PACKAGES =+ "vim-common vim-syntax vim-help vim-tutor"
|
||||
FILES_vim-syntax = "${datadir}/vim/vim${VIMVER}/syntax"
|
||||
FILES_vim-help = "${datadir}/vim/vim${VIMVER}/doc"
|
||||
FILES_vim-tutor = "${datadir}/vim/vim${VIMVER}/tutor ${bindir}/vimtutor"
|
||||
|
||||
ALTERNATIVE_NAME = "vi"
|
||||
ALTERNATIVE_PATH = "${bindir}/vim"
|
||||
ALTERNATIVE_LINK = "${base_bindir}/vi"
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
|
||||
SRC_URI[vim7.2tarbz2.md5sum] = "f0901284b338e448bfd79ccca0041254"
|
||||
SRC_URI[vim7.2tarbz2.sha256sum] = "914db0f2205ebd6f02878295ec2506036ea7500399db112c61a01491cd9a1d86"
|
||||
SRC_URI[vim7.2langtargz.md5sum] = "d8884786979e0e520c112faf2e176f05"
|
||||
SRC_URI[vim7.2langtargz.sha256sum] = "11607f539a4518b550bf1606b7d3a6f36c1ffdf566c058e7d94bced78034cd5b"
|
||||
SRC_URI[vim7.2extratargz.md5sum] = "35e04482f07c57221c9a751aaa3b8dac"
|
||||
SRC_URI[vim7.2extratargz.sha256sum] = "20894ac79672160bfc4f1d2f9f9775b34d944762d655307a91ca96d358faa04d"
|
||||
|
||||
PARALLEL_MAKE = ""
|
||||
41
meta-oe/recipes-support/vim/vim_7.2.446.bb
Normal file
41
meta-oe/recipes-support/vim/vim_7.2.446.bb
Normal file
@ -0,0 +1,41 @@
|
||||
# vim-tiny sets that too
|
||||
VIMFEATURES ?= "big"
|
||||
|
||||
# GUI type - gvim recipe sets "gtk2"
|
||||
VIMGUI ?= "no"
|
||||
|
||||
# gvim recipes uses "--with-x"
|
||||
VIMX ?= "--without-x"
|
||||
|
||||
require vim.inc
|
||||
|
||||
PR = "${INC_PR}.3"
|
||||
|
||||
# 001-446; 401-446 are not yet available online
|
||||
SRC_URI += "http://ftp.vim.org/pub/vim/patches/7.2/7.2.001-100.gz;name=p001-100;apply=yes;patchdir=..;pnum=0"
|
||||
SRC_URI += "http://ftp.vim.org/pub/vim/patches/7.2/7.2.101-200.gz;name=p101-200;apply=yes;patchdir=..;pnum=0"
|
||||
SRC_URI += "http://ftp.vim.org/pub/vim/patches/7.2/7.2.201-300.gz;name=p201-300;apply=yes;patchdir=..;pnum=0"
|
||||
SRC_URI += "http://ftp.vim.org/pub/vim/patches/7.2/7.2.301-400.gz;name=p301-400;apply=yes;patchdir=..;pnum=0"
|
||||
SRC_URI += "file://401-446.diff;patchdir=..;pnum=0"
|
||||
|
||||
SRC_URI[p001-100.md5sum] = "ba91b19374cee90f71b8f4ab1d92dc0f"
|
||||
SRC_URI[p001-100.sha256sum] = "519f4fea460e4f7a737ea8006c0dc1684982f8372d1581fb963a5d58f8007f67"
|
||||
SRC_URI[p101-200.md5sum] = "b485233d360041d043c56cd99057dbff"
|
||||
SRC_URI[p101-200.sha256sum] = "0a6e25e454706377f8a6babe4da99c6eab7e71a63d28ad9b24aa5c170522bac3"
|
||||
SRC_URI[p201-300.md5sum] = "069fb537772a8e4a74119d8a6a7e61f3"
|
||||
SRC_URI[p201-300.sha256sum] = "a11bad3a4e167501c62f0212d3b8935a73a1ae378c5d6ed73a477a71f57baffa"
|
||||
SRC_URI[p301-400.md5sum] = "137b5821ff4a2266796d14d867be5f9f"
|
||||
SRC_URI[p301-400.sha256sum] = "41f022ec829786a008685c0b00acf8be09525755a94a06236a4b879b1f84b5f4"
|
||||
|
||||
SRC_URI += "file://configure.in_remove_CC_quotes.patch;patchdir=.."
|
||||
SRC_URI += "file://vimrc"
|
||||
|
||||
do_install_append() {
|
||||
install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/vim
|
||||
}
|
||||
|
||||
RCONFLICTS_${PN} = "gvim"
|
||||
RREPLACES_${PN} = "vim-tiny"
|
||||
PACKAGES =+ "${PN}-vimrc"
|
||||
|
||||
FILES_${PN}-vimrc = "${datadir}/vim/vimrc"
|
||||
Loading…
x
Reference in New Issue
Block a user