Opened 13 years ago

Closed 13 years ago

#31674 closed enhancement (fixed)

iso8879 @1986 add iso8879's main catalog to /etc/sgml/catalog using xmlcatmgr

Reported by: fgp (Florian G. Pflug) Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: iso8879

Description (last modified by mf2k (Frank Schima))

I've trying to get docbook SGML processing to work out-of-the-box with macports. Towards that end, I've created a new port for docbook-sgml-4.2 (ticket:31673) and filed a bug against docbook-dsssl (ticket:31656) to make it install its main catalog and add it to the global catalog in /etc/sgml/catalog.

Here's the same for iso8879, i.e. the attached Portfile contains a post-activation hook which uses xmlcatmgr (in SGML mode) to add iso8879's catalog to /etc/sgml/catalog.

Attachments (2)

Portfile (2.3 KB) - added by fgp (Florian G. Pflug) 13 years ago.
Adds a post-activation hook with adds the catalog to /etc/sgml/catalog using xmlcatmgr (in SGML mode)
macports.iso8879.diff (2.5 KB) - added by fgp (Florian G. Pflug) 13 years ago.
Patch for Portfile to register the package catalog with the root catalog in /etc/sgml/catalog

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by fgp (Florian G. Pflug)

Attachment: Portfile added

Adds a post-activation hook with adds the catalog to /etc/sgml/catalog using xmlcatmgr (in SGML mode)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Version: 2.0.3

Please attach a unified diff of the portfile so we can easily see the changes you made.

Changed 13 years ago by fgp (Florian G. Pflug)

Attachment: macports.iso8879.diff added

Patch for Portfile to register the package catalog with the root catalog in /etc/sgml/catalog

comment:2 Changed 13 years ago by fgp (Florian G. Pflug)

I've cleaned up my changes a bit. In particular, I've added a variable xmlcatmgr.args which contains the "-s -c ..." switches, and use that in the various xmlcatmgr invocations. I've also produced a unified diff, and attached it.

I *didn't* update the old, non-diff version of the Portfile, so please disregard that attachment (Portfile) from now on, and only look at the new one (macports.iso8879.diff).

I've also removed the run-dependency on mkcatalog. I'm unsure why that was there in the first place - the unpatched Portfile certainly didn't use mkcatalog anywhere. My patch uses xmlcatmgr (in SGML mode) instead of mkcatalog, because that's what the ports of the docbook XML DTDs do.

I'll update the tickets for docbook-dsssl and the port submission for docbook-sgml-4.2 shortly, and open a new ticket for openjade with a patch to actually make it use /etc/sgml/catalog (by adding it to /share/sgml/catalog)

comment:3 Changed 13 years ago by fgp (Florian G. Pflug)

Here's the patch for openjade's Portfile which makes it actually use the catalog in etc/sgml/catalog: https://trac.macports.org/ticket/31676

comment:4 Changed 13 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: haspatch added

comment:5 Changed 13 years ago by drkp (Dan Ports)

Owner: changed from macports-tickets@… to dports@…
Status: newassigned

comment:6 Changed 13 years ago by drkp (Dan Ports)

Resolution: fixed
Status: assignedclosed

Thanks, committed in r86409. I incremented the revision, and dropped the warning about the flat registry because the sqlite registry is required now.

Note: See TracTickets for help on using tickets.