mirror of
https://github.com/outbackdingo/ports.git
synced 2026-03-20 11:44:30 +00:00
62 lines
1.2 KiB
Plaintext
Executable File
62 lines
1.2 KiB
Plaintext
Executable File
# description : Vi Improved, a highly configurable, improved version of the vi text editor
|
|
# depends : acl gettext ncurses
|
|
|
|
name=vim
|
|
version=9.1.0
|
|
release=1
|
|
source="https://github.com/vim/vim/archive/v$version/vim-v$version.tar.gz"
|
|
|
|
build() {
|
|
cd vim-$version
|
|
|
|
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-cscope \
|
|
--enable-multibyte \
|
|
--with-ex-name=vim-ex \
|
|
--with-tlib=ncursesw \
|
|
--with-view-name=vim-view \
|
|
--disable-perlinterp \
|
|
--disable-pythoninterp \
|
|
--disable-rubyinterp \
|
|
--disable-netbeans \
|
|
--disable-canberra \
|
|
--disable-gpm \
|
|
--disable-xim \
|
|
--disable-gui \
|
|
--disable-nls \
|
|
--without-x
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
mv $PKG/usr/share/man/man1 $SRC/man1
|
|
mv $SRC/man1 $PKG/usr/share/man/man1
|
|
|
|
# no desktop files and icons
|
|
rm -r $PKG/usr/share/applications \
|
|
$PKG/usr/share/icons
|
|
|
|
mkdir -pv $PKG/etc
|
|
cat > $PKG/etc/vimrc << "EOF"
|
|
" Begin /etc/vimrc
|
|
|
|
" Ensure defaults are set before customizing settings, not after
|
|
source $VIMRUNTIME/defaults.vim
|
|
let skip_defaults_vim=1
|
|
|
|
set nocompatible
|
|
set backspace=2
|
|
set mouse=
|
|
syntax on
|
|
if (&term == "xterm") || (&term == "putty")
|
|
set background=dark
|
|
endif
|
|
|
|
" End /etc/vimrc
|
|
EOF
|
|
|
|
ln -sv vim $PKG/usr/bin/vi
|
|
}
|