[119134] trunk/dports/textproc/xmlroff/Portfile
pixilla at macports.org
pixilla at macports.org
Thu Apr 17 15:41:03 PDT 2014
Revision: 119134
https://trac.macports.org/changeset/119134
Author: pixilla at macports.org
Date: 2014-04-17 15:41:03 -0700 (Thu, 17 Apr 2014)
Log Message:
-----------
textproc/xmlroff:
- Use new PortGroup xmlcatalog.
Modified Paths:
--------------
trunk/dports/textproc/xmlroff/Portfile
Modified: trunk/dports/textproc/xmlroff/Portfile
===================================================================
--- trunk/dports/textproc/xmlroff/Portfile 2014-04-17 22:40:46 UTC (rev 119133)
+++ trunk/dports/textproc/xmlroff/Portfile 2014-04-17 22:41:03 UTC (rev 119134)
@@ -2,20 +2,20 @@
# $Id$
PortSystem 1.0
+PortGroup xmlcatalog 1.0
name xmlroff
version 0.6.2
+revision 1
categories textproc
platforms darwin
maintainers nomaintainer
license BSD
-
description An XSL formatter producing PDF and PostScript.
-
-long_description Creates formatted output -- pages containing text in a \
- variety of type styles and sizes -- from an input XML \
- document and an XSL stylesheet.
-
+long_description \
+ Creates formatted output -- pages containing text in a \
+ variety of type styles and sizes -- from an input XML \
+ document and an XSL stylesheet.
homepage http://xmlroff.org/
master_sites ${homepage}download/
@@ -43,33 +43,4 @@
configure.ldflags-append "-framework CoreFoundation"
# Specify catalog to add (catalog for xmlroff's libfo library)
-set libfocatalog ${prefix}/share/xml/libfo-${version}/catalog.xml
-
-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 nextCatalog entry to the catalog if it doesn't exist
- if {[catch {exec xmlcatmgr lookup ${libfocatalog}}]} {
- system "xmlcatmgr add nextCatalog ${libfocatalog}"
- }
-}
-
-# This will remove the catalog entry for this port.
-post-deactivate {
- system "xmlcatmgr remove nextCatalog ${libfocatalog}"
-}
+xml.catalog "${prefix}/share/xml/libfo-${version}/catalog.xml"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140417/2d06584b/attachment.html>
More information about the macports-changes
mailing list