New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80534


Ignore:
Timestamp:
07/14/11 03:12:28 (4 years ago)
Author:
dports@…
Message:

texlive-bin: fix the default search paths for kpathsea so that it's
able to find texmf.cnf.

Specifically, patch the kpathsea makefile to not try to derive the
default paths from texmf.cnf, and just provide our own paths.h with
the right path substituted in.

Location:
users/dports/ports/tex/texlive-bin
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • users/dports/ports/tex/texlive-bin/Portfile

    r80515 r80534  
    5252                patch-libs_icu_icu-4.6_configure.diff \ 
    5353                patch-libs_icu_icu-4.6_tools_icuinfo_Makefile.in.diff \ 
     54                patch-texk_kpathsea_Makefile.in.diff \ 
    5455                patch-texk_ptexenc_Makefile.in.diff \ 
    5556                patch-texk_tetex_Makefile.in.diff \ 
     
    6869    reinplace "s|@@TEXMFMAIN@@|${texlive_texmfmain}|" ${worksrcpath}/utils/chktex/Makefile.in 
    6970 
    70     # Link our texmf.cnf in so that the proper paths are compiled into kpathsea 
     71    # Defaults for the texmf search paths need to be compiled into 
     72    # libkpathsea -- really, just the location of texmf.cnf, which 
     73    # defines all the other paths. texlive normally finds this file 
     74    # using a bindir-relative path extracted from texmf.cnf, but this 
     75    # is both incorrect (it fails to find our texmf.cnf) and overkill 
     76    # (we know the absolute path of texmf.cnf). 
     77    # 
     78    # Accordingly, we patch the kpathsea makefile to not try to derive 
     79    # the default paths from texmf.cnf, and just provide our own 
     80    # paths.h with the right path substituted in. 
    7181    delete ${worksrcpath}/texk/kpathsea/texmf.cnf 
    72     ln -s ${texlive_texmfsysconfig}/texmf.cnf ${worksrcpath}/texk/kpathsea/texmf.cnf 
     82    file copy ${filespath}/texk_kpathsea_paths.h ${worksrcpath}/texk/kpathsea/paths.h 
     83    reinplace "s|@@TEXMFSYSCONFIG@@|${texlive_texmfsysconfig}|" ${worksrcpath}/texk/kpathsea/paths.h 
    7384 
    7485    if {![variant_isset atsui]} { 
Note: See TracChangeset for help on using the changeset viewer.