--- babel-0.8.4.orig/bin/babel-config.in
+++ babel-0.8.4/bin/babel-config.in
@@ -23,7 +23,7 @@
 sharedstatedir="@sharedstatedir@"
 localstatedir="@localstatedir@"
 includedir="@includedir@"
-jardir="${prefix}/lib"
+jardir="${datadir}/java"
 repodir="${datadir}/${PACKAGE}-${VERSION}/repository"
 
 build="@build@"
--- babel-0.8.4.orig/bin/babel.in
+++ babel-0.8.4/bin/babel.in
@@ -92,9 +92,11 @@
 #test if $0 is the same inode as where babel script is installed.
 path2me=$0
 myname=babel
+SYSJAR=/usr/share/java
 is_installed="false"
 if $TEST_EF ${bindir}/${myname} -ef $path2me; then 
   is_installed="true"
+  BABELJAR="${datadir}/java"
   if $verbose; then 
      echo "Just use paths determined at configure time to find jar files..."
   fi
@@ -139,6 +141,7 @@
     exit -1 
   fi 
   cd $PWD_SAVE
+  BABELJAR="${prefix}/lib"
 fi
 if $verbose; then 
   echo "  prefix=\"${prefix}\""
@@ -149,17 +152,17 @@
 #
 # Set the CLASSPATH based on the BABEL home directory
 #
-if test -e ${prefix}/lib/${PACKAGE}-${VERSION}.jar; then
+if test -e ${BABELJAR}/${PACKAGE}-${VERSION}.jar; then
   if $verbose; then
-    echo "Looking for jar files in \"${prefix}/lib\"...";
+    echo "Looking for jar files in \"${BABELJAR}\"...";
   fi
 else 
   echo "ERROR: $0 " >&2
-  echo "   Expected to find ${prefix}/lib/${PACKAGE}-${VERSION}.jar" >&2
+  echo "   Expected to find ${BABELJAR}/${PACKAGE}-${VERSION}.jar" >&2
   exit 1
 fi
 
-BABELCP=${prefix}/lib/${PACKAGE}-${VERSION}.jar:${prefix}/lib/java-getopt-1.0.7.jar:${prefix}/lib/xerces-1.1.1.jar:${prefix}/lib/jcert-1.0.1.jar:${prefix}/lib/jnet-1.0.1.jar:${prefix}/lib/jsse-1.0.1.jar
+BABELCP=${BABELJAR}/${PACKAGE}-${VERSION}.jar:${SYSJAR}/gnu.getopt.jar:${SYSJAR}/xerces.jar
 if test "X$CLASSPATH" = "X"; then
   CLASSPATH=${BABELCP}
 else
--- babel-0.8.4.orig/doc/Makefile.am
+++ babel-0.8.4/doc/Makefile.am
@@ -13,7 +13,7 @@
 
 SUBDIRS = babel101 html papers talks manuals
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
+docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)-doc
 doc_DATA = index.html
 EXTRA_DIST = $(doc_DATA)
 
--- babel-0.8.4.orig/doc/Makefile.in
+++ babel-0.8.4/doc/Makefile.in
@@ -204,7 +204,7 @@
 
 SUBDIRS = babel101 html papers talks manuals
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
+docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)-doc
 doc_DATA = index.html
 EXTRA_DIST = $(doc_DATA)
 subdir = doc
--- babel-0.8.4.orig/doc/index.html
+++ babel-0.8.4/doc/index.html
@@ -22,8 +22,8 @@
 <tr>
   <td colspan=2><h2>User's Guide</h2></td>
   <td><a href="manuals/html/users_guide/users_guide.html">[HTML]</a></td>
-  <td><a href="manuals/users_guide.ps">[PS]</a></td>
-  <td><a href="manuals/users_guide.pdf">[PDF]</a></td>
+  <td><a href="manuals/users_guide.ps.gz">[PS]</a></td>
+  <td><a href="manuals/users_guide.pdf.gz">[PDF]</a></td>
 </tr>
 <!--<tr>
   <td rowspan=3>
@@ -95,32 +95,32 @@
   <td rowspan=4><h2>Papers</h2></td>
   <td>SIAM Parallel Processing 2001 Portsmouth, VA</td>
   <td></td>
-  <td><a href="papers/siam-pp-2001.ps">[PS]</a></td>
-  <td><a href="papers/siam-pp-2001.pdf">[PDF]</a></td>
+  <td><a href="papers/siam-pp-2001.ps.gz">[PS]</a></td>
+  <td><a href="papers/siam-pp-2001.pdf.gz">[PDF]</a></td>
   <td></td>
   <td></td>
 </tr>
 <tr>
   <td>ISCOPE '99</td>
   <td></td>
-  <td><a href="papers/iscope-99.ps">[PS]</a></td>
-  <td><a href="papers/iscope-99.pdf">[PDF]</a></td>
+  <td><a href="papers/iscope-99.ps.gz">[PS]</a></td>
+  <td><a href="papers/iscope-99.pdf.gz">[PDF]</a></td>
   <td></td>
   <td></td>
 </tr>
 <tr>
   <td>HPDC '99</td>
   <td></td>
