wok-6.x rev 22106
updated vim-tiny (7.3 -> 8.1.2237)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Nov 01 16:19:45 2019 +0100 (2019-11-01) |
parents | c16b1e0dda38 |
children | 1255df1c6834 |
files | vim-tiny/receipt |
line diff
1.1 --- a/vim-tiny/receipt Fri Nov 01 15:55:08 2019 +0100 1.2 +++ b/vim-tiny/receipt Fri Nov 01 16:19:45 2019 +0100 1.3 @@ -1,21 +1,23 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="vim-tiny" 1.7 -VERSION="7.3" 1.8 +VERSION="8.1.2237" 1.9 CATEGORY="editors" 1.10 -SHORT_DESC="Advanced text editor with no GUI" 1.11 +TAGS="text-editor" 1.12 +SHORT_DESC="Advanced text editor without GUI." 1.13 MAINTAINER="erjo@slitaz.org" 1.14 LICENSE="other" 1.15 +WEB_SITE="https://www.vim.org/" 1.16 + 1.17 SOURCE="vim" 1.18 TARBALL="$SOURCE-$VERSION.tar.bz2" 1.19 -WEB_SITE="http://www.vim.org/" 1.20 -WGET_URL="ftp://ftp.vim.org/pub/vim/unix/$TARBALL" 1.21 -CONFIG_FILES="/etc/vim/vimrc" 1.22 -TAGS="text-editor" 1.23 +WGET_URL="https://github.com/$SOURCE/$SOURCE/archive/v$VERSION.tar.gz" 1.24 1.25 DEPENDS="ncurses" 1.26 BUILD_DEPENDS="ncurses-dev" 1.27 1.28 +CONFIG_FILES="/etc/vim/vimrc" 1.29 + 1.30 # Rules to configure and make the package. 1.31 compile_rules() 1.32 { 1.33 @@ -25,21 +27,26 @@ 1.34 # (patch from Arch Linux PKGBUILD) 1.35 sed -i 's|^.*\(#define SYS_VIMRC_FILE\).*$|\1 "/etc/vim/vimrc"|' $src/src/feature.h 1.36 1.37 - ./configure --prefix=/usr \ 1.38 - --cache-file=$PWD/config.cache \ 1.39 - --infodir=/usr/share/info \ 1.40 - --with-features=tiny \ 1.41 - --with-x=no \ 1.42 - --disable-gui \ 1.43 - --enable-multibyte \ 1.44 - --with-vim-name=$PACKAGE \ 1.45 - --disable-acl \ 1.46 - --disable-motif-check \ 1.47 - --disable-athena-check \ 1.48 - --mandir=/usr/share/man $CONFIGURE_ARGS && 1.49 + ./configure \ 1.50 + --prefix=/usr \ 1.51 + --cache-file=$PWD/config.cache \ 1.52 + --infodir=/usr/share/info \ 1.53 + --with-features=tiny \ 1.54 + --with-x=no \ 1.55 + --disable-gui \ 1.56 + --enable-multibyte \ 1.57 + --with-vim-name=$PACKAGE \ 1.58 + --disable-acl \ 1.59 + --disable-motif-check \ 1.60 + --disable-athena-check \ 1.61 + --mandir=/usr/share/man \ 1.62 + $CONFIGURE_ARGS && 1.63 + make \ 1.64 + VIMRCLOC=/etc/vim \ 1.65 + VIMRUNTIMEDIR=/usr/share/vim/vim81 \ 1.66 + MAKE="make -e" && 1.67 + make DESTDIR=$DESTDIR install 1.68 1.69 - make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim/vim73 MAKE="make -e" && 1.70 - make DESTDIR=$DESTDIR install 1.71 mkdir -p $DESTDIR/etc/vim 1.72 cp -a $src/runtime/vimrc_example.vim $DESTDIR/etc/vim/vimrc 1.73 } 1.74 @@ -47,28 +54,32 @@ 1.75 # Rules to gen a SliTaz package suitable for Tazpkg. 1.76 genpkg_rules() 1.77 { 1.78 - mkdir -p $fs/usr/share $fs/etc 1.79 + mkdir -p $fs/usr/share 1.80 + mkdir -p $fs/etc 1.81 1.82 - cp -a $install/usr/bin $fs/usr 1.83 - cp -a $install/usr/share/vim $fs/usr/share 1.84 - cp -a $install/etc/vim $fs/etc 1.85 + cp -a $install/usr/bin $fs/usr 1.86 + cp -a $install/usr/share/vim $fs/usr/share 1.87 + cp -a $install/etc/vim $fs/etc 1.88 + 1.89 rm -f $fs/usr/bin/*tutor 1.90 } 1.91 1.92 post_install() 1.93 { 1.94 cmd=$(readlink "$1/bin/vi") 1.95 - if [ "$cmd" != '/usr/bin/vim' ]; then 1.96 + if [ "$cmd" != '/usr/bin/vim' ] 1.97 + then 1.98 echo '' 1.99 echo "**** Actual VI link : $cmd" 1.100 echo '' 1.101 echo -n 'Do you want vim for /bin/vi (y/N) ? : '; read -t 30 anser 1.102 - if [ "$anser" = 'y' ]; then 1.103 + if [ "$anser" = 'y' ] 1.104 + then 1.105 echo '' 1.106 action 'Removing vi link to make a new one pointing on /usr/bin/vim...' 1.107 rm "$1/bin/vi" && ln -sf /usr/bin/vim-tiny "$1/bin/vi" 1.108 status 1.109 - else 1.110 + else 1.111 echo '' 1.112 echo "Leaving /bin/vi to : $cmd" 1.113 fi