Changeset 68927


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

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

Location:
trunk/dports
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/docbook-xml-4.1.2/Portfile

    r66092 r68927  
    7070        system "xmlcatmgr add nextCatalog ${install_dir}/catalog.xml"
    7171    }
    72 
    73     # Once MacPorts does get a post-deactivate hook, this should change to
    74     # auto-detect whether or not the user's installed version has the hook, and
    75     # only print the message if it doesn't.
    76     ui_msg \
    77     "######################################################################"
    78     ui_msg "# As MacPorts does not currently have a post-deactivate hook,\
    79         \n# you will need to ensure that you manually remove the catalog\
    80         \n# entry for this port when you uninstall it.  To do so, run\
    81         \n# \"xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml\"."
    82     ui_msg \
    83     "######################################################################"
    8472}
    8573
    86 # This will remove the catalog entry for this port once a post-deactivate hook
    87 # has been implemented.
    88 #post-deactivate {
    89 #    system "xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml"
    90 #}
     74if {${registry.format} == "receipt_flat"} {
     75    notes \
     76"######################################################################
     77# As the flat registry format does not support post-deactivate hooks,
     78# you will need to ensure that you manually remove the catalog
     79# entry for this port when you uninstall it.  To do so, run
     80# \"xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml\".
     81######################################################################"
     82}
     83
     84# This will remove the catalog entry for this port.
     85post-deactivate {
     86    system "xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml"
     87}
    9188
    9289livecheck.type  none
    93 
  • trunk/dports/textproc/docbook-xml-4.2/Portfile

    r66092 r68927  
    6767        system "xmlcatmgr add nextCatalog ${install_dir}/catalog.xml"
    6868    }
    69 
    70     # Once MacPorts does get a post-deactivate hook, this should change to
    71     # auto-detect whether or not the user's installed version has the hook, and
    72     # only print the message if it doesn't.
    73     ui_msg \
    74     "######################################################################"
    75     ui_msg "# As MacPorts does not currently have a post-deactivate hook,\
    76         \n# you will need to ensure that you manually remove the catalog\
    77         \n# entry for this port when you uninstall it.  To do so, run\
    78         \n# \"xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml\"."
    79     ui_msg \
    80     "######################################################################"
    8169}
    8270
    83 # This will remove the catalog entry for this port once a post-deactivate hook
    84 # has been implemented.
    85 #post-deactivate {
    86 #    system "xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml"
    87 #}
     71if {${registry.format} == "receipt_flat"} {
     72    notes \
     73"######################################################################
     74# As the flat registry format does not support post-deactivate hooks,
     75# you will need to ensure that you manually remove the catalog
     76# entry for this port when you uninstall it.  To do so, run
     77# \"xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml\".
     78######################################################################"
     79}
     80
     81# This will remove the catalog entry for this port.
     82post-deactivate {
     83    system "xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml"
     84}
    8885
    8986livecheck.type  none
    90 
  • trunk/dports/textproc/docbook-xml-4.3/Portfile

    r66092 r68927  
    6767        system "xmlcatmgr add nextCatalog ${install_dir}/catalog.xml"
    6868    }
    69 
    70     # Once MacPorts does get a post-deactivate hook, this should change to
    71     # auto-detect whether or not the user's installed version has the hook, and
    72     # only print the message if it doesn't.
    73     ui_msg \
    74     "######################################################################"
    75     ui_msg "# As MacPorts does not currently have a post-deactivate hook,\
    76         \n# you will need to ensure that you manually remove the catalog\
    77         \n# entry for this port when you uninstall it.  To do so, run\
    78         \n# \"xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml\"."
    79     ui_msg \
    80     "######################################################################"
    8169}
    8270
    83 # This will remove the catalog entry for this port once a post-deactivate hook
    84 # has been implemented.
    85 #post-deactivate {
    86 #    system "xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml"
    87 #}
     71if {${registry.format} == "receipt_flat"} {
     72    notes \
     73"######################################################################
     74# As the flat registry format does not support post-deactivate hooks,
     75# you will need to ensure that you manually remove the catalog
     76# entry for this port when you uninstall it.  To do so, run
     77# \"xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml\".
     78######################################################################"
     79}
     80
     81# This will remove the catalog entry for this port.
     82post-deactivate {
     83    system "xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml"
     84}
    8885
    8986livecheck.type  none
    90 
  • trunk/dports/textproc/docbook-xml-4.4/Portfile

    r66092 r68927  
    6767        system "xmlcatmgr add nextCatalog ${install_dir}/catalog.xml"
    6868    }
    69 
    70     # Once MacPorts does get a post-deactivate hook, this should change to
    71     # auto-detect whether or not the user's installed version has the hook, and
    72     # only print the message if it doesn't.
    73     ui_msg \
    74     "######################################################################"
    75     ui_msg "# As MacPorts does not currently have a post-deactivate hook,\
    76         \n# you will need to ensure that you manually remove the catalog\
    77         \n# entry for this port when you uninstall it.  To do so, run\
    78         \n# \"xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml\"."
    79     ui_msg \
    80     "######################################################################"
    8169}
    8270
    83 # This will remove the catalog entry for this port once a post-deactivate hook
    84 # has been implemented.
    85 #post-deactivate {
    86 #    system "xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml"
    87 #}
     71if {${registry.format} == "receipt_flat"} {
     72    notes \
     73"######################################################################
     74# As the flat registry format does not support post-deactivate hooks,
     75# you will need to ensure that you manually remove the catalog
     76# entry for this port when you uninstall it.  To do so, run
     77# \"xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml\".
     78######################################################################"
     79}
     80
     81# This will remove the catalog entry for this port.
     82post-deactivate {
     83    system "xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml"
     84}
    8885
    8986livecheck.type  none
    90 
  • trunk/dports/textproc/docbook-xml-4.5/Portfile

    r66092 r68927  
    6767        system "xmlcatmgr add nextCatalog ${install_dir}/catalog.xml"
    6868    }
    69 
    70     # Once MacPorts does get a post-deactivate hook, this should change to
    71     # auto-detect whether or not the user's installed version has the hook, and
    72     # only print the message if it doesn't.
    73     ui_msg \
    74     "######################################################################"
    75     ui_msg "# As MacPorts does not currently have a post-deactivate hook,\
    76         \n# you will need to ensure that you manually remove the catalog\
    77         \n# entry for this port when you uninstall it.  To do so, run\
    78         \n# \"xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml\"."
    79     ui_msg \
    80     "######################################################################"
    8169}
    8270
    83 # This will remove the catalog entry for this port once a post-deactivate hook
    84 # has been implemented.
    85 #post-deactivate {
    86 #    system "xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml"
    87 #}
     71if {${registry.format} == "receipt_flat"} {
     72    notes \
     73"######################################################################
     74# As the flat registry format does not support post-deactivate hooks,
     75# you will need to ensure that you manually remove the catalog
     76# entry for this port when you uninstall it.  To do so, run
     77# \"xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml\".
     78######################################################################"
     79}
     80
     81# This will remove the catalog entry for this port.
     82post-deactivate {
     83    system "xmlcatmgr remove nextCatalog ${install_dir}/catalog.xml"
     84}
    8885
    8986livecheck.type  none
    90 
  • trunk/dports/textproc/docbook-xml-5.0/Portfile

    r66092 r68927  
    4848}
    4949
     50if {${registry.format} == "receipt_flat"} {
     51    notes \
     52"######################################################################
     53# As the flat registry format does not support post-deactivate hooks,
     54# you will need to ensure that you manually remove the catalog
     55# entry for this port when you uninstall it.  To do so, run
     56# \"xmlcatmgr remove nextCatalog ${bookdir}/catalog.xml\".
     57######################################################################"
     58}
     59
     60# This will remove the catalog entry for this port.
     61post-deactivate {
     62    system "xmlcatmgr remove nextCatalog ${bookdir}/catalog.xml"
     63}
     64
    5065livecheck.type  none
  • trunk/dports/textproc/docbook-xsl/Portfile

    r66093 r68927  
    7373        system "xmlcatmgr add nextCatalog ${prefix}/${instxsldir}/catalog.xml"
    7474    }
    75 
    76     # Once MacPorts does get a post-deactivate hook, this should change to
    77     # auto-detect whether or not the user's installed version has the hook, and
    78     # only print the message if it doesn't.
    79     ui_msg \
    80     "######################################################################"
    81     ui_msg "# As MacPorts does not currently have a post-deactivate hook,\
    82         \n# you will need to ensure that you manually remove the catalog\
    83         \n# entry for this port when you uninstall it.  To do so, run\
    84         \n# \"xmlcatmgr remove nextCatalog ${prefix}/${instxsldir}/catalog.xml\"."
    85     ui_msg \
    86     "######################################################################"
    8775}
    8876
    89 # This will remove the catalog entry for this port once a post-deactivate hook
    90 # has been implemented.
    91 #post-deactivate {
    92 #    system "xmlcatmgr remove nextCatalog ${prefix}/${instdir}/catalog.xml"
    93 #}
     77if {${registry.format} == "receipt_flat"} {
     78    notes \
     79"######################################################################
     80# As the flat registry format does not support post-deactivate hooks,
     81# you will need to ensure that you manually remove the catalog
     82# entry for this port when you uninstall it.  To do so, run
     83# \"xmlcatmgr remove nextCatalog ${prefix}/${instxsldir}/catalog.xml\".
     84######################################################################"
     85}
     86
     87# This will remove the catalog entry for this port.
     88post-deactivate {
     89    system "xmlcatmgr remove nextCatalog ${prefix}/${instxsldir}/catalog.xml"
     90}
    9491
    9592variant doc description {Install full DocBook XSL documentation} {
     
    9996
    10097livecheck.distname  ${name}
    101 
  • 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}
  • trunk/dports/x11/font-misc-ethiopic/Portfile

    r59685 r68927  
    4444}
    4545
    46 # This should be done when uninstalling, but deactivate doesn't currently work
    47 #post-deactivate {
    48 #   foreach fontType {OTF TTF} {
    49 #      system "mkfontscale ${myfontbasedir}/${fontType}"
    50 #      system "mkfontdir ${myfontbasedir}/${fontType}"
    51 #   }
    52 #}
     46post-deactivate {
     47   foreach fontType {OTF TTF} {
     48      system "mkfontscale ${myfontbasedir}/${fontType}"
     49      system "mkfontdir ${myfontbasedir}/${fontType}"
     50   }
     51}
    5352
    5453livecheck.type      regex
    5554livecheck.regex     ${name}-(\[\\d.\]+)${extract.suffix}
    5655livecheck.url       ${master_sites}
    57 
  • trunk/dports/x11/monafont/Portfile

    r56061 r68927  
    3535}
    3636
    37 # This should be done when uninstalling, but deactivate doesn't currently work
    38 #post-deactivate {
    39 #   system "mkfontscale ${myfontdir}"
    40 #   system "mkfontdir ${myfontdir}"
    41 #}
    42 
     37post-deactivate {
     38   system "mkfontscale ${myfontdir}"
     39   system "mkfontdir ${myfontdir}"
     40}
  • trunk/dports/x11/mplus-fonts/Portfile

    r56061 r68927  
    5454}
    5555
    56 # This should be done when uninstalling, but deactivate doesn't currently work
    57 #post-deactivate {
    58 #   system "mkfontscale ${prefix}${fontsdir}/mplus"
    59 #   system "mkfontdir ${prefix}${fontsdir}/mplus"
    60 #}
     56post-deactivate {
     57   system "mkfontscale ${prefix}${fontsdir}/mplus"
     58   system "mkfontdir ${prefix}${fontsdir}/mplus"
     59}
Note: See TracChangeset for help on using the changeset viewer.