wok annotate gvim/receipt @ rev 16308
Add libQtMultimedia
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Apr 09 09:31:10 2014 +0300 (2014-04-09) |
parents | 749ffdd335d7 |
children | 2a2d57bb6788 |
rev | line source |
---|---|
erjo@2928 | 1 # SliTaz package receipt. |
erjo@2928 | 2 |
erjo@2928 | 3 PACKAGE="gvim" |
manuelfloresv@9417 | 4 VERSION="7.3" |
erjo@2928 | 5 CATEGORY="development" |
gokhlayeh@9147 | 6 SHORT_DESC="Advanced text editor, with gtk+ GUI" |
erjo@2928 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15600 | 8 LICENSE="other" |
gokhlayeh@9147 | 9 SOURCE="vim" |
gokhlayeh@9147 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
erjo@2928 | 11 WEB_SITE="http://www.vim.org/" |
gokhlayeh@9147 | 12 WGET_URL="ftp://ftp.vim.org/pub/vim/unix/$TARBALL" |
gokhlayeh@9147 | 13 CONFIG_FILES="/etc/vim/vimrc" |
gokhlayeh@9147 | 14 TAGS="text-editor" |
erjo@2928 | 15 |
pascal@15600 | 16 DEPENDS="ncurses gtk+ xorg-libXt xorg-libXau xorg-libXdmcp" |
pascal@15600 | 17 |
gokhlayeh@9131 | 18 # Rules to configure and make the package. |
gokhlayeh@9131 | 19 compile_rules() |
gokhlayeh@9131 | 20 { |
gokhlayeh@9131 | 21 cd $src |
manuelfloresv@9417 | 22 |
manuelfloresv@9417 | 23 # define the place for the global vimrc file (set to /etc/vim/vimrc) |
manuelfloresv@9417 | 24 # (patch from Arch Linux PKGBUILD) |
manuelfloresv@9417 | 25 sed -i 's|^.*\(#define SYS_VIMRC_FILE\).*$|\1 "/etc/vim/vimrc"|' $src/src/feature.h |
manuelfloresv@9417 | 26 # and global gvimrc file (set to /etc/vim/gvimrc) |
manuelfloresv@9417 | 27 sed -i 's|^.*\(#define SYS_GVIMRC_FILE\).*$|\1 "/etc/vim/gvimrc"|' $src/src/feature.h |
gokhlayeh@9131 | 28 |
gokhlayeh@9131 | 29 ./configure --prefix=/usr \ |
gokhlayeh@9131 | 30 --cache-file=$PWD/config.cache \ |
gokhlayeh@9131 | 31 --infodir=/usr/share/info \ |
gokhlayeh@9131 | 32 --with-features=normal \ |
manuelfloresv@9417 | 33 --with-x=yes \ |
gokhlayeh@9131 | 34 --enable-gui=gtk2 \ |
gokhlayeh@9131 | 35 --enable-multibyte \ |
gokhlayeh@9131 | 36 --disable-motif-check \ |
gokhlayeh@9131 | 37 --disable-athena-check \ |
gokhlayeh@9131 | 38 --mandir=/usr/share/man $CONFIGURE_ARGS && |
gokhlayeh@9131 | 39 |
manuelfloresv@9417 | 40 make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim/vim73 MAKE="make -e" && |
gokhlayeh@9131 | 41 make DESTDIR=$DESTDIR install |
gokhlayeh@9131 | 42 mkdir -p $DESTDIR/etc/vim |
gokhlayeh@9131 | 43 cp -a $src/runtime/vimrc_example.vim $DESTDIR/etc/vim/vimrc |
gokhlayeh@9131 | 44 } |
gokhlayeh@9131 | 45 |
erjo@2928 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@2928 | 47 genpkg_rules() |
erjo@2928 | 48 { |
manuelfloresv@9417 | 49 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications $fs/etc |
gokhlayeh@9131 | 50 |
pascal@15600 | 51 cp -a $install/usr/bin $fs/usr |
pascal@15600 | 52 cp -a $install/usr/share/vim $fs/usr/share |
slaxemulator@8751 | 53 cp -a $src/runtime/vim16x16.png $fs/usr/share/pixmaps/gvim.png |
erjo@2928 | 54 cp -a stuff/gvim.desktop $fs/usr/share/applications |
pascal@15600 | 55 cp -a $install/etc/vim $fs/etc |
erjo@2928 | 56 } |
erjo@2928 | 57 |
manuelfloresv@9417 | 58 post_install() |
manuelfloresv@9417 | 59 { |
manuelfloresv@9417 | 60 local root |
manuelfloresv@9417 | 61 root=$1 |
manuelfloresv@9417 | 62 echo "Processing post-install commands..." |
manuelfloresv@9417 | 63 cmd=`readlink $root/bin/vi` |
manuelfloresv@9417 | 64 if [ ! "$cmd" = "/usr/bin/vim" ]; then |
manuelfloresv@9417 | 65 echo "" |
manuelfloresv@9417 | 66 echo "**** Actual VI link : $cmd" |
manuelfloresv@9417 | 67 echo "" |
pascal@14582 | 68 echo -n "Do you want vim for /bin/vi (y/N) ? : "; read -t 30 anser |
manuelfloresv@9417 | 69 if [ "$anser" == "y" ]; then |
manuelfloresv@9417 | 70 echo "" |
manuelfloresv@9417 | 71 echo -n "Removing vi link to make a new one pointing on /usr/bin/vim..." |
manuelfloresv@9417 | 72 rm $root/bin/vi && ln -sf $root/usr/bin/vim $root/bin/vi |
manuelfloresv@9417 | 73 status |
manuelfloresv@9417 | 74 else |
manuelfloresv@9417 | 75 echo "" |
manuelfloresv@9417 | 76 echo "Leaving /bin/vi to : $cmd" |
manuelfloresv@9417 | 77 fi |
manuelfloresv@9417 | 78 fi |
manuelfloresv@9417 | 79 } |
erjo@2928 | 80 |
manuelfloresv@9417 | 81 post_remove() |
manuelfloresv@9417 | 82 { |
manuelfloresv@9417 | 83 # restore previous symlink |
manuelfloresv@9417 | 84 echo "Processing post-remove commands..." |
manuelfloresv@9417 | 85 ln -sf /bin/busybox $1/bin/vi |
manuelfloresv@9417 | 86 } |
manuelfloresv@9417 | 87 |