I wrote rules for vim not because I'm planning to include it in my
production release but because its nice for research, development,
testing etc. vim has tons of configuration options. It would take a long
time to to add in the options to the menus. depending when during the
build process vim is built it can detect different libraries and enable
different options! I have it in my workspace not ptxdist directory. I
would not suggest adding it to ptxdist in it's current state. The target
I've been working with has at minimum a 4GB NAND flash so I wasn't
concerned that this package was approximately 9MB. Don't try to use it
on an old target with a small flash file system.
All disclaimers aside, I enable it (with all of the installation
options) build it and I have a working vim on my target! I'd suggest
copying vimrc or .vimrc from your dev machine to the target. Now my
co-workers don't have to hear me shout obscenities every time I
instinctively attempt to use a feature/command not supported in busybox vi.
Regards,
George McCollister
diff -Naur a/patches/vim-7.3/configure_uint32.diff b/patches/vim-7.3/configure_uint32.diff
--- a/patches/vim-7.3/configure_uint32.diff 1969-12-31 18:00:00.000000000 -0600
+++ b/patches/vim-7.3/configure_uint32.diff 2011-02-07 15:28:47.000000000 -0600
@@ -0,0 +1,42 @@
+--- vim73.orig/src/auto/configure 2010-08-13 09:17:15.000000000 -0500
++++ vim73/src/auto/configure 2011-01-28 15:50:43.000000000 -0600
+@@ -11639,39 +11639,6 @@
+
+
+
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
+-$as_echo_n "checking uint32_t is 32 bits... " >&6; }
+-if test "$cross_compiling" = yes; then :
+- as_fn_error "could not compile program using uint32_t." "$LINENO" 5
+-else
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-#ifdef HAVE_STDINT_H
+-# include <stdint.h>
+-#endif
+-#ifdef HAVE_INTTYPES_H
+-# include <inttypes.h>
+-#endif
+-main() {
+- uint32_t nr1 = (uint32_t)-1;
+- uint32_t nr2 = (uint32_t)0xffffffffUL;
+- if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
+- exit(0);
+-}
+-_ACEOF
+-if ac_fn_c_try_run "$LINENO"; then :
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
+-$as_echo "ok" >&6; }
+-else
+- as_fn_error "WRONG! uint32_t not defined correctly." "$LINENO" 5
+-fi
+-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+- conftest.$ac_objext conftest.beam conftest.$ac_ext
+-fi
+-
+-
+-
+ bcopy_test_prog='
+ #include "confdefs.h"
+ #ifdef HAVE_STRING_H
diff -Naur a/patches/vim-7.3/series b/patches/vim-7.3/series
--- a/patches/vim-7.3/series 1969-12-31 18:00:00.000000000 -0600
+++ b/patches/vim-7.3/series 2011-02-07 15:28:47.000000000 -0600
@@ -0,0 +1 @@
+configure_uint32.diff
diff -Naur a/rules/vim.in b/rules/vim.in
--- a/rules/vim.in 1969-12-31 18:00:00.000000000 -0600
+++ b/rules/vim.in 2011-02-07 15:28:59.000000000 -0600
@@ -0,0 +1,69 @@
+## SECTION=editors
+
+menuconfig VIM
+ tristate
+ #select GTK
+ select NCURSES
+ select PYTHON
+
+ prompt "vim"
+ help
+ vim
+
+config VIM_TOOLS
+ bool "install TOOLS"
+ depends on VIM
+
+config VIM_LANG
+ bool "install LANG"
+ depends on VIM
+
+config VIM_SYNTAX
+ bool "install SYNTAX"
+ depends on VIM
+
+config VIM_AUTOLOAD
+ bool "install AUTOLOAD"
+ depends on VIM
+
+config VIM_FTPLUGIN
+ bool "install FTPLUGIN"
+ depends on VIM
+
+config VIM_COMPILER
+ bool "install COMPILER"
+ depends on VIM
+
+config VIM_KEYMAP
+ bool "install KEYMAP"
+ depends on VIM
+
+config VIM_PRINT
+ bool "install PRINT"
+ depends on VIM
+
+config VIM_INDENT
+ bool "install INDENT"
+ depends on VIM
+
+config VIM_TUTOR
+ bool "install TUTOR"
+ depends on VIM
+
+config VIM_MACROS
+ bool "install MACROS"
+ depends on VIM
+
+config VIM_COLORS
+ bool "install COLORS"
+ depends on VIM
+
+config VIM_PLUGIN
+ bool "install PLUGIN"
+ depends on VIM
+
+config VIM_SPELL
+ bool "install SPELL"
+ depends on VIM
+
+
diff -Naur a/rules/vim.make b/rules/vim.make
--- a/rules/vim.make 1969-12-31 18:00:00.000000000 -0600
+++ b/rules/vim.make 2011-02-07 15:28:59.000000000 -0600
@@ -0,0 +1,112 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2010 by NovaTech-LLC
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_VIM) += vim
+
+#
+# Paths and names
+#
+VIM_VERSION := 7.3
+VIM := vim-$(VIM_VERSION)
+VIM_SUFFIX := tar.bz2
+VIM_URL := http://ftp.vim.org/pub/vim/unix/$(VIM).$(VIM_SUFFIX)
+VIM_SOURCE := $(SRCDIR)/$(VIM).$(VIM_SUFFIX)
+VIM_DIR := $(BUILDDIR)/vim73
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+VIM_PATH := PATH=$(CROSS_PATH)
+VIM_CONF_ENV := $(CROSS_ENV) ac_cv_small_wchar_t=y vim_cv_toupper_broken=no vim_cv_terminfo=yes vim_cv_tty_group=world vim_cv_getcwd_broken=no vim_cv_stat_ignores_slash=no vim_cv_memmove_handles_overlap=yes
+VIM_MAKE_ENV := $(CROSS_ENV)
+
+VIM_AUTOCONF := --x-includes=$(SYSROOT)/usr/include --x-libraries=$(SYSROOT)/usr/lib --with-tlib=ncurses $(CROSS_AUTOCONF_USR)
+
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/vim.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, vim)
+ @$(call install_fixup, vim, PRIORITY, optional)
+ @$(call install_fixup, vim, SECTION, base)
+ @$(call install_fixup, vim, AUTHOR, "NovaTech-LLC")
+ @$(call install_fixup, vim, DESCRIPTION, missing)
+
+ @$(call install_copy, vim, 0, 0, 0755, -, /usr/bin/vim)
+ifdef PTXCONF_VIM_TOOLS
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/tools, /usr/share/vim/vim73/tools)
+endif
+ifdef PTXCONF_VIM_LANG
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/lang, /usr/share/vim/vim73/lang)
+endif
+ifdef PTXCONF_VIM_SYNTAX
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/syntax, /usr/share/vim/vim73/syntax)
+endif
+ifdef PTXCONF_VIM_AUTOLOAD
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/autoload, /usr/share/vim/vim73/autoload)
+endif
+ifdef PTXCONF_VIM_FTPLUGIN
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/ftplugin, /usr/share/vim/vim73/ftplugin)
+endif
+ifdef PTXCONF_VIM_COMPILER
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/compiler, /usr/share/vim/vim73/compiler)
+endif
+ifdef PTXCONF_VIM_KEYMAP
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/keymap, /usr/share/vim/vim73/keymap)
+endif
+ifdef PTXCONF_VIM_PRINT
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/print, /usr/share/vim/vim73/print)
+endif
+ifdef PTXCONF_VIM_INDENT
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/indent, /usr/share/vim/vim73/indent)
+endif
+ifdef PTXCONF_VIM_TUTOR
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/tutor, /usr/share/vim/vim73/tutor)
+endif
+ifdef PTXCONF_VIM_MACROS
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/macros, /usr/share/vim/vim73/macros)
+endif
+ifdef PTXCONF_VIM_COLORS
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/colors, /usr/share/vim/vim73/colors)
+endif
+ifdef PTXCONF_VIM_PLUGIN
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/plugin, /usr/share/vim/vim73/plugin)
+endif
+ifdef PTXCONF_VIM_SPELL
+ @$(call install_tree, vim, 0, 0, $(VIM_PKGDIR)/usr/share/vim/vim73/spell, /usr/share/vim/vim73/spell)
+endif
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/bugreport.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/delmenu.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/evim.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/filetype.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/ftoff.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/ftplugin.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/ftplugof.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/gvimrc_example.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/indent.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/indoff.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/menu.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/mswin.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/optwin.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/scripts.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/synmenu.vim)
+ @$(call install_copy, vim, 0, 0, 0644, -, /usr/share/vim/vim73/vimrc_example.vim)
+
+ @$(call install_finish, vim)
+ @$(call touch)
+
--
ptxdist mailing list
[email protected]