summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/vim/vim.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/vim/vim.inc')
-rw-r--r--meta/recipes-support/vim/vim.inc48
1 files changed, 29 insertions, 19 deletions
diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc
index d57f784da5..6d62bd67af 100644
--- a/meta/recipes-support/vim/vim.inc
+++ b/meta/recipes-support/vim/vim.inc
@@ -1,29 +1,37 @@
1SUMMARY = "Vi IMproved - enhanced vi editor" 1SUMMARY = "Vi IMproved - enhanced vi editor"
2DESCRIPTION = "Vim is a greatly improved version of the good old UNIX editor Vi. Many new features have been added: multi-level undo, syntax highlighting, command line history, on-line help, spell checking, filename completion, block operations, script language, etc. There is also a Graphical User Interface (GUI) available."
2SECTION = "console/utils" 3SECTION = "console/utils"
3 4
5HOMEPAGE = "https://www.vim.org/"
6BUGTRACKER = "https://github.com/vim/vim/issues"
7
4DEPENDS = "ncurses gettext-native" 8DEPENDS = "ncurses gettext-native"
5# vimdiff doesn't like busybox diff 9# vimdiff doesn't like busybox diff
6RSUGGESTS_${PN} = "diffutils" 10RSUGGESTS_${PN} = "diffutils"
11
7LICENSE = "vim" 12LICENSE = "vim"
8LIC_FILES_CHKSUM = "file://runtime/doc/uganda.txt;endline=287;md5=a19edd7ec70d573a005d9e509375a99a" 13LIC_FILES_CHKSUM = "file://LICENSE;md5=d1a651ab770b45d41c0f8cb5a8ca930e"
9 14
10SRC_URI = "git://github.com/vim/vim.git \ 15SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https \
11 file://disable_acl_header_check.patch \ 16 file://disable_acl_header_check.patch \
12 file://vim-add-knob-whether-elf.h-are-checked.patch \ 17 file://vim-add-knob-whether-elf.h-are-checked.patch \
13 file://0001-src-Makefile-improve-reproducibility.patch \ 18 file://0001-src-Makefile-improve-reproducibility.patch \
14 file://no-path-adjust.patch \ 19 file://no-path-adjust.patch \
15 file://racefix.patch \ 20 "
16" 21
17SRCREV = "98056533b96b6b5d8849641de93185dd7bcadc44" 22PV .= ".2190"
23SRCREV = "6a950da86d7a6eb09d5ebeab17657986420d07ac"
18 24
19# Do not consider .z in x.y.z, as that is updated with every commit 25# Do not consider .z in x.y.z, as that is updated with every commit
20UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+)\.0" 26UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+)\.0"
27# Ignore that the upstream version .z in x.y.z is always newer
28UPSTREAM_VERSION_UNKNOWN = "1"
21 29
22S = "${WORKDIR}/git" 30S = "${WORKDIR}/git"
23 31
24VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" 32VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}"
25 33
26inherit autotools-brokensep update-alternatives mime-xdg 34inherit autotools-brokensep update-alternatives mime-xdg pkgconfig
27 35
28CLEANBROKEN = "1" 36CLEANBROKEN = "1"
29 37
@@ -32,29 +40,24 @@ do_configure () {
32 cd src 40 cd src
33 rm -f auto/* 41 rm -f auto/*
34 touch auto/config.mk 42 touch auto/config.mk
43 # git timestamps aren't reliable, so touch the shipped .po files so they aren't regenerated
44 touch -c po/cs.cp1250.po po/ja.euc-jp.po po/ja.sjis.po po/ko.po po/pl.UTF-8.po po/pl.cp1250.po po/ru.cp1251.po po/sk.cp1250.po po/uk.cp1251.po po/zh_CN.po po/zh_CN.cp936.po po/zh_TW.po
45 # ru.cp1251.po uses CP1251 rather than cp1251, fix that
46 sed -i -e s/CP1251/cp1251/ po/ru.cp1251.po
35 aclocal 47 aclocal
36 autoconf 48 autoconf
37 cd .. 49 cd ..
38 oe_runconf 50 oe_runconf
39 touch src/auto/configure 51 touch src/auto/configure
40 touch src/auto/config.mk src/auto/config.h 52 touch src/auto/config.mk src/auto/config.h
53 # need a native tool, not a target one
54 ${BUILD_CC} src/po/sjiscorr.c -o src/po/sjiscorr
41} 55}
42 56
43do_compile() { 57PACKAGECONFIG ??= "\
44 # We do not support fully / correctly the following locales. Attempting
45 # to use these with msgfmt in order to update the ".desktop" files exposes
46 # this problem and leads to the compile failing.
47 for LOCALE in cs fr ko pl sk zh_CN zh_TW;do
48 echo -n > src/po/${LOCALE}.po
49 done
50 autotools_do_compile
51}
52
53#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny
54PACKAGECONFIG ??= ""
55PACKAGECONFIG += " \
56 ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \ 58 ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \
57 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \ 59 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \
60 nls \
58" 61"
59 62
60PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3" 63PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3"
@@ -63,6 +66,7 @@ PACKAGECONFIG[x11] = "--with-x,--without-x,xt,"
63PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," 66PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,,"
64PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," 67PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
65PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," 68PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils,"
69PACKAGECONFIG[nls] = "--enable-nls,--disable-nls,,"
66 70
67EXTRA_OECONF = " \ 71EXTRA_OECONF = " \
68 --disable-gpm \ 72 --disable-gpm \
@@ -71,6 +75,7 @@ EXTRA_OECONF = " \
71 --disable-netbeans \ 75 --disable-netbeans \
72 --disable-desktop-database-update \ 76 --disable-desktop-database-update \
73 --with-tlib=ncurses \ 77 --with-tlib=ncurses \
78 --with-modified-by='${MAINTAINER}' \
74 ac_cv_small_wchar_t=no \ 79 ac_cv_small_wchar_t=no \
75 ac_cv_path_GLIB_COMPILE_RESOURCES=no \ 80 ac_cv_path_GLIB_COMPILE_RESOURCES=no \
76 vim_cv_getcwd_broken=no \ 81 vim_cv_getcwd_broken=no \
@@ -83,6 +88,11 @@ EXTRA_OECONF = " \
83 STRIP=/bin/true \ 88 STRIP=/bin/true \
84" 89"
85 90
91# Some host distros don't have it, disable consistently
92# also disable on dunfell target builds
93EXTRA_OECONF_append_class-native = " vim_cv_timer_create=no"
94EXTRA_OECONF_append_class-target = " vim_cv_timer_create=no"
95
86do_install() { 96do_install() {
87 autotools_do_install 97 autotools_do_install
88 98