diff options
Diffstat (limited to 'dev-java/jclasslib/jclasslib-2.0.ebuild')
-rw-r--r-- | dev-java/jclasslib/jclasslib-2.0.ebuild | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/dev-java/jclasslib/jclasslib-2.0.ebuild b/dev-java/jclasslib/jclasslib-2.0.ebuild index 30d968dc5c25..65b9bbbf985a 100644 --- a/dev-java/jclasslib/jclasslib-2.0.ebuild +++ b/dev-java/jclasslib/jclasslib-2.0.ebuild @@ -1,20 +1,22 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jclasslib/jclasslib-2.0.ebuild,v 1.5 2005/04/02 18:39:44 axxo Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/jclasslib/jclasslib-2.0.ebuild,v 1.6 2005/05/16 12:46:34 luckyduck Exp $ inherit java-pkg eutils +MY_PV=${PV/./_} DESCRIPTION="classlib bytecode viewer is a tool that visualizes all aspects of compiled Java class files and the contained bytecode. In addition, it contains a library that enables developers to read, modify and write Java class files and bytecode." - HOMEPAGE="http://www.ej-technologies.com/products/jclasslib/overview.html" -MY_PV=${PV/./_} SRC_URI="mirror://sourceforge/${PN}/${PN}_unix_${MY_PV}.tar.gz" + LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86 ~ppc ~amd64" -IUSE="doc" +KEYWORDS="x86 ppc amd64" +IUSE="doc jikes" + DEPEND=">=virtual/jdk-1.4 - dev-java/ant" + dev-java/ant-core + jikes? ( dev-java/jikes )" RDEPEND=">=virtual/jre-1.4" S=${WORKDIR}/${PN} @@ -27,12 +29,13 @@ src_unpack() { } src_compile() { - ant jar || die "compile failed" - use doc && ant javadoc + local antflags="jar" + use doc && antflags="${antflags} javadoc" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + ant ${antflags} || die "compilation failed" } src_install() { - dodoc license - java-pkg_dojar build/jclasslib.jar + java-pkg_dojar build/${PN}.jar use doc && java-pkg_dohtml -r doc/* } |