Ignore:
Timestamp:
Jun 18, 2010, 2:36:47 AM (10 years ago)
Author:
jmr@…
Message:

docbook-xml-*, docbook-xsl, xmlroff, font-misc-ethiopic, monafont, mplus-fonts: enable post-deactivate hooks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/xmlroff/Portfile

    r41808 r68927  
    5757        system "xmlcatmgr add nextCatalog ${libfocatalog}"
    5858    }
    59     # Once MacPorts does get a post-deactivate hook, this should change to
    60     # auto-detect whether or not the user's installed version has the hook, and
    61     # only print the message if it doesn't.
    62     ui_msg \
    63     "######################################################################"
    64     ui_msg "# As MacPorts does not currently have a post-deactivate hook,\
    65         \n# you will need to ensure that you manually remove the catalog\
    66         \n# entry for this port when you uninstall it.  To do so, run\
    67         \n# \"xmlcatmgr remove nextCatalog ${libfocatalog}\"."
    68     ui_msg \
    69     "######################################################################"
    7059}
    7160
    72 # This will remove the catalog entry for this port once a post-deactivate hook
    73 # has been implemented.
    74 #post-deactivate {
    75 #    system "xmlcatmgr remove nextCatalog ${libfocatalog}"
    76 #}
     61if {${registry.format} == "receipt_flat"} {
     62    notes \
     63"######################################################################
     64# As the flat registry format does not support post-deactivate hooks,
     65# you will need to ensure that you manually remove the catalog
     66# entry for this port when you uninstall it.  To do so, run
     67# \"xmlcatmgr remove nextCatalog ${libfocatalog}\".
     68######################################################################"
     69}
    7770
     71# This will remove the catalog entry for this port.
     72post-deactivate {
     73    system "xmlcatmgr remove nextCatalog ${libfocatalog}"
     74}
Note: See TracChangeset for help on using the changeset viewer.