# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/commons-cli/commons-cli-1.0-r4.ebuild,v 1.4 2004/10/16 17:04:14 axxo Exp $ inherit java-pkg eutils DESCRIPTION="Xml Pull Parser (in short XPP) is a streaming pull XML parser and should be used when there is a need to process quickly and efficiently all input elements (for example in SOAP processors)." HOMEPAGE="http://www.extreme.indiana.edu/xgws/xsoap/xpp/" SRC_URI="mirror://gentoo/${PF}.tar.gz" DEPEND=">=virtual/jdk-1.3" RDEPEND=">=virtual/jdk-1.3" LICENSE="Indiana University" SLOT="0" KEYWORDS="x86 ppc sparc amd64" IUSE="jikes junit doc" S="${WORKDIR}/XPP3/java" src_unpack() { unpack ${A} } src_compile(){ cd ${S} local antflags="xpp3" use jikes && antflags="${antflags} -Dbuild.compiler=jikes" use doc && antflags="${antflags} apidoc" use junit && antflags="${antflags} junit" ant ${antflags} || die "compile failed" } src_install() { cd ${S} java-pkg_dojar build/lib/xpp3*.jar use doc && java-pkg_dohtml -r doc/* }