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-2015 Free Software Foundation, Inc."
HOMEPAGE="http://www.gnu.org/software/patch/"
SOURCE_URI="http://ftp.gnu.org/pub/gnu/patch/patch-$portVersion.tar.gz"
CHECKSUM_SHA256="7436f5a19f93c3ca83153ce9c5cbe4847e97c5d956e57a220121e741f6e7968f"
ARCHITECTURES="x86 x86_gcc2 x86_64 arm"
REVISION="1"

PATCHES="patch-$portVersion.patchset"

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

REQUIRES="
	haiku
	"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:awk
	cmd:make
	cmd:gcc
	cmd:git
	"


BUILD()
{
	runConfigure ./configure
	make
}

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

TEST()
{
	make check
}
