[arch-commits] Commit in rhino/repos (8 files)

Antonio Rojas arojas at archlinux.org
Fri Apr 23 17:38:41 UTC 2021


    Date: Friday, April 23, 2021 @ 17:38:40
  Author: arojas
Revision: 413776

archrelease: copy trunk to testing-any

Added:
  rhino/repos/testing-any/
  rhino/repos/testing-any/PKGBUILD
    (from rev 413775, rhino/trunk/PKGBUILD)
  rhino/repos/testing-any/rhino
    (from rev 413775, rhino/trunk/rhino)
  rhino/repos/testing-any/rhino-debugger
    (from rev 413775, rhino/trunk/rhino-debugger)
  rhino/repos/testing-any/rhino-debugger.1
    (from rev 413775, rhino/trunk/rhino-debugger.1)
  rhino/repos/testing-any/rhino-idswitch
    (from rev 413775, rhino/trunk/rhino-idswitch)
  rhino/repos/testing-any/rhino-jsc
    (from rev 413775, rhino/trunk/rhino-jsc)
  rhino/repos/testing-any/rhino-jsc.1
    (from rev 413775, rhino/trunk/rhino-jsc.1)

------------------+
 PKGBUILD         |   62 +++++++++++++++++++++++++++++++++++++++++++++++++
 rhino            |    5 +++
 rhino-debugger   |    6 ++++
 rhino-debugger.1 |   60 +++++++++++++++++++++++++++++++++++++++++++++++
 rhino-idswitch   |    6 ++++
 rhino-jsc        |    6 ++++
 rhino-jsc.1      |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 212 insertions(+)

