summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2006-01-15 18:50:54 +0000
committerJoshua Nichols <nichoj@gentoo.org>2006-01-15 18:50:54 +0000
commit490df55555b159cf2e81ec47464dcf2c7a3adc20 (patch)
treea27a9868f012083b5653bf065fc1d02bd1d9c42e /dev-java/rhino/rhino-1.5.5-r2.ebuild
parentRemove broken remind version check. (diff)
downloadgentoo-2-490df55555b159cf2e81ec47464dcf2c7a3adc20.tar.gz
gentoo-2-490df55555b159cf2e81ec47464dcf2c7a3adc20.tar.bz2
gentoo-2-490df55555b159cf2e81ec47464dcf2c7a3adc20.zip
Fixed slot problem in jsscript. Also fixed collison between 1.5 and 1.6 over
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-java/rhino/rhino-1.5.5-r2.ebuild')
-rw-r--r--dev-java/rhino/rhino-1.5.5-r2.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-java/rhino/rhino-1.5.5-r2.ebuild b/dev-java/rhino/rhino-1.5.5-r2.ebuild
new file mode 100644
index 000000000000..4ef4d6a868ac
--- /dev/null
+++ b/dev-java/rhino/rhino-1.5.5-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2006 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-r2.ebuild,v 1.1 2006/01/15 18:50:54 nichoj Exp $
+
+inherit eutils java-pkg
+
+MY_P="rhino1_5R5"
+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/mozilla.org/js/${MY_P}.zip http://dev.gentoo.org/~karltk/projects/java/distfiles/rhino-swing-ex-1.0.zip"
+HOMEPAGE="http://www.mozilla.org/rhino/"
+LICENSE="NPL-1.1"
+SLOT="1.5"
+KEYWORDS="x86 ppc amd64 sparc ppc64"
+IUSE="jikes doc source"
+S="${WORKDIR}/${MY_P}"
+DEPEND="dev-java/ant-core
+ >=virtual/jdk-1.3
+ app-arch/unzip
+ source? ( app-arch/zip )
+ jikes? ( dev-java/jikes )"
+RDEPEND=">=virtual/jre-1.3"
+
+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() {
+ local antflags="jar"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ ant ${antflags} || die "compilation error"
+
+ cp ${FILESDIR}/jsscript ${T}
+ sed -i -e "s/@SLOT@/${SLOT}/" ${T}/jsscript
+}
+
+src_install() {
+ newbin ${T}/jsscript jsscript-${SLOT}
+ java-pkg_dojar build/*/js.jar
+ use source && java-pkg_dosrc {src,toolsrc}/org
+ use doc && java-pkg_dohtml -r docs/*
+}