[MacPorts] #24795: New port: Mozilla's Rhino
#24795: New port: Mozilla's Rhino ------------------------------+--------------------------------------------- Reporter: franck@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: java javascript | Port: ------------------------------+--------------------------------------------- Portfile for Mozilla's Rhino (JavaScript Engine). -- Ticket URL: <http://trac.macports.org/ticket/24795> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24795: New port: Mozilla's Rhino ------------------------------+--------------------------------------------- Reporter: franck@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: java javascript | Port: ------------------------------+--------------------------------------------- Old description:
Portfile for Mozilla's Rhino (JavaScript Engine).
New description: Portfile for Mozilla's Rhino (JavaScript Engine). -- Comment(by jann@…): The portfile looks good. I have one suggestion: Can you rewrite the part {{{ system "cd ${javadir}/${name}/bin \ && echo \"java -jar ${prefix}/share/java/${name}/js.jar\" > ${destroot}${prefix}/bin/rhino \ && chmod +x ${destroot}${prefix}/bin/rhino" }}} such that it does not use system commands? See here: http://wiki.tcl.tk/367 . Alternatively you could add the rhino file to the files folder and simply copy it over during installation. -- Ticket URL: <http://trac.macports.org/ticket/24795#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24795: New port: Mozilla's Rhino ------------------------------+--------------------------------------------- Reporter: franck@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: java javascript | Port: ------------------------------+--------------------------------------------- Comment(by franck.cassedanne@…): Replying to [comment:1 jann@…]:
The portfile looks good. I have one suggestion: Can you rewrite the part {{{ system "cd ${javadir}/${name}/bin \ && echo \"java -jar ${prefix}/share/java/${name}/js.jar\" > ${destroot}${prefix}/bin/rhino \ && chmod +x ${destroot}${prefix}/bin/rhino" }}} such that it does not use system commands?
See here: http://wiki.tcl.tk/367 . Alternatively you could add the rhino file to the files folder and simply copy it over during installation.
As per suggested, added a patch using tcl own commands over system ones -- many thanks for suggesting this. -- Ticket URL: <http://trac.macports.org/ticket/24795#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24795: New port: Mozilla's Rhino ------------------------------+--------------------------------------------- Reporter: franck@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: java javascript | Port: ------------------------------+--------------------------------------------- Comment(by hamish@…): The 'rhino' script that this Portfile creates doesn't pass arguments on, so you can't run a javascript script from the command line. The Ubuntu start scripts uses a command line along the lines of: java -classpath /usr/share/java/js.jar org.mozilla.javascript.tools.shell.Main $@ -- Ticket URL: <http://trac.macports.org/ticket/24795#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24795: New port: Mozilla's Rhino ------------------------------+--------------------------------------------- Reporter: franck@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: java javascript | Port: ------------------------------+--------------------------------------------- Comment(by franck.cassedanne@…): Replying to [comment:3 hamish@…]:
The 'rhino' script that this Portfile creates doesn't pass arguments on, so you can't run a javascript script from the command line. The Ubuntu start scripts uses a command line along the lines of:
java -classpath /usr/share/java/js.jar org.mozilla.javascript.tools.shell.Main $@ Cheers for pointing this out -- the portfile was updated accordingly.
-- Ticket URL: <http://trac.macports.org/ticket/24795#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24795: New port: Mozilla's Rhino -------------------------------+-------------------------------------------- Reporter: franck@… | Owner: macports-tickets@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: rhino | -------------------------------+-------------------------------------------- Changes (by jmr@…): * keywords: java javascript => * status: new => closed * version: 1.8.2 => * resolution: => fixed * port: => rhino Comment: r68753 -- Ticket URL: <http://trac.macports.org/ticket/24795#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts