[119129] trunk/dports/textproc/docbook-xsl-ns/Portfile

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


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

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

Modified: trunk/dports/textproc/docbook-xsl-ns/Portfile
===================================================================
--- trunk/dports/textproc/docbook-xsl-ns/Portfile	2014-04-17 22:39:00 UTC (rev 119128)
+++ trunk/dports/textproc/docbook-xsl-ns/Portfile	2014-04-17 22:39:20 UTC (rev 119129)
@@ -1,9 +1,12 @@
+# -*- 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
 # $Id$
 
 PortSystem      1.0
+PortGroup       xmlcatalog 1.0
 
 name            docbook-xsl-ns
 version         1.76.1
+revision        1
 categories      textproc
 license         MIT Permissive
 description     DocBook XSL NS (namespaced) Stylesheets
@@ -36,6 +39,7 @@
                 RELEASE-NOTES.pdf RELEASE-NOTES.txt TODO VERSION NEWS COPYING"
 set instxsldir  "share/xsl/${name}"
 set instdocdir  "share/doc/${name}"
+xml.catalog "${prefix}/${instxsldir}/catalog.xml"
 
 destroot {
     foreach pathname "${instxsldir} ${instdocdir}" {
@@ -48,33 +52,5 @@
         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"
-    }
-}
-
-# This will remove the catalog entry for this port.
-post-deactivate {
-    system "xmlcatmgr remove nextCatalog ${prefix}/${instxsldir}/catalog.xml"
-}
-
 livecheck.distname  ${name}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140417/e2eacb53/attachment-0001.html>


More information about the macports-changes mailing list