Ignore:
Timestamp:
Apr 1, 2011, 12:36:31 AM (9 years ago)
Author:
dports@…
Message:

texlive portgroup: when installing links after format generation, if
texlive-bin provides a binary with the same name as the format, use
that instead of the engine that generated the format

Revbump texlive-basic, the only port that should be affected by this
change

Fixes #28890: no X support for metafont because mf is incorrectly
symlinked to mf-nowin

File:
1 edited

Legend:

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

    r75187 r77477  
    257257
    258258                # Simulate texlinks
    259                 if {($fmtengine != $fmtname) &&
    260                     ![file exists ${destroot}${prefix}/bin/$fmtname]} {
    261                     ln -s ${prefix}/bin/$fmtengine \
     259                if {![file exists ${destroot}${prefix}/bin/$fmtname]} {
     260                    # Decide what to link. Use the specified engine
     261                    # unless a binary with the same name as the
     262                    # program exists (this can happen for metafont;
     263                    # see #28890)
     264                    if {[file exists ${texlive_bindir}/$fmtname]} {
     265                        set linksource ${texlive_bindir}/$fmtname
     266                    } else {
     267                        set linksource ${prefix}/bin/$fmtengine
     268                    }
     269                   
     270                    ln -s $linksource \
    262271                        ${destroot}${prefix}/bin/$fmtname
    263                     ln -s ${prefix}/bin/$fmtengine \
     272                    ln -s $linksource \
    264273                        ${destroot}${texlive_mactex_texbindir}/$fmtname
    265274                }
Note: See TracChangeset for help on using the changeset viewer.