the Fink project is an effort to port
popular Unix programs to Mac OS X
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
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
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 ***** -->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -107,20 +88,8 @@ package org.mozilla.javascript.tools.deb
import javax.swing.JTree;
-
-
-
-
-
-
- download Download ${swing-ex-url}
- and extract the necessary files from it.
-
- help Print this help.
-
-
-
+