-  <td><a href="papers/hpdc-99.ps">[PS]</a></td>
-  <td><a href="papers/hpdc-99.pdf">[PDF]</a></td>
+  <td><a href="papers/hpdc-99.ps.gz">[PS]</a></td>
+  <td><a href="papers/hpdc-99.pdf.gz">[PDF]</a></td>
   <td></td>
   <td></td>
 </tr>
 <tr>
   <td>IBM '98</td>
   <td></td>
-  <td><a href="papers/ibm-981021.ps">[PS]</a></td>
-  <td><a href="papers/ibm-981021.pdf">[PDF]</a></td>
+  <td><a href="papers/ibm-981021.ps.gz">[PS]</a></td>
+  <td><a href="papers/ibm-981021.pdf.gz">[PDF]</a></td>
   <td></td>
   <td></td>
 </tr>
@@ -131,41 +131,45 @@
   <td>Achieving Language Interoperability with BABEL (CASC Workshop) 2001</td>
   <td></td>
   <td></td>
-  <td><a href="talks/2001-components-workshop.pdf">[PDF]</td>
-  <td><a href="talks/2001-components-workshop.ppt">[PPT]</a></td>
+  <td><a href="talks/2001-components-workshop.pdf.gz">[PDF]</td>
+  <td><a href="talks/2001-components-workshop.ppt.gz">[PPT]</a></td>
 </tr>
 <tr>
   <td>SIAM Parallel Processing 2001, Portsmouth, Va</td>
   <td></td>
   <td></td>
-  <td><a href="talks/2001-siam-pp.pdf">[PDF]</a></td>
-  <td><a href="talks/2001-siam-pp.ppt">[PPT]</a></td>
+  <td><a href="talks/2001-siam-pp.pdf.gz">[PDF]</a></td>
+  <td><a href="talks/2001-siam-pp.ppt.gz">[PPT]</a></td>
 </tr>
 <tr>
   <td>Pictorial Intro to Components (10 minute talk) 2001</td>
   <td></td>
   <td></td>
-  <td><a href="talks/2001-pict-intro.pdf">[PDF]</a></td>
-  <td><a href="talks/2001-pict-intro.ppt">[PPT]</a></td>
+  <td><a href="talks/2001-pict-intro.pdf.gz">[PDF]</a></td>
+  <td><a href="talks/2001-pict-intro.ppt.gz">[PPT]</a></td>
 </tr>
 <tr>
   <td>IFIP 2000</td>
   <td></td>
   <td></td>
-  <td><a href="talks/2000-ifip-talk.pdf">[PDF]</a></td>
-  <td><a href="talks/2000-ifip-talk.ppt">[PPT]</a></td>
+  <td><a href="talks/2000-ifip-talk.pdf.gz">[PDF]</a></td>
+  <td><a href="talks/2000-ifip-talk.ppt.gz">[PPT]</a></td>
 </tr>
 <tr>
   <td>SIAM 1998</td>
   <td></td>
   <td></td>
-  <td><a href="talks/siam98.pdf">[PDF]</a></td>
-  <td><a href="talks/siam98.ppt">[PPT]</a></td>
+  <td><a href="talks/siam98.pdf.gz">[PDF]</a></td>
+  <td><a href="talks/siam98.ppt.gz">[PPT]</a></td>
 </tr>
 <tr></tr>
 <tr>
   <td colspan=2><h2>Source Documentation for Babel's Code Generator (javadoc)</h2></td>
-  <td><a href="html/index.html">[HTML]</a></td>
+  <td>(Not built in Debian package)</td>
+</tr>
+<tr>
+  <td colspan=2><h2>Debian package description</h2></td>
+  <td><a href="README.Debian.html">[HTML]</a></td>
 </tr>
 </table>
 
--- babel-0.8.4.orig/doc/babel101/Makefile.am
+++ babel-0.8.4/doc/babel101/Makefile.am
@@ -11,7 +11,7 @@
 AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo	\
                    no-installman no-texinfo.tex 1.7
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/babel101
+docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)-doc/babel101
 
 docdata = \
   Babel101.html \
--- babel-0.8.4.orig/doc/babel101/Makefile.in
+++ babel-0.8.4/doc/babel101/Makefile.in
@@ -202,7 +202,7 @@
                    no-installman no-texinfo.tex 1.7
 
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/babel101
+docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)-doc/babel101
 
 docdata = \
   Babel101.html \
--- babel-0.8.4.orig/doc/html/Makefile.am
+++ babel-0.8.4/doc/html/Makefile.am
@@ -11,7 +11,7 @@
 AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo	\
                    no-installman no-texinfo.tex 1.7
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/compiler-javadoc
+docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)-doc/compiler-javadoc
 
 JAVADOC = @JAVADOC@
 JAVADOCFILES = package-list stylesheet.css *.html
--- babel-0.8.4.orig/doc/html/Makefile.in
+++ babel-0.8.4/doc/html/Makefile.in
@@ -203,7 +203,7 @@
                    no-installman no-texinfo.tex 1.7
 
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/compiler-javadoc
+docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)-doc/compiler-javadoc
 JAVADOCFILES = package-list stylesheet.css *.html
 
 CP = ../../lib/java-getopt-1.0.7.jar:../../lib/xerces-1.1.1.jar:../../lib/jcert-1.0.1.jar:../../lib/jnet-1.0.1.jar:../../lib/external/jsse-1.0.1.jar
