# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /usr/local/portage/dev-java/bcprov/bcproc-1.31.ebuild,v 1.0 2006/03/16 01:09:00 Metalshark Exp $ inherit java-pkg MY_PN=${PN}-jdk15 MY_PV=${PV//./} MY_P=${MY_PN}-${MY_PV} DESCRIPTION="The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms" HOMEPAGE="http://www.bouncycastle.org/" SRC_URI="http://www.bouncycastle.org/download/${MY_P}.tar.gz" RESTRICT="primaryuri" LICENSE="" SLOT="0" KEYWORDS="~x86" IUSE="jikes doc" DEPEND="=virtual/jdk-1.5* dev-java/ant-core jikes? (dev-java/jikes)" RDEPEND="=virtual/jre-1.5*" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} cp ${FILESDIR}/1.28/build.xml ${S} } src_compile() { local antflags="-Dproject.name=${PN} jar" use jikes && antflags="-Dbuild.compiler=jikes ${antflags}" ant ${antflags} || die "Compile failed" mv docs api } src_install() { java-pkg_dojar dist/${PN}.jar dohtml *.html use doc && java-pkg_dohtml -r api }