# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit java-pkg MY_P="${PN}_${PV}_src" DESCRIPTION=" The Wrapper makes it possible to install a Java Application as a Windows NT Service. The scripts provided with the Wrapper also make it very easy to install those same Java Applications as daemon processes on UNIX systems." HOMEPAGE="http://wrapper.tanukisoftware.org/doc/english/introduction.html" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" LICENSE="" SLOT="0" KEYWORDS="~x86" IUSE="jikes doc" DEPEND="virtual/jdk dev-java/ant" RDEPEND="virtual/jre" S="${WORKDIR}/${MY_P}" src_compile() { local antflags="" use jikes && antflags="-Dbuild.compiler=jikes" ant ${antflags} main || die "Compilation failed" if use doc; then ant jdoc || die "Javadoc failed" fi } src_install() { java-pkg_dojar lib/*.jar dolib lib/*.so dobin bin/* dodoc doc/{AUTHORS,readme.txt,revisions.txt} if use doc; then java-pkg_dohtml -r doc/english/ jdoc/ fi }