Ignore:
Timestamp:
Jun 29, 2010, 2:08:31 AM (9 years ago)
Author:
dports@…
Message:

texlive portgroup: speed installation by only generating format files
for formats that are actually being installed

File:
1 edited

Legend:

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

    r69215 r69218  
    264264    post-activate {
    265265        system "${prefix}/bin/mktexlsr"
    266         if {${texlive.forceupdatecnf} || ${texlive.languages} != ""} {
     266        if {${texlive.forceupdatecnf}} {
     267            # If force was specified, update all the config files, and
     268            # regenerate all maps and formats.
    267269            system "${prefix}/libexec/texlive-update-cnf language.dat"
    268270            system "${prefix}/libexec/texlive-update-cnf language.def"
    269         }
    270         if {${texlive.forceupdatecnf} || ${texlive.maps} != ""} {
    271271            system "${prefix}/libexec/texlive-update-cnf updmap.cfg"
     272            system "${prefix}/libexec/texlive-update-cnf fmtutil.cnf"
    272273            system "${prefix}/bin/updmap-sys"
    273         }
    274         if {${texlive.forceupdatecnf} || ${texlive.formats} != ""} {
    275             system "${prefix}/libexec/texlive-update-cnf fmtutil.cnf"
    276274            system "${prefix}/bin/fmtutil-sys --all"
     275        } else {
     276            # Otherwise, only update the config files that are
     277            # actually affected, and only generate the formats that
     278            # are being installed.
     279            if {${texlive.languages} != ""} {
     280                system "${prefix}/libexec/texlive-update-cnf language.dat"
     281                system "${prefix}/libexec/texlive-update-cnf language.def"
     282            }
     283            if {${texlive.maps} != ""} {
     284                system "${prefix}/libexec/texlive-update-cnf updmap.cfg"
     285                system "${prefix}/bin/updmap-sys"
     286            }
     287            if {${texlive.formats} != ""} {
     288                system "${prefix}/libexec/texlive-update-cnf fmtutil.cnf"
     289                foreach x ${texlive.formats} {
     290                    set fmtname [lindex $x 1]
     291                    system "${prefix}/bin/fmtutil-sys --byfmt $fmtname"
     292                }
     293            }
    277294        }
    278295    }
Note: See TracChangeset for help on using the changeset viewer.