Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/languages
In directory vz-cvs-3.sog:/tmp/cvs-serv15898

Added Files:
        rhino.info rhino.patch 
Log Message:
sync. w/ 10.!4/stable, 10.4-EOL/unstable, validated on powerpc-darwin8


--- NEW FILE: rhino.patch ---
diff -rupN rhino1_7R2.orig/build.properties rhino1_7R2/build.properties
--- rhino1_7R2.orig/build.properties    2009-03-22 14:32:28.000000000 -0700
+++ rhino1_7R2/build.properties 2010-09-18 12:31:05.000000000 -0700
@@ -60,6 +60,5 @@ source-level: 1.5
 jar-compression: true
 
 # optional external packages
-xmlbeans: .
-xbean.jar: ${xmlbeans}/lib/xbean.jar
-jsr173.jar: ${xmlbeans}/lib/jsr173_1.0_api.jar
+xbean.jar: @PREFIX@/share/java/xmlbeans/xbean.jar
+jsr173.jar: @PREFIX@/share/java/stax/stax-api-1.0.jar
diff -rupN 
rhino1_7R2.orig/toolsrc/org/mozilla/javascript/tools/debugger/build.xml 
rhino1_7R2/toolsrc/org/mozilla/javascript/tools/debugger/build.xml
--- rhino1_7R2.orig/toolsrc/org/mozilla/javascript/tools/debugger/build.xml     
2009-03-22 14:32:26.000000000 -0700
+++ rhino1_7R2/toolsrc/org/mozilla/javascript/tools/debugger/build.xml  
2010-09-18 12:31:05.000000000 -0700
@@ -34,28 +34,9 @@
    - ***** END LICENSE BLOCK ***** -->
 
 
-<project name="toolsrc" default="help" basedir=".">
+<project name="toolsrc" default="download" basedir=".">
 
-  <target name="properties">
-    <property name="swing-ex-url" 
value="http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/src.zip"/>
-    <available file="downloaded/AbstractCellEditor.java"
-               property="swing-ex-available"/>
-  </target>
-
-  <target name="get-swing-ex" unless="swing-ex-available">
-    <!-- Download source from Sun's site, unzip it, remove
-         the files we don't need, and change the package
-    -->
-    <mkdir dir="downloaded"/>
-    <get src="${swing-ex-url}" dest="downloaded/swingExSrc.zip"/>
-    <unzip src="downloaded/swingExSrc.zip" dest="downloaded/">
-      <patternset>
-          <include name="AbstractCellEditor.java"/>
-          <include name="JTreeTable.java"/>
-          <include name="TreeTableModel.java"/>
-          <include name="TreeTableModelAdapter.java"/>
-      </patternset>
-    </unzip>
+  <target name="get-swing-ex">
     <replace file="downloaded/AbstractCellEditor.java">
        <replacetoken>import java.awt.Component;</replacetoken>
        <replacevalue>
@@ -107,20 +88,8 @@ package org.mozilla.javascript.tools.deb
          import javax.swing.JTree;
        </replacevalue>
     </replace>
-    <delete file="downloaded/swingExSrc.zip"/>
   </target>
 
-  <target name="download" depends="properties,get-swing-ex"/>
-
-  <target name="help" depends="properties">
-<echo>The following targets are available with this build file:
-
- download    Download ${swing-ex-url}
-             and extract the necessary files from it.
-
- help        Print this help.
-
-</echo>
-  </target>
+  <target name="download" depends="get-swing-ex"/>
 
 </project>

--- NEW FILE: rhino.info ---
Package: rhino
Version: 1.7r2
Revision: 1
Type: java(1.5)

Source: ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R2.zip
Source-MD5: 40d0a9abec8169e42920214b37fa8e0e

Source2: 
http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/src.zip
Source2-MD5: ab016c8f81812bb930fc0f7a69e053c5
Source2ExtractDir: 
%n1_7R2/toolsrc/org/mozilla/javascript/tools/debugger/downloaded

BuildDepends: ant-base, fink (>= 0.24.12), system-java-dev (>= 1.5)
Depends: system-java (>= 1.5), xmlbeans

PatchFile: %n.patch
PatchFile-MD5: ee7413874a4fc215946be0e68b60ae78
PatchScript: sed -e 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1

CompileScript: <<

  # Remove the files from Source2 that Rhino doesn't want
  rm -f 
toolsrc/org/mozilla/javascript/tools/debugger/downloaded/AbstractTreeTableModel.java
  rm -f 
toolsrc/org/mozilla/javascript/tools/debugger/downloaded/FileSystemModel2.java
  rm -f toolsrc/org/mozilla/javascript/tools/debugger/downloaded/MergeSort.java
  rm -f 
toolsrc/org/mozilla/javascript/tools/debugger/downloaded/TreeTableExample2.java

  ant jar javadoc
<<

InstallScript: <<
#!/bin/sh -ex

  # JavaDoc
  mkdir -p %i/share/doc/%n/javadoc/
  cp -R javadoc/* %i/share/doc/%n/javadoc/

  # Examples
  mkdir -p %i/share/doc/%n/examples/
  cp -R examples/* %i/share/doc/%n/examples/

  # Fix permissions
  find %i/share/doc/%n -type d -print0 | xargs -0 chmod 755
  find %i/share/doc/%n -type f -print0 | xargs -0 chmod 644
<<

JarFiles: js.jar

Homepage: http://www.mozilla.org/rhino/
Maintainer: Trevor Harmon <tre...@vocaro.com>
Description: JavaScript for Java

DescDetail: <<
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.
<<

DescPackaging: <<
The Rhino build file tries to download external JAR files; this is against
Fink policy. Because these JARs are already available through dependencies,
the patch file adjusts the build properties so that the dependent JARs are
used, thus preventing the attempt to download them.

A sub-build file also attempts to download a ZIP file from java.sun.com. The
patch prevents this, as well. However, because the ZIP file is not available
as a dependency, it is downloaded separately via the Source2 field. The last
half of the patch adjusts the sub-build file to ensure that the the necessary
search-and-replace operations are performed on the extracted Source2 files.
<<

License: OSI-Approved


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to