[arch-commits] Commit in rhino/trunk (6 files)

Guillaume Alaux guillaume at archlinux.org
Sun Apr 24 16:57:58 UTC 2016


    Date: Sunday, April 24, 2016 @ 18:57:58
  Author: guillaume
Revision: 266132

Upstream release 1.7.7.1 (not built anymore)

Added:
  rhino/trunk/rhino-idswitch
Modified:
  rhino/trunk/PKGBUILD
  rhino/trunk/rhino
  rhino/trunk/rhino-debugger
  rhino/trunk/rhino-jsc
Deleted:
  rhino/trunk/rhino.1

----------------+
 PKGBUILD       |   56 +++++++++++++--------------------
 rhino          |    9 +----
 rhino-debugger |   10 ++---
 rhino-idswitch |    6 +++
 rhino-jsc      |   10 ++---
 rhino.1        |   93 -------------------------------------------------------
 6 files changed, 40 insertions(+), 144 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-04-24 16:51:09 UTC (rev 266131)
+++ PKGBUILD	2016-04-24 16:57:58 UTC (rev 266132)
@@ -5,7 +5,7 @@
 
 pkgbase=rhino
 pkgname=('java-rhino' 'rhino' 'rhino-javadoc')
-pkgver=1.7.6
+pkgver=1.7.7.1
 _pkgver=${pkgver//\./_}
 pkgrel=1
 arch=('any')
@@ -12,44 +12,31 @@
 url="http://www.mozilla.org/rhino/"
 license=('MPL')
 makedepends=('apache-ant')
-source=(https://github.com/mozilla/${pkgbase}/releases/download/Rhino${_pkgver}_RELEASE/${pkgbase}${pkgver}.zip
-        http://archive.apache.org/dist/xmlbeans/binaries/xmlbeans-2.5.0.tgz
+source=(https://github.com/mozilla/${pkgbase}/releases/download/Rhino${_pkgver}_RELEASE/${pkgbase}-${pkgver}.zip
+        https://github.com/mozilla/${pkgbase}/archive/Rhino${_pkgver}_RELEASE.tar.gz
         rhino
-        rhino.1
         rhino-debugger
         rhino-debugger.1
+        rhino-idswitch
         rhino-jsc
         rhino-jsc.1)
-sha256sums=('45f4431699887a72a7f383ef927ef1b2e79d1fe597260af8df11ea93255b10f5'
-            '497b0031e6c998f724f4b462185e85a20c441f7d678b99f42030e9f96be315d3'
-            '4c8bea243b86dc7b3f186a255fedd5d7c13b2aa9f24b81db4f7dd2ed7582e724'
-            'b3ae7bfc673e999d644d277b317a68289c41c650c49e7614b2e14b4094119388'
-            '9ce7073e0c40bf5f600ed948d6f6abcded6ebebc5e78bc2bdd35ce70bd7611f5'
+
+sha256sums=('f753d82002927208139f374e47febb35d7832a10890f57bb1a3c28cad0de6e84'
+            'fb44d67e3c83cbf7615afa55d5153d10a3ac73ad75ee68e818d548839368b73b'
+            '44271f9467a37941cda3eba88ecf8b32e96a96b1f4109a5cdf420a969f8da7f5'
+            'da467c7752433a44740241a645ba0e0c648ffef98e83e3e895c6ae35efbde396'
             'afad5dd37f0157138077f5e070b0434491f5e0389bb6bccc5a9cfde275e5c4d8'
-            '5115144b0c025b4cac09d9a5f3bd5e7aeaba6ce3b2055f2f3b659ea0c13e4f2a'
+            '4f50016b43a220faab78da6ceaef5984cf3c156976ccd4ce98786da17107fafc'
+            '0d7815302b2ee12d8fd7d17020c3357bddae5f45915ad83a00d66b1d616ee439'
             '15bb5da739c5d27634aae479ff5c94f685967de0d59cf7dc53b595d94a0b6860')
 
-build() {
-  cd "${srcdir}/${pkgbase}${pkgver}"
-  ant \
-    -Dxbean.jar=${srcdir}/xmlbeans-2.5.0/lib/xbean.jar \
-    -Djsr173.jar=${srcdir}/xmlbeans-2.5.0/lib/jsr173_1.0_api.jar \
-    jar \
-    javadoc
-}
-
-check() {
-  cd "${srcdir}/${pkgbase}${pkgver}"
-  ant \
-    junit
-}
-
 package_java-rhino() {
   pkgdesc="Open-source implementation of JavaScript written entirely in Java - JAR"
   depends=('java-runtime-headless')
 
-  cd ${srcdir}/${pkgbase}${pkgver}/build/${pkgbase}${pkgver}
-  install -Dm644 js.jar ${pkgdir}/usr/share/java/js-${pkgver}.jar
+  install -Dm644 \
+    ${pkgbase}${pkgver}/lib/${pkgbase}-${pkgver}.jar \
+    ${pkgdir}/usr/share/java/js-${pkgver}.jar
   ln -s js-${pkgver}.jar ${pkgdir}/usr/share/java/js.jar
 }
 
@@ -57,18 +44,21 @@
   pkgdesc="Open-source implementation of JavaScript written entirely in Java"
   depends=('java-rhino' 'java-jline')
 
-  cd ${srcdir}
-
   install -dm755 ${pkgdir}/usr/bin
-  install -m755 rhino rhino-debugger rhino-jsc ${pkgdir}/usr/bin/
+  install -m755 \
+    rhino rhino-debugger rhino-jsc rhino-idswitch \
+    ${pkgdir}/usr/bin/
   install -dm755 ${pkgdir}/usr/share/man/man1
-  install -m755 rhino.1 rhino-debugger.1 rhino-jsc.1 ${pkgdir}/usr/share/man/man1/
+  install -m755 \
+    ${pkgbase}-Rhino${_pkgver}_RELEASE/man/rhino.1 \
+    rhino-debugger.1 \
+    rhino-jsc.1 \
+    ${pkgdir}/usr/share/man/man1/
 }
 
 package_rhino-javadoc() {
   pkgdesc="Open-source implementation of JavaScript written entirely in Java - Javadoc"
 
-  cd ${srcdir}/${pkgbase}${pkgver}/build/${pkgbase}${pkgver}
   install -m755 -d ${pkgdir}/usr/share/${pkgbase}
-  cp -r javadoc ${pkgdir}/usr/share/${pkgbase}
+  cp -r ${pkgbase}${pkgver}/docs ${pkgdir}/usr/share/${pkgbase}
 }

Modified: rhino
===================================================================
--- rhino	2016-04-24 16:51:09 UTC (rev 266131)
+++ rhino	2016-04-24 16:57:58 UTC (rev 266132)
@@ -1,8 +1,5 @@
 #!/bin/sh
 
-JAVA_CMD="/usr/bin/java"
-JAVA_OPTS=""
-JAVA_CLASSPATH="/usr/share/java/js.jar:/usr/share/java/jline.jar"
-JAVA_MAIN="org.mozilla.javascript.tools.shell.Main"
-
-$JAVA_CMD $JAVA_OPTS -classpath $JAVA_CLASSPATH $JAVA_MAIN "$@"
+/usr/bin/java \
+  -jar /usr/share/java/js.jar \
+  "$@"

Modified: rhino-debugger
===================================================================
--- rhino-debugger	2016-04-24 16:51:09 UTC (rev 266131)
+++ rhino-debugger	2016-04-24 16:57:58 UTC (rev 266132)
@@ -1,8 +1,6 @@
 #!/bin/sh
 
-JAVA_CMD="/usr/bin/java"
-JAVA_OPTS=""
-JAVA_CLASSPATH="/usr/share/java/js.jar"
-JAVA_MAIN="org.mozilla.javascript.tools.debugger.Main"
-
-$JAVA_CMD $JAVA_OPTS -classpath $JAVA_CLASSPATH $JAVA_MAIN "$@"
+/usr/bin/java \
+  -classpath /usr/share/java/js.jar \
+  org.mozilla.javascript.tools.debugger.Main \
+  "$@"

Added: rhino-idswitch
===================================================================
--- rhino-idswitch	                        (rev 0)
+++ rhino-idswitch	2016-04-24 16:57:58 UTC (rev 266132)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+/usr/bin/java \
+  -classpath /usr/share/java/js.jar \
+  org.mozilla.javascript.tools.idswitch.Main \
+  "$@"

Modified: rhino-jsc
===================================================================
--- rhino-jsc	2016-04-24 16:51:09 UTC (rev 266131)
+++ rhino-jsc	2016-04-24 16:57:58 UTC (rev 266132)
@@ -1,8 +1,6 @@
 #!/bin/sh
 
-JAVA_CMD="/usr/bin/java"
-JAVA_OPTS=""
-JAVA_CLASSPATH="/usr/share/java/js.jar"
-JAVA_MAIN="org.mozilla.javascript.tools.jsc.Main"
-
-$JAVA_CMD $JAVA_OPTS -classpath $JAVA_CLASSPATH $JAVA_MAIN "$@"
+/usr/bin/java \
+  -classpath /usr/share/java/js.jar \
+  org.mozilla.javascript.tools.jsc.Main \
+  "$@"

Deleted: rhino.1
===================================================================
--- rhino.1	2016-04-24 16:51:09 UTC (rev 266131)
+++ rhino.1	2016-04-24 16:57:58 UTC (rev 266132)
@@ -1,93 +0,0 @@
-.\"                                      Hey, EMACS: -*- nroff -*-
-.\" First parameter, NAME, should be all caps
-.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
-.\" other parameters are allowed: see man(7), man(1)
-.TH RHINO 1 "February  12, 2005"
-.\" Please adjust this date whenever revising the manpage.
-.\"
-.\" Some roff macros, for reference:
-.\" .nh        disable hyphenation
-.\" .hy        enable hyphenation
-.\" .ad l      left justify
-.\" .ad b      justify to both left and right margins
-.\" .nf        disable filling
-.\" .fi        enable filling
-.\" .br        insert line break
-.\" .sp <n>    insert n+1 empty lines
-.\" for manpage-specific macros, see man(7)
-.SH NAME
-rhino \- invokes the JavaScript shell for running scripts in batch mode or interactive
-
-.SH SYNOPSIS
-.B rhino
-.I [options]
-.I script_filename_or_url
-.I [script_arguments]
-
-.SH DESCRIPTION
-This manual page documents briefly the
-.B rhino
-command.
-This manual page was written for the Debian distribution because the original 
-program does not have a manual page. It is written according to the html documentation.
-.PP
-.\" TeX users may be more comfortable with the \fB<whatever>\fP and
-.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
-.\" respectively.
-\fBrhino\fP is a start script for the rhino JavaScript shell which provides a simple way 
-to run scripts in batch mode or an interactive environment for exploratory programming.
-
-.SH OPTIONS
-
-.IP -e\ \fIscript_source\fP
-Executes script_source as a JavaScript script.
-.IP -f\ \fIscript_filename_or_url\fP
-Reads script_filename_or_url content and execute it as a JavaScript script.
-.IP -opt,\ -O\ \fIoptLevel\fP
-Optimizes at level optLevel, which must be an integer between -1 and 9. -1 means Interpretive mode is always used. 0 means no optimizations whereas 9 means all optimizations are performed.
-.IP -version\ \fIversionNumber\fP
-Specifies the language version to compile with. The string versionNumber must be one of 100, 110, 120, 130, or 140. See JavaScript Language Versions for more information on language versions. 
-.IP -strict
-Enable strict mode.
-
-.SH PREDEFINED PROPERTIES
-
-Scripts executing in the shell have access to some additional properties of the top-level object.
-
-.IP arguments
-The arguments object is an array containing the strings of all the arguments given at the command line when the shell was invoked.
-.IP help()
-Executing the help function will print usage and help messages.
-.IP defineClass(\fIclassName\fP)
-Define an extension using the Java class named with the string argument className. Uses ScriptableObject.defineClass() to define the extension.
-.IP deserialize(\fIfilename\fP)
-Restore from the specified file an object previously written by a call to serialize.
-.IP load(\fI[filename,\&.\&.\&.]\fP)
-Load JavaScript source files named by string arguments. If multiple arguments are given, each file is read in and executed in turn.
-.IP loadClass(\fIclassName\fP)
-Load and execute the class named by the string argument className. The class must be a class that implements the Script interface, as will any script compiled by jsc.
-.IP print(\fI[expr\&.\&.\&.]\fP)
-Evaluate and print expressions. Evaluates each expression, converts the result to a string, and prints it.
-.IP readFile(\fIpath[,characterCoding]\fP)
-Read given file and convert its bytes to a string using the specified character coding or default character coding if explicit coding argument is not given.
-.IP readUrl(\fIurl[,characterCoding]\fP)
-Open an input connection to the given string url, read all its bytes and convert them to a string using the specified character coding or default character coding if explicit coding argument is not given.
-.IP runCommand(\fIcommandName,[arg,\&.\&.\&.][options]\fP)
-Execute the specified command with the given argument and options as a separate process and return the exit status of the process. For details, see JavaDoc for org.mozilla.javascript.tools.shell.Global#runCommand.
-.IP serialize(\fIobject,filename\fP)
-Serialize the given object to the specified file.
-.IP spawn(\fIfunctionOrScript\fP)
-Run the given function or script in a different thread.
-.IP sync(\fIfunction\fP)
-creates a synchronized function (in the sense of a Java synchronized method) from an existing function. The new function synchronizes on the this object of its invocation.
-.IP quit()
-Quit shell. The shell will also quit in interactive mode if an end-of-file character is typed at the prompt.
-.IP version(\fI[number]\fP)
-Get or set JavaScript version number. If no argument is supplied, the current version number is returned. If an argument is supplied, it is expected to be one of 100, 110, 120, 130, or 140 to indicate JavaScript version 1.0, 1.1, 1.2, 1.3, or 1.4 respectively.
-
-.SH SEE ALSO
-The online documentation under http://www.mozilla.org/rhino/shell.html
-
-.SH AUTHOR
-This manual page was written by Wolfgang Baer <WBaer at gmx.de>,
-for the Debian project (but may be used by others).



More information about the arch-commits mailing list