wok view vim-tiny/receipt @ rev 10082
Up: qt4 to 4.7.3. This adds sercurity fixes in this release. Add libQtPlugins so you don't need to install Qt4-dev to run mixxx.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri May 20 06:22:56 2011 +0000 (2011-05-20) |
parents | be13f25e790b |
children | 749ffdd335d7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="vim-tiny"
4 VERSION="7.3"
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/vim/vimrc"
14 TAGS="text-editor"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
21 # define the place for the global vimrc file (set to /etc/vim/vimrc)
22 # (patch from Arch Linux PKGBUILD)
23 sed -i 's|^.*\(#define SYS_VIMRC_FILE\).*$|\1 "/etc/vim/vimrc"|' $src/src/feature.h
25 ./configure --prefix=/usr \
26 --cache-file=$PWD/config.cache \
27 --infodir=/usr/share/info \
28 --with-features=tiny \
29 --with-x=no \
30 --disable-gui \
31 --enable-multibyte \
32 --with-vim-name=$PACKAGE \
33 --disable-acl \
34 --disable-motif-check \
35 --disable-athena-check \
36 --mandir=/usr/share/man $CONFIGURE_ARGS &&
38 make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim/vim73 MAKE="make -e" &&
39 make DESTDIR=$DESTDIR install
40 mkdir -p $DESTDIR/etc/vim
41 cp -a $src/runtime/vimrc_example.vim $DESTDIR/etc/vim/vimrc
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share $fs/etc
49 cp -a $_pkg/usr/bin $fs/usr
50 cp -a $_pkg/usr/share/vim $fs/usr/share
51 cp -a $_pkg/etc/vim $fs/etc
52 rm -f $fs/usr/bin/*tutor
53 }
55 post_install()
56 {
57 local root
58 root=$1
59 echo "Processing post-install commands..."
60 cmd=`readlink $root/bin/vi`
61 if [ ! "$cmd" = "/usr/bin/vim" ]; then
62 echo ""
63 echo "**** Actual VI link : $cmd"
64 echo ""
65 echo -n "Do you want vim for /bin/vi (y/N) ? : "; read anser
66 if [ "$anser" == "y" ]; then
67 echo ""
68 echo -n "Removing vi link to make a new one pointing on /usr/bin/vim..."
69 rm $root/bin/vi && ln -sf $root/usr/bin/vim-tiny $root/bin/vi
70 status
71 else
72 echo ""
73 echo "Leaving /bin/vi to : $cmd"
74 fi
75 fi
76 }
78 post_remove()
79 {
80 # restore previous symlink
81 echo "Processing post-remove commands..."
82 ln -sf /bin/busybox $1/bin/vi
83 }