[119133] trunk/dports/textproc/xhtml1/Portfile

pixilla at macports.org pixilla at macports.org
Thu Apr 17 15:40:46 PDT 2014


Revision: 119133
          https://trac.macports.org/changeset/119133
Author:   pixilla at macports.org
Date:     2014-04-17 15:40:46 -0700 (Thu, 17 Apr 2014)
Log Message:
-----------
textproc/xhtml1:
- Use new PortGroup xmlcatalog.

Modified Paths:
--------------
    trunk/dports/textproc/xhtml1/Portfile

Modified: trunk/dports/textproc/xhtml1/Portfile
===================================================================
--- trunk/dports/textproc/xhtml1/Portfile	2014-04-17 22:40:25 UTC (rev 119132)
+++ trunk/dports/textproc/xhtml1/Portfile	2014-04-17 22:40:46 UTC (rev 119133)
@@ -2,22 +2,22 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           xmlcatalog 1.0
 
 name                xhtml1
 version             2.0
+revision            1
 categories          textproc
 platforms           darwin
 maintainers         nomaintainer
 supported_archs     noarch
-
 description         A reformulation of HTML 4 in XML 1.0
-
-long_description    The Second Edition of XHTML 1.0, a reformulation \
-                    of HTML 4 as an XML 1.0 application, and three DTDs \
-                    corresponding to the ones defined by HTML 4. \
-                    These DTDs are useful for validating or processing \
-                    world wide web pages with XML tools.
-
+long_description \
+    The Second Edition of XHTML 1.0, a reformulation \
+    of HTML 4 as an XML 1.0 application, and three DTDs \
+    corresponding to the ones defined by HTML 4. \
+    These DTDs are useful for validating or processing \
+    world wide web pages with XML tools.
 homepage            http://www.w3.org/TR/xhtml1/
 master_sites        http://www.w3.org/TR/xhtml1/
 
@@ -35,42 +35,23 @@
 
 set instdir         share/xml/html/4
 
+xml.entity "-//W3C//DTD XHTML 1.0 Strict//EN" "${prefix}/${instdir}/xhtml1-strict.dtd"
+xml.entity "-//W3C//DTD XHTML 1.0 Transitional//EN" "${prefix}/${instdir}/xhtml1-transitional.dtd"
+xml.entity "-//W3C//DTD XHTML 1.0 Frameset//EN" "${prefix}/${instdir}/xhtml1-frameset.dtd"
+xml.entity "-//W3C//ENTITIES Latin 1 for XHTML//EN" "${prefix}/${instdir}/xhtml-lat1.ent"
+xml.entity "-//W3C//ENTITIES Special for XHTML//EN" "${prefix}/${instdir}/xhtml-special.ent"
+xml.entity "-//W3C//ENTITIES Symbols for XHTML//EN" "${prefix}/${instdir}/xhtml-symbol.ent"
+
+xml.rewrite System "http://www.w3.org/TR/xhtml1/DTD/" "${prefix}/${instdir}/"
+xml.rewrite System "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/" "${prefix}/${instdir}/"
+xml.rewrite URI "http://www.w3.org/TR/xhtml1/DTD/" "${prefix}/${instdir}/"
+xml.rewrite URI "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/" "${prefix}/${instdir}/"
+
 destroot {
     xinstall -m 755 -d ${destroot}${prefix}/${instdir}
     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}
 }
 
-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 entries to the catalog
-    system "xmlcatmgr add public '-//W3C//DTD XHTML 1.0 Strict//EN' '${prefix}/${instdir}/xhtml1-strict.dtd'"
-    system "xmlcatmgr add public '-//W3C//DTD XHTML 1.0 Transitional//EN' '${prefix}/${instdir}/xhtml1-transitional.dtd'"
-    system "xmlcatmgr add public '-//W3C//DTD XHTML 1.0 Frameset//EN' '${prefix}/${instdir}/xhtml1-frameset.dtd'"
-    system "xmlcatmgr add public '-//W3C//ENTITIES Latin 1 for XHTML//EN' '${prefix}/${instdir}/xhtml-lat1.ent'"
-    system "xmlcatmgr add public '-//W3C//ENTITIES Special for XHTML//EN' '${prefix}/${instdir}/xhtml-special.ent'"
-    system "xmlcatmgr add public '-//W3C//ENTITIES Symbols for XHTML//EN' '${prefix}/${instdir}/xhtml-symbol.ent'"
-    system "xmlcatmgr add rewriteSystem 'http://www.w3.org/TR/xhtml1/DTD/' '${prefix}/${instdir}/'"
-    system "xmlcatmgr add rewriteSystem 'http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/' '${prefix}/${instdir}/'"
-    system "xmlcatmgr add rewriteURI 'http://www.w3.org/TR/xhtml1/DTD/' '${prefix}/${instdir}/'"
-    system "xmlcatmgr add rewriteURI 'http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/' '${prefix}/${instdir}/'"
-}
-
 if {${registry.format} == "receipt_flat"} {
     notes \
 "######################################################################
@@ -90,18 +71,4 @@
 ######################################################################"
 }
 
-# This will remove the catalog entries for this port.
-post-deactivate {
-    system "xmlcatmgr remove public '-//W3C//DTD XHTML 1.0 Strict//EN'"
-    system "xmlcatmgr remove public '-//W3C//DTD XHTML 1.0 Transitional//EN'"
-    system "xmlcatmgr remove public '-//W3C//DTD XHTML 1.0 Frameset//EN'"
-    system "xmlcatmgr remove public '-//W3C//ENTITIES Latin 1 for XHTML//EN'"
-    system "xmlcatmgr remove public '-//W3C//ENTITIES Special for XHTML//EN'"
-    system "xmlcatmgr remove public '-//W3C//ENTITIES Symbols for XHTML//EN'"
-    system "xmlcatmgr remove rewriteSystem 'http://www.w3.org/TR/xhtml1/DTD/'"
-    system "xmlcatmgr remove rewriteSystem 'http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/'"
-    system "xmlcatmgr remove rewriteURI 'http://www.w3.org/TR/xhtml1/DTD/'"
-    system "xmlcatmgr remove rewriteURI 'http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/'"
-}
-
 livecheck.type      none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140417/cf08151f/attachment-0001.html>


More information about the macports-changes mailing list