# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit java-pkg DESCRIPTION="The implementation of the javac compiler for IBM JDK 1.4" SRC_URI="mirror://gentoo/${P}.tar.gz" HOMEPAGE="http://cvs.apache.org/viewcvs.cgi/xml-xerces/java/tools/src/XJavac.java" LICENSE="Apache-2.0" SLOT="1" KEYWORDS="~x86 ~amd64" IUSE="doc jikes" DEPEND=">=virtual/jdk-1.4 jikes? ( >=dev-java/jikes-1.21 ) >=dev-java/ant-core-1.4" RDEPEND=">=virtual/jdk-1.4 >=dev-java/ant-core-1.4" src_unpack() { unpack ${A} cd ${S} cp ${FILESDIR}/build.xml . } src_compile() { local antflags="jar" if use jikes; then antflags="${antflags} -Dbuild.compiler=jikes" fi ant ${antflags} || die "failed to build" } src_install() { java-pkg_dojar dist/${PN}.jar }