New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80922


Ignore:
Timestamp:
07/20/11 19:32:29 (4 years ago)
Author:
dports@…
Message:

texlive portgroup: changes to installing symlinks for generated formats:

  • require formats to be listed in texlive.binaries for links to be created; some formats (e.g. cont-en) should not be invoked directly
  • when checking whether a binary with the same name as the format exists in ${texlive_bindir}, consider a broken symlink as existing (because we might be installing the target of that symlink too, as with mptopdf)

Update texlive ports that install formats to list any formats they
want symlinked in texlive.binaries.

Location:
users/dports/ports
Files:
11 edited

Legend:

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

    r80556 r80922  
    211211        } 
    212212 
    213         # create symlinks for any binaries activated by the port 
    214         foreach bin ${texlive.binaries} { 
    215             ln -s ${texlive_bindir}/$bin ${destroot}${prefix}/bin 
    216             ln -s ${texlive_bindir}/$bin ${destroot}${texlive_mactex_texbindir} 
    217         } 
    218  
    219213        # install a documentation file containing the list of TeX 
    220214        # packages installed. This also ensures that each port 
     
    257251 
    258252                # Simulate texlinks 
    259                 if {![file exists ${destroot}${prefix}/bin/$fmtname]} { 
     253                if {$fmtname in ${texlive.binaries}} { 
    260254                    # Decide what to link. Use the specified engine 
    261255                    # unless a binary with the same name as the 
    262                     # program exists (this can happen for metafont; 
     256                    # format exists (this can happen for metafont; 
    263257                    # see #28890) 
    264                     if {[file exists ${texlive_bindir}/$fmtname]} { 
     258                    # 
     259                    # It's OK if the binary named $fmtname is a broken 
     260                    # symlink, since we might be installing whatever 
     261                    # it's pointing to, hence the use of 'file lstat'. 
     262                    if {![catch {file lstat ${texlive_bindir}/$fmtname ignore}]} { 
    265263                        set linksource ${texlive_bindir}/$fmtname 
    266264                    } else { 
     
    272270                    ln -s $linksource \ 
    273271                        ${destroot}${texlive_mactex_texbindir}/$fmtname 
     272 
     273                    # We've created the symlink for $fmtname; remove 
     274                    # it from texlive.binaries so we don't try to do 
     275                    # so again later. 
     276                    texlive.binaries-delete $fmtname 
    274277                } 
    275278            } 
     
    317320            close $langdatfile 
    318321            close $langdeffile 
     322        } 
     323 
     324        # create symlinks for any binaries activated by the port 
     325        foreach bin ${texlive.binaries} { 
     326            ln -s ${texlive_bindir}/$bin ${destroot}${prefix}/bin 
     327            ln -s ${texlive_bindir}/$bin ${destroot}${texlive_mactex_texbindir} 
    319328        } 
    320329    } 
  • users/dports/ports/tex/texlive-basic/Portfile

    r80912 r80922  
    4040    {Map mathpple.map} 
    4141 
    42 texlive.binaries    afm2tfm allcm allec allneeded bibtex dvi2fax dvipdfm dvipdfmx dvipdft dvips dvired ebb extractbb fmtutil fmtutil-sys gftodvi gftopk gftype gsftopk inimf initex kpseaccess kpsepath kpsereadlink kpsestat kpsetool kpsewhere kpsewhich kpsexpand luatex makeindex mf-nowin mft mkindex mkocp mkofm mktexfmt mktexlsr mktexmf mktexpk mktextfm pdftex pktogf pktype simpdftex tcdialog tex texconfig texconfig-dialog texconfig-sys texhash texlinks texlua texluac updmap updmap-sys xdvi 
     42texlive.binaries    afm2tfm allcm allec allneeded bibtex dvi2fax dviluatex dvipdfm dvipdfmx dvipdft dvips dvired ebb etex extractbb fmtutil fmtutil-sys gftodvi gftopk gftype gsftopk inimf initex kpseaccess kpsepath kpsereadlink kpsestat kpsetool kpsewhere kpsewhich kpsexpand luatex makeindex mf mf-nowin mft mkindex mkocp mkofm mktexfmt mktexlsr mktexmf mktexpk mktextfm pdfetex pdftex pktogf pktype simpdftex tcdialog tex texconfig texconfig-dialog texconfig-sys texhash texlinks texlua texluac updmap updmap-sys xdvi 
    4343 
    4444texlive.exclude     texmf/web2c/fmtutil.cnf \ 
  • users/dports/ports/tex/texlive-formats-extra/Portfile

    r80561 r80922  
    2626    {1 texsis pdftex - {-translate-file=cp227.tcx texsis.ini}} 
    2727 
     28texlive.binaries    eplain mllatex mltex texsis 
     29 
    2830depends_lib-append  port:texlive-latex 
    2931 
  • users/dports/ports/tex/texlive-htmlxml/Portfile

    r80561 r80922  
    2626    {1 pdfxmltex pdftex language.dat {*pdfxmltex.ini}} 
    2727 
    28 texlive.binaries    ht htcontext htlatex htmex httex httexi htxelatex htxetex mk4ht t4ht tex4ht 
     28texlive.binaries    ht htcontext htlatex htmex httex httexi htxelatex htxetex jadetex mk4ht pdfjadetex pdfxmltex t4ht tex4ht xmltex 
    2929 
    3030texlive.exclude     texmf-dist/scripts/tex4ht/ht.sh \ 
  • users/dports/ports/tex/texlive-lang-cjk/Portfile

    r80561 r80922  
    4343    {Map mrj.map} 
    4444 
    45 texlive.binaries    bg5+latex bg5+pdflatex bg5conv bg5latex bg5pdflatex cef5conv cef5latex cef5pdflatex cefconv ceflatex cefpdflatex cefsconv cefslatex cefspdflatex eptex extconv gbklatex gbkpdflatex hbf2gf makejvf mendex pbibtex pdvitype ppltotf ptex ptftopl sjisconv sjislatex sjispdflatex 
     45texlive.binaries    bg5+latex bg5+pdflatex bg5conv bg5latex bg5pdflatex cef5conv cef5latex cef5pdflatex cefconv ceflatex cefpdflatex cefsconv cefslatex cefspdflatex eptex extconv gbklatex gbkpdflatex hbf2gf makejvf mendex pbibtex pdvitype platex ppltotf ptex ptftopl sjisconv sjislatex sjispdflatex 
    4646 
    4747depends_lib-append port:texlive-latex 
  • users/dports/ports/tex/texlive-lang-czechslovak/Portfile

    r80561 r80922  
    3434    {MixedMap cstext.map} 
    3535 
    36 texlive.binaries    vlna 
     36texlive.binaries    cslatex csplain pdfcslatex pdfcsplain vlna 
    3737 
    3838 
  • users/dports/ports/tex/texlive-lang-polish/Portfile

    r80561 r80922  
    3333    {MixedMap pltext.map} 
    3434 
     35texlive.binaries    mex pdfmex utf8mex 
     36 
    3537 
    3638texlive.texmfport 
  • users/dports/ports/tex/texlive-latex/Portfile

    r80561 r80922  
    3333    {Map utopia.map} 
    3434 
     35texlive.binaries    dvilualatex latex lualatex mptopdf pdflatex 
     36 
    3537pre-activate { 
    3638    # Deactivate texlive-context to avoid conflicts on mft from the 
  • users/dports/ports/tex/texlive-math-extra/Portfile

    r80561 r80922  
    2727    {MixedMap yhmath.map} 
    2828 
     29texlive.binaries    amstex 
     30 
    2931pre-activate { 
    3032    # binomexp moved from texlive-latex-extra to texlive-math-extra in TL2010 
  • users/dports/ports/tex/texlive-omega/Portfile

    r80561 r80922  
    2727    {Map omega.map} 
    2828 
    29 texlive.binaries    aleph odvicopy odvitype ofm2opl omfonts opl2ofm otangle otp2ocp outocp ovf2ovp ovp2ovf 
     29texlive.binaries    aleph lamed odvicopy odvitype ofm2opl omfonts opl2ofm otangle otp2ocp outocp ovf2ovp ovp2ovf 
    3030 
    3131 
  • users/dports/ports/tex/texlive-xetex/Portfile

    r80563 r80922  
    2424    {1 xelatex xetex language.dat {-etex xelatex.ini}} 
    2525 
    26 texlive.binaries    T1Wrap teckit_compile xdv2pdf xdvipdfmx xetex 
     26texlive.binaries    T1Wrap teckit_compile xdv2pdf xdvipdfmx xelatex xetex 
    2727 
    2828depends_lib-append  port:texlive-latex-recommended \ 
Note: See TracChangeset for help on using the changeset viewer.