Changeset 80956
- Timestamp:
- 07/21/11 17:06:34 (4 years ago)
- Location:
- users/dports/ports
- Files:
-
- 3 edited
-
_resources/port1.0/group/texlive-1.0.tcl (modified) (4 diffs)
-
tex/texlive-common/Portfile (modified) (1 diff)
-
tex/texlive-documentation-base/Portfile (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
users/dports/ports/_resources/port1.0/group/texlive-1.0.tcl
r80924 r80956 87 87 set texlive_mactex_texbindir "${prefix}/libexec/texlive/texbin" 88 88 89 # update texmf file path databases (ls-R) 90 # 91 # This should be run in the post-activate/deactivate hooks of any port 92 # that installs texmf files. It updates the kpathsea database using 93 # mktexlsr (formerly texhash), as well as ConTeXt's cache. 94 proc texlive.mktexlsr {} { 95 global prefix 96 97 # Run mktexlsr. If that's not available, something's wrong. 98 system "${prefix}/bin/mktexlsr" 99 100 # If mtxrun is available (i.e. ConTeXt is installed), update its 101 # cache too. If it's not installed, that's OK. 102 if [file exists "${prefix}/bin/mtxrun"] { 103 system "${prefix}/bin/mtxrun --generate" 104 } 105 } 106 89 107 # Remove dependencies on any texlive-documentation-* ports, for use by 90 108 # -doc variants … … 113 131 default texlive.maps {} 114 132 133 # Whether to regenerate all config files, maps, and formats after 134 # activation regardless of whether any new ones are installed. 115 135 options texlive.forceupdatecnf 116 136 default texlive.forceupdatecnf no 137 138 # Whether to run mktexlsr after activation. Usually required if 139 # installing any texmf files. 140 options texlive.use_mktexlsr 141 default texlive.use_mktexlsr yes 117 142 118 143 proc texlive.texmfport {} { … … 360 385 361 386 post-activate { 362 system "${texlive_bindir}/mktexlsr" 387 if {${texlive.use_mktexlsr}} { 388 texlive.mktexlsr 389 } 390 363 391 if {${texlive.forceupdatecnf}} { 364 392 # If force was specified, update all the config files, and … … 406 434 # Update ls-R and any config files to reflect that the package 407 435 # is now gone 408 system "${texlive_bindir}/mktexlsr"436 texlive.mktexlsr 409 437 if {${texlive.forceupdatecnf} || ${texlive.languages} != ""} { 410 438 system "${prefix}/libexec/texlive-update-cnf language.dat" -
users/dports/ports/tex/texlive-common/Portfile
r80925 r80956 147 147 # installation) 148 148 if [file exists ${prefix}/bin/mktexlsr] { 149 system "${prefix}/bin/mktexlsr"149 texlive.mktexlsr 150 150 } 151 151 } -
users/dports/ports/tex/texlive-documentation-base/Portfile
r80561 r80956 18 18 rmd160 c51afcda5cabe1e3f6b2accc967d9277d0748fd5 19 19 20 # This port is installed prior to texlive-basic, so mktexlsr is not 21 # available yet. Do not try to run it in post-activate. 22 texlive.use_mktexlsr no 20 23 21 24 texlive.texmfport
Note: See TracChangeset
for help on using the changeset viewer.

