Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jun 2004 18:10:23 GMT
From:      Brian Candler <B.Candler@pobox.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/66246: new ports: textproc/docbook-utils, textproc/p5-SGMLSpm
Message-ID:  <200406261810.i5QIAN92079510@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/66246; it has been noted by GNATS.

From: Brian Candler <B.Candler@pobox.com>
To: Volker Stolz <vs@freebsd.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/66246: new ports: textproc/docbook-utils, textproc/p5-SGMLSpm
Date: Sat, 26 Jun 2004 19:08:22 +0100

 On Fri, Jun 25, 2004 at 01:34:27PM +0200, Volker Stolz wrote:
 > Should we consider incorparting your patch into sgmltools-lite as a  
 > contribution?
 > Can you please elaborate what it fixes?
 
 The problem was that I couldn't make it work with FreeBSD's catalog
 collection. I thought that I should be able to do
 
 SGML_CATALOG_FILES=/usr/local/share/sgml/catalog sgmltools ...
 
 but it didn't work because the catalog files contain relative filenames:
 e.g. /usr/local/share/sgml/catalog contains
   CATALOG "catalog.ports"
 /usr/local/share/sgml/catalog.ports contains
   CATALOG "iso8879/catalog"
   CATALOG "docbook/4.1/catalog"
   ... etc
 
 and this is what the patch fixes. (I don't know how anyone managed to get
 sgmltools-lite to work without it, unless they are expected to make their
 own set of catalog files or symlinks to catalog files, which seems poor
 design as it duplicates what FreeBSD's master catalog file should do)
 
 I've just tried installing sgmltools-lite-3.0.3_1 again (with my patch
 applied), and with a bit of fiddling I came up with this command line:
 
 SGML_CATALOG_FILES=/usr/local/share/sgml/stylesheets/sgmltools/sgmltools.cat:/usr/local/share/sgml/catalog sgmltools -b html test.sgml
 
 and hey presto it works. If this simple command line could be put in the
 documentation somewhere (in the pkg-descr, perhaps) then it would make
 sgmltools-lite much easier to get started with. Even better would be if the
 package could set this up as the default set of catalog files. Perhaps
 sgmltools.cat ought to find its way into catalog.ports as well.
 
 However, I have also come across Makefiles in other packages which reference
 tools docbook2html and friends from docbook-utils (e.g. if you build
 courier-imap from CVS you need these tools) so I still think they may be
 worth packaging in their own right.
 
 Regards,
 
 Brian.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406261810.i5QIAN92079510>