Copied: rhino/repos/testing-any/PKGBUILD (from rev 413775, rhino/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2021-04-23 17:38:40 UTC (rev 413776)
@@ -0,0 +1,62 @@
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Maintainer: Guillaume ALAUX <guillaume at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=rhino
+pkgname=('java-rhino' 'rhino' 'rhino-javadoc')
+pkgver=1.7.13
+_pkgver=${pkgver//\./_}
+pkgrel=1
+arch=('any')
+url="https://www.mozilla.org/rhino/"
+license=('MPL')
+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-debugger
+        rhino-debugger.1
+        rhino-idswitch
+        rhino-jsc
+        rhino-jsc.1)
+
+sha512sums=('9ad8edc364cdf99fe366e5a9c2fa3e859c1f7e4dd7ff5dabfd9f43d780a152c4c786ca5b29a7290a14c01a796d93d6b4398f0ff4264bc20ddc2b63230fceecc5'
+            '5329bc26e590bb714f6554871e6f061cc6ac2363aa7b6d472133ab60e86b083d1c94c1e7a635fc7131328472b3e0e9eb45a51e17d0ea6655421f0ace0eb6d689'
+            '128768843b40860160aa95fe925e23959c8dc46ccbe8a623d4ccdadf8ab4304bb96dded9952d0654bb90600a9b325e46827cc528d6725c25b0eaf7b2fc6207f4'
+            '909598e2c289530d1de2b47f383fe6a73f40cea2c22ecf30b9fd94ab446ad0e9e9ae11e04ca77eb65ccf4a5a376f2e023aa154450f5f8db187bd196bad542355'
+            'a3723c082b9876fb945fcb14d4826970f83acfefedb43e4571dad1180b6adbed8de273503239a1908e9a79a77de15c49f30c880c92a39ba9764a6859c8d1d571'
+            '7d123bf1a0e9b806d11a4fa6912e76fd8ed7284c5085b19eef5ce41d79475028523d53b503a710088e3a3f8263e021a0c6cc5501aa9d47a69b1685ba6550f014'
+            'a85fd1b0a20567120c7d7e4c426cc1173526e4e2b153dd4434bdf1b2fe6d10a549db5e7cf7a09d1adeefda83d7f09a610b8a287ba8c886290d8e9db8e8e0e5de'
+            'ea68463de5dc05503e68c548a8c4bd18bba1b132b52f78fe4b0e0ddd3b1ff9a0147a27196781522bb69cd613a7288ec6cdbfc9435de86fc6af99c92f90fca78b')
+
+package_java-rhino() {
+  pkgdesc="Open-source implementation of JavaScript written entirely in Java - JAR"
+  depends=('java-runtime-headless')
+
+  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
+}
+
+package_rhino() {
+  pkgdesc="Open-source implementation of JavaScript written entirely in Java"
+  depends=('java-rhino' 'java-jline')
+
+  install -dm755 "${pkgdir}"/usr/bin
+  install -m755 \
+    rhino rhino-debugger rhino-jsc rhino-idswitch \
+    "${pkgdir}"/usr/bin/
+  install -dm755 "${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"
+
+  install -m755 -d "${pkgdir}"/usr/share/${pkgbase}
+  cp -r ${pkgbase}${pkgver}/docs "${pkgdir}"/usr/share/${pkgbase}
+}

Copied: rhino/repos/testing-any/rhino (from rev 413775, rhino/trunk/rhino)
===================================================================
--- testing-any/rhino	                        (rev 0)
+++ testing-any/rhino	2021-04-23 17:38:40 UTC (rev 413776)
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+/usr/bin/java \
+  -jar /usr/share/java/js.jar \
+  "$@"

Copied: rhino/repos/testing-any/rhino-debugger (from rev 413775, rhino/trunk/rhino-debugger)
===================================================================
--- testing-any/rhino-debugger	                        (rev 0)
+++ testing-any/rhino-debugger	2021-04-23 17:38:40 UTC (rev 413776)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+/usr/bin/java \
+  -classpath /usr/share/java/js.jar \
+  org.mozilla.javascript.tools.debugger.Main \
+  "$@"

Copied: rhino/repos/testing-any/rhino-debugger.1 (from rev 413775, rhino/trunk/rhino-debugger.1)
===================================================================
--- testing-any/rhino-debugger.1	                        (rev 0)
+++ testing-any/rhino-debugger.1	2021-04-23 17:38:40 UTC (rev 413776)
@@ -0,0 +1,60 @@
+.\"                                      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-DEBUGGER 1 "Friday  17, 2009"
+.\" 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-debugger \- invokes the rhino JavaScript debugger GUI
+
+.SH SYNOPSIS
+.B rhino-debugger
+.I [options]
+.I script_filename_or_url
+.I [script_arguments]
+
+.SH DESCRIPTION
+This manual page documents briefly the
+.B rhino-debugger
+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
+\fBrhino-debugger\fP is a start script for the rhino JavaScript debugger. The Rhino JavaScript debugger is a GUI that allows debugging of interpreted JavaScript scripts run in Rhino. Note that this debugger will not work with JavaScript scripts run in the mozilla browser since Rhino is not the engine used in such environments.
+
+.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 0 and 9. 
+.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 EXAMPLE
+
+Example debugging the NervousText.js applet written in JavaScript. The example is provided in the librhino-java-doc package.
+
+$ rhino-debugger NervousText.js 
+
+.SH SEE ALSO
+The online documentation under http://www.mozilla.org/rhino/debugger.html
+
+.SH AUTHOR
+This manual page was written by Damien Raude-Morvan <drazzib at debian.org>,
+for the Debian project (but may be used by others).

Copied: rhino/repos/testing-any/rhino-idswitch (from rev 413775, rhino/trunk/rhino-idswitch)
===================================================================
--- testing-any/rhino-idswitch	                        (rev 0)
+++ testing-any/rhino-idswitch	2021-04-23 17:38:40 UTC (rev 413776)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+/usr/bin/java \
+  -classpath /usr/share/java/js.jar \
+  org.mozilla.javascript.tools.idswitch.Main \
+  "$@"

Copied: rhino/repos/testing-any/rhino-jsc (from rev 413775, rhino/trunk/rhino-jsc)
===================================================================
--- testing-any/rhino-jsc	                        (rev 0)
+++ testing-any/rhino-jsc	2021-04-23 17:38:40 UTC (rev 413776)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+/usr/bin/java \
+  -classpath /usr/share/java/js.jar \
+  org.mozilla.javascript.tools.jsc.Main \
+  "$@"

Copied: rhino/repos/testing-any/rhino-jsc.1 (from rev 413775, rhino/trunk/rhino-jsc.1)
===================================================================
--- testing-any/rhino-jsc.1	                        (rev 0)
+++ testing-any/rhino-jsc.1	2021-04-23 17:38:40 UTC (rev 413776)
@@ -0,0 +1,67 @@
+.\"                                      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-JSC 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-jsc \- invokes the rhino JavaScript compiler
+
+.SH SYNOPSIS
+.B rhino-jsc
+.I [options]
+.I file1.js
+.I [file2.js\&.\&.\&.]
+
+.SH DESCRIPTION
+This manual page documents briefly the
+.B rhino-jsc
+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
+\fBrhino-jsc\fP is a start script for the rhino JavaScript compiler. The JavaScript compiler translates JavaScript source into Java class files. The resulting Java class files can then be loaded and executed at another time, providing a convenient method for transferring JavaScript, and for avoiding translation cost.
+Note that the top-level functions available to the shell (such as print) are not available to compiled scripts when they are run outside the shell. 
+
+.SH OPTIONS
+
+.IP -extends\ \fIjava_class_name\fP
+Specifies that a java class extending the Java class java_class_name should be generated from the incoming JavaScript source file. Each global function in the source file is made a method of the generated class, overriding any methods in the base class by the same name.
+.IP -implements\ \fIjava_intf_name\fP
+Specifies that a java class implementing the Java interface java_intf_name should be generated from the incoming JavaScript source file. Each global function in the source file is made a method of the generated class, implementing any methods in the interface by the same name.
+.IP -debug,\ -g 
+Specifies that debug information should be generated. May not be combined with optimization at an optLevel greater than zero.
+.IP -nosource 
+Does not save the source in the class file. Functions and scripts compiled this way cannot be decompiled. This option can be used to avoid distributing source or simply to save space in the resulting class file.
+.IP -o\ \fIoutputFile\fP
+Writes the class file to the given file (which should end in .class). The string outputFile must be a writable filename.
+.IP -opt,\ -O\ \fIoptLevel\fP
+Optimizes at level optLevel, which must be an integer between 0 and 9. 
+.IP -package\ \fIpackageName\fP
+Specifies the package to generate the class into. The string packageName must be composed of valid identifier characters optionally separated by periods.
+.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. 
+
+.SH EXAMPLE
+
+Example compiling the NervousText.js applet written in JavaScript. The example is provided in the librhino-java-doc package.
+
+$ rhino-jsc \-extends java.applet.Applet \-implements java.lang.Runnable NervousText.js 
+
+.SH SEE ALSO
+The online documentation under http://www.mozilla.org/rhino/jsc.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