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