SUMMARY="Tidy the layout and correct errors in HTML and XML documents" 
DESCRIPTION="htmltidy - Tidy the layout and correct errors in HTML and XML \
documents." 
HOMEPAGE="http://tidy.sourceforge.net/" 
SOURCE_URI="cvs://:pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy/tidy#12/28/2009"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="1998-2008 World Wide Web Consortium"
ARCHITECTURES="x86_gcc2"

PROVIDES="
	htmltydy = $portVersion
	cmd:tab2space
	cmd:tidy
	lib:libtidy_0.99
	lib:libtidy
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"
PROVIDES_devel="
	devel:libtidy
	"
REQUIRES_devel="
	htmltidy == $portVersion base
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:as$secondaryArchSuffix
	cmd:make
	cmd:libtoolize
	cmd:autoconf
	"

PATCHES="$portName-$portVersion.patchset"

BUILD()
{
	/bin/sh build/gnuauto/setup.sh
	runConfigure ./configure
	make
}
INSTALL()
{
	make install
	prepareInstalledDevelLibs libtidy
	packageEntries devel $developDir
}
TEST()
{
	cd test
	sh testall.sh
}
