summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorRobin Cook2011-12-07 17:38:17 -0600
committerRobin Cook2011-12-07 17:38:17 -0600
commitbfebc77766a64f0cb11fb948a9c30c2aa9a3c0a9 (patch)
treeed58f6948f302a7ecc7d1eaea6bebc5637bcde8b /java
parent869224d8c830f975c561d10bc27d6e79a49503c5 (diff)
rhino: new spell, javascript implemented in java
Diffstat (limited to 'java')
-rwxr-xr-xjava/rhino/BUILD6
-rwxr-xr-xjava/rhino/DEPENDS2
-rwxr-xr-xjava/rhino/DETAILS16
-rw-r--r--java/rhino/HISTORY2
-rwxr-xr-xjava/rhino/INSTALL5
-rwxr-xr-xjava/rhino/PRE_BUILD5
-rw-r--r--java/rhino/rhino-xbean-fix.patch24
-rw-r--r--java/rhino/rhino1_7R3.zip.sigbin0 -> 543 bytes
8 files changed, 60 insertions, 0 deletions
diff --git a/java/rhino/BUILD b/java/rhino/BUILD
new file mode 100755
index 0000000000..deb1f72795
--- /dev/null
+++ b/java/rhino/BUILD
@@ -0,0 +1,6 @@
+. $SECTION_DIRECTORY/java-functions
+
+set_java_env &&
+set_ant_env &&
+
+ant dist
diff --git a/java/rhino/DEPENDS b/java/rhino/DEPENDS
new file mode 100755
index 0000000000..6894c682b1
--- /dev/null
+++ b/java/rhino/DEPENDS
@@ -0,0 +1,2 @@
+depends JAVA '' '' z-rejected &&
+depends ant
diff --git a/java/rhino/DETAILS b/java/rhino/DETAILS
new file mode 100755
index 0000000000..f36145ea83
--- /dev/null
+++ b/java/rhino/DETAILS
@@ -0,0 +1,16 @@
+ SPELL=rhino
+ VERSION=1_7R3
+ SOURCE=$SPELL$VERSION.zip
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL$VERSION
+ SOURCE_URL[0]=ftp://ftp.mozilla.org/pub/mozilla.org/js/$SOURCE
+ SOURCE_GPG="gurus.gpg:${SOURCE}.sig"
+ LICENSE[0]=MPL
+ KEYWORDS="javascript"
+ WEB_SITE=http://www.mozilla.org/rhino/
+ ENTERED=20111023
+ SHORT='Javascript implemented in Java'
+cat << EOF
+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.
+EOF
diff --git a/java/rhino/HISTORY b/java/rhino/HISTORY
new file mode 100644
index 0000000000..61013bb4a4
--- /dev/null
+++ b/java/rhino/HISTORY
@@ -0,0 +1,2 @@
+2011-10-23 Robin Cook <rcook@wyrms.net>
+ * NEW SPELL: details, depends, pre_build, build, install
diff --git a/java/rhino/INSTALL b/java/rhino/INSTALL
new file mode 100755
index 0000000000..a8731b5524
--- /dev/null
+++ b/java/rhino/INSTALL
@@ -0,0 +1,5 @@
+. $SECTION_DIRECTORY/java-functions
+
+unzip $SOURCE &&
+extract_oth_src $SPELL ${SPELL}${VERSION} ${SPELL}${VERSION} &&
+register_oth_jar ${SPELL}${VERSION}/js.jar js.jar
diff --git a/java/rhino/PRE_BUILD b/java/rhino/PRE_BUILD
new file mode 100755
index 0000000000..6632ec4f18
--- /dev/null
+++ b/java/rhino/PRE_BUILD
@@ -0,0 +1,5 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+
+patch -p1 < $SCRIPT_DIRECTORY/rhino-xbean-fix.patch
+
diff --git a/java/rhino/rhino-xbean-fix.patch b/java/rhino/rhino-xbean-fix.patch
new file mode 100644
index 0000000000..3f02d0f72f
--- /dev/null
+++ b/java/rhino/rhino-xbean-fix.patch
@@ -0,0 +1,24 @@
+Only in rhino-mod: lib
+diff -ur rhino1_7R3/xmlimplsrc/build.xml rhino-mod/xmlimplsrc/build.xml
+--- rhino1_7R3/xmlimplsrc/build.xml 2011-05-09 20:04:38.000000000 -0500
++++ rhino-mod/xmlimplsrc/build.xml 2011-10-23 17:12:54.904949978 -0500
+@@ -147,7 +147,7 @@
+ <target name="xmlbeans-get" unless="xmlbeans-zip-present?">
+ <property
+ name="xmlbeans.url"
+- value="http://www.apache.org/dist/xmlbeans/binaries/xmlbeans-2.2.0.zip"
++ value="http://www.apache.org/dist/xmlbeans/binaries/xmlbeans-2.5.0.zip"
+ />
+
+ <mkdir dir="${xmlbeans.tmp}" />
+@@ -157,8 +157,8 @@
+ <target name="xmlbeans-unzip" unless="xmlbeans-present?">
+ <antcall target="xmlbeans-get" />
+ <unzip src="${xmlbeans.zip}" dest="${xmlbeans.tmp}" />
+- <copy tofile="${xbean.jar}" file="${xmlbeans.tmp}/xmlbeans-2.2.0/lib/xbean.jar" />
+- <copy tofile="${jsr173.jar}" file="${xmlbeans.tmp}/xmlbeans-2.2.0/lib/jsr173_1.0_api.jar" />
++ <copy tofile="${xbean.jar}" file="${xmlbeans.tmp}/xmlbeans-2.5.0/lib/xbean.jar" />
++ <copy tofile="${jsr173.jar}" file="${xmlbeans.tmp}/xmlbeans-2.5.0/lib/jsr173_1.0_api.jar" />
+ <delete dir="${xmlbeans.tmp}" />
+ </target>
+ </project>
diff --git a/java/rhino/rhino1_7R3.zip.sig b/java/rhino/rhino1_7R3.zip.sig
new file mode 100644
index 0000000000..1029d409f3
--- /dev/null
+++ b/java/rhino/rhino1_7R3.zip.sig
Binary files differ