mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
Vim: Add recipe for versionn 8 (#840)
* patchset needs cleaning. * recipe could use $portVersion, SOURCE_DIR could be dropped.
This commit is contained in:
7017
app-editors/vim/patches/vim-8.0.0046.patchset
Normal file
7017
app-editors/vim/patches/vim-8.0.0046.patchset
Normal file
File diff suppressed because it is too large
Load Diff
103
app-editors/vim/vim-8.0.0046.recipe
Normal file
103
app-editors/vim/vim-8.0.0046.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user