]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - vim/vim.nm
Move all packages to root.
[people/arne_f/ipfire-3.x.git] / vim / vim.nm
diff --git a/vim/vim.nm b/vim/vim.nm
new file mode 100644 (file)
index 0000000..20ba026
--- /dev/null
@@ -0,0 +1,56 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = vim
+version    = 7.3
+release    = 1
+
+groups     = Base Applications/Editors
+url        = http://www.vim.org
+license    = PublicDomain/Charityware
+summary    = Very feature- and powerful editor.
+
+description
+       Vim is a highly configurable text editor built to enable efficient \
+       text editing. It is an improved version of the vi editor \
+       distributed with most UNIX systems.
+end
+
+source_dl  = ftp://ftp.vim.org/pub/vim/unix/
+sources    = %{thisapp}.tar.bz2
+
+DIR_APP        = %{DIR_SRC}/%{name}73
+
+build
+       requires
+               libacl-devel
+               libselinux-devel
+               ncurses-devel
+       end
+
+       configure_options += \
+               --enable-multibyte \
+               --enable-selinux
+
+       configure_cmds
+               echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
+       end
+
+       install_cmds
+               ln -sfv vim %{BUILDROOT}/usr/bin/vi
+
+               # Install configuration
+               mkdir -pv %{BUILDROOT}/etc
+               cp -vf %{DIR_SOURCE}/vimrc %{BUILDROOT}/etc/vimrc
+
+               # Remove script for c-shell
+               rm -rf %{BUILDROOT}/usr/share/vim/vim73/tools/vim132
+       end
+end
+
+packages
+       package %{name}
+       end
+end