diff options
author | Joshua Nichols <nichoj@gentoo.org> | 2006-07-21 01:24:05 +0000 |
---|---|---|
committer | Joshua Nichols <nichoj@gentoo.org> | 2006-07-21 01:24:05 +0000 |
commit | df27983c21d6753dfe2357de51be6a72ad315e0e (patch) | |
tree | 8c258f2508bfa69d097939a190d611a3acb3066a /dev-java/rhino | |
parent | Revision bumps to use new Java system. (diff) | |
download | gentoo-2-df27983c21d6753dfe2357de51be6a72ad315e0e.tar.gz gentoo-2-df27983c21d6753dfe2357de51be6a72ad315e0e.tar.bz2 gentoo-2-df27983c21d6753dfe2357de51be6a72ad315e0e.zip |
Revision bumps to use new Java system.
(Portage version: 2.1.1_pre2-r4)
Diffstat (limited to 'dev-java/rhino')
-rw-r--r-- | dev-java/rhino/rhino-1.5.5-r3.ebuild | 41 | ||||
-rw-r--r-- | dev-java/rhino/rhino-1.6.1-r3.ebuild | 46 |
2 files changed, 87 insertions, 0 deletions
diff --git a/dev-java/rhino/rhino-1.5.5-r3.ebuild b/dev-java/rhino/rhino-1.5.5-r3.ebuild new file mode 100644 index 000000000000..3d50e01a376f --- /dev/null +++ b/dev-java/rhino/rhino-1.5.5-r3.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2005 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-r3.ebuild,v 1.1 2006/07/21 01:24:05 nichoj Exp $ + +inherit eutils java-pkg-2 + +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="doc source" +S="${WORKDIR}/${MY_P}" +DEPEND="dev-java/ant-core + >=virtual/jdk-1.3 + app-arch/unzip + source? ( app-arch/zip )" +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() { + 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/* +} diff --git a/dev-java/rhino/rhino-1.6.1-r3.ebuild b/dev-java/rhino/rhino-1.6.1-r3.ebuild new file mode 100644 index 000000000000..7e733b29bf1f --- /dev/null +++ b/dev-java/rhino/rhino-1.6.1-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/rhino-1.6.1-r3.ebuild,v 1.1 2006/07/21 01:24:05 nichoj Exp $ + +inherit java-pkg-2 eutils + +MY_P="rhino1_6R1" +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.6" +KEYWORDS="~amd64 ~x86 ~sparc" +IUSE="doc source" +S="${WORKDIR}/${MY_P}" +RDEPEND=">=virtual/jre-1.4 + >=dev-java/xml-xmlbeans-20041217" +DEPEND="dev-java/ant-core + >=virtual/jdk-1.4 + app-arch/unzip + source? ( app-arch/zip ) + ${RDEPEND}" + +src_unpack() { + unpack ${MY_P}.zip + cd ${S} + + epatch ${FILESDIR}/rhino-1.6-gentoo.patch + + cp ${DISTDIR}/rhino-swing-ex-1.0.zip swingExSrc.zip + + mkdir lib/ && cd lib/ + java-pkg_jar-from xml-xmlbeans-1 xbean.jar +} + +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/* +} |