* updated kmailtransport (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / editors / vim / vim.conf
blob9817abfc4fd0cfd5a6a527f816bf769ba0daa3b6
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3
4 # T2 SDE: package/*/vim/vim.conf
5 # Copyright (C) 2004 - 2021 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7
8 # More information can be found in the files COPYING and README.
9
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 vim_postmake() {
17         if [ "$SDECFG_PKG_VIM_TWO_BINARIES" = 1 ]; then
18           rm -fv $root$bindir/{gvim,gvimdiff,evim,rgvim}
19           mv -fv $root$bindir/vim $root$bindir/gvim
20           ln -svf gvim $root$bindir/gvimdiff
21           ln -svf gvim $root$bindir/evim
22           ln -svf gvim $root$bindir/rgvim
24           var_append confopt ' ' "--enable-gui=no --without-x"
26           echo "Running configure $confopt ..."
27           cd src
28           eval_config_command $(echo $confopt)
29           cd ..
30           echo "Running $MAKE $makeopt ..."
31           eval $MAKE $makeopt
32           cp -vf src/vim $root$bindir/vim
33         fi
35         if [ "$SDECFG_PKG_VIM_IS_VI_REPLACEMENT" = 1 ]; then
36           rm -f $root$bindir/vi
37           ln -sf vim $root$bindir/vi
38         fi
40         # now hopefully all are happy;-)
41         cp -fv $confdir/vimrc* $root/$prefix/share/vim/
42         mkdir -pv $root/$prefix/share/vim/vimfiles/plugin
44 hook_add postmake 5 "vim_postmake"
46 vim_cache() {
47         cat >> config.cache <<-EOT
48                 ac_cv_small_wchar_t=no
49                 vim_cv_getcwd_broken=no
50                 vim_cv_memmove_handles_overlap=yes
51                 vim_cv_stat_ignores_slash=no
52                 vim_cv_terminfo=yes
53                 vim_cv_tgetent=zero
54                 vim_cv_toupper_broken=no
55                 vim_cv_tty_group=tty
56                 vim_cv_tty_mode=640
57                 ac_cv_small_wchar_t=yes
58 EOT
60 atstage cross && hook_add preconf 5 "vim_cache"
62 hook_add preconf 2 "cd src"
63 configscript="auto/configure"
64 hook_add premake 5 "cd .."
66 var_append confopt ' ' "--with-tlib=ncurses --srcdir ."
67 var_append confopt ' ' "--with-features=$SDECFG_PKG_VIM_FEATURES"
69 [ "$SDECFG_PKG_VIM_PERLINTERP" = 1 ] &&
70         var_append confopt ' ' "--enable-perlinterp"
71 [ "$SDECFG_PKG_VIM_PYTHONINTERP" = 1 ] &&
72         var_append confopt ' ' "--enable-pythoninterp"
73 [ "$SDECFG_PKG_VIM_RUBYINTERP" = 1 ] &&
74         var_append confopt ' ' "--enable-rubyinterp"
75 [ "$SDECFG_PKG_VIM_TCLINTERP" = 1 ] &&
76         var_append confopt ' ' "--enable-tclinterp --with-tclsh=tclsh"
78 [ "$SDECFG_PKG_VIM_GUI" = "auto" ] && pkginstalled gtk+ && SDECFG_PKG_VIM_GUI=gtk3
79 var_append extraconfopt ' ' "--enable-gui=$SDECFG_PKG_VIM_GUI"