wok annotate gvim/receipt @ rev 23532

updated python-prompt-toolkit (0.57 -> 2.0.10)
author Hans-G?nter Theisgen
date Mon Apr 06 15:37:40 2020 +0100 (2020-04-06)
parents da0a38e4800e
children af8d823a3077
rev   line source
erjo@2928 1 # SliTaz package receipt.
erjo@2928 2
erjo@2928 3 PACKAGE="gvim"
Hans-G?nter@22921 4 VERSION="8.2"
pascal@18559 5 CATEGORY="editors"
Hans-G?nter@21019 6 TAGS="text-editor"
Hans-G?nter@21019 7 SHORT_DESC="Advanced text editor, with gtk+ GUI."
erjo@2928 8 MAINTAINER="erjo@slitaz.org"
pascal@15600 9 LICENSE="other"
Hans-G?nter@21019 10 WEB_SITE="https://www.vim.org/"
Hans-G?nter@21019 11
gokhlayeh@9147 12 SOURCE="vim"
gokhlayeh@9147 13 TARBALL="$SOURCE-$VERSION.tar.bz2"
gokhlayeh@9147 14 WGET_URL="ftp://ftp.vim.org/pub/vim/unix/$TARBALL"
Hans-G?nter@21019 15
Hans-G?nter@22921 16 PROVIDES="xxd"
Hans-G?nter@21019 17 DEPENDS="gtk+ ncurses xorg-libXau xorg-libXdmcp xorg-libXt"
Hans-G?nter@21019 18 BUILD_DEPENDS="gtk+-dev"
gokhlayeh@9147 19 CONFIG_FILES="/etc/vim/vimrc"
pascal@15600 20
gokhlayeh@9131 21 # Rules to configure and make the package.
gokhlayeh@9131 22 compile_rules()
gokhlayeh@9131 23 {
pascal@17751 24 export LDFLAGS="$LDFLAGS -ltinfo"
manuelfloresv@9417 25
manuelfloresv@9417 26 # define the place for the global vimrc file (set to /etc/vim/vimrc)
manuelfloresv@9417 27 # (patch from Arch Linux PKGBUILD)
Hans-G?nter@21019 28 sed -i 's|^.*\(#define SYS_VIMRC_FILE\).*$|\1 "/etc/vim/vimrc"|' \
Hans-G?nter@21019 29 $src/src/feature.h
manuelfloresv@9417 30 # and global gvimrc file (set to /etc/vim/gvimrc)
Hans-G?nter@21019 31 sed -i 's|^.*\(#define SYS_GVIMRC_FILE\).*$|\1 "/etc/vim/gvimrc"|' \
Hans-G?nter@21019 32 $src/src/feature.h
al@18303 33
Hans-G?nter@21019 34 ./configure \
Hans-G?nter@21019 35 --prefix=/usr \
Hans-G?nter@21019 36 --cache-file=$PWD/config.cache \
Hans-G?nter@21019 37 --infodir=/usr/share/info \
Hans-G?nter@21019 38 --mandir=/usr/share/man \
Hans-G?nter@21019 39 --with-features=normal \
Hans-G?nter@21019 40 --with-x=yes \
Hans-G?nter@21019 41 --enable-gui=gtk2 \
Hans-G?nter@21019 42 --enable-multibyte \
Hans-G?nter@21019 43 --disable-athena-check \
Hans-G?nter@21019 44 --disable-motif-check \
al@18303 45 $CONFIGURE_ARGS &&
al@18303 46
Hans-G?nter@22921 47 make \
Hans-G?nter@22921 48 VIMRCLOC=/etc/vim \
Hans-G?nter@22921 49 VIMRUNTIMEDIR=/usr/share/vim/vim82 \
Hans-G?nter@22921 50 MAKE="make -e" &&
gokhlayeh@9131 51 make DESTDIR=$DESTDIR install
Hans-G?nter@21019 52
gokhlayeh@9131 53 mkdir -p $DESTDIR/etc/vim
Hans-G?nter@21019 54 cp -a $src/runtime/vimrc_example.vim $DESTDIR/etc/vim/vimrc
gokhlayeh@9131 55 }
gokhlayeh@9131 56
erjo@2928 57 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@2928 58 genpkg_rules()
erjo@2928 59 {
Hans-G?nter@22921 60 mkdir -p $fs/usr/share/icons/hicolor/16x16/apps
Hans-G?nter@22921 61 mkdir -p $fs/usr/share/applications
Hans-G?nter@22921 62 mkdir -p $fs/etc
gokhlayeh@9131 63
Hans-G?nter@21019 64 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21019 65 cp -a $install/usr/share/vim $fs/usr/share
Hans-G?nter@21019 66 cp -a $src/runtime/vim16x16.png $fs/usr/share/icons/hicolor/16x16/apps/gvim.png
Hans-G?nter@21019 67 cp -a stuff/gvim.desktop $fs/usr/share/applications
Hans-G?nter@21019 68 cp -a $install/etc/vim $fs/etc
erjo@2928 69 }
erjo@2928 70
manuelfloresv@9417 71 post_install()
manuelfloresv@9417 72 {
pascal@18730 73 cmd=$(readlink "$1/bin/vi")
Hans-G?nter@22921 74 if [ ! "$cmd" = '/usr/bin/vim' ]
Hans-G?nter@22921 75 then
al@18303 76 echo ""
al@18303 77 echo "**** Actual VI link : $cmd"
al@18303 78 echo ""
al@18303 79 echo -n "Do you want vim for /bin/vi (y/N) ? : "; read -t 30 answer
Hans-G?nter@22921 80 if [ "$answer" = 'y' ]
Hans-G?nter@22921 81 then
al@18303 82 echo ""
al@18303 83 echo -n "Removing vi link to make a new one pointing on /usr/bin/vim..."
pascal@18730 84 rm "$1/bin/vi" && ln -sf /usr/bin/vim "$1/bin/vi"
al@18303 85 status
Hans-G?nter@22921 86 else
al@18303 87 echo ""
al@18303 88 echo "Leaving /bin/vi to : $cmd"
al@18303 89 fi
al@18303 90 fi
manuelfloresv@9417 91 }
erjo@2928 92
manuelfloresv@9417 93 post_remove()
manuelfloresv@9417 94 {
al@18303 95 # restore previous symlink
pascal@18730 96 ln -sf busybox "$1/bin/vi"
manuelfloresv@9417 97 }