SUMMARY="GNU Pico clone with more functionality under the GPL license"
DESCRIPTION="
nano is a simple text editor for Unix-like computing systems \
or operating environments using a command line interface. It emulates the \
Pico text editor, part of the Pine email client, and also provides additional \
functionality. Features include:
- Customizable key bindings
- \'soft\' line wrapping
- Full undo/redo support
- Pager support (reading from stdin)
- Warnings for un-writable files
- More syntax highlighting samples (Fortran, objC, OCaml, Makefiles)
"
HOMEPAGE="http://www.nano-editor.org/"
SRC_URI="http://www.nano-editor.org/dist/v2.2/nano-2.2.6.tar.gz"
CHECKSUM_SHA256="be68e133b5e81df41873d32c517b3e5950770c00fc5f4dd23810cd635abce67a"
LICENSE="GNU GPL v3"
COPYRIGHT="1999-2010 Free Software Foundation, Inc. "
REVISION="3"
ARCHITECTURES="x86_gcc2 x86 x86_64"

PATCHES="nano-2.2.6.patchset"

PROVIDES="
	nano = $portVersion compat >= 2
	cmd:nano = $portVersion compat >= 2
	cmd:rnano = $portVersion compat >= 2
	"
REQUIRES="
	haiku >= $haikuVersion
	cmd:groff
	lib:libncurses
	"
BUILD_REQUIRES="
	devel:libncurses
	"
BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:autoreconf
	cmd:gcc
	cmd:groff
	cmd:ld
	cmd:libtoolize
	cmd:make
	"


BUILD()
{
	autoreconf
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
