[119130] trunk/dports/textproc/iso8879/Portfile
pixilla at macports.org
pixilla at macports.org
Thu Apr 17 15:39:43 PDT 2014
Revision: 119130
https://trac.macports.org/changeset/119130
Author: pixilla at macports.org
Date: 2014-04-17 15:39:43 -0700 (Thu, 17 Apr 2014)
Log Message:
-----------
textproc/iso8879:
- Use new PortGroup xmlcatalog.
Modified Paths:
--------------
trunk/dports/textproc/iso8879/Portfile
Modified: trunk/dports/textproc/iso8879/Portfile
===================================================================
--- trunk/dports/textproc/iso8879/Portfile 2014-04-17 22:39:20 UTC (rev 119129)
+++ trunk/dports/textproc/iso8879/Portfile 2014-04-17 22:39:43 UTC (rev 119130)
@@ -1,66 +1,37 @@
# $Id$
+# -*- 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
-PortSystem 1.0
-name iso8879
-version 1986
-revision 1
-categories textproc
-license Permissive
-maintainers nomaintainer
-description Character entity sets from ISO 8879:1986 (SGML)
-platforms darwin
+PortSystem 1.0
+PortGroup xmlcatalog 1.0
+name iso8879
+version 1986
+revision 2
+categories textproc
+license Permissive
+maintainers nomaintainer
+description Character entity sets from ISO 8879:1986 (SGML)
+platforms darwin
+
long_description $description
-master_sites freebsd
+master_sites freebsd
-distname isoENTS
-checksums md5 c8a9561212c1a2ec6e48919640de9c67
+distname isoENTS
+checksums md5 c8a9561212c1a2ec6e48919640de9c67
-use_zip yes
+use_zip yes
-depends_run port:xmlcatmgr
+use_configure no
+build {}
-use_configure no
-build {}
+set install_dir ${prefix}/share/sgml/${name}
+sgml.catalog "${install_dir}/catalog"
-set install_dir ${prefix}/share/sgml/${name}
+destroot.args prefix=${destroot}${prefix}
-# 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}"
-
-destroot {
- xinstall -m 755 -d ${destroot}${install_dir}
- xinstall -m 644 ${portpath}/${filesdir}/catalog ${destroot}${install_dir}
- eval xinstall -m 644 [glob ${workpath}/ISO*] ${destroot}${install_dir}
+destroot {
+ xinstall -m 755 -d ${destroot}${install_dir}
+ xinstall -m 644 ${portpath}/${filesdir}/catalog ${destroot}${install_dir}
+ eval xinstall -m 644 [glob ${workpath}/ISO*] ${destroot}${install_dir}
}
-
-destroot.args prefix=${destroot}${prefix}
-
-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/20140417/d2f4e3d3/attachment.html>
More information about the macports-changes
mailing list