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