wok view vim-tiny/receipt @ rev 8376

Add openldep-dev to pam_ldap build depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Feb 04 03:07:30 2011 +0000 (2011-02-04)
parents f917e0dfdfbd
children be13f25e790b
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 src=vim72
20 #test -d $PACKAGE-$VERSION || mv vim72 $PACKAGE-$VERSION
21 cd $src
23 ./configure --prefix=/usr \
24 --cache-file=$PWD/config.cache \
25 --infodir=/usr/share/info \
26 --with-features=tiny \
27 --enable-gui=no \
28 --enable-multibyte \
29 --with-vim-name=$PACKAGE \
30 --disable-acl \
31 --disable-motif-check \
32 --disable-athena-check \
33 --mandir=/usr/share/man $CONFIGURE_ARGS &&
35 make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim/$src MAKE="make -e" &&
36 make DESTDIR=$PWD/_pkg install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 _pkg="$PWD/vim72/_pkg"
44 mkdir -p $fs/usr $fs/usr/share $fs/etc/vim
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/share/vim $fs/usr/share
48 cp -a $WOK/$PACKAGE/vim72/runtime/vimrc_example.vim $fs/etc/vim/vimrc
49 rm -f $fs/usr/bin/*tutor
50 }
54 # Rules to clean extras dirs or files
55 clean_wok()
56 {
57 rm -rf $PWD/vim72 2>/dev/null
58 }
60 post_install()
61 {
62 local root
63 root=$1
64 echo "Processing post-install commands..."
65 cmd=`readlink $root/bin/vi`
66 if [ ! "$cmd" = "/usr/bin/vim" ]; then
67 echo ""
68 echo "**** Actual VI link : $cmd"
69 echo ""
70 echo -n "Do you want vim for /bin/vi (y/N) ? : "; read anser
71 if [ "$anser" == "y" ]; then
72 echo ""
73 echo -n "Removing vi link to make a new one pointing on /usr/bin/vim..."
74 rm $root/bin/vi && ln -sf $root/usr/bin/vim-tiny $root/bin/vi
75 status
76 else
77 echo ""
78 echo "Leaving /bin/vi to : $cmd"
79 fi
80 fi
81 }
83 post_remove()
84 {
85 # restore previous symlink
86 echo "Processing post-remove commands..."
87 ln -sf /bin/busybox /bin/vi
88 }