diff options
Diffstat (limited to 'meta-oe/recipes-support/vim/vim_7.4.27.bb')
| -rw-r--r-- | meta-oe/recipes-support/vim/vim_7.4.27.bb | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/vim/vim_7.4.27.bb b/meta-oe/recipes-support/vim/vim_7.4.27.bb new file mode 100644 index 0000000000..77507d4c59 --- /dev/null +++ b/meta-oe/recipes-support/vim/vim_7.4.27.bb | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | SUMMARY = "Vi IMproved - enhanced vi editor" | ||
| 2 | SECTION = "console/utils" | ||
| 3 | DEPENDS = "ncurses" | ||
| 4 | # vimdiff doesn't like busybox diff | ||
| 5 | RSUGGESTS_${PN} = "diffutils" | ||
| 6 | LICENSE = "vim" | ||
| 7 | LIC_FILES_CHKSUM = "file://../runtime/doc/uganda.txt;md5=b779e18be6ed77facc770691c967b8f8" | ||
| 8 | |||
| 9 | SRC_URI = "hg://vim.googlecode.com/hg/;protocol=https;module=vim \ | ||
| 10 | file://configure.in_remove_CC_quotes.patch;patchdir=.." | ||
| 11 | SRCREV = "v7-4-027" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/${PN}/src" | ||
| 14 | |||
| 15 | VIMDIR = "${PN}${@d.getVar('PV',1).split('.')[0]}${@d.getVar('PV',1).split('.')[1]}" | ||
| 16 | |||
| 17 | inherit autotools update-alternatives | ||
| 18 | |||
| 19 | # vim configure.in contains functions which got 'dropped' by autotools.bbclass | ||
| 20 | do_configure () { | ||
| 21 | rm -f auto/* | ||
| 22 | touch auto/config.mk | ||
| 23 | aclocal | ||
| 24 | autoconf | ||
| 25 | oe_runconf | ||
| 26 | touch auto/configure | ||
| 27 | touch auto/config.mk auto/config.h | ||
| 28 | } | ||
| 29 | |||
| 30 | #Available PACKAGECONFIG options are gtkgui, acl, x11, tiny | ||
| 31 | PACKAGECONFIG ??= "" | ||
| 32 | |||
| 33 | PACKAGECONFIG[gtkgui] = "--enable-gtk2-test --enable-gui=gtk2,--enable-gui=no,gtk+," | ||
| 34 | PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," | ||
| 35 | PACKAGECONFIG[x11] = "--with-x,--without-x,xt," | ||
| 36 | PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," | ||
| 37 | |||
| 38 | EXTRA_OECONF = " \ | ||
| 39 | --disable-gpm \ | ||
| 40 | --disable-gtktest \ | ||
| 41 | --disable-xim \ | ||
| 42 | --disable-netbeans \ | ||
| 43 | --with-tlib=ncurses \ | ||
| 44 | ac_cv_small_wchar_t=no \ | ||
| 45 | vim_cv_getcwd_broken=no \ | ||
| 46 | vim_cv_memmove_handles_overlap=yes \ | ||
| 47 | vim_cv_stat_ignores_slash=no \ | ||
| 48 | vim_cv_terminfo=yes \ | ||
| 49 | vim_cv_tgent=non-zero \ | ||
| 50 | vim_cv_toupper_broken=no \ | ||
| 51 | vim_cv_tty_group=world \ | ||
| 52 | STRIP=/bin/true \ | ||
| 53 | " | ||
| 54 | |||
| 55 | do_install_append() { | ||
| 56 | # Work around rpm picking up csh or awk as a dep | ||
| 57 | chmod -x ${D}${datadir}/${PN}/${VIMDIR}/tools/vim132 | ||
| 58 | chmod -x ${D}${datadir}/${PN}/${VIMDIR}/tools/mve.awk | ||
| 59 | |||
| 60 | # Install example vimrc from runtime files | ||
| 61 | install -m 0644 ../runtime/vimrc_example.vim ${D}/${datadir}/${PN}/vimrc | ||
| 62 | } | ||
| 63 | |||
| 64 | PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-data" | ||
| 65 | FILES_${PN}-syntax = "${datadir}/${PN}/${VIMDIR}/syntax" | ||
| 66 | FILES_${PN}-help = "${datadir}/${PN}/${VIMDIR}/doc" | ||
| 67 | FILES_${PN}-tutor = "${datadir}/${PN}/${VIMDIR}/tutor ${bindir}/${PN}tutor" | ||
| 68 | FILES_${PN}-vimrc = "${datadir}/${PN}/vimrc" | ||
| 69 | FILES_${PN}-data = "${datadir}/${PN}" | ||
| 70 | |||
| 71 | # Recommend that runtime data is installed along with vim | ||
| 72 | RRECOMMENDS_${PN} = "${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-data" | ||
| 73 | |||
| 74 | ALTERNATIVE_${PN} = "vi" | ||
| 75 | ALTERNATIVE_TARGET[vi] = "${bindir}/${PN}" | ||
| 76 | ALTERNATIVE_LINK_NAME[vi] = "${base_bindir}/vi" | ||
| 77 | ALTERNATIVE_PRIORITY[vi] = "100" | ||
