[20212] trunk/dports/textproc
source_changes at macosforge.org
source_changes at macosforge.org
Sat Oct 28 10:05:47 PDT 2006
Revision: 20212
http://trac.macosforge.org/projects/macports/changeset/20212
Author: rhwood at macports.org
Date: 2006-10-28 10:05:46 -0700 (Sat, 28 Oct 2006)
Log Message:
-----------
New port docbook-xml-412 provides the XML Docbook version 4.1.2
Added Paths:
-----------
trunk/dports/textproc/docbook-xml-412/
trunk/dports/textproc/docbook-xml-412/Portfile
Added: trunk/dports/textproc/docbook-xml-412/Portfile
===================================================================
--- trunk/dports/textproc/docbook-xml-412/Portfile (rev 0)
+++ trunk/dports/textproc/docbook-xml-412/Portfile 2006-10-28 17:05:46 UTC (rev 20212)
@@ -0,0 +1,90 @@
+# $Id: Portfile,v 1.15 2004/11/30 13:49:18 michaelm Exp $
+
+PortSystem 1.0
+
+name docbook-xml-412
+version 4.1.2
+description the docbook xml dtds
+categories textproc
+platforms darwin
+maintainers rhwood at macports.org
+depends_build bin:unzip:unzip
+distname docbkx412
+
+master_sites http://www.oasis-open.org/docbook/xml/4.1.2/
+checksums md5 900d7609fb7e6d78901b357e4acfbc17
+
+use_zip yes
+extract.suffix .zip
+extract.cmd unzip
+
+depends_build bin:xmlcatalog:libxml2
+
+configure {}
+build {}
+
+destroot {
+ file mkdir ${destroot}/${prefix}/share/xml/docbook/${version}
+ file mkdir ${destroot}/${prefix}/share/xml/docbook/${version}/ent
+ system "for file in \
+ `unzip -l ${distpath}/${distname} | awk '/:\[0-9\].*\[^\\/\]\$/\{print \$4\}'`; do \
+ install -cv ${workpath}/\$file ${destroot}/${prefix}/share/xml/docbook/${version}/\$file; \
+ done"
+}
+
+post-activate {
+ file mkdir ${prefix}/etc/xml
+ if {![file exists ${prefix}/etc/xml/docbook]} {
+ system "xmlcatalog --noout --create ${prefix}/etc/xml/docbook"
+ }
+ system "\
+ xmlcatalog --noout --add 'public' \
+ '-//OASIS//ELEMENTS DocBook XML Information Pool V${version}//EN' \
+ 'file://${prefix}/share/xml/docbook/${version}/dbpoolx.mod' ${prefix}/etc/xml/docbook
+ xmlcatalog --noout --add 'public' \
+ '-//OASIS//DTD DocBook XML V${version}//EN' \
+ 'file://${prefix}/share/xml/docbook/${version}/docbookx.dtd' ${prefix}/etc/xml/docbook
+ xmlcatalog --noout --add 'public' \
+ '-//OASIS//ENTITIES DocBook XML Character Entities V${version}//EN' \
+ 'file://${prefix}/share/xml/docbook/${version}/dbcentx.mod' ${prefix}/etc/xml/docbook
+ xmlcatalog --noout --add 'public' \
+ '-//OASIS//ENTITIES DocBook XML Notations V${version}//EN' \
+ 'file://${prefix}/share/xml/docbook/${version}/dbnotnx.mod' ${prefix}/etc/xml/docbook
+ xmlcatalog --noout --add 'public' \
+ '-//OASIS//ENTITIES DocBook XML Additional General Entities V${version}//EN' \
+ 'file://${prefix}/share/xml/docbook/${version}/dbgenent.mod' ${prefix}/etc/xml/docbook
+ xmlcatalog --noout --add 'public' \
+ '-//OASIS//ELEMENTS DocBook XML Document Hierarchy V${version}//EN' \
+ 'file://${prefix}/share/xml/docbook/${version}/dbhierx.mod' ${prefix}/etc/xml/docbook
+ xmlcatalog --noout --add 'public' \
+ '-//OASIS//DTD XML Exchange Table Model 19990315//EN' \
+ 'file://${prefix}/share/xml/docbook/${version}/soextblx.dtd' ${prefix}/etc/xml/docbook
+ xmlcatalog --noout --add 'public' \
+ '-//OASIS//DTD DocBook XML CALS Table Model V${version}//EN' \
+ 'file://${prefix}/share/xml/docbook/${version}/calstblx.dtd' ${prefix}/etc/xml/docbook
+ xmlcatalog --noout --add 'rewriteSystem' \
+ 'http://www.oasis-open.org/docbook/xml/${version}' \
+ 'file://${prefix}/share/xml/docbook/${version}' ${prefix}/etc/xml/docbook
+ xmlcatalog --noout --add 'rewriteURI' \
+ 'http://www.oasis-open.org/docbook/xml/${version}' \
+ 'file://${prefix}/share/xml/docbook/${version}' ${prefix}/etc/xml/docbook
+ "
+ # add catalog above to root XML catalog
+ if {![file exists ${prefix}/etc/xml/catalog]} {
+ system "xmlcatalog --noout --create ${prefix}/etc/xml/catalog"
+ }
+ system "\
+ xmlcatalog --noout --add 'delegatePublic' \
+ '-//OASIS//ENTITIES DocBook XML' \
+ 'file://${prefix}/etc/xml/docbook' ${prefix}/etc/xml/catalog
+ xmlcatalog --noout --add 'delegatePublic' \
+ '-//OASIS//DTD DocBook XML' \
+ 'file://${prefix}/etc/xml/docbook' ${prefix}/etc/xml/catalog
+ xmlcatalog --noout --add 'delegateSystem' \
+ 'http://www.oasis-open.org/docbook/' \
+ 'file://${prefix}/etc/xml/docbook' ${prefix}/etc/xml/catalog
+ xmlcatalog --noout --add 'delegateURI' \
+ 'http://www.oasis-open.org/docbook/' \
+ 'file://${prefix}/etc/xml/docbook' ${prefix}/etc/xml/catalog
+ "
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061028/32bff203/attachment.html
More information about the macports-changes
mailing list