Ignore:
Timestamp:
Aug 10, 2011, 1:48:03 AM (8 years ago)
Author:
dports@…
Message:

texlive portgroup: do not run mktexlsr in post-deactivate if
use_mktexlsr is disabled. Add a use_mktexlsr_on_deactivate to allow
disabling mktexlsr only on deactivate.

Set use_mktexlsr_on_deactivate no on texlive-basic. It should run
mktexlsr on activate, but can't on deactivate because it's the port
that installs mktexlsr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/texlive-1.0.tcl

    r82181 r82189  
    147147default texlive.forceupdatecnf no
    148148
    149 # Whether to run mktexlsr after activation. Usually required if
     149# Whether to run mktexlsr after (de)activation. Usually required if
    150150# installing any texmf files.
    151151options texlive.use_mktexlsr
    152152default texlive.use_mktexlsr yes
     153
     154# Running mktexlsr after deactivation can be disabled separately. Note
     155# that the value of this option is ignored if use_mktexlsr is disabled.
     156options texlive.use_mktexlsr_on_deactivate
     157default texlive.use_mktexlsr_on_deactivate yes
    153158
    154159proc texlive.texmfport {} {
     
    463468        # Update ls-R and any config files to reflect that the package
    464469        # is now gone
    465         texlive.mktexlsr
     470        if {${texlive.use_mktexlsr} && ${texlive.use_mktexlsr_on_deactivate}} {
     471            texlive.mktexlsr
     472        }
    466473        if {${texlive.forceupdatecnf} || ${texlive.languages} != ""} {
    467474            system "${prefix}/libexec/texlive-update-cnf language.dat"
Note: See TracChangeset for help on using the changeset viewer.