summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2010-03-27 22:23:17 +0000
committerAlistair Bush <ali_bush@gentoo.org>2010-03-27 22:23:17 +0000
commit00c0af33cd64d7de152bd8a534220b66eb9b43d5 (patch)
treee9d66565dcddf9b00cd3cbda8e759ceb56b2bc43 /dev-java/rhino
parentReplace remove selection script with the improved one from http://registry.gi... (diff)
downloadgentoo-2-00c0af33cd64d7de152bd8a534220b66eb9b43d5.tar.gz
gentoo-2-00c0af33cd64d7de152bd8a534220b66eb9b43d5.tar.bz2
gentoo-2-00c0af33cd64d7de152bd8a534220b66eb9b43d5.zip
Version Bump.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/rhino')
-rw-r--r--dev-java/rhino/ChangeLog7
-rw-r--r--dev-java/rhino/rhino-1.7.2.ebuild56
2 files changed, 62 insertions, 1 deletions
diff --git a/dev-java/rhino/ChangeLog b/dev-java/rhino/ChangeLog
index 018d8b861c26..4b71c875c71b 100644
--- a/dev-java/rhino/ChangeLog
+++ b/dev-java/rhino/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/rhino
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/ChangeLog,v 1.62 2010/01/03 21:42:36 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/ChangeLog,v 1.63 2010/03/27 22:23:17 ali_bush Exp $
+
+*rhino-1.7.2 (27 Mar 2010)
+
+ 27 Mar 2010; Alistair Bush <ali_bush@gentoo.org> +rhino-1.7.2.ebuild:
+ Version Bump.
03 Jan 2010; Christian Faulhammer <fauli@gentoo.org>
rhino-1.5.5-r5.ebuild, rhino-1.6.5.ebuild:
diff --git a/dev-java/rhino/rhino-1.7.2.ebuild b/dev-java/rhino/rhino-1.7.2.ebuild
new file mode 100644
index 000000000000..aca51e9b92ec
--- /dev/null
+++ b/dev-java/rhino/rhino-1.7.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/rhino/rhino-1.7.2.ebuild,v 1.1 2010/03/27 22:23:17 ali_bush Exp $
+
+JAVA_PKG_IUSE="doc examples source"
+inherit java-pkg-2 java-ant-2 eutils versionator
+
+MY_P="${PN}$(replace_version_separator 1 _ $(replace_version_separator 2 R))"
+
+DESCRIPTION="An open-source implementation of JavaScript written in Java."
+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/"
+# dual license for rhino and BSD-2 for the swing-ex from Sun's tutorial
+LICENSE="|| ( MPL-1.1 GPL-2 ) BSD-2"
+SLOT="1.6"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+CDEPEND="=dev-java/xml-xmlbeans-1*"
+RDEPEND=">=virtual/jre-1.5
+ ${CDEPEND}"
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip
+ ${CDEPEND}"
+
+src_unpack() {
+ unpack ${MY_P}.zip
+ cd "${S}"
+
+ # don't download src.zip from Sun
+ epatch "${FILESDIR}/rhino-1.6-noget.patch"
+
+ rm -v *.jar || die
+ rm -rf docs/apidocs || die
+
+ local dir="toolsrc/org/mozilla/javascript/tools/debugger/downloaded"
+ mkdir ${dir} || die
+ cp "${DISTDIR}/rhino-swing-ex-1.0.zip" ${dir}/swingExSrc.zip || die
+
+ mkdir lib/ && cd lib/ || die
+ java-pkg_jar-from xml-xmlbeans-1 xbean.jar
+}
+
+src_install() {
+ java-pkg_dojar build/${MY_P}/js.jar
+
+ java-pkg_dolauncher jsscript-${SLOT} \
+ --main org.mozilla.javascript.tools.shell.Main
+
+ use doc && java-pkg_dojavadoc "build/${MY_P}/javadoc"
+ use examples && java-pkg_doexamples examples
+ use source && java-pkg_dosrc {src,toolsrc,xmlimplsrc}/org
+}