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

Added /usr/lib/python2.7 and /usr/share/pygtk to vte package.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Dec 23 17:18:37 2010 +0000 (2010-12-23)
parents 734283599021
children 928de5046af6
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 --with-vim-name=$PACKAGE \
29 --disable-acl \
30 --disable-motif-check \
31 --disable-athena-check \
32 --mandir=/usr/share/man $CONFIGURE_ARGS &&
34 make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim/$src MAKE="make -e" &&
35 make DESTDIR=$PWD/_pkg install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 _pkg="$PWD/vim72/_pkg"
43 mkdir -p $fs/usr $fs/usr/share $fs/etc/vim
45 cp -a $_pkg/usr/bin $fs/usr
46 cp -a $_pkg/usr/share/vim $fs/usr/share
47 cp -a $WOK/$PACKAGE/vim72/runtime/vimrc_example.vim $fs/etc/vim/vimrc
48 rm -f $fs/usr/bin/*tutor
49 }
53 # Rules to clean extras dirs or files
54 clean_wok()
55 {
56 rm -rf $PWD/vim72 2>/dev/null
57 }
59 post_install()
60 {
61 local root
62 root=$1
63 echo "Processing post-install commands..."
64 cmd=`readlink $root/bin/vi`
65 if [ ! "$cmd" = "/usr/bin/vim" ]; then
66 echo ""
67 echo "**** Actual VI link : $cmd"
68 echo ""
69 echo -n "Do you want vim for /bin/vi (y/N) ? : "; read anser
70 if [ "$anser" == "y" ]; then
71 echo ""
72 echo -n "Removing vi link to make a new one pointing on /usr/bin/vim..."
73 rm $root/bin/vi && ln -sf $root/usr/bin/vim-tiny $root/bin/vi
74 status
75 else
76 echo ""
77 echo "Leaving /bin/vi to : $cmd"
78 fi
79 fi
80 }
82 post_remove()
83 {
84 # restore previous symlink
85 echo "Processing post-remove commands..."
86 ln -sf /bin/busybox /bin/vi
87 }