---
name: xmlcatmgr
version: 2.2
origin: textproc/xmlcatmgr
comment: SGML and XML catalog manager
arch: freebsd:9:x86:64
www: http://xmlcatmgr.sourceforge.net/
maintainer: hrs@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 46538
desc: |
  XML Catalog Manager (xmlcatmgr in its short form) is a small utility used
  to manipulate SGML and XML catalogs.  It is extremely small and lightweight,
  specially designed to be run from packaging systems.  Basically, it allows
  adding and removing entries from catalogs in a completely automated way.

  A catalog is a lookup mechanism used to translate entities into other
  different entities.  They can, for example, map public identifiers to
  local files or URIs.  This allows you to tell the parser where to look
  for entities without having to modify the original document source.

  WWW: http://xmlcatmgr.sourceforge.net/
categories: [textproc]
files:
  /usr/local/bin/xmlcatmgr: d0ae4fe1085e6d08ed7d7a0056a72f1d6b4363b90f27a1ae7a39db4e8415b615
  /usr/local/man/man1/xmlcatmgr.1.gz: 0ecbbaa01f7762e5f3ed8323e4f946f90d446f1650ff1a3ae6d684067d5a9174
  /usr/local/share/doc/xmlcatmgr/AUTHORS: 80575c745812e1bea4dbbff5144c7275b9ae9753afa23b20f70bee3d4916e6aa
  /usr/local/share/doc/xmlcatmgr/COPYING: bfe7f295a373dda71d696188881050b7ffe3e48af58d4c0d3fbffb4442ca5f37
  /usr/local/share/doc/xmlcatmgr/NEWS: 24d55e522451e8eadfac82fb58db51939ea93a16ba0596efb6c9d717a1ed170c
  /usr/local/share/doc/xmlcatmgr/README: 80a082c7d3be3584c78a2219acca853059084ef839bc3a0a6cbe8f27b95f9ba5
  /usr/local/share/doc/xmlcatmgr/TODO: 1a382405c571ca2e19d2841ca73a9e4e039f46cb55d53f7b9dbbe35aaa5d640f
directories:
  /usr/local/share/doc/xmlcatmgr/: n
scripts:
  install: "#!/bin/sh\n# $FreeBSD: ports/textproc/xmlcatmgr/files/pkg-install.in,v
    1.3 2012/11/17 06:02:25 svnexp Exp $\n\nPATH=/bin:/usr/bin:/usr/local/bin\n\nexport
    PATH\nXMLCATMGR=/usr/local/bin/xmlcatmgr\nCATALOG_MASTER_SGML=/usr/local/share/sgml/catalog\nCATALOG_MASTER_XML=/usr/local/share/xml/catalog\nCATALOG_PORTS_SGML=/usr/local/share/sgml/catalog.ports\nCATALOG_PORTS_XML=/usr/local/share/xml/catalog.ports\n\ncase
    $2 in\nPOST-INSTALL)\n\nif [ ! -r ${CATALOG_MASTER_SGML} ]; then\n\techo \" +
    Creating ${CATALOG_MASTER_SGML}\"\n\t${XMLCATMGR} -sc ${CATALOG_MASTER_SGML} create\nfi\n\nif
    ! ${XMLCATMGR} -sc ${CATALOG_MASTER_SGML} lookup catalog.ports > /dev/null 2>&1;
    then\n\techo \" + Registering CATALOG catalog.ports (SGML)\"\n\t${XMLCATMGR} -sc
    ${CATALOG_MASTER_SGML} add CATALOG catalog.ports\nfi\n\nif [ ! -r ${CATALOG_PORTS_SGML}
    ]; then\n\techo \" + Creating ${CATALOG_PORTS_SGML}\"\n\t${XMLCATMGR} -sc ${CATALOG_PORTS_SGML}
    create\nfi\n\nif [ ! -r ${CATALOG_MASTER_XML} ]; then\n\techo \" + Creating ${CATALOG_MASTER_XML}\"\n\t${XMLCATMGR}
    -c ${CATALOG_MASTER_XML} create\nfi\n\nif ! ${XMLCATMGR} -c ${CATALOG_MASTER_XML}
    lookup ${CATALOG_PORTS_XML} > /dev/null 2>&1 ; then\n\techo \" + Registering nextCatalog
    catalog.ports (XML)\"\n\t${XMLCATMGR} -c ${CATALOG_MASTER_XML} add nextCatalog
    ${CATALOG_PORTS_XML}\nfi\n\nif [ ! -r ${CATALOG_PORTS_XML} ]; then\n\techo \"
    + Creating ${CATALOG_PORTS_XML}\"\n\t${XMLCATMGR} -c ${CATALOG_PORTS_XML} create\nfi\n;;\nesac\n"
  deinstall: "#!/bin/sh\n# $FreeBSD: ports/textproc/xmlcatmgr/files/pkg-deinstall.in,v
    1.4 2012/11/17 06:02:25 svnexp Exp $\n\nPATH=/bin:/usr/bin:/usr/local/bin\n\nexport
    PATH\nXMLCATMGR=/usr/local/bin/xmlcatmgr\nCATALOG_MASTER_SGML=/usr/local/share/sgml/catalog\nCATALOG_MASTER_XML=/usr/local/share/xml/catalog\nCATALOG_PORTS_SGML=/usr/local/share/sgml/catalog.ports\nCATALOG_PORTS_XML=/usr/local/share/xml/catalog.ports\n\ncase
    $2 in\nDEINSTALL)\n\nT=/tmp/catalog.$$\n\n${XMLCATMGR} -sc ${CATALOG_MASTER_SGML}
    remove CATALOG catalog.ports\n${XMLCATMGR} -sc ${T} create\nif cmp -s ${T} ${CATALOG_MASTER_SGML}
    ]; then\n\techo \" + Removing ${CATALOG_MASTER_SGML}.  It is empty.\"\n\trm -f
    ${CATALOG_MASTER_SGML}\nfi\nif cmp -s ${T} ${CATALOG_PORTS_SGML} ]; then\n\techo
    \" + Removing ${CATALOG_PORTS_SGML}.  It is empty.\"\n\trm -f ${CATALOG_PORTS_SGML}\nfi\nrm
    -f ${T}\n\n${XMLCATMGR} -c ${CATALOG_MASTER_XML} remove nextCatalog ${CATALOG_PORTS_XML}\n${XMLCATMGR}
    -c ${T} create\nif cmp -s ${T} ${CATALOG_MASTER_XML} ]; then\n\techo \" + Removing
    ${CATALOG_MASTER_XML}.  It is empty.\"\n\trm -f ${CATALOG_MASTER_XML}\nfi\nif
    cmp -s ${T} ${CATALOG_PORTS_XML} ]; then\n\techo \" + Removing ${CATALOG_PORTS_XML}.
    \ It is empty.\"\n\trm -f ${CATALOG_PORTS_XML}\nfi\nrm -f ${T}\n;;\nesac\n"
message: |
  The following catalogs are installed:

   1) /usr/local/share/sgml/catalog

     The top level catalog for SGML stuff.  It is not changed
     by any ports/packages except textproc/xmlcatmgr.

   2) /usr/local/share/sgml/catalog.ports

     This catalog is for handling SGML stuff installed under
     /usr/local/share/sgml.  It is changed by ports/packages.

   3) /usr/local/share/xml/catalog

     The top level catalog for XML stuff.  It is not changed
     by any ports/packages except textproc/xmlcatmgr.

   4) /usr/local/share/xml/catalog.ports

     This catalog is for handling XML stuff installed under
     /usr/local/share/xml.  It is changed by ports/packages.
