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