# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit java-pkg S=${WORKDIR}/${PN} 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= KEYWORDS= IUSE="jikes doc" DEPEND=">=virtual/jdk-1.4 >=dev-java/ant-1.4" src_unpack() { unpack "launcher-${PV}-src.tar.gz" cd "${S}" epatch ${FILESDIR}/commons-launcher-0.9-Fix-build.patch } src_compile() { local buildopts if [ -n "`use jikes`" ] ; then buildopts="${buildopts} -Dbuild.compiler=jikes" fi ANT_OPTS=${buildopts} ant dist || die "Unable to build" } src_install () { cd ${S}/dist/bin java-pkg_dojar ${PN}.jar || die "Unable to install" cd ${S}/dist dodoc LICENSE LICENSE.txt dohtml STATUS.html PROPOSAL.html use doc && dohtml -r docs/* }