# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: inherit java-pkg DESCRIPTION="Introspective Bean to XML mapper" HOMEPAGE="http://jarkata.apache.org/commons/betwixt/" SRC_URI="mirror://apache/jarkata/commons/betwixt/source/${PN}-${PV}-src.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="-*" IUSE="doc jikes junit" DEPEND=">=dev-java/commons-logging-1.0.2 >=dev-java/commons-beanutils-1.7.0 >=dev-java/commons-digester-1.6 >=dev-java/ant-core-1.4 jikes? ( >=dev-java/jikes-1.21 ) junit? ( >=dev-java/junit-3.8.1 >=dev-java/xerces-2.4.0 >=dev-java/xml-apis-1.0.b2 >=virtual/jdk-1.4 ) !junit? ( >=virtual/jdk-1.3 )" RDEPEND=">=virtual/jdk-1.3" S="${WORKDIR}/${P}-src/" src_unpack() { unpack ${A} cd $S echo "commons-logging.jar=`java-config -p commons-logging`" > build.properties echo "commons-beanutils.jar=`java-config -p commons-beanutils`" >> build.properties echo "commons-digester.jar=`java-config -p commons-digester`" >> build.properties echo "junit.jar=`java-config -p junit`" >> build.properties echo "xerces.jar=`java-config -p xerces-2`" >> build.properties echo "xml-apis.jar=`java-config -p xml-apis`" >> build.properties } src_compile() { local antflags="compile only" use jikes && antflags="${antflags} -Dbuild.compiler=jikes" use junit && antflags="${antflags} test" use doc && antflags="${antflags} javadoc" ant ${antflags} || die "compile failed" } src_install() { java-pkg_dojar target/${PN}.jar dodoc RELEASE-NOTES.txt dohtml PROPOSAL.html STATUS.html userguide.html use doc && java-pkg_dohtml -r dist/docs/ }