New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82273


Ignore:
Timestamp:
08/11/11 14:29:16 (4 years ago)
Author:
dports@…
Message:

texlive-documentation-*: only try to run mktexlsr if it's there; it
might not since texlive-basic isn't actually a dependency

This is mainly for the benefit of the buildbot, as well as anyone who
enjoys documentation so much that they install only the texlive docs.

File:
1 edited

Legend:

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

    r82189 r82273  
    416416 
    417417    post-activate { 
     418        # Disable mktexlsr if it's not installed and this is a 
     419        # texlive-documentation-* port. It's possible (if unlikely) to 
     420        # install them without texlive-basic, so mktexlsr might not 
     421        # exist, but if it does we do want to run it. 
     422        if {[regexp {^texlive-documentation-} $name] && 
     423            ![file exists ${prefix}/bin/mktexlsr]} { 
     424            texlive.use_mktexlsr no 
     425        } 
     426         
    418427        if {${texlive.use_mktexlsr}} { 
    419428            texlive.mktexlsr 
     
    466475 
    467476    post-deactivate { 
     477        # Disable mktexlsr if it's not installed and this is a 
     478        # texlive-documentation-* port. See post-activate for why. 
     479        if {[regexp {^texlive-documentation-} $name] && 
     480            ![file exists ${prefix}/bin/mktexlsr]} { 
     481            texlive.use_mktexlsr no 
     482        } 
     483 
    468484        # Update ls-R and any config files to reflect that the package 
    469485        # is now gone 
Note: See TracChangeset for help on using the changeset viewer.