summaryrefslogtreecommitdiffstats
path: root/base/vim/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-07 14:17:48 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-07 14:17:48 +0200
commitf2843cacd43b5b931056e1b9ad980fce8610f902 (patch)
tree1a769be509189e900c3d4dc6e04dbbac07af8f76 /base/vim/Pkgfile
parent51ff7c5b9e20a961dbe3820c90c33669e72ff974 (diff)
downloadnutyx-extra-f2843cacd43b5b931056e1b9ad980fce8610f902.tar.gz
nutyx-extra-f2843cacd43b5b931056e1b9ad980fce8610f902.tar.bz2
nutyx-extra-f2843cacd43b5b931056e1b9ad980fce8610f902.tar.xz
nutyx-extra-f2843cacd43b5b931056e1b9ad980fce8610f902.zip
Ajout de vim#7.2-1
Diffstat (limited to 'base/vim/Pkgfile')
-rwxr-xr-xbase/vim/Pkgfile40
1 files changed, 40 insertions, 0 deletions
diff --git a/base/vim/Pkgfile b/base/vim/Pkgfile
new file mode 100755
index 000000000..01af08969
--- /dev/null
+++ b/base/vim/Pkgfile
@@ -0,0 +1,40 @@
+# Description: Le plus populaire des éditeurs de texte colorimétrique
+# URL: http://www.vim.org/
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: udev
+
+name=vim
+version=7.2
+release=1
+source=(ftp://ftp.vim.org/pub/vim/unix/vim-$version.tar.bz2 \
+http://www.linuxfromscratch.org/patches/lfs/development/$name-$version-fixes-4.patch \
+ vimrc)
+build () {
+cd $name${version/\./}
+patch -Np1 -i ../$name-$version-fixes-4.patch
+echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
+./configure --prefix=/usr \
+ --enable-gui=no --with-x=no \
+ --enable-multibyte
+
+make
+make DESTDIR=$PKG install
+mkdir -v $PKG/{etc,usr/share/doc}
+cat > $PKG/etc/vimrc << "EOF"
+" Begin /etc/vimrc
+
+set nocompatible
+set backspace=2
+set background=dark
+syntax on
+set ruler
+" End /etc/vimrc
+EOF
+
+ln -sv vim $PKG/usr/bin/vi
+for L in $PKG/usr/share/man/{,*/}man1/vim.1; do
+ ln -sv vim.1 $(dirname $L)/vi.1
+done
+ln -sv ../vim/vim72/doc $PKG/usr/share/doc/vim-$version
+}