# $Id: Portfile,v 1.1 2004/03/27 11:20:34 mww Exp $

PortSystem 1.0

name		xmlformat
version		1.03
categories	textproc perl ruby
platforms	darwin
maintainers	mww@opendarwin.org
description	formatter for XML documents
long_description	xmlformat is a configurable formatter (or \
			pretty-printer) for XML documents. It provides control \
			over indentation, line-breaking, and text wrapping. \
			These properties can be defined on a per-element \
			basis. There is a perl and a ruby variant of this \
			program available.

homepage	http://www.kitebird.com/software/xmlformat/
master_sites	${homepage}
checksums	md5 23a1a4f6c49cc83ebae0f8f25d1e2069

depends_run	bin:perl:perl5.8
set ext		pl

variant ruby	{
	set ext	rb
	depends_run	bin:ruby:ruby
}

configure	{
	reinplace "s|/usr/bin/|/usr/bin/env |1" ${worksrcpath}/xmlformat.${ext}
	reinplace "s|-w||1" ${worksrcpath}/xmlformat.${ext}
}

build		{}

destroot	{
	xinstall -m 755 ${worksrcpath}/xmlformat.${ext} \
		${destroot}${prefix}/bin/xmlformat
}
