[MacPorts] #47115: texlive can't find docbook.sty

MacPorts noreply at macports.org
Thu Mar 12 04:20:26 PDT 2015


#47115: texlive can't find docbook.sty
-------------------------------+--------------------------------
  Reporter:  Joel.Brogniart@…  |      Owner:  macports-tickets@…
      Type:  defect            |     Status:  new
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.3.3
Resolution:                    |   Keywords:
      Port:  dblatex           |
-------------------------------+--------------------------------

Comment (by Joel.Brogniart@…):

 I changed my local version of dblatex to make texlive tools find docbook
 informations. Here are my modifications:

 {{{
 --- Portfile.orig       2015-03-11 15:16:10.000000000 +0100
 +++ Portfile    2015-03-12 11:41:43.000000000 +0100
 @@ -66,6 +66,17 @@
              ln -s ${python.prefix}/share/$f ${destroot}${prefix}/share/$f
          }
      }
 +    file mkdir ${destroot}${prefix}/share/texmf-local/tex/latex/dblatex
 +    fs-traverse f ${destroot}${python.prefix}/share/dblatex/latex {
 +        if {[file isfile $f]} {
 +            set fn [file tail $f]
 +            if {[catch {exec ${prefix}/bin/kpsewhich -a $fn} result]} {
 +                set f [string range $f [string length
 ${destroot}${python.prefix}/share/dblatex/latex/] end]
 +                file mkdir [file dirname ${destroot}${prefix}/share
 /texmf-local/tex/latex/dblatex/$f]
 +                ln -s ${python.prefix}/share/dblatex/latex/$f
 ${destroot}${prefix}/share/texmf-local/tex/latex/dblatex/$f
 +            }
 +        }
 +    }
      ln -s ${python.prefix}/bin/dblatex ${destroot}${prefix}/bin/
  }
 }}}

 My modifications add links to dblatex files in "/opt/local/share/texmf-
 local/tex/latex/dblatex", but only for files that are not allready known
 by texlive (use of kpsewhich) to avoid the replacement of texlive files by
 outdated versions.

 I don't know anything about TCL, dblatex or texlive so I don't know if
 this is a good or valid way to process, but with this modification, I
 could use texlive tools to manage dblatex generated files.

-- 
Ticket URL: <https://trac.macports.org/ticket/47115#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list