[75752] trunk/dports/gnome/libglade2/Portfile

jmr at macports.org jmr at macports.org
Mon Feb 7 02:57:25 PST 2011


Revision: 75752
          http://trac.macports.org/changeset/75752
Author:   jmr at macports.org
Date:     2011-02-07 02:57:21 -0800 (Mon, 07 Feb 2011)
Log Message:
-----------
libglade2: add code/notes for removing xml catalog entry when uninstalling

Modified Paths:
--------------
    trunk/dports/gnome/libglade2/Portfile

Modified: trunk/dports/gnome/libglade2/Portfile
===================================================================
--- trunk/dports/gnome/libglade2/Portfile	2011-02-07 02:55:42 UTC (rev 75751)
+++ trunk/dports/gnome/libglade2/Portfile	2011-02-07 10:57:21 UTC (rev 75752)
@@ -57,6 +57,16 @@
 post-activate {
     system "xmlcatalog --create --noout --add system http://glade.gnome.org/glade-2.0.dtd ${prefix}/share/xml/libglade/glade-2.0.dtd ${prefix}/etc/xml/catalog"
 }
+pre-deactivate {
+    system "xmlcatalog --noout --del http://glade.gnome.org/glade-2.0.dtd ${prefix}/etc/xml/catalog"
+}
+if {${registry.format} == "receipt_flat"} {
+    notes \
+"As the flat registry format does not support post-deactivate hooks,
+you will need to ensure that you manually remove the catalog
+entry for this port when you uninstall it.  To do so, run
+\"xmlcatalog --noout --del http://glade.gnome.org/glade-2.0.dtd ${prefix}/etc/xml/catalog\"."
+}
 
 livecheck.type  regex
 livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110207/2d0f9675/attachment.html>


More information about the macports-changes mailing list