wok view vim/receipt @ rev 1512

acpid: acpi_fakekey added
author Dominique Corbex <domcox@users.sourceforge.net>
date Mon Oct 06 19:15:21 2008 +0200 (2008-10-06)
parents 40da8025fa0b
children 74d9e193ac36
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=""
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="vim72"
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/vim72/_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/vim72 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 -sf $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 }