SUMMARY="Utility to apply diffs to files"
DESCRIPTION="
Patch takes a patch file containing a difference listing produced by the diff \
program and applies those differences to one or more original files, producing \
patched versions. 
"
LICENSE="GNU GPL v3"
COPYRIGHT="2012 Free Software Foundation, Inc."
HOMEPAGE="http://www.gnu.org/software/patch/"
SRC_URI="http://ftp.gnu.org/pub/gnu/patch/patch-2.7.1.tar.bz2"
CHECKSUM_SHA256="aae676de9e95051f425af4507fcc9a019941a2a1f78405e7dbd40bccf786aa11"
ARCHITECTURES="x86 x86_gcc2"
REVISION="2"

PROVIDES="
	patch = $portVersion
	cmd:patch = $portVersion
	"

REQUIRES="
	haiku >= $haikuVersion
	"

BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:make
	cmd:gcc
	"


BUILD()
{
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
	rm $libDir/charset.alias
}
