blob: 7c7a8479f5d586a0245c5fb1ce795350d0f0c4a6 (
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
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/rhino-1.5.5-r5.ebuild,v 1.1 2008/07/16 22:42:29 caster Exp $
JAVA_PKG_IUSE="doc source"
inherit eutils java-pkg-2 java-ant-2
MY_P="rhino1_5R5"
DESCRIPTION="Rhino is an open-source Java implementation of JavaScript."
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.zip
mirror://gentoo/rhino-swing-ex-1.0.zip"
HOMEPAGE="http://www.mozilla.org/rhino/"
LICENSE="NPL-1.1"
SLOT="1.5"
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
IUSE=""
DEPEND="dev-java/ant-core
>=virtual/jdk-1.3
app-arch/unzip
source? ( app-arch/zip )"
RDEPEND=">=virtual/jre-1.3"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${MY_P}.zip
cd "${S}"
mkdir build/
epatch "${FILESDIR}/${PV}_jdk15.patch"
epatch "${FILESDIR}/00_dont-fetch-swing-ex.patch"
cp "${DISTDIR}/rhino-swing-ex-1.0.zip" build/swingExSrc.zip || die "unpack error"
}
src_compile() {
eant jar
}
src_install() {
java-pkg_dolauncher jsscript-${SLOT} \
--main org.mozilla.javascript.tools.shell.Main
java-pkg_dojar build/*/js.jar
use source && java-pkg_dosrc {src,toolsrc}/org
use doc && java-pkg_dohtml -r docs/*
}
|