# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/commons-launcher/commons-launcher-0.9.ebuild,v 1.11 2005/05/29 15:42:25 corsair Exp $ inherit java-pkg DESCRIPTION="Commons-launcher eliminates the need for a batch or shell script to launch a Java class." HOMEPAGE="http://jakarta.apache.org/commons/launcher/" SRC_URI="ftp://ftp.ibiblio.org/pub/mirrors/apache/jakarta/commons/launcher/source/launcher-0.9-src.tar.gz" LICENSE="Apache-1.1" SLOT="0" KEYWORDS="amd64 ~ppc ppc64 ~sparc x86" IUSE="jikes doc" DEPEND=">=virtual/jdk-1.4 >=dev-java/ant-1.4 jikes? ( dev-java/jikes ) source? ( app-arch/zip )" RDEPEND=">=virtual/jre-1.4" S=${WORKDIR}/${PN} src_compile() { local antflags="jar" use doc && antflags="${antflags} javadoc" use jikes && antflags="${antflags} -Dbuild.compiler=jikes" ant ${antflags} || die "compilation problem" } src_install () { java-pkg_dojar dist/bin/*.jar || die "java-pkg_dojar died" dohtml *.html use doc && java-pkg_dohtml -r dist/docs/* use source && java-pkg_dosrc src/java/* }