Revision: 75752 http://trac.macports.org/changeset/75752 Author: jmr@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}/
participants (1)
-
jmr@macports.org