wok-6.x view vim/receipt @ rev 9088
slitaz-doc: typo in genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 04 18:21:03 2011 +0100 (2011-03-04) |
parents | 403fb8adf07d |
children | ab3455634715 |
line source
1 # SliTaz package receipt.
3 PACKAGE="vim"
4 VERSION="7.2"
5 CATEGORY="development"
6 SHORT_DESC="Advanced text editor"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ncurses gtk+ acl xorg-libXt"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.vim.org/"
11 WGET_URL="ftp://ftp.vim.org/pub/vim/unix/$TARBALL"
12 CONFIG_FILES="/etc/vim/vimrc"
13 TAGS="text-editor"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
20 ./configure --prefix=/usr \
21 --cache-file=$PWD/config.cache \
22 --infodir=/usr/share/info \
23 --with-features=normal \
24 --enable-gui=gtk2 \
25 --enable-multibyte \
26 --disable-motif-check \
27 --disable-athena-check \
28 --mandir=/usr/share/man $CONFIGURE_ARGS &&
30 make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim/$src MAKE="make -e" &&
31 make DESTDIR=$DESTDIR install
32 mkdir -p $DESTDIR/etc/vim
33 cp -a $src/runtime/vimrc_example.vim $DESTDIR/etc/vim/vimrc
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr $fs/usr/share
41 cp -a $_pkg/usr/bin $fs/usr
42 cp -a $_pkg/usr/share/vim $fs/usr/share
43 rm -f $fs/usr/bin/*vimtutor
44 }
46 post_install()
47 {
48 local root
49 root=$1
50 echo "Processing post-install commands..."
51 cmd=`readlink $root/bin/vi`
52 if [ ! "$cmd" = "/usr/bin/vim" ]; then
53 echo ""
54 echo "**** Actual VI link : $cmd"
55 echo ""
56 echo -n "Do you want vim for /bin/vi (y/N) ? : "; read anser
57 if [ "$anser" == "y" ]; then
58 echo ""
59 echo -n "Removing vi link to make a new one pointing on /usr/bin/vim..."
60 rm $root/bin/vi && ln -sf $root/usr/bin/vim $root/bin/vi
61 status
62 else
63 echo ""
64 echo "Leaving /bin/vi to : $cmd"
65 fi
66 fi
67 }
69 post_remove()
70 {
71 # restore previous symlink
72 echo "Processing post-remove commands..."
73 ln -sf /bin/busybox $1/bin/vi
74 }