Changeset 119128


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

textproc/docbook-xsl:

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

Legend:

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

    r111353 r119128  
    33
    44PortSystem      1.0
     5PortGroup       xmlcatalog 1.0
    56
    67name            docbook-xsl
    78version         1.78.1
     9revision        1
    810categories      textproc
    911license         MIT Permissive
     
    4345set instdocdir  "share/doc/${name}"
    4446
     47xml.catalog "${prefix}/${instxsldir}/catalog.xml"
     48
    4549destroot {
    4650    foreach pathname "${instxsldir} ${instdocdir}" {
     
    5256    foreach pathname ${srcdocpaths} {
    5357        copy ${worksrcpath}/${pathname} ${destroot}${prefix}/${instdocdir}
    54     }
    55 }
    56 post-activate {
    57     # xmlcatmgr as installed by MacPorts defaults to using
    58     # ${prefix}/etc/xml/docbook (for XML) and ${prefix}/etc/xml/docbook (for
    59     # SGML) if no catalog is specified, but we'll specify the path just in case
    60     # users have another installation of xmlcatmgr and happen to have it before
    61     # ${prefix}/bin in their PATH.
    62     set catalog.xml ${prefix}/etc/xml/catalog
    63 
    64     # Make the directory if it doesn't exist
    65     if {![file exists ${prefix}/etc/xml]} {
    66         xinstall -m 755 -d ${prefix}/etc/xml
    67     }
    68 
    69     # Create the catalog file if it doesn't exist
    70     if {![file exists ${catalog.xml}]} {
    71         system "xmlcatmgr create -c ${catalog.xml}"
    72     }
    73 
    74     # Add the nextCatalog entry to the catalog if it doesn't exist
    75     if {[catch {exec xmlcatmgr lookup ${prefix}/${instxsldir}/catalog.xml}]} {
    76         system "xmlcatmgr add nextCatalog ${prefix}/${instxsldir}/catalog.xml"
    7758    }
    7859}
     
    8869}
    8970
    90 # This will remove the catalog entry for this port.
    91 post-deactivate {
    92     system "xmlcatmgr remove nextCatalog ${prefix}/${instxsldir}/catalog.xml"
    93 }
    94 
    9571livecheck.url       http://docbook.sourceforge.net/release/xsl/
    9672livecheck.regex "=\"(\\d+(?:\\.\\d+)*)"
Note: See TracChangeset for help on using the changeset viewer.