# HG changeset patch # User Eric Joseph-Alexandre # Date 1241684972 -7200 # Node ID 9723cd73a081cc08f188691a3e9c8642afdba7d3 # Parent f306d126580e9b7f29a5bd27673ecbfaf6631b9d Fix: Vim, add GUI support. Add global vimrc diff -r f306d126580e -r 9723cd73a081 vim/receipt --- a/vim/receipt Thu May 07 09:37:08 2009 +0200 +++ b/vim/receipt Thu May 07 10:29:32 2009 +0200 @@ -9,6 +9,7 @@ TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.vim.org/" WGET_URL="ftp://ftp.vim.org/pub/vim/unix/$TARBALL" +CONFIG_FIELS="/etc/vimrc" # Rules to configure and make the package. compile_rules() @@ -20,11 +21,12 @@ --cache-file=$PWD/config.cache \ --infodir=/usr/share/info \ --with-features=normal \ - --enable-gui=no \ - --without-x + --enable-gui=gtk2 \ + --disable-motif-check \ + --disable-athena-check \ --mandir=/usr/share/man $CONFIGURE_ARGS - make + make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim MAKE="make -e" make DESTDIR=$PWD/_pkg install } @@ -32,14 +34,15 @@ genpkg_rules() { _pkg="$PWD/vim72/_pkg" - mkdir -p $fs/usr $fs/usr/share + + mkdir -p $fs/usr $fs/usr/share $fs/etc/vim + cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/share/vim $fs/usr/share + cp -a $WOK/$PACKAGE/vim72/runtime/vimrc_example.vim $fs/etc/vim/vimrc + rm -f $fs/usr/bin/*vimtutor +} - rm -f $fs/usr/bin/vimtutor - - strip -s $fs/usr/bin/* -} # Rules to clean extras dirs or files