wok rev 9131

Make vim don't depends on X/GTK stuff
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Mar 06 04:31:26 2011 +0100 (2011-03-06)
parents 3462b29cbd82
children 4abb57275e48
files gvim/receipt vim/receipt
line diff
     1.1 --- a/gvim/receipt	Sat Mar 05 17:22:27 2011 +0000
     1.2 +++ b/gvim/receipt	Sun Mar 06 04:31:26 2011 +0100
     1.3 @@ -5,25 +5,41 @@
     1.4  CATEGORY="development"
     1.5  SHORT_DESC="Advanced text editor"
     1.6  MAINTAINER="erjo@slitaz.org"
     1.7 -DEPENDS="vim"
     1.8 -WANTED="vim"
     1.9 +DEPENDS="ncurses gtk+ xorg-libXt"
    1.10  WEB_SITE="http://www.vim.org/"
    1.11  
    1.12 +# Rules to configure and make the package.
    1.13 +compile_rules()
    1.14 +{
    1.15 +	cd $src
    1.16 +	
    1.17 +	./configure --prefix=/usr \
    1.18 +	 --cache-file=$PWD/config.cache \
    1.19 +	 --infodir=/usr/share/info \
    1.20 +	 --with-features=normal \
    1.21 +	 --enable-gui=gtk2 \
    1.22 + 	 --enable-multibyte \
    1.23 +	 --disable-motif-check \
    1.24 +	 --disable-athena-check \
    1.25 +	 --mandir=/usr/share/man $CONFIGURE_ARGS && 
    1.26 +	 
    1.27 +	make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim/$src MAKE="make -e" &&
    1.28 +	make DESTDIR=$DESTDIR install
    1.29 +	mkdir -p $DESTDIR/etc/vim
    1.30 +	cp -a $src/runtime/vimrc_example.vim $DESTDIR/etc/vim/vimrc
    1.31 +}
    1.32 +
    1.33  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.34  genpkg_rules()
    1.35  {
    1.36 -	mkdir -p $fs/usr/bin \
    1.37 -		-p $fs/usr/share/pixmaps \
    1.38 +	mkdir -p -p $fs/usr/share/pixmaps \
    1.39  		-p $fs/usr/share/applications
    1.40 -	
    1.41 -	for i in eview evim gview gvim gvimdiff rgvim rgview 
    1.42 -	do
    1.43 -		cp -a $_pkg/usr/bin/$i $fs/usr/bin
    1.44 -	done
    1.45 -	
    1.46 +
    1.47 +	cp -a $_pkg/usr/bin $fs/usr
    1.48 +	cp -a $_pkg/usr/share/vim $fs/usr/share
    1.49  	cp -a $src/runtime/vim16x16.png $fs/usr/share/pixmaps/gvim.png
    1.50 -		
    1.51  	cp -a stuff/gvim.desktop $fs/usr/share/applications
    1.52 +	rm -f $fs/usr/bin/*vimtutor
    1.53  }
    1.54  
    1.55  
     2.1 --- a/vim/receipt	Sat Mar 05 17:22:27 2011 +0000
     2.2 +++ b/vim/receipt	Sun Mar 06 04:31:26 2011 +0100
     2.3 @@ -5,7 +5,7 @@
     2.4  CATEGORY="development"
     2.5  SHORT_DESC="Advanced text editor"
     2.6  MAINTAINER="erjo@slitaz.org"
     2.7 -DEPENDS="ncurses gtk+ acl xorg-libXt"
     2.8 +DEPENDS="ncurses"
     2.9  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.10  WEB_SITE="http://www.vim.org/"
    2.11  WGET_URL="ftp://ftp.vim.org/pub/vim/unix/$TARBALL"
    2.12 @@ -21,7 +21,7 @@
    2.13  	 --cache-file=$PWD/config.cache \
    2.14  	 --infodir=/usr/share/info \
    2.15  	 --with-features=normal \
    2.16 -	 --enable-gui=gtk2 \
    2.17 +	 --disable-gui \
    2.18   	 --enable-multibyte \
    2.19  	 --disable-motif-check \
    2.20  	 --disable-athena-check \