--- babel-0.8.4.orig/doc/papers/Makefile.am
+++ babel-0.8.4/doc/papers/Makefile.am
@@ -11,7 +11,7 @@
 AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo	\
                    no-installman no-texinfo.tex 1.7
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/papers
+docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)-doc/papers
 
 doc_DATA = \
   hpdc99.pdf \
--- babel-0.8.4.orig/doc/papers/Makefile.in
+++ babel-0.8.4/doc/papers/Makefile.in
@@ -202,7 +202,7 @@
                    no-installman no-texinfo.tex 1.7
 
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/papers
+docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)-doc/papers
 
 doc_DATA = \
   hpdc99.pdf \
--- babel-0.8.4.orig/doc/talks/Makefile.am
+++ babel-0.8.4/doc/talks/Makefile.am
@@ -11,7 +11,7 @@
 AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo	\
                    no-installman no-texinfo.tex 1.7
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/talks
+docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)-doc/talks
 
 doc_DATA = \
   siam98.pdf \
--- babel-0.8.4.orig/doc/talks/Makefile.in
+++ babel-0.8.4/doc/talks/Makefile.in
@@ -202,7 +202,7 @@
                    no-installman no-texinfo.tex 1.7
 
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/talks
+docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)-doc/talks
 
 doc_DATA = \
   siam98.pdf \
--- babel-0.8.4.orig/doc/manuals/Makefile.am
+++ babel-0.8.4/doc/manuals/Makefile.am
@@ -11,7 +11,7 @@
 AUTOMAKE_OPTIONS = foreign no-dependencies no-installinfo	\
                    no-installman no-texinfo.tex 1.7
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/manuals
+docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)-doc/manuals
 
 doc_DATA = users_guide.pdf users_guide.ps #ref_manual.pdf ref_manual.ps 
 
--- babel-0.8.4.orig/doc/manuals/Makefile.in
+++ babel-0.8.4/doc/manuals/Makefile.in
@@ -202,7 +202,7 @@
                    no-installman no-texinfo.tex 1.7
 
 
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/manuals
+docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)-doc/manuals
 
 doc_DATA = users_guide.pdf users_guide.ps #ref_manual.pdf ref_manual.ps 
 subdir = doc/manuals
--- babel-0.8.4.orig/compiler/gov/llnl/babel/parsers/xml/DTDManager.java
+++ babel-0.8.4/compiler/gov/llnl/babel/parsers/xml/DTDManager.java
@@ -1,8 +1,8 @@
 //
 // File:        DTDManager.java
 // Package:     gov.llnl.babel.parsers.xml
-// Release:     $Name: release-0-8-4 $
-// Revision:    @(#) $Id: DTDManager.java,v 1.8 2002/12/17 21:31:44 epperly Exp $
+// Release:     $Name:  $
+// Revision:    @(#) $Id: DTDManager.java,v 1.10 2003/05/30 22:43:53 epperly Exp $
 // Description: singleton manager for SIDL symbol DTDs
 //
 // Copyright (c) 2000-2001, The Regents of the University of Calfornia.
@@ -31,10 +31,15 @@
 
 package gov.llnl.babel.parsers.xml;
 
+import gov.llnl.babel.Version;
 import gov.llnl.babel.url.URLUtilities;
-import java.io.InputStream;
+import java.io.File;
 import java.io.IOException;
+import java.io.InputStream;
 import java.net.URL;
+import java.util.StringTokenizer;
+import java.util.jar.JarEntry;
+import java.util.jar.JarFile;
 import org.xml.sax.EntityResolver;
 import org.xml.sax.InputSource;
 
@@ -101,26 +106,70 @@
     * Provide the implementation of an <code>EntityResolver</code> to
     * convert the symbol PUBLIC identifier into a URL for the symbol DTD.
     */
-   public InputSource resolveEntity(String public_id, String system_id) {
-     /*
-      * Check whether any of the public IDs match SIDL public IDs.
-      */
-     ClassLoader loader = getClass().getClassLoader();
-     InputSource is = null;
-     if (SYMBOL_PUBLIC_ID.equals(public_id)) {
-       InputStream in = loader.getResourceAsStream(s_resource_id + "SIDL.dtd");
-       is = new InputSource(in);
-     } 
-     else if (HTML_PUBLIC_ID.equals(public_id)) {
-       InputStream in =
-         loader.getResourceAsStream(s_resource_id + "html-lite.dtd");
-       is = new InputSource(in);
-     }
-     else if (COMMENT_PUBLIC_ID.equals(public_id)) {
-       InputStream in =
-         loader.getResourceAsStream(s_resource_id  + "comment.dtd");
-       is = new InputSource(in);
-     }
-     return is;
-   }
+  public InputSource resolveEntity(String public_id, String system_id) 
+    throws java.io.IOException
+  {
+    /*
+     * Check whether any of the public IDs match SIDL public IDs.
+     */
+    InputSource is = null;
+    String jarEntry = null;
+    String simpleName = null;
+    if (SYMBOL_PUBLIC_ID.equals(public_id)) {
+      simpleName = "SIDL.dtd";
+      jarEntry = s_resource_id + simpleName;
+    }
+    else if (HTML_PUBLIC_ID.equals(public_id)) {
+      simpleName = "html-lite.dtd";
+      jarEntry = s_resource_id + simpleName;
+    }
+    else if (COMMENT_PUBLIC_ID.equals(public_id)) {
+      simpleName = "comment.dtd";
+      jarEntry = s_resource_id  + simpleName;
+    }
+    if (jarEntry != null) {
+      ClassLoader loader = getClass().getClassLoader();
+      if (loader == null) {
+        return searchClassPath(jarEntry);
+      }
+      InputStream in = loader.getResourceAsStream(jarEntry);
+      if (in != null) {
+        is = new InputSource(in);
+      }
+      else {
+        throw new IOException("Can't load " + simpleName + 
+                              " from jar file");
+      }
+    } 
+    return is;
+  }
+
+  private InputSource searchClassPath(String name)
+    throws java.io.IOException
+  {
+    final String babelJar = "babel-" + Version.VERSION + ".jar";
+    String classpath = System.getProperty("java.class.path", "");
+    StringTokenizer tok = new StringTokenizer(classpath, 
+                                              File.pathSeparator);
+    while (tok.hasMoreTokens()) {
+      String path = tok.nextToken();
+      if (path.endsWith(babelJar)) {
+        File f = new File(path);
+        if (f.isFile()) {
+          try {
+            JarFile jar = new JarFile(f);
+            JarEntry entry = jar.getJarEntry(name);
+            InputStream is = jar.getInputStream(entry);
+            if (is != null) {
+              return new InputSource(is);
+            }
+          }
+          catch (java.io.IOException ioe) {
+            // don't do anything skip to next jar file
+          }
+        }
+      }
+    }
+    throw new IOException("Cannot get a ClassLoader to load XML DTDs");
+  }
 }
