[119781] trunk/dports/textproc/docbook-dsssl/Portfile

pixilla at macports.org pixilla at macports.org
Tue May 6 12:42:14 PDT 2014


Revision: 119781
          https://trac.macports.org/changeset/119781
Author:   pixilla at macports.org
Date:     2014-05-06 12:42:13 -0700 (Tue, 06 May 2014)
Log Message:
-----------
textproc/docbook-dsssl:
- Maintainer timeout.
- Use new xmlcatalog port group. Closes #43385

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

Modified: trunk/dports/textproc/docbook-dsssl/Portfile
===================================================================
--- trunk/dports/textproc/docbook-dsssl/Portfile	2014-05-06 19:17:39 UTC (rev 119780)
+++ trunk/dports/textproc/docbook-dsssl/Portfile	2014-05-06 19:42:13 UTC (rev 119781)
@@ -1,74 +1,48 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
-PortSystem 1.0
 
-name 		docbook-dsssl
-version		1.79
-revision	1
-categories	textproc
-license		MIT
-description	the docbook dsssl stylesheets
-platforms	darwin
-depends_run	port:xmlcatmgr
+PortSystem      1.0
+PortGroup       xmlcatalog 1.0
+
+name            docbook-dsssl
+version         1.79
+revision        3
+categories      textproc
+license         MIT
+description     The docbook DSSSL stylesheets
+platforms       darwin
 maintainers     decibel.org:decibel
 supported_archs noarch
-master_sites	sourceforge:docbook
-homepage	http://docbook.sf.net/
-checksums	md5 8459913bbd8a5724a6fe4b9ed5bab5af
-use_configure 	no
-build		{}
+master_sites    sourceforge:docbook
+homepage        http://docbook.sf.net/
+checksums       md5 8459913bbd8a5724a6fe4b9ed5bab5af
+use_configure   no
 
-set things_to_install	"common contrib dtds frames html images lib olink print catalog VERSION"
-set install_dir		${prefix}/share/dsssl/${name}
+set things_to_install "common contrib dtds frames html images lib olink print catalog VERSION"
 
-# xmlcatmgr as installed by MacPorts defaults to using
-# ${prefix}/etc/sgml/catalog (for XML) and ${prefix}/etc/sgml/catalog (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.sgml ${prefix}/etc/sgml/catalog
-set xmlcatmgr.args "-s -c ${catalog.sgml}"
+set install_dir ${prefix}/share/dsssl/${name}
+sgml.catalog "${install_dir}/catalog"
 
-destroot	{
+build {}
+
+destroot {
     # Docs
-	xinstall -m 755 -d ${destroot}${install_dir} \
-		${destroot}${prefix}/share/doc/${name} \
-		${destroot}${prefix}/share/${name}
+    xinstall -m 755 -d ${destroot}${install_dir} \
+        ${destroot}${prefix}/share/doc/${name} \
+        ${destroot}${prefix}/share/${name}
     
     # bin
-	xinstall -m 755 -W ${worksrcpath} bin/collateindex.pl \
-		${destroot}${prefix}/bin
+    xinstall -m 755 -W ${worksrcpath} bin/collateindex.pl \
+        ${destroot}${prefix}/bin
     # man
-	xinstall -m 644 -W ${worksrcpath} bin/collateindex.pl.1 \
-		${destroot}${prefix}/share/man/man1
+    xinstall -m 644 -W ${worksrcpath} bin/collateindex.pl.1 \
+        ${destroot}${prefix}/share/man/man1
 
     # everything else
-	xinstall -m 644 -W ${worksrcpath} BUGS ChangeLog README \
-		RELEASE-NOTES.html RELEASE-NOTES.xml RELEASE-NOTES.txt WhatsNew \
-		${destroot}${prefix}/share/doc/${name}
-	foreach dirname $things_to_install {
-		file copy ${worksrcpath}/${dirname} ${destroot}${install_dir}
-	}
+    xinstall -m 644 -W ${worksrcpath} BUGS ChangeLog README \
+        RELEASE-NOTES.html RELEASE-NOTES.xml RELEASE-NOTES.txt WhatsNew \
+        ${destroot}${prefix}/share/doc/${name}
+    foreach dirname $things_to_install {
+        file copy ${worksrcpath}/${dirname} ${destroot}${install_dir}
+    }
 }
-
-post-activate {
-	# Make the directory if it doesn't exist
-	if {![file exists ${prefix}/etc/sgml]} {
-		xinstall -m 755 -d ${prefix}/etc/sgml
-	}
-
-	# Create the catalog file if it doesn't exist
-	if {![file exists ${catalog.sgml}]} {
-		system "xmlcatmgr ${xmlcatmgr.args} create"
-	}
-
-	# Add the CATALOG entry to the catalog if it doesn't exist
-	if {[catch {exec xmlcatmgr ${xmlcatmgr.args} lookup ${install_dir}/catalog}]} {
-		system "xmlcatmgr ${xmlcatmgr.args} add CATALOG ${install_dir}/catalog"
-	}
-}
-
-# This will remove the catalog entry for this port.
-post-deactivate {
-	# Remove the CATALOG entry from the catalog
-	system "xmlcatmgr ${xmlcatmgr.args} remove CATALOG ${install_dir}/catalog"
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140506/2da4c6e1/attachment.html>


More information about the macports-changes mailing list