# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit java-pkg DESCRIPTION=" HelpGUI is a simple library which develop a help viewer component." HOMEPAGE="http://helpgui.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}-src.jar" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc jikes" DEPEND="virtual/jdk dev-java/ant jikes? (dev-java/jikes)" RDEPEND="virtual/jre" src_unpack() { jar xvf ${DISTDIR}/${A} } src_compile() { local antflags use jikes && antflags="-Dbuild.compiler=jikes" ant ${antflags} helpgui_jar || die "Compile failed" if use doc; then ant javadocs || die "Javadoc failed" fi } src_install() { java-pkg_newjar build/${P}.jar ${PN}.jar dodoc README if use doc; then java-pkg_dohtml -r build/docs/ fi }