--- babel-0.8.4.orig/lib/Makefile.am
+++ babel-0.8.4/lib/Makefile.am
@@ -36,7 +36,7 @@
 BABELJAR = @PACKAGE@-@VERSION@.jar
 SIDLJAR  = sidl-@VERSION@.jar
 
-jardir = $(prefix)/lib
+jardir = $(datadir)/java
 jar_DATA = $(BABELJAR)						\
 	   $(SIDLJAR)						\
 	   java-getopt-1.0.7.jar				\
--- babel-0.8.4.orig/lib/Makefile.in
+++ babel-0.8.4/lib/Makefile.in
@@ -205,7 +205,7 @@
 BABELJAR = @PACKAGE@-@VERSION@.jar
 SIDLJAR = sidl-@VERSION@.jar
 
-jardir = $(prefix)/lib
+jardir = $(datadir)/java
 jar_DATA = $(BABELJAR)						\
 	   $(SIDLJAR)						\
 	   java-getopt-1.0.7.jar				\
--- babel-0.8.4.orig/debian/python2.2-babel.files
+++ babel-0.8.4/debian/python2.2-babel.files
@@ -0,0 +1,2 @@
+usr/lib/python*
+usr/include/python*
--- babel-0.8.4.orig/debian/changelog
+++ babel-0.8.4/debian/changelog
@@ -0,0 +1,59 @@
+babel (0.8.4-2) unstable; urgency=low
+
+  * Upstream patch to DTDManager.java should make babel parse DTDs properly.
+  * Changed one-line descriptions to be different (closes: #187932).
+  * Changed Build-Depends to default to gcj-3.2 to work around bug 197090.
+  * Modified babel-config to give correct jardir.
+
+ -- Adam C. Powell, IV <hazelsct@debian.org>  Wed, 11 Jun 2003 19:25:53 -0400
+
+babel (0.8.4-1) unstable; urgency=low
+
+  * New upstream.
+  * Upstream included several of my patches (yay!).
+  * Attempting to use gjdoc-native to generate docs; it's not working, but
+    perhaps someday.
+  * Moved some packages into new python, libdevel sections.
+
+ -- Adam C. Powell, IV <hazelsct@debian.org>  Wed, 16 Apr 2003 19:15:15 -0400
+
+babel (0.8.2-1) unstable; urgency=low
+
+  * New upstream.
+  * Added "Conflicts: openbabel" to control (closes: #183501).
+  * Removed jar -u test from aclocal.m4, configure and runtime/configure.
+  * New manpge for babel-config (and it's actually included now).
+
+ -- Adam C. Powell, IV <hazelsct@debian.org>  Sun, 30 Mar 2003 19:37:37 -0500
+
+babel (0.8.0-1) unstable; urgency=low
+
+  * New upstream.
+  * Changed package names to babel-$(VERSION) so multiple versions can be
+    installed (following upstream convention for /usr/share subdirs).
+  * Switched from gcc-3.2 and friends back to (implicit) gcc.
+  * Lots of minute changes to patches, too numerous to describe.
+
+ -- Adam C. Powell, IV <hazelsct@debian.org>  Tue,  4 Feb 2003 11:36:10 -0500
+
+babel (0.7.4-2) unstable; urgency=low
+
+  * Changed descriptions, added babel manpage, added kaffe | to java1-runtime
+    to satisfy linitan.
+  * Added babel deps on libxerces-java and lib-gnu.getopt-java, and made babel
+    script use them.
+  * Changed jar uf dtdfiles to just include them in jar cf in compiler/Makefile
+    because the former somehow breaks the build.
+  * Symlinked /usr/share/java/babel.jar and sidl.jar to the versioned files.
+  * Added a README.Debian.html file.
+
+ -- Adam C. Powell, IV <hazelsct@debian.org>  Thu, 21 Nov 2002 08:30:09 -0500
+
+babel (0.7.4-1) unstable; urgency=low
+
+  * First packaging attempt, likely to pose problems.
+  * Doesn't actually build because of some jar/javac error, must rerun
+    "debian/rules build && fakeroot debian/rules binary" again.
+  * Note kludges for CLASSPATH and JAVADOC (which doesn't work).
+
+ -- Adam C. Powell, IV <hazelsct@debian.org>  Tue, 12 Nov 2002 23:22:13 -0500
--- babel-0.8.4.orig/debian/control
+++ babel-0.8.4/debian/control
@@ -0,0 +1,123 @@
+Source: babel
+Section: devel
+Priority: extra
+Maintainer: Adam C. Powell, IV <hazelsct@debian.org>
+Standards-Version: 3.5.9
+Build-Depends: debhelper (>= 3.0), gcc | c-compiler, g77 | fortran-compiler, g++ | c++-compiler, kaffe | java-virtual-machine, python2.2, python2.2-dev, python2.2-numeric, libltdl3-dev, gcj-3.2 | java-compiler, gjdoc-native | gjdoc, libxerces-java, libgetopt-java
+Build-Depends-Indep: latex2html
+
+Package: babel-0.8.4
+Architecture: all
+Section: devel
+Depends: kaffe | java1-runtime, libgetopt-java, libxerces-java
+Suggests: babel-0.8.4-doc
+Provides: babel
+Conflicts: openbabel
+Description: Scientific Interface Definition Language (SIDL) compiler
+ Babel is a compiler for the Scientific Interface Definition Language (SIDL),
+ currently under development as a support tool for parallel simulation codes.
+ .
+ SIDL is in the same "phylum" as CORBA or COM, but with an eye toward future
+ extension to data redistribution on massively parallel architectures.  In
+ addition, because of the large amount of existing and very important
+ scientific code written in FORTRAN, SIDL is designed with support for that
+ language in mind.
+ .
+ Babel is written in Java, and currently has backends for: FORTRAN 77, C, C++,
+ Java and Python.
+
+Package: libsidl0.8.4-java
+Architecture: all
+Section: libs
+Depends: kaffe | java1-runtime
+Provides: libsidl-java
+Description: Scientific Interface Definition Language (SIDL) Java runtime
+ Babel is a compiler for the Scientific Interface Definition Language (SIDL),
+ currently under development as a support tool for parallel simulation codes.
+ .
+ SIDL is in the same "phylum" as CORBA or COM, but with an eye toward future
+ extension to data redistribution on massively parallel architectures.  In
+ addition, because of the large amount of existing and very important
+ scientific code written in FORTRAN, SIDL is designed with support for that
+ language in mind.
+ .
+ Babel is written in Java, and currently has backends for: FORTRAN 77, C, C++,
+ Java and Python.
+ .
+ This package contains the Java SIDL runtime library.
+
+Package: python2.2-babel
+Architecture: any
+Section: python
+Depends: python2.2-numeric
+Description: Scientific Interface Definition Language (SIDL) python runtime
+ Babel is a compiler for the Scientific Interface Definition Language (SIDL),
+ currently under development as a support tool for parallel simulation codes.
+ .
+ SIDL is in the same "phylum" as CORBA or COM, but with an eye toward future
+ extension to data redistribution on massively parallel architectures.  In
+ addition, because of the large amount of existing and very important
+ scientific code written in FORTRAN, SIDL is designed with support for that
+ language in mind.
+ .
+ Babel is written in Java, and currently has backends for: FORTRAN 77, C, C++,
+ Java and Python.
+ .
+ This package contains the Python runtime module.
+
+Package: libsidl-dev
+Architecture: any
+Section: libdevel
+Depends: libsidl0.8.4 (= ${Source-Version})
+Description: Scientific Interface Definition Language (SIDL) C(++)/FORTRAN runtime devel
+ Babel is a compiler for the Scientific Interface Definition Language (SIDL),
+ currently under development as a support tool for parallel simulation codes.
+ .
+ SIDL is in the same "phylum" as CORBA or COM, but with an eye toward future
+ extension to data redistribution on massively parallel architectures.  In
+ addition, because of the large amount of existing and very important
+ scientific code written in FORTRAN, SIDL is designed with support for that
+ language in mind.
+ .
+ Babel is written in Java, and currently has backends for: FORTRAN 77, C, C++,
+ Java and Python.
+ .
+ This package contains the development files for the C, C++ and FORTRAN
+ backends.
+
+Package: libsidl0.8.4
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}
+Description: Scientific Interface Definition Language (SIDL) C(++)/FORTRAN runtime
+ Babel is a compiler for the Scientific Interface Definition Language (SIDL),
+ currently under development as a support tool for parallel simulation codes.
+ .
+ SIDL is in the same "phylum" as CORBA or COM, but with an eye toward future
+ extension to data redistribution on massively parallel architectures.  In
+ addition, because of the large amount of existing and very important
+ scientific code written in FORTRAN, SIDL is designed with support for that
+ language in mind.
+ .
+ Babel is written in Java, and currently has backends for: FORTRAN 77, C, C++,
+ Java and Python.
+ .
+ This package contains the runtime libraries for the C and FORTRAN backends.
+
+Package: babel-0.8.4-doc
+Architecture: all
+Section: doc
+Description: Scientific Interface Definition Language (SIDL) suite documentation
+ Babel is a compiler for the Scientific Interface Definition Language (SIDL),
+ currently under development as a support tool for parallel simulation codes.
+ .
+ SIDL is in the same "phylum" as CORBA or COM, but with an eye toward future
+ extension to data redistribution on massively parallel architectures.  In
+ addition, because of the large amount of existing and very important
+ scientific code written in FORTRAN, SIDL is designed with support for that
+ language in mind.
+ .
+ Babel is written in Java, and currently has backends for: FORTRAN 77, C, C++,
+ Java and Python.
+ .
+ This package contains extensive documentation for babel.
--- babel-0.8.4.orig/debian/babel-config.1
+++ babel-0.8.4/debian/babel-config.1
@@ -0,0 +1,13 @@
+.TH babel-config 1 "Babel SIDL compiler config tool" "DEBIAN" \" -*- nroff -*-
+.SH NAME
+babel-config \- print babel configuration information
+.SH SYNOPSIS
+\fBbabel-config\fP
+.SH DESCRIPTION
+This little script prints the configuration information used to build babel and
+libsidl, which can help developers link against libsidl.  Please run it with
+--help for a full list of options.
+.SH BUGS
+I'm sure there are some...
+.SH AUTHOR
+Adam Powell <hazelsct@debian.org>
--- babel-0.8.4.orig/debian/rules
+++ babel-0.8.4/debian/rules
@@ -0,0 +1,74 @@
+#!/usr/bin/make -f
+# Made with the aid of debmake, by Christoph Lameter,
+# based on the sample debian/rules file for GNU hello by Ian Jackson.
+
+package=babel
+export DH_COMPAT=3
+
+stamp-configure:
+	dh_testdir
+	# JAVADOC because kaffe's javadoc tries (unsuccessfully) to run Sun's:
+	# "java.lang.ClassNotFoundException: sun/tools/javadoc/Main"
+	# Likewise for jdb.
+	JAVADOC=javadoc-gjdoc JDB=echo PYTHON=python2.2 \
+	  ./configure --prefix=/usr
+	touch $@
+
+build: stamp-configure
+	dh_testdir
+	CLASSPATH=/usr/lib/kaffe/jre/lib/rt.jar $(MAKE)
+	touch $@
+
+clean:
+	dh_testdir
+	rm -f stamp-configure build
+	if [ -e Makefile ]; then $(MAKE) distclean; fi
+	rm -f lib/babel*.jar lib/sidl*.jar
+	dh_clean
+
+# TODO: change these symlinks to alternatives links in postinst/prerm.
+# Move babel to babel-0.8.4, alternative symlink to that, with manpage slave.
+install: build
+	$(MAKE) install prefix=`pwd`/debian/tmp/usr
+	ln -s babel-0.8.4.jar debian/tmp/usr/share/java/babel.jar
+	ln -s sidl-0.8.4.jar debian/tmp/usr/share/java/sidl.jar
+	# Get these into babel packages
+	mv debian/tmp/usr/share/sidl.sidl debian/tmp/usr/share/babel-0.8.4/
+	mv debian/tmp/usr/share/sgml debian/tmp/usr/share/babel-0.8.4/
+
+binary-indep: install
+	dh_testdir -i
+	dh_testroot -i
+	dh_installdirs -i
+	dh_movefiles -i
+	dh_installdocs -i
+	dh_installman -pbabel-0.8.4 debian/babel.1
+	dh_installchangelogs -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch: install
+	dh_testdir -a
+	dh_testroot -a
+	dh_installdirs -a
+	dh_movefiles -a
+	dh_installdocs -a
+	dh_installman -plibsidl-dev debian/babel-config.1
+	dh_installchangelogs -a
+	dh_strip -a
+	dh_makeshlibs -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-indep binary-arch
+
+.PHONY: binary binary-arch binary-indep clean checkroot
--- babel-0.8.4.orig/debian/libsidl-dev.docs
+++ babel-0.8.4/debian/libsidl-dev.docs
@@ -0,0 +1 @@
+doc/CONFIG_INSTALL_NOTES
--- babel-0.8.4.orig/debian/README.Debian.html
+++ babel-0.8.4/debian/README.Debian.html
@@ -0,0 +1,121 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+   <link rel="icon" type="image/png" media="screen, print" href="favicon.png" />
+   <link rel="shortcut icon" type="image/x-icon" media="screen, print" href="favicon.ico" />
+   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+   <meta name="Author" content="Adam C. Powell, IV">
+   <meta name="GENERATOR" content="Mozilla/4.77 [en] (X11; U; Linux 2.4.2-pentiumiii-smp i686) [Netscape]">
+   <title>Debian package for Babel</title>
+</head>
+<body>
+
+<center>
+<h1><a href="http://www.llnl.gov/CASC/components/babel.html">Babel</a> Debian
+Package Current Status</h1></center>
+
+<center>
+<h3>Adam Powell, last modified April 16, 2003 for version 0.8.4-1</h3></center>
+
+<center><a href="babel/">Package archive</a>,
+<a href="http://packages.qa.debian.org/b/babel.html">PTS page</a>,
+<a href="http://http.us.debian.org/debian/pool/main/b/babel/">US
+mirror pool</a></center>
+
+<p>This page documents my effort to package the
+<a href="http://www.llnl.gov/CASC/components/babel.html">Babel SIDL
+compiler</a> for the Debian GNU/Linux operating system.&nbsp; The upstream
+authors are at Lawrence Livermore National Laboratories.
+
+<p>Why a Debian package?  Being able to type, "apt-get install babel" is a lot
+easier than downloading, compiling and installing the source.  Also, this
+package puts the various files in their standard Debian places, and includes
+documentation metadata to link the Babel documentation from Debian doc-base
+frontends.  But perhaps most importantly, having a Debian package formalizes
+the process of packaging software which uses Babel and SIDL on Debian (as the
+other packages would just Build-Depend on babel, sidl, python2.2-babel, etc.),
+and if it lives up to its to its promise, that could be quite a lot of
+important scientific software.
+
+<h3>Package description:</h3>
+
+The <tt>babel</tt> source package builds six binary packages:
+
+<ul>
+<li><b><tt>babel-0.8.4</tt></b> has the SIDL compiler itself, which consists of
+the <tt>babel-0.8.4.jar</tt> Java archive in <tt>/usr/share/java</tt> following
+the <a href="http://www.debian.org/doc/packaging-manuals/java-policy/">(proposed)
+Debian Java policy</a>, and the <tt>/usr/bin/babel</tt> script which runs it,
+along with the <tt>/usr/share/babel-0.8.4</tt> directory which contains
+<tt>sidl.sidl</tt>, the <tt>.dtd</tt> files, and the <tt>repository</tt>
+subdirectory.</li>
+
+<li><b><tt>libsidl0.8.4-java</tt></b> has the <tt>sidl-0.8.4.jar</tt> runtime
+Java archive file.</li>
+
+<li><b><tt>libsidl0.8.4</tt></b>* has the C runtime shared library.</li>
+
+<li><b><tt>libsidl-dev</tt></b>* has the C runtime static library, headers,
+symlinks, and <tt>babel-config</tt> script needed to develop against the shared
+library.</li>
+
+<li><b><tt>python2.2-babel</tt></b>* has the python runtime modules and
+headers.</li>
+
+<li><b><tt>babel-0.8.4-doc</tt></b> has all of the documentation which ships
+with the source (ps, pdf, ppt), along with Debian <tt>doc-base</tt> metadata so
+this documentation is indexed in frontends like <tt>dhelp</tt> and
+<tt>dwww</tt>.</li>
+</ul>
+*Architecture-dependent packages.
+
+<h3>Questions/issues:</h3>
+
+<ol>
+<li>With the original makefile, the package build fails while <tt>make</tt>ing
+the <tt>force-jarfile</tt> target in the <tt>compiler</tt> subdirectory.  This
+is because of <a href="http://bugs.debian.org/170059">bug 170059 in kaffe</a>,
+whose <tt>jar uf</tt> function is broken.<p>
+
+In packages from release 0.7.4-2, the makefile is patched to solve this
+problem.  Upstream knows about this issue, and after 0.8.4, will probably
+incorporate something like this workaround.<p>
+
+UPDATE: upstream has fixed this in 0.8.4 so only <tt>jar c</tt> is used.</li>
+
+<li>It would be nice if variables like <tt>docdir</tt> and <tt>jardir</tt>
+could be defined during the <tt>configure</tt> process, that would cut down
+considerably on the patch size.  At some point I'll probably generate a patch
+for upstream.</li>
+
+<li>The <tt>babel</tt> source ships with several other <tt>.jar</tt> files
+which it seems to need.  However, it builds just fine using standard Debian
+versions of these, such as <tt>gnu.getopt-1.0.9.jar</tt> in the
+<tt>libgetopt-java</tt> package, and <tt>xerxes-1.4.4.jar</tt> in the
+<tt>libxerxes-java</tt> package.  The other three (<tt>jcert-X.jar</tt>,
+<tt>jnet-X.jar</tt> and <tt>jsse-X.jar</tt>) are from the Sun JDK, which is not
+distributable in Debian free, but is necessary only for <tt>babel</tt> to
+access the
+<a href="http://www.llnl.gov/CASC/components/alexandria.html">Alexandria</a>
+component repository.  At some point I'll patch <tt>aclocal.m4</tt> to look in
+the Java archive directory (see previous point) for <tt>getopt</tt> and
+<tt>xerces</tt>, and the <tt>babel</tt> script to detect the SUN <tt>.jar</tt>
+files at runtime (so the <tt>babel</tt> package can Suggest the Sun JDK, and
+live with or without it), and send these patches upstream.</li>
+</ol>
+
+<h3>
+To do (in roughly decreasing order of priority):</h3>
+
+<ul>
+<li>Write a better manpage for <tt>/usr/bin/babel</tt> and contribute it
+upstream.</li>
+
+<li>Test the <tt>babel</tt> package with the <tt>hello</tt> example
+provided.</li>
+</ul>
+
+<address><a href="./">Adam Powell</a></address>
+
+</body>
+</html>
--- babel-0.8.4.orig/debian/libsidl-dev.files
+++ babel-0.8.4/debian/libsidl-dev.files
@@ -0,0 +1,6 @@
+usr/bin/babel-config
+usr/include/*.h
+usr/include/*.hh
+usr/lib/*.a
+usr/lib/*.la
+usr/lib/libsidl.so
--- babel-0.8.4.orig/debian/babel.1
+++ babel-0.8.4/debian/babel.1
@@ -0,0 +1,13 @@
+.TH babel 1 "Babel SIDL compiler" "DEBIAN" \" -*- nroff -*-
+.SH NAME
+babel \- a Scientific Interface Definition Language (SIDL) compiler
+.SH SYNOPSIS
+\fBbabel\fP
+.SH DESCRIPTION
+This is a very preliminary Debian-specific manpage and doesn't describe much.
+For details, install the babel-0.8.4-doc package and read the documentation
+there.
+.SH BUGS
+I'm sure there are some...
+.SH AUTHOR
+Adam Powell <hazelsct@debian.org>
--- babel-0.8.4.orig/debian/babel-0.8.4-doc.docs
+++ babel-0.8.4/debian/babel-0.8.4-doc.docs
@@ -0,0 +1 @@
+debian/README.Debian.html
--- babel-0.8.4.orig/debian/babel-0.8.4-doc.files
+++ babel-0.8.4/debian/babel-0.8.4-doc.files
@@ -0,0 +1 @@
+usr/share/doc/babel-0.8.4-doc
--- babel-0.8.4.orig/debian/copyright
+++ babel-0.8.4/debian/copyright
@@ -0,0 +1,50 @@
+This package was debianized by Adam C. Powell, IV <hazelsct@debian.org> on
+September 17, 2002.
+
+It was downloaded from http://www.llnl.gov/CASC/components/software.html .
+
+Below is the contents of the COPYRIGHT file distributed with babel.  Note that
+the LICENSE file to which it refers is identical to the GNU LGPL, Version 2.1,
+found on Debian systems in the file /usr/share/common-licenses/LGPL-2.1 .
+
+-------------------------------------------------------------------------------
+
+COPYRIGHT NOTICE
+----------------
+
+(c) 1998-2002 by The Regents of the University of California.
+Produced at the Lawrence Livermore National Laboratory.
+Written by Tammy Dahlgren, Tom Epperly, Scott Kohn, and Gary Kumfert
+           <components@llnl.gov>
+UCRL-CODE-2002-054
+All rights reserved.
+
+This file is part of Babel. For more information, see
+http://www.llnl.gov/CASC/components/.
+
+OUR NOTICE
+
+Our Preamble Notice
+
+A. This notice is required to be provided under our contract with the U.S.
+Department of Energy (DOE). This work was produced at the University of
+California, Lawrence Livermore National Laboratory under Contract
+No. W-7405-ENG-48 with the DOE.
+
+B. Neither the United States Government nor the University of California nor
+any of their employees, makes any warranty, express or implied, or assumes any
+liability or responsibility for the accuracy, completeness, or usefulness of
+any information, apparatus, product, or process disclosed, or represents that
+its use would not infringe privately-owned rights.
+
+C. Also, reference herein to any specific commercial products, process, or
+services by trade name, trademark, manufacturer or otherwise does not
+necessarily constitute or imply its endorsement, recommendation, or favoring by
+the United States Government or the University of California. The views and
+opinions of authors expressed herein do not necessarily state or reflect those
+of the United States Government or the University of California, and shall not
+be used for advertising or product endorsement purposes.
+
+The precise terms and conditions for copying, distribution and modification
+appear in the LICENSE file.
+
--- babel-0.8.4.orig/debian/libsidl0.8.4.files
+++ babel-0.8.4/debian/libsidl0.8.4.files
@@ -0,0 +1 @@
+usr/lib/libsidl-*.so
--- babel-0.8.4.orig/debian/babel-0.8.4.docs
+++ babel-0.8.4/debian/babel-0.8.4.docs
@@ -0,0 +1 @@
+debian/README.Debian.html
--- babel-0.8.4.orig/debian/babel-0.8.4-doc.doc-base
+++ babel-0.8.4/debian/babel-0.8.4-doc.doc-base
@@ -0,0 +1,21 @@
+Document: babel-0.8.4-doc
+Title: Babel/SIDL Version 0.8.4 Documentation
+Author: Tammy Dahlgren, Tom Epperly, Scott Kohn, and Gary Kumfert <components@llnl.gov>
+Abstract: Babel is a compiler for the Scientific Interface Definition Language
+ (SIDL), currently under development as a support tool for parallel simulation
+ codes.  SIDL is in the same "phylum" as CORBA or COM, but with an eye toward
+ future extension to data redistribution on massively parallel architectures.
+ In addition, because of the large amount of existing and very important
+ scientific code written in FORTRAN, SIDL is designed with support for that
+ language in mind.
+Section: Apps/Programming
+
+Format: HTML
+Index: /usr/share/doc/babel-0.8.4-doc/index.html
+Files: /usr/share/doc/babel-0.8.4-doc/babel101/*.html
+
+Format: PDF
+Files: /usr/share/doc/babel-0.8.4-doc/*/*.pdf.gz
+
+Format: postscript
+Files: /usr/share/doc/babel-0.8.4-doc/*/*.ps.gz
--- babel-0.8.4.orig/debian/babel-0.8.4.files
+++ babel-0.8.4/debian/babel-0.8.4.files
@@ -0,0 +1,3 @@
+usr/bin/babel
+usr/share/java/babel*.jar
+usr/share/babel-0.8.4
--- babel-0.8.4.orig/debian/libsidl0.8.4-java.files
+++ babel-0.8.4/debian/libsidl0.8.4-java.files
@@ -0,0 +1 @@
+usr/share/java/sidl*.jar
