[25793] trunk/dports/textproc/docbook-xml

source_changes at macosforge.org source_changes at macosforge.org
Sat Jun 2 03:57:21 PDT 2007


Revision: 25793
          http://trac.macosforge.org/projects/macports/changeset/25793
Author:   rhwood at macports.org
Date:     2007-06-02 03:57:20 -0700 (Sat, 02 Jun 2007)

Log Message:
-----------
Change port from a specific docbook-xml DTD version to a meta-port that ensures
that the user has all of the docbook-xml DTDs that MacPorts ships on his system.

Add a readme file that explains this and ensures that this port can be
registered as installed and is therefore upgradable.

Set the version on the port to the version of the highest versioned docbook-xml
DTD port.

This is the last change to the docbook-xml ports from
docbook-xml[|-scrollkeeper|-412] to docbook-xml-${version} before we can edit
ports that depended on the old docbook-xml ports to the new docbook-xml ports.

MAINTAINERS: Please use only the actual DTD versions that you need when setting
dependencies on your ports instead of depending on this port.

Modified Paths:
--------------
    trunk/dports/textproc/docbook-xml/Portfile

Added Paths:
-----------
    trunk/dports/textproc/docbook-xml/files/
    trunk/dports/textproc/docbook-xml/files/README.docbook-xml.txt

Modified: trunk/dports/textproc/docbook-xml/Portfile
===================================================================
--- trunk/dports/textproc/docbook-xml/Portfile	2007-06-02 10:17:19 UTC (rev 25792)
+++ trunk/dports/textproc/docbook-xml/Portfile	2007-06-02 10:57:20 UTC (rev 25793)
@@ -3,26 +3,32 @@
 PortSystem 1.0
 
 name		docbook-xml
-version		4.3
-description	the docbook xml dtds
+# the version should always be the version of the highest
+# versioned docbook-xml-* port.
+version		4.5
+description	Install all of the versioned docbook-xml-* ports
+long_description    \
+    This port is an uninstallable metaport that simply ensures
+    that a number of other ports are installed.
 categories	textproc
 platforms	darwin
 maintainers	nomaintainer at macports.org
-depends_build	bin:unzip:unzip
+homepage    http://www.docbook.org
 
-master_sites	http://www.oasis-open.org/docbook/xml/4.3/
-checksums	md5 ab200202b9e136a144db1e0864c45074
+# add every docbook-xml-* port as it is created
+depends_build \
+    port:docbook-xml-4.1.2 \
+    port:docbook-xml-4.2 \
+    port:docbook-xml-4.3 \
+    port:docbook-xml-4.4 \
+    port:docbook-xml-4.5
 
-use_zip		yes
-extract.suffix	.zip
-extract.cmd	unzip
-
+fetch		{}
+checksum	{}
+extract		{}
 configure 	{}
 build		{}
-
-destroot	{ file mkdir ${destroot}/${prefix}/share/xml/${name}/${version}
- 		  file mkdir ${destroot}/${prefix}/share/xml/${name}/${version}/ent
-		  system "for file in \
-		  `unzip -l ${distpath}/${distname} | awk '/:\[0-9\].*\[^\\/\]\$/\{print \$4\}'`; do \
-                  	install -cv ${workpath}/\$file ${destroot}/${prefix}/share/xml/${name}/${version}/\$file; \
-        	  done" }
+destroot	{ 
+	file mkdir ${destroot}${prefix}/share/doc/
+	file copy ${filespath}/README.${name}.txt ${destroot}${prefix}/share/doc
+}

Added: trunk/dports/textproc/docbook-xml/files/README.docbook-xml.txt
===================================================================
--- trunk/dports/textproc/docbook-xml/files/README.docbook-xml.txt	                        (rev 0)
+++ trunk/dports/textproc/docbook-xml/files/README.docbook-xml.txt	2007-06-02 10:57:20 UTC (rev 25793)
@@ -0,0 +1,11 @@
+Please note that the docbook-xml port is simply a meta-port
+that installs all versions of the docbook-xml Document Type
+Definitions (DTDs) that MacPorts ships.
+
+It should be possible to freely uninstall, reinstall, and
+upgrade the various versions of the docbook-xml DTDs without
+affecting the docbook-xml port.
+
+When MacPorts ships new versions of the docbook-xml DTDs, this
+port will be updated so that the new DTD is installed on your
+system when you upgrade outdated ports. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070602/be891622/attachment.html


More information about the macports-changes mailing list