# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils java-pkg DESCRIPTION="xml-commons is focussed on common code and guidelines for xml projects." HOMEPAGE="http://xml.apache.org/commons/" SRC_URI="mirror://apache/xml/commons/${PN}-${PV}.b2.tar.gz" LICENSE="Apache-1.1" SLOT="0" KEYWORDS="~x86 ~ppc ~amd64" IUSE="doc jikes" DEPEND="" S=${WORKDIR}/${PN}-${PV}.b2 src_unpack() { unpack ${A} cd ${S} } src_compile() { local antflags="jars" use jikes && antflags="${antflags} -Dbuild.compiler=jikes" ant ${antflags} || die "ant :(" } src_install() { cd ${WORKDIR}/${PN}-${PV}.b2 java-pkg_dojar java/build/which.jar java-pkg_dojar java/build/resolver.jar java-pkg_dojar java/external/build/xml-apis.jar use doc && java-pkg_dohtml -r java/build/docs/* dodoc README.html }