# $Id: Portfile,v 1.2 2005/09/13 06:57:53 olegb Exp $
PortSystem 1.0

name		docbook-xml-scrollkeeper
version		4.2
description	the docbook xml dtds
categories	textproc
platforms	darwin
maintainers	darwinports@opendarwin.org
depends_build	bin:unzip:unzip

master_sites	http://www.oasis-open.org/docbook/xml/4.2/
distname	docbook-xml-${version}
checksums	md5 73fe50dfe74ca631c1602f558ed8961f

use_zip		yes
extract.suffix	.zip
extract.cmd	unzip

configure 	{}
build		{}

destroot {
	file mkdir ${destroot}/${prefix}/share/xml/docbook-xml/${version}
	file mkdir ${destroot}/${prefix}/share/xml/docbook-xml/${version}/ent
	system "for file in \
	`unzip -l ${distpath}/${distname} | awk '/:\[0-9\].*\[^\\/\]\$/\{print \$4\}'`; do \
	install -cv ${workpath}/\$file ${destroot}/${prefix}/share/xml/docbook-xml/${version}/\$file; \
	done"
}
