SUMMARY="GNU's line-oriented text editor"
DESCRIPTION="GNU ed is a line-oriented text editor. It is used to create, \
display, modify and otherwise manipulate text files, both interactively and \
via shell scripts. A restricted version of ed, red, can only edit files in \
the current directory and cannot execute shell commands.
Ed is the \"standard\" text editor in the sense that it is the original editor for Unix, and thus widely available."
HOMEPAGE="http://www.gnu.org/software/ed/"
COPYRIGHT="1992-2010 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
SOURCE_URI="http://www.mirrorservice.org/sites/ftp.gnu.org/gnu/ed/ed-1.7.tar.gz"
CHECKSUM_SHA256="894241019a5ff2b7816d20c5bd5a7048fb8f336ca52e97b3cc88d45b16472031"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	ed = $portVersion compat >= 1
	cmd:ed = $portVersion compat >= 1
	cmd:red = $portVersion compat >= 1
	"
REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:ld
	cmd:make
	cmd:perl
	cmd:sed
	"

BUILD()
{
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
}
