OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../vim/vim.conf
  5. # Copyright (C) 2006 - 2007 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. # apply the patches defined in the vim.desc
  17. for x in $( match_source_file -p patch ); do
  18. var_append patchfiles ' ' "$x"
  19. done
  20. vim_postmake() {
  21. if [ "$SDECFG_PKG_VIM_TWO_BINARIES" ] ; then
  22. rm -fv $root$bindir/{gvim,gvimdiff,evim,rgvim}
  23. mv -fv $root$bindir/vim $root$bindir/gvim
  24. ln -sf gvim $root$bindir/gvimdiff
  25. ln -sf gvim $root$bindir/evim
  26. ln -sf gvim $root$bindir/rgvim
  27. var_append confopt ' ' "--enable-gui=no --without-x"
  28. echo "Running ./configure $confopt ..."
  29. eval_config_command $( echo $confopt )
  30. echo "Running $MAKE $makeopt ..."
  31. eval $MAKE $makeopt
  32. cp -v src/vim $root$bindir/vim
  33. fi
  34. if [ "$SDECFG_PKG_VIM_IS_VI_REPLACEMENT" = 1 ] ; then
  35. rm -f $root$bindir/vi
  36. ln -sf vim $root$bindir/vi
  37. fi
  38. # now hopefully all are happy ;-)
  39. cp -fv $confdir/vimrc* $root/$prefix/share/vim/
  40. }
  41. var_append extraconfopt ' ' "--with-features=$SDECFG_PKG_VIM_FEATURES"
  42. var_append extraconfopt ' ' "--enable-gui=$SDECFG_PKG_VIM_GUI"
  43. [ "$SDECFG_PKG_VIM_PERLINTERP" = 1 ] && \
  44. var_append extraconfopt ' ' "--enable-perlinterp"
  45. [ "$SDECFG_PKG_VIM_PYTHONINTERP" = 1 ] && \
  46. var_append extraconfopt ' ' "--enable-pythoninterp"
  47. [ "$SDECFG_PKG_VIM_RUBYINTERP" = 1 ] && \
  48. var_append extraconfopt ' ' "--enable-rubyinterp"
  49. [ "$SDECFG_PKG_VIM_TCLINTERP" = 1 ] && \
  50. var_append extraconfopt ' ' "--enable-tclinterp --with-tclsh=tclsh"
  51. hook_add postmake 5 "vim_postmake"