Ticket #55106: dblatex-0.3.10-latex.diff
File dblatex-0.3.10-latex.diff, 2.7 KB (added by nortcele, 7 years ago) |
---|
-
Portfile
old new 35 35 36 36 use_bzip2 yes 37 37 38 depends_lib port:texlive-latex-extra \ 39 port:texlive-latex-recommended \ 40 port:texlive-math-science \ 38 depends_lib \ 39 bin:kpsewhich:texlive-basic \ 40 bin:mktexlsr:texlive-basic \ 41 bin:mtxrun:texlive-context \ 41 42 port:dejavu-fonts \ 42 43 port:ImageMagick \ 43 44 port:docbook-xml \ … … 62 63 ln -s ${python.prefix}/share/$f ${destroot}${prefix}/share/$f 63 64 } 64 65 } 65 file mkdir ${destroot}${texlive_texmflocal}/tex/latex/dblatex 66 if {[variant_isset latex]} { 67 set tl_texmflocal ${destroot}${texlive_texmflocal} 68 } else { 69 set tl_texmflocal [exec kpsewhich -var-value TEXMFLOCAL] 70 } 71 set tl_texmflocal_dblatex "${tl_texmflocal}/tex/latex/dblatex" 72 file mkdir ${tl_texmflocal_dblatex} 66 73 fs-traverse f ${destroot}${python.prefix}/share/dblatex/latex { 67 74 if {[file isfile $f]} { 68 75 if {[catch {exec ${prefix}/bin/kpsewhich -a [file tail $f]} result]} { 69 76 set f [string range $f [string length ${destroot}${python.prefix}/share/dblatex/latex/] end] 70 file mkdir [file dirname ${ destroot}${texlive_texmflocal}/tex/latex/dblatex/$f]71 ln -s ${python.prefix}/share/dblatex/latex/$f ${ destroot}${texlive_texmflocal}/tex/latex/dblatex/$f77 file mkdir [file dirname ${tl_texmflocal_dblatex}/$f] 78 ln -s ${python.prefix}/share/dblatex/latex/$f ${tl_texmflocal_dblatex}/$f 72 79 } 73 80 } 74 81 } 75 82 ln -s ${python.prefix}/bin/dblatex ${destroot}${prefix}/bin/ 76 83 } 77 84 85 proc dblatex.mktexlsr {} { 86 system "mktexlsr" 87 if {![variant_isset latex]} { 88 system "mtxrun --generate" 89 } 90 } 91 78 92 post-activate { 79 texlive.mktexlsr93 dblatex.mktexlsr 80 94 } 81 95 82 96 post-deactivate { 83 texlive.mktexlsr 97 if {![variant_isset latex]} { 98 set tl_texmflocal [exec kpsewhich -var-value TEXMFLOCAL] 99 set tl_texmflocal_dblatex "${tl_texmflocal}/tex/latex/dblatex" 100 if {[file isdirectory ${tl_texmflocal_dblatex}]} { 101 file rmdir ${tl_texmflocal_dblatex} 102 } 103 } 104 dblatex.mktexlsr 84 105 } 85 106 86 107 livecheck.regex /${name}-(\[0-9.\]+)/ 108 109 variant latex description {Use Macports LaTeX} { 110 depends_lib-append \ 111 port:texlive-latex-extra \ 112 port:texlive-latex-recommended \ 113 port:texlive-math-science 114 } 115 116 default_variants +latex