wok-next view vim/receipt @ rev 20487
nareto: update config.ini.php path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 12 10:58:05 2018 +0100 (2018-03-12) |
parents | f1752c8b2a2a |
children | e7a485521d6a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="vim"
4 VERSION="8.0.069"
5 CATEGORY="editors"
6 SHORT_DESC="Advanced text editor"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="other"
9 WEB_SITE="http://www.vim.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="ftp://ftp.vim.org/pub/vim/unix/$TARBALL"
14 # python may be removed after "ncursesw problem" solved
15 BUILD_DEPENDS="python ncurses-dev acl-dev diffutils gettext"
16 SIBLINGS="vim-tiny"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
23 ./configure \
24 --without-x \
25 --disable-gui \
26 --enable-multibyte \
27 $CONFIGURE_ARGS &&
28 make && make install
30 mkdir -p $install/etc/vim
31 cp $src/runtime/vimrc_example.vim $install/etc/vim/vimrc
33 mkdir -p $install/usr/share/doc
34 ln -s ../vim/vim*/doc $install/usr/share/doc/vim-$VERSION
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 copy @std
41 CONFIG_FILES="/etc/vim/vimrc"
42 TAGS="text-editor"
43 DEPENDS="ncurses acl attr diffutils"
44 }
46 post_install_vim()
47 {
48 cmd=$(readlink "$1/bin/vi")
49 if [ "$cmd" != '/usr/bin/vim' ]; then
50 echo
51 echo "**** Actual VI link : $cmd"
52 echo
53 echo -n 'Do you want vim for /bin/vi (y/N)? : '; read -t 30 anser
54 if [ "$anser" == 'y' ]; then
55 echo
56 echo -n 'Removing vi link to make a new one pointing on /usr/bin/vim...'
57 rm "$1/bin/vi" && ln -sf /usr/bin/vim "$1/bin/vi"
58 status
59 else
60 echo
61 echo "Leaving /bin/vi to : $cmd"
62 fi
63 fi
64 }