summaryrefslogtreecommitdiff
blob: e07165726f89707c479d1598495fcd0f507f7377 (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-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/rhino-1.5_rc4.ebuild,v 1.4 2003/09/08 07:20:54 msterret Exp $

# This should be dynamic

inherit java-pkg

IUSE="doc"

MY_P="rhino1_5R4_1"
S="${WORKDIR}/${MY_P}"

DESCRIPTION="Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users"
SRC_URI="ftp://ftp.mozilla.org/pub/js/${MY_P//_/}.zip"
HOMEPAGE="http://www.mozilla.org/rhino/"
LICENSE="NPL-1.1"
SLOT="0"
KEYWORDS="x86 ~ppc"

RDEPEND=">=virtual/jdk-1.3
	dev-java/ant"

src_compile() {
	ant jar
}


src_install() {
	java-pkg_dojar build/${MY_P}/js.jar
	if [ "` use doc `" ]; then
		dohtml -r docs/*
	fi
}