summaryrefslogtreecommitdiff
blob: 21dad59dfb9ddcbfa08b53ae3732cf71f0aa6beb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/blowfishj/blowfishj-2.14-r1.ebuild,v 1.1 2006/07/04 19:05:45 nichoj Exp $

inherit java-pkg-2 java-ant-2

DESCRIPTION="Blowfish implementation in Java"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
HOMEPAGE="http://blowfishj.sourceforge.net/index.html"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc ~sparc"
IUSE="doc test"

DEPEND=">=virtual/jdk-1.4
	dev-java/ant
	app-arch/unzip
	test? ( dev-java/junit ) "
RDEPEND=">=virtual/jre-1.4"

src_compile() {
	eant jar $(use_doc) || die "failed to compile"
}

src_test() {
	eant test || die "test failed"
}

src_install() {
	java-pkg_newjar target/${P}.jar ${PN}.jar

	use doc && java-pkg_dohtml -r dist/docs/api/*
}