SUMMARY="Manage large numbers of patches"
DESCRIPTION="Quilt allows you to easily manage large numbers of patches by \
keeping track of the changes each patch makes. Patches can be applied, \
un-applied, refreshed, and more."
HOMEPAGE="http://savannah.nongnu.org/projects/quilt"
COPYRIGHT="2003-2016 Andreas Gruenbacher, Gerd Knorr, Martin Quinson, Peter Braam, Tom Wang et al"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://download.savannah.gnu.org/releases/quilt/quilt-$portVersion.tar.gz"
CHECKSUM_SHA256="f6cbc788e5cbbb381a3c6eab5b9efce67c776a8662a7795c7432fd27aa096819"

ARCHITECTURES="all"

GLOBAL_WRITABLE_FILES="
	settings/bash_completion.d/quilt keep-old
	settings/quilt.quiltrc keep-old
	"

PROVIDES="
	quilt = $portVersion
	cmd:guards
	cmd:quilt
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libintl
	"
BUILD_PREREQUIRES="
	cmd:autoconf
	cmd:awk
	cmd:diff
	cmd:find
	cmd:gcc
	cmd:make
	cmd:patch
	cmd:pod2man
	"

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

INSTALL()
{
	make install
}
