# $Id: Portfile,v 1.16 2006/02/25 14:53:33 mww Exp $

PortSystem 1.0
name		tidy
version		20051025
categories	www
maintainers	mij@opendarwin.org
description	Fixes and tidies up HTML files
homepage	http://tidy.sourceforge.net/
platforms	darwin

long_description Tidy is a utility to clean up and fix broken HTML files.

master_sites	${homepage}/src/ \
		${homepage}/src/old/

distname	tidy_src_051025
extract.suffix	.tgz
checksums	sha1 11636fd7a6a7b5a20b5a45b6e679b2c3ed07e17a
worksrcdir	${name}
patchfiles	patch-platform.h

pre-configure	{ system "cd ${worksrcpath} && /bin/sh ${worksrcpath}/build/gnuauto/setup.sh" }

post-destroot	{ system "ln -fs libtidy-0.99.0.0.0.dylib ${destroot}${prefix}/lib/libtidy.0.dylib" }

platform darwin 8 {
	configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}
