summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--patches/vim-7.3/0001-HACK-configure.in-remove-uint32_t-sanity-check.patch39
-rwxr-xr-xpatches/vim-7.3/autogen.sh4
-rw-r--r--patches/vim-7.3/series4
-rw-r--r--rules/vim.in13
-rw-r--r--rules/vim.make116
5 files changed, 176 insertions, 0 deletions
diff --git a/patches/vim-7.3/0001-HACK-configure.in-remove-uint32_t-sanity-check.patch b/patches/vim-7.3/0001-HACK-configure.in-remove-uint32_t-sanity-check.patch
new file mode 100644
index 000000000..2de6ba878
--- /dev/null
+++ b/patches/vim-7.3/0001-HACK-configure.in-remove-uint32_t-sanity-check.patch
@@ -0,0 +1,39 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Mon, 10 Dec 2012 16:57:53 +0100
+Subject: [PATCH] HACK: configure.in: remove uint32_t sanity check
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ src/configure.in | 19 -------------------
+ 1 file changed, 19 deletions(-)
+
+diff --git a/src/configure.in b/src/configure.in
+index 152313b..9af93da 100644
+--- a/src/configure.in
++++ b/src/configure.in
+@@ -3163,25 +3163,6 @@ AC_CHECK_SIZEOF([long])
+ AC_CHECK_SIZEOF([time_t])
+ AC_CHECK_SIZEOF([off_t])
+
+-dnl Make sure that uint32_t is really 32 bits unsigned.
+-AC_MSG_CHECKING([uint32_t is 32 bits])
+-AC_TRY_RUN([
+-#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);
+-}],
+-AC_MSG_RESULT(ok),
+-AC_MSG_ERROR([WRONG! uint32_t not defined correctly.]),
+-AC_MSG_ERROR([could not compile program using uint32_t.]))
+-
+ dnl Check for memmove() before bcopy(), makes memmove() be used when both are
+ dnl present, fixes problem with incompatibility between Solaris 2.4 and 2.5.
+
diff --git a/patches/vim-7.3/autogen.sh b/patches/vim-7.3/autogen.sh
new file mode 100755
index 000000000..2f0f8903f
--- /dev/null
+++ b/patches/vim-7.3/autogen.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cd src &&
+autoconf -o auto/configure
diff --git a/patches/vim-7.3/series b/patches/vim-7.3/series
new file mode 100644
index 000000000..4ab657afe
--- /dev/null
+++ b/patches/vim-7.3/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-HACK-configure.in-remove-uint32_t-sanity-check.patch
+# 785fdc89e49183550fa0763e83384191 - git-ptx-patches magic
diff --git a/rules/vim.in b/rules/vim.in
new file mode 100644
index 000000000..d76d0f362
--- /dev/null
+++ b/rules/vim.in
@@ -0,0 +1,13 @@
+## SECTION=editors
+
+config VIM
+ tristate
+ select LIBC_DL
+ select LIBC_M
+ select GCCLIBS_GCC_S
+ select NCURSES
+ prompt "vim"
+ help
+ Vim is an advanced text editor that seeks to provide the
+ power of the de-facto Unix editor 'Vi', with a more complete
+ feature set.
diff --git a/rules/vim.make b/rules/vim.make
new file mode 100644
index 000000000..6afcc78e0
--- /dev/null
+++ b/rules/vim.make
@@ -0,0 +1,116 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2012 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# 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_MD5 := 5b9510a17074e2b37d8bb38ae09edbf2
+VIM := vim-$(VIM_VERSION)
+VIM_SUFFIX := tar.bz2
+VIM_URL := ftp://ftp.vim.org/pub/vim/unix/$(VIM).$(VIM_SUFFIX)
+VIM_SOURCE := $(SRCDIR)/$(VIM).$(VIM_SUFFIX)
+VIM_DIR := $(BUILDDIR)/$(VIM)
+VIM_SUBDIR := src
+VIM_LICENSE := unknown
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+VIM_CONF_ENV := \
+ $(CROSS_ENV) \
+ vim_cv_toupper_broken=no \
+ vim_cv_terminfo=yes \
+ vim_cv_tty_group=world \
+ vim_cv_tty_mode=0620 \
+ vim_cv_getcwd_broken=no \
+ vim_cv_stat_ignores_slash=no \
+ vim_cv_memmove_handles_overlap=yes
+
+#
+# autoconf
+#
+VIM_CONF_TOOL := autoconf
+VIM_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ --disable-darwin \
+ --disable-selinux \
+ --disable-xsmp \
+ --disable-xsmp-interact \
+ --disable-luainterp \
+ --disable-mzschemeinterp \
+ --disable-perlinterp \
+ --disable-pythoninterp \
+ --disable-python3interp \
+ --disable-tclinterp \
+ --disable-rubyinterp \
+ --disable-cscope \
+ --disable-workshop \
+ --disable-netbeans \
+ --disable-sniff \
+ --disable-multibyte \
+ --disable-hangulinput \
+ --disable-xim \
+ --disable-fontset \
+ --disable-gui \
+ --disable-gtk2-check \
+ --disable-gnome-check \
+ --disable-motif-check \
+ --disable-athena-check \
+ --disable-nextaw-check \
+ --disable-carbon-check \
+ --disable-gtktest \
+ $(GLOBAL_LARGE_FILE_OPTION) \
+ --disable-acl \
+ --disable-gpm \
+ --disable-sysmouse \
+ --disable-nls \
+ --without-x \
+ --with-tlib=ncurses
+
+VIM_INSTALL_OPT := \
+ installvimbin \
+ installrtbase \
+ installmacros \
+ installspell
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+VIM_LINKS := ex rview rvim view vimdiff
+
+$(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,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, vim,DESCRIPTION,missing)
+
+ @$(call install_copy, vim, 0, 0, 0755, -, /usr/bin/vim)
+
+ @$(foreach link, $(VIM_LINKS), \
+ $(call install_link, vim, vim, /usr/bin/$(link));)
+
+ @$(call install_tree, vim, 0, 0, -, /usr/share/vim)
+
+ @$(call install_finish, vim)
+
+ @$(call touch)
+
+# vim: syntax=make