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