Skip to content

Commit

Permalink
dblatex: +mactex variant fix installed style detection
Browse files Browse the repository at this point in the history
dblatex: +mactex variant fix installed style detection

Correct detection of style allready installed in MacTeX.
Close https://trac.macports.org/ticket/56734
  • Loading branch information
Joël Brogniart authored and neverpanic committed May 18, 2020
1 parent 3a8445e commit 264322b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions textproc/dblatex/Portfile
Expand Up @@ -6,7 +6,7 @@ PortGroup texlive 1.0

name dblatex
version 0.3.11
revision 0
revision 1
categories textproc tex
maintainers {cal @neverpanic} openmaintainer
license GPL-2+
Expand Down Expand Up @@ -132,11 +132,14 @@ post-destroot {
}
if {![variant_isset mactex]} {
set dblatex.texmflocal ${texlive_texmflocal}
set dblatex.bin ${prefix}/bin
} else {
set dblatex.bin ${dblatex.mactex_bin}
}
file mkdir ${destroot}${dblatex.texmflocal}/tex/latex/dblatex
fs-traverse f ${destroot}${python.prefix}/share/dblatex/latex {
if {[file isfile $f]} {
if {[catch {exec ${prefix}/bin/kpsewhich -a [file tail $f]} result]} {
if {[catch {exec ${dblatex.bin}/kpsewhich -a [file tail $f]} result]} {
set f [string range $f [string length ${destroot}${python.prefix}/share/dblatex/latex/] end]
file mkdir [file dirname ${destroot}${dblatex.texmflocal}/tex/latex/dblatex/$f]
ln -s ${python.prefix}/share/dblatex/latex/$f ${destroot}${dblatex.texmflocal}/tex/latex/dblatex/$f
Expand Down

0 comments on commit 264322b

Please sign in to comment.