SUMMARY="Terminal-based text editor"
DESCRIPTION="Joe's Own Editor is a full-featured text editor with minimal requirements. \
It is fully customizable (Emacs, pico or WordStar are preset). Is also has multiple \
windows, hexadecimal edit mode for binary files or syntax highlighting for more than 40 languages. \
It also supports mouse for both text and window manipulation."
HOMEPAGE="http://joe-editor.sourceforge.net/"
COPYRIGHT="1992, 2004, 2006, 2015 Joseph H. Allen"
LICENSE="GNU GPL v1"
REVISION="2"
SOURCE_URI="https://downloads.sourceforge.net/project/joe-editor/JOE%20sources/joe-$portVersion/joe-$portVersion.tar.gz"
CHECKSUM_SHA256="495a0a61f26404070fe8a719d80406dc7f337623788e445b92a9f6de512ab9de"
PATCHES="joe-$portVersion.patchset"

ARCHITECTURES="all ?x86"

GLOBAL_WRITABLE_FILES="
	settings/joe directory keep-old
	"

PROVIDES="
	joe = $portVersion
	cmd:jmacs
	cmd:joe = $portVersion
	cmd:jpico
	cmd:jstar
	cmd:rjoe
	"
REQUIRES="
	haiku
	lib:libncurses
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libncurses
	"
BUILD_PREREQUIRES="
	cmd:gawk
	cmd:gcc
	cmd:ld
	cmd:make
	"

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

INSTALL()
{
	make install
}
