# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit java-pkg MY_P="${PN}.${PV}" DESCRIPTION="The Sun Multi-Schema XML Validator is a Java tool to validate XML documents against several kinds of XML schemata." HOMEPAGE="https://msv.dev.java.net/" SRC_URI="http://sigmachi.yi.org/~nichoj/projects/java/${MY_P}.zip" # This is mostly BSD, with parts that are Apache-1.1 LICENSE="" SLOT="0" KEYWORDS="~x86" IUSE="doc jikes" DEPEND="virtual/jdk app-arch/unzip dev-java/ant jikes? (dev-java/jikes)" RDEPEND="virtual/jre dev-java/relaxng-datatype" RELAXNG_DATATYPE="relaxng-datatype relaxngDatatype.jar" src_unpack() { unpack ${A} cd ${S} rm *.jar cp ${FILESDIR}/build-${PVR}.xml build.xml } src_compile() { local antflags="-Dproject.name=${PN} jar \ -Dclasspath=`java-pkg_getjar ${RELAXNG_DATATYPE}`" use jikes && antflags="-Dbuild.compiler=jikes ${antflags}" use doc && antflags="${antflags} javadoc" ant ${antflags} || die "Compilation failed" } src_install() { java-pkg_dojar dist/${PN}.jar dodoc README.txt use doc && java-pkg_dohtml -r dist/doc/api }