# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/xml-commons-resolver/xml-commons-resolver-1.1-r1.ebuild,v 1.9 2006/11/24 22:36:33 corsair Exp $ inherit eutils java-pkg-2 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/${P}.tar.gz" DEPEND=">=virtual/jdk-1.3 dev-java/ant-core source? ( app-arch/zip )" RDEPEND=">=virtual/jre-1.3" LICENSE="Apache-1.1" SLOT="0" KEYWORDS="amd64 ia64 ppc ppc64 x86 ~x86-fbsd" IUSE="doc source" src_unpack() { unpack ${A} cd ${S} cp ${FILESDIR}/${P}-build.xml ${S}/build.xml } src_compile() { eant jar $(use_doc docs) } src_install() { java-pkg_dojar dist/${PN}.jar dodoc KEYS use doc && java-pkg_dohtml -r docs/* use source && java-pkg_dosrc ${S}/src/* }