summaryrefslogtreecommitdiff
blob: 19183a236ac2c6ec184d8879baa8c400947692b6 (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-2004 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-r1.ebuild,v 1.1 2004/01/23 15:43:58 mkennedy Exp $

# This should be dynamic

inherit java-pkg

IUSE="doc"

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

DESCRIPTION="Rhino is an implementation of JavaScript written entirely in Java."
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 amd64"

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

src_compile() {
	ant jar
}

src_install() {
	dobin ${FILESDIR}/jsscript
	java-pkg_dojar build/${MY_P}/js.jar
	if use doc; then
		dohtml -r docs/*
	fi
}