[119128] trunk/dports/textproc/docbook-xsl/Portfile

pixilla at macports.org pixilla at macports.org
Thu Apr 17 15:39:00 PDT 2014


Revision: 119128
          https://trac.macports.org/changeset/119128
Author:   pixilla at macports.org
Date:     2014-04-17 15:39:00 -0700 (Thu, 17 Apr 2014)
Log Message:
-----------
textproc/docbook-xsl:
- Use new PortGroup xmlcatalog.

Modified Paths:
--------------
    trunk/dports/textproc/docbook-xsl/Portfile

Modified: trunk/dports/textproc/docbook-xsl/Portfile
===================================================================
--- trunk/dports/textproc/docbook-xsl/Portfile	2014-04-17 22:38:34 UTC (rev 119127)
+++ trunk/dports/textproc/docbook-xsl/Portfile	2014-04-17 22:39:00 UTC (rev 119128)
@@ -2,9 +2,11 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 
 PortSystem      1.0
+PortGroup       xmlcatalog 1.0
 
 name            docbook-xsl
 version         1.78.1
+revision        1
 categories      textproc
 license         MIT Permissive
 description     The docbook xsl stylesheets
@@ -42,6 +44,8 @@
 set instxsldir  "share/xsl/${name}"
 set instdocdir  "share/doc/${name}"
 
+xml.catalog "${prefix}/${instxsldir}/catalog.xml"
+
 destroot {
     foreach pathname "${instxsldir} ${instdocdir}" {
         xinstall -m 755 -d ${destroot}${prefix}/${pathname}
@@ -53,30 +57,7 @@
         copy ${worksrcpath}/${pathname} ${destroot}${prefix}/${instdocdir}
     }
 }
-post-activate {
-    # xmlcatmgr as installed by MacPorts defaults to using
-    # ${prefix}/etc/xml/docbook (for XML) and ${prefix}/etc/xml/docbook (for
-    # SGML) if no catalog is specified, but we'll specify the path just in case
-    # users have another installation of xmlcatmgr and happen to have it before
-    # ${prefix}/bin in their PATH.
-    set catalog.xml ${prefix}/etc/xml/catalog
 
-    # Make the directory if it doesn't exist
-    if {![file exists ${prefix}/etc/xml]} {
-        xinstall -m 755 -d ${prefix}/etc/xml
-    }
-
-    # Create the catalog file if it doesn't exist
-    if {![file exists ${catalog.xml}]} {
-        system "xmlcatmgr create -c ${catalog.xml}"
-    }
-
-    # Add the nextCatalog entry to the catalog if it doesn't exist
-    if {[catch {exec xmlcatmgr lookup ${prefix}/${instxsldir}/catalog.xml}]} {
-        system "xmlcatmgr add nextCatalog ${prefix}/${instxsldir}/catalog.xml"
-    }
-}
-
 if {${registry.format} == "receipt_flat"} {
     notes \
 "######################################################################
@@ -87,10 +68,5 @@
 ######################################################################"
 }
 
-# This will remove the catalog entry for this port.
-post-deactivate {
-    system "xmlcatmgr remove nextCatalog ${prefix}/${instxsldir}/catalog.xml"
-}
-
 livecheck.url       http://docbook.sourceforge.net/release/xsl/
 livecheck.regex "=\"(\\d+(?:\\.\\d+)*)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140417/c8686fab/attachment.html>


More information about the macports-changes mailing list