# $Id: Portfile 62538 2010-01-10 18:13:01Z nox@macports.org $

PortSystem          1.0

name                tidy
version             20090325
license             MIT
categories          www
maintainers         ryandesign
homepage            http://tidy.sourceforge.net/
platforms           darwin
use_bzip2           yes
use_parallel_build  yes

description \
	Fixes and tidies up HTML files

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

master_sites \
	gentoo

checksums \
	md5     39a05125a2a2dbacaccac84af64e1dbc \
	sha1    28c000a2cd40262fc0d7c2c429eb2a09b2df7bf4 \
	rmd160  796a025bc1b67ea64394c64a1455a582e9285982

depends_build \
    port:autoconf \
    port:automake \
	port:libtool

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

livecheck.type      regex
livecheck.url       http://tidy.cvs.sourceforge.net/viewvc/*checkout*/tidy/tidy/src/version.h
livecheck.regex     {"(.+)"}
eval livecheck.version  [clock format [clock scan ${version}] -format {%d %B %Y}]
