wok-current view vim-tiny/receipt @ rev 9310

Up: leocad to 0.75.1. Now using source code. Fixed leocad-pieces also.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Mar 17 18:56:00 2011 +0000 (2011-03-17)
parents 928de5046af6
children ee65475504e7
line source
1 # SliTaz package receipt.
3 PACKAGE="vim-tiny"
4 VERSION="7.2"
5 CATEGORY="development"
6 SHORT_DESC="Advanced text editor with no GUI"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ncurses"
9 SOURCE="vim"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.vim.org/"
12 WGET_URL="ftp://ftp.vim.org/pub/vim/unix/$TARBALL"
13 CONFIG_FILES="/etc/vimrc.tiny"
14 TAGS="text-editor"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
21 ./configure --prefix=/usr \
22 --cache-file=$PWD/config.cache \
23 --infodir=/usr/share/info \
24 --with-features=tiny \
25 --enable-gui=no \
26 --enable-multibyte \
27 --with-vim-name=$PACKAGE \
28 --disable-acl \
29 --disable-motif-check \
30 --disable-athena-check \
31 --mandir=/usr/share/man $CONFIGURE_ARGS &&
33 make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim/$src MAKE="make -e" &&
34 make DESTDIR=$DESTDIR install
35 mkdir -p $DESTDIR/etc/vim
36 cp -a $src/runtime/vimrc_example.vim $DESTDIR/etc/vim/vimrc
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr $fs/usr/share
44 cp -a $_pkg/usr/bin $fs/usr
45 cp -a $_pkg/usr/share/vim $fs/usr/share
46 rm -f $fs/usr/bin/*tutor
47 }
49 post_install()
50 {
51 local root
52 root=$1
53 echo "Processing post-install commands..."
54 cmd=`readlink $root/bin/vi`
55 if [ ! "$cmd" = "/usr/bin/vim" ]; then
56 echo ""
57 echo "**** Actual VI link : $cmd"
58 echo ""
59 echo -n "Do you want vim for /bin/vi (y/N) ? : "; read anser
60 if [ "$anser" == "y" ]; then
61 echo ""
62 echo -n "Removing vi link to make a new one pointing on /usr/bin/vim..."
63 rm $root/bin/vi && ln -sf $root/usr/bin/vim-tiny $root/bin/vi
64 status
65 else
66 echo ""
67 echo "Leaving /bin/vi to : $cmd"
68 fi
69 fi
70 }
72 post_remove()
73 {
74 # restore previous symlink
75 echo "Processing post-remove commands..."
76 ln -sf /bin/busybox $1/bin/vi
77 }