Vim: Add recipe for versionn 8 (#840)

* patchset needs cleaning.
* recipe could use $portVersion, SOURCE_DIR could be dropped.
This commit is contained in:
miqlas
2016-11-09 11:16:58 +01:00
committed by Jérôme Duval
parent 2c1420ae07
commit c527264139
2 changed files with 7120 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,103 @@
SUMMARY="A highly configurable text 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.
Vim is often called a \"programmer's editor,\" and so useful for programming \
that many consider it an entire IDE. It's not just for programmers, though. \
Vim is perfect for all kinds of text editing, from composing email to editing \
configuration files.
Despite this, Vim can be configured to work in a very simple (Notepad-like) \
way, called evim or Easy Vim."
HOMEPAGE="http://www.vim.org"
COPYRIGHT="Bram Moleenar et al."
LICENSE="Vim"
REVISION="1"
SOURCE_URI="https://github.com/vim/vim/archive/v8.0.0046.tar.gz"
CHECKSUM_SHA256="a768d3b959c44c6084c1c745012766a537303c687f8869d3e877c5a25cc812f4"
SOURCE_DIR="vim-8.0.0046"
PATCHES="vim-8.0.0046.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
vim = $portVersion
cmd:ex = $portVersion
cmd:gview = $portVersion
cmd:gvim = $portVersion
cmd:gvimdiff = $portVersion
cmd:rgview = $portVersion
cmd:rgvim = $portVersion
cmd:rview = $portVersion
cmd:rvim = $portVersion
cmd:vi = $portVersion
cmd:view = $portVersion
cmd:vim = $portVersion
cmd:vimdiff = $portVersion
cmd:vimtutor = $portVersion
cmd:xxd = $portVersion
"
REQUIRES="
haiku
lib:libiconv
lib:libintl
lib:libncurses
"
BUILD_REQUIRES="
haiku_devel
devel:libiconv
devel:libintl
devel:libncurses
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:find
cmd:gcc
cmd:gettext
cmd:grep
cmd:make
cmd:sed
"
BUILD()
{
cd src
autoconf
runConfigure ./configure --disable-gui --with-features=big --with-compiledby=$packager
echo "Patching auto/config.h"
sed --in-place '/HAVE_BCMP/d' auto/config.h
echo "Patching auto/osdef.h"
sed --in-place '/bzero/d' osdef1.h.in
make $jobArgs
cp vim vim.con # preserve gui-less executable
rm objects/*.o
runConfigure ./configure --with-features=big --with-compiledby=$packager
echo "Patching auto/config.h"
sed --in-place '/HAVE_BCMP/d' auto/config.h
echo "Patching auto/osdef.h"
sed --in-place '/bzero/d' osdef1.h.in
make $jobArgs
}
INSTALL()
{
make install
# Make arrow keys, backspace, delete, etc behave as expected.
echo "set nocompatible" > $dataDir/vim/vimrc
# Workaround to get the themes and plugins work
echo "set runtimepath+=`finddir B_USER_SETTINGS_DIRECTORY`/vim" > $dataDir/vim/vimrc
ln -s vim $binDir/vi
addAppDeskbarSymlink $binDir/gvim Vim
}