vim: Update from 8.0.1152 to 8.0.1180
[termux-packages] / packages / vim-python / build.sh
1 TERMUX_PKG_DESCRIPTION="Vi IMproved - enhanced vi editor"
2 TERMUX_PKG_HOMEPAGE=http://www.vim.org/
3 TERMUX_PKG_DEPENDS="ncurses, vim-runtime, python"
4
5 # Vim 8.0 patches described at ftp://ftp.vim.org/pub/vim/patches/8.0/README
6 TERMUX_PKG_VERSION=8.0.1180
7 TERMUX_PKG_SHA256=158650906b835d6689bf6b9c1999d29cbefeb3f81a372e4a006940db5a72f6ed
8 TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz"
9 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
10 vim_cv_getcwd_broken=no
11 vim_cv_memmove_handles_overlap=yes
12 vim_cv_stat_ignores_slash=no
13 vim_cv_terminfo=yes
14 vim_cv_tgent=zero
15 vim_cv_toupper_broken=no
16 vim_cv_tty_group=world
17 --enable-gui=no
18 --enable-multibyte
19 --with-features=huge
20 --without-x
21 --with-tlib=ncursesw
22 "
23 TERMUX_PKG_BUILD_IN_SRC="yes"
24 TERMUX_PKG_RM_AFTER_INSTALL="
25 bin/rview
26 bin/rvim
27 bin/ex
28 share/man/man1/evim.1
29 share/icons
30 share/vim/vim80/spell/en.ascii*
31 share/vim/vim80/print
32 share/vim/vim80/tools
33 "
34 TERMUX_PKG_CONFFILES="share/vim/vimrc"
35
36 # vim-python:
37 TERMUX_PKG_CONFLICTS="vim"
38 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="
39 vi_cv_path_python3_pfx=$TERMUX_PREFIX
40 vi_cv_var_python3_version=3.6
41 --enable-python3interp
42 --with-python3-config-dir=$TERMUX_PREFIX/lib/python3.6/config-3.6m/
43 "
44 TERMUX_PKG_DESCRIPTION+=" - with python support"
45 termux_step_pre_configure() {
46 CPPFLAGS+=" -I${TERMUX_PREFIX}/include/python3.6m"
47 }
48
49 termux_step_pre_configure () {
50 make distclean
51
52 # Remove eventually existing symlinks from previous builds so that they get re-created
53 for b in rview rvim ex view vimdiff; do rm -f $TERMUX_PREFIX/bin/$b; done
54 rm -f $TERMUX_PREFIX/share/man/man1/view.1
55 }
56
57 termux_step_post_make_install () {
58 cp $TERMUX_PKG_BUILDER_DIR/vimrc $TERMUX_PREFIX/share/vim/vimrc
59
60 # Remove most tutor files:
61 cp $TERMUX_PREFIX/share/vim/vim80/tutor/{tutor,tutor.vim,tutor.utf-8} $TERMUX_PKG_TMPDIR/
62 rm -f $TERMUX_PREFIX/share/vim/vim80/tutor/*
63 cp $TERMUX_PKG_TMPDIR/{tutor,tutor.vim,tutor.utf-8} $TERMUX_PREFIX/share/vim/vim80/tutor/
64
65 cd $TERMUX_PREFIX/bin
66 ln -f -s vim vi
67 }