Changeset 119129


Ignore:
Timestamp:
Apr 17, 2014, 10:39:20 PM (6 years ago)
Author:
pixilla@…
Message:

textproc/docbook-xsl-ns:

  • Use new PortGroup xmlcatalog. See #41708
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/docbook-xsl-ns/Portfile

    r81135 r119129  
     1# -*- 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
    12# $Id$
    23
    34PortSystem      1.0
     5PortGroup       xmlcatalog 1.0
    46
    57name            docbook-xsl-ns
    68version         1.76.1
     9revision        1
    710categories      textproc
    811license         MIT Permissive
     
    3740set instxsldir  "share/xsl/${name}"
    3841set instdocdir  "share/doc/${name}"
     42xml.catalog "${prefix}/${instxsldir}/catalog.xml"
    3943
    4044destroot {
     
    4953    }
    5054}
    51 post-activate {
    52     # xmlcatmgr as installed by MacPorts defaults to using
    53     # ${prefix}/etc/xml/docbook (for XML) and ${prefix}/etc/xml/docbook (for
    54     # SGML) if no catalog is specified, but we'll specify the path just in case
    55     # users have another installation of xmlcatmgr and happen to have it before
    56     # ${prefix}/bin in their PATH.
    57     set catalog.xml ${prefix}/etc/xml/catalog
    58 
    59     # Make the directory if it doesn't exist
    60     if {![file exists ${prefix}/etc/xml]} {
    61         xinstall -m 755 -d ${prefix}/etc/xml
    62     }
    63 
    64     # Create the catalog file if it doesn't exist
    65     if {![file exists ${catalog.xml}]} {
    66         system "xmlcatmgr create -c ${catalog.xml}"
    67     }
    68 
    69     # Add the nextCatalog entry to the catalog if it doesn't exist
    70     if {[catch {exec xmlcatmgr lookup ${prefix}/${instxsldir}/catalog.xml}]} {
    71         system "xmlcatmgr add nextCatalog ${prefix}/${instxsldir}/catalog.xml"
    72     }
    73 }
    74 
    75 # This will remove the catalog entry for this port.
    76 post-deactivate {
    77     system "xmlcatmgr remove nextCatalog ${prefix}/${instxsldir}/catalog.xml"
    78 }
    7955
    8056livecheck.distname  ${name}
Note: See TracChangeset for help on using the changeset viewer.