Changeset 74946 for trunk/dports/tex


Ignore:
Timestamp:
Jan 9, 2011, 8:37:47 AM (9 years ago)
Author:
dports@…
Message:

texlive-common: delete any conflicting ls-R files in any of the
installed texmf directories; and simplify code that operates on all
texmf directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/tex/texlive-common/Portfile

    r74421 r74946  
    4747build           { }
    4848
     49set texmfdirs [list ${texlive_texmfmain} \
     50                    ${texlive_texmfdist} \
     51                    ${texlive_texmfports} \
     52                    ${texlive_texmflocal} \
     53                    ${texlive_texmfsysvar} \
     54                    ${texlive_texmfsysconfig}]
    4955destroot {
    5056    # Create texmf directories
    51     xinstall -d ${destroot}${texlive_texmfmain}
    52     xinstall -d ${destroot}${texlive_texmfdist}
    53     xinstall -d ${destroot}${texlive_texmfports}
    54     xinstall -d ${destroot}${texlive_texmflocal}
    55     xinstall -d ${destroot}${texlive_texmfsysvar}
    56     xinstall -d ${destroot}${texlive_texmfsysconfig}
     57    foreach texmfdir $texmfdirs {
     58        xinstall -d ${destroot}${texmfdir}
     59    }
    5760
    5861    # Create empty ls-R files so that they're marked as owned by this
    5962    # port. The contents will be generated/updated by mktexlsr.
    60     touch ${destroot}${texlive_texmfmain}/ls-R
    61     touch ${destroot}${texlive_texmfdist}/ls-R
    62     touch ${destroot}${texlive_texmfports}/ls-R
    63     touch ${destroot}${texlive_texmflocal}/ls-R
    64     touch ${destroot}${texlive_texmfsysvar}/ls-R
    65     touch ${destroot}${texlive_texmfsysconfig}/ls-R
     63    foreach texmfdir $texmfdirs {
     64        touch ${destroot}${texmfdir}/ls-R
     65    }
    6666
    6767    # Create fmt/updmap/hyphen files, directories, and install update script
     
    102102pre-activate {
    103103    # Delete ls-R index file if it exists
    104     if [file exists ${texlive_texmfports}/ls-R] {
    105         delete ${texlive_texmfports}/ls-R
     104    foreach texmfdir $texmfdirs {
     105        if [file exists ${texmfdir}/ls-R] {
     106            delete ${texmfdir}/ls-R
     107        }
    106108    }
    107109
Note: See TracChangeset for help on using the changeset viewer.