# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public Licence v2 # $Header: inherit java-pkg DESCRIPTION="Blowfish implementation in Java" SRC_URI="http://www.hotpixel.net/bfj213.zip" HOMEPAGE="http://come.to/hahn" KEYWORDS="~x86 ~amd64 ~ppc ~sparc" LICENCE="Apache-1.1" SLOT="0" IUSE="doc junit" DEPEND=">=virtual/jre-1.4 app-arch/zip" RDEPEND=">=virtual/jre-1.4" src_unpack() { unpack ${A} mv BlowfishJ BlowfishJ-2.13 } src_compile() { einfo "Compiling the library" for i in `ls BlowfishJ/*.java` ; do javac $i || die "Compile failed for $i" done if use doc ; then javadoc -d doc BlowfishJ/*.java || die "Failed to create docs" fi einfo "Creating jar" jar cvf BlowfishJ.jar BlowfishJ/*.class || die "Failed creating jar" } src_install() { java-pkg_dojar BlowfishJ.jar dodoc README.TXT if use doc ; then java-pkg_dohtml -r docs/html/* fi }