Changeset 119133


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

textproc/xhtml1:

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

Legend:

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

    r106081 r119133  
    33
    44PortSystem          1.0
     5PortGroup           xmlcatalog 1.0
    56
    67name                xhtml1
    78version             2.0
     9revision            1
    810categories          textproc
    911platforms           darwin
    1012maintainers         nomaintainer
    1113supported_archs     noarch
    12 
    1314description         A reformulation of HTML 4 in XML 1.0
    14 
    15 long_description    The Second Edition of XHTML 1.0, a reformulation \
    16                     of HTML 4 as an XML 1.0 application, and three DTDs \
    17                     corresponding to the ones defined by HTML 4. \
    18                     These DTDs are useful for validating or processing \
    19                     world wide web pages with XML tools.
    20 
     15long_description \
     16    The Second Edition of XHTML 1.0, a reformulation \
     17    of HTML 4 as an XML 1.0 application, and three DTDs \
     18    corresponding to the ones defined by HTML 4. \
     19    These DTDs are useful for validating or processing \
     20    world wide web pages with XML tools.
    2121homepage            http://www.w3.org/TR/xhtml1/
    2222master_sites        http://www.w3.org/TR/xhtml1/
     
    3636set instdir         share/xml/html/4
    3737
     38xml.entity "-//W3C//DTD XHTML 1.0 Strict//EN" "${prefix}/${instdir}/xhtml1-strict.dtd"
     39xml.entity "-//W3C//DTD XHTML 1.0 Transitional//EN" "${prefix}/${instdir}/xhtml1-transitional.dtd"
     40xml.entity "-//W3C//DTD XHTML 1.0 Frameset//EN" "${prefix}/${instdir}/xhtml1-frameset.dtd"
     41xml.entity "-//W3C//ENTITIES Latin 1 for XHTML//EN" "${prefix}/${instdir}/xhtml-lat1.ent"
     42xml.entity "-//W3C//ENTITIES Special for XHTML//EN" "${prefix}/${instdir}/xhtml-special.ent"
     43xml.entity "-//W3C//ENTITIES Symbols for XHTML//EN" "${prefix}/${instdir}/xhtml-symbol.ent"
     44
     45xml.rewrite System "http://www.w3.org/TR/xhtml1/DTD/" "${prefix}/${instdir}/"
     46xml.rewrite System "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/" "${prefix}/${instdir}/"
     47xml.rewrite URI "http://www.w3.org/TR/xhtml1/DTD/" "${prefix}/${instdir}/"
     48xml.rewrite URI "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/" "${prefix}/${instdir}/"
     49
    3850destroot {
    3951    xinstall -m 755 -d ${destroot}${prefix}/${instdir}
    4052    xinstall -m 644 -W ${worksrcpath}/DTD/ xhtml.soc xhtml-lat1.ent xhtml-special.ent xhtml-symbol.ent xhtml1-frameset.dtd xhtml1-strict.dtd xhtml1-transitional.dtd xhtml1.dcl ${destroot}${prefix}/${instdir}
    41 }
    42 
    43 post-activate {
    44     # xmlcatmgr as installed by MacPorts defaults to using
    45     # ${prefix}/etc/xml/docbook (for XML) and ${prefix}/etc/xml/docbook (for
    46     # SGML) if no catalog is specified, but we'll specify the path just in case
    47     # users have another installation of xmlcatmgr and happen to have it before
    48     # ${prefix}/bin in their PATH.
    49     set catalog.xml ${prefix}/etc/xml/catalog
    50 
    51     # Make the directory if it doesn't exist
    52     if {![file exists ${prefix}/etc/xml]} {
    53         xinstall -m 755 -d ${prefix}/etc/xml
    54     }
    55 
    56     # Create the catalog file if it doesn't exist
    57     if {![file exists ${catalog.xml}]} {
    58         system "xmlcatmgr create -c ${catalog.xml}"
    59     }
    60 
    61     # Add the entries to the catalog
    62     system "xmlcatmgr add public '-//W3C//DTD XHTML 1.0 Strict//EN' '${prefix}/${instdir}/xhtml1-strict.dtd'"
    63     system "xmlcatmgr add public '-//W3C//DTD XHTML 1.0 Transitional//EN' '${prefix}/${instdir}/xhtml1-transitional.dtd'"
    64     system "xmlcatmgr add public '-//W3C//DTD XHTML 1.0 Frameset//EN' '${prefix}/${instdir}/xhtml1-frameset.dtd'"
    65     system "xmlcatmgr add public '-//W3C//ENTITIES Latin 1 for XHTML//EN' '${prefix}/${instdir}/xhtml-lat1.ent'"
    66     system "xmlcatmgr add public '-//W3C//ENTITIES Special for XHTML//EN' '${prefix}/${instdir}/xhtml-special.ent'"
    67     system "xmlcatmgr add public '-//W3C//ENTITIES Symbols for XHTML//EN' '${prefix}/${instdir}/xhtml-symbol.ent'"
    68     system "xmlcatmgr add rewriteSystem 'http://www.w3.org/TR/xhtml1/DTD/' '${prefix}/${instdir}/'"
    69     system "xmlcatmgr add rewriteSystem 'http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/' '${prefix}/${instdir}/'"
    70     system "xmlcatmgr add rewriteURI 'http://www.w3.org/TR/xhtml1/DTD/' '${prefix}/${instdir}/'"
    71     system "xmlcatmgr add rewriteURI 'http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/' '${prefix}/${instdir}/'"
    7253}
    7354
     
    9172}
    9273
    93 # This will remove the catalog entries for this port.
    94 post-deactivate {
    95     system "xmlcatmgr remove public '-//W3C//DTD XHTML 1.0 Strict//EN'"
    96     system "xmlcatmgr remove public '-//W3C//DTD XHTML 1.0 Transitional//EN'"
    97     system "xmlcatmgr remove public '-//W3C//DTD XHTML 1.0 Frameset//EN'"
    98     system "xmlcatmgr remove public '-//W3C//ENTITIES Latin 1 for XHTML//EN'"
    99     system "xmlcatmgr remove public '-//W3C//ENTITIES Special for XHTML//EN'"
    100     system "xmlcatmgr remove public '-//W3C//ENTITIES Symbols for XHTML//EN'"
    101     system "xmlcatmgr remove rewriteSystem 'http://www.w3.org/TR/xhtml1/DTD/'"
    102     system "xmlcatmgr remove rewriteSystem 'http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/'"
    103     system "xmlcatmgr remove rewriteURI 'http://www.w3.org/TR/xhtml1/DTD/'"
    104     system "xmlcatmgr remove rewriteURI 'http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/'"
    105 }
    106 
    10774livecheck.type      none
Note: See TracChangeset for help on using the changeset viewer.