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="ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2"
CHECKSUM_SHA256="5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d"
SOURCE_DIR="vim73"
PATCHES="vim-7.3.patchset"

ARCHITECTURES="x86_gcc2 x86"

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:vim = $portVersion
	cmd:vimdiff = $portVersion
	cmd:vimtutor = $portVersion
	cmd:view = $portVersion
	cmd:xxd = $portVersion
	"
REQUIRES="
	haiku
	lib:libncurses
	"

BUILD_REQUIRES="
	haiku_devel
	ncurses_devel
	"
BUILD_PREREQUIRES="
	cmd:make
	cmd:autoconf
	cmd:gcc
	"

BUILD()
{
	cd src
	make autoconf
	cd ../
	runConfigure ./configure --with-features=big
	make $jobArgs
}

INSTALL()
{
	make install
}
