wok view vim/receipt @ rev 431
UP: tazusb (1.2.1) minor fix
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 13 22:20:52 2008 +0100 (2008-03-13) |
parents | 204e8301b98c |
children | a075ff895254 |
line source
1 # SliTaz package receipt.
3 PACKAGE="vim"
4 VERSION="7.1"
5 CATEGORY="development"
6 SHORT_DESC="Advanced text editor"
7 MAINTAINER="Erjo <erjo@slita.org>"
8 DEPENDS=""
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.vim.org/"
11 WGET_URL="ftp://ftp.vim.org/pub/vim/unix/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 src="vim71"
17 cd $src
19 ./configure --prefix=/usr \
20 --cache-file=$PWD/config.cache \
21 --infodir=/usr/share/info \
22 --with-features=normal \
23 --enable-gui=no \
24 --without-x
25 --mandir=/usr/share/man $CONFIGURE_ARGS
27 make
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 _pkg="$PWD/vim71/_pkg"
35 mkdir -p $fs/usr $fs/usr/share
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/share/vim $fs/usr/share
39 rm -f $fs/usr/bin/vimtutor
41 strip -s $fs/usr/bin/*
42 }
45 # Rules to clean extras dirs or files
46 clean_wok()
47 {
48 rm -rf $PWD/vim71 2>/dev/null
49 }
51 post_install()
52 {
53 local root
54 root=$1
55 echo "Processing post-install commands..."
56 cmd=`readlink $root/bin/vi`
57 if [ ! "$cmd" = "/usr/bin/vim" ]; then
58 echo ""
59 echo "**** Actual VI link : $cmd"
60 echo ""
61 echo -n "Do you want vim for /bin/vi (y/N) ? : "; read anser
62 if [ "$anser" == "y" ]; then
63 echo ""
64 echo -n "Removing vi link to make a new one pointing on /usr/bin/vim..."
65 rm $root/bin/vi && ln -s $root/usr/bin/vim $root/bin/vi
66 status
67 else
68 echo ""
69 echo "Leaving /bin/vi to : $cmd"
70 fi
71 fi
72 }