# $Id: Portfile 50559 2009-05-03 22:19:00Z blair@macports.org $

PortSystem 1.0

name			msv
version			20081113
revision		1

categories		java
maintainers		blair
platforms		darwin

description		Sun Multi-Schema XML Validator (MSV) validates XML files
long_description	The Sun Multi-Schema XML Validator (MSV) is a Java \
			technology tool to validate XML documents against \
			several kinds of XML schemata.  It supports RELAX NG, \
			RELAX Namespace, RELAX Core, TREX, XML DTDs and a \
			subset of XML Schema Part 1.
homepage		https://msv.dev.java.net/

master_sites		https://msv.dev.java.net/files/documents/61/116917/
distfiles		${name}.${version}.zip
fetch.ignore_sslcert	yes
checksums		md5 15e61067d38b7015601832e9f4555502 \
			sha1 f70186b2997469def7f0fb1a6a67212192c5ab62 \
			rmd160 cc80709d8a8a173fb954b26a57e4de1b43c82c1b

use_zip			yes

depends_lib		bin:java:kaffe

use_configure		no

build.cmd		true

destroot {
	# Ensure needed directories
	xinstall -m 755 -d ${destroot}${prefix}/share/java \
		${destroot}${prefix}/share/doc/${name}

	foreach f {isorelax.jar msv.jar relaxngDatatype.jar xsdlib.jar} {
		file copy ${worksrcpath}/${f} \
			${destroot}${prefix}/share/java/${f}
	}

	foreach f {Apache-LICENSE-1.1.txt 
			ChangeLog.txt 
			JARV.html 
			JARV_API.gif
			JAXPmasquerading.html
			README.txt
			RNGDatatypeLibrary.html
			SAXfilter.gif
			acceptor.html
			commandline.html
			copyright.txt
			developer.html
			examples
			license.txt
			nativeAPI.html} {
		file copy ${worksrcpath}/${f} \
			${destroot}${prefix}/share/doc/${name}/
	}

	file copy ${worksrcpath}/javadoc \
		${destroot}${prefix}/share/doc/${name}/api
}
