Changeset 119134


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

textproc/xmlroff:

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

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/xmlroff/Portfile

    r93159 r119134  
    33
    44PortSystem          1.0
     5PortGroup           xmlcatalog 1.0
    56
    67name                xmlroff
    78version             0.6.2
     9revision            1
    810categories          textproc
    911platforms           darwin
    1012maintainers         nomaintainer
    1113license             BSD
    12 
    1314description         An XSL formatter producing PDF and PostScript.
    14 
    15 long_description    Creates formatted output -- pages containing text in a \
    16                     variety of type styles and sizes -- from an input XML \
    17                     document and an XSL stylesheet.
    18 
     15long_description \
     16    Creates formatted output -- pages containing text in a \
     17    variety of type styles and sizes -- from an input XML \
     18    document and an XSL stylesheet.
    1919homepage            http://xmlroff.org/
    2020master_sites        ${homepage}download/
     
    4444
    4545# Specify catalog to add (catalog for xmlroff's libfo library)
    46 set libfocatalog ${prefix}/share/xml/libfo-${version}/catalog.xml
    47 
    48 post-activate {
    49     # xmlcatmgr as installed by MacPorts defaults to using
    50     # ${prefix}/etc/xml/docbook (for XML) and ${prefix}/etc/xml/docbook (for
    51     # SGML) if no catalog is specified, but we'll specify the path just in case
    52     # users have another installation of xmlcatmgr and happen to have it before
    53     # ${prefix}/bin in their PATH.
    54     set catalog.xml ${prefix}/etc/xml/catalog
    55 
    56     # Make the directory if it doesn't exist
    57     if {![file exists ${prefix}/etc/xml]} {
    58         xinstall -m 755 -d ${prefix}/etc/xml
    59     }
    60 
    61     # Create the catalog file if it doesn't exist
    62     if {![file exists ${catalog.xml}]} {
    63         system "xmlcatmgr create -c ${catalog.xml}"
    64     }
    65 
    66     # Add the nextCatalog entry to the catalog if it doesn't exist
    67     if {[catch {exec xmlcatmgr lookup ${libfocatalog}}]} {
    68         system "xmlcatmgr add nextCatalog ${libfocatalog}"
    69     }
    70 }
    71 
    72 # This will remove the catalog entry for this port.
    73 post-deactivate {
    74     system "xmlcatmgr remove nextCatalog ${libfocatalog}"
    75 }
     46xml.catalog "${prefix}/share/xml/libfo-${version}/catalog.xml"
Note: See TracChangeset for help on using the changeset viewer.