[MacPorts] #32872: gnuplot +tutorial installs texmf files during destroot phase

MacPorts noreply at macports.org
Fri May 4 13:44:13 PDT 2012


#32872: gnuplot +tutorial installs texmf files during destroot phase
---------------------------------+------------------------------------------
 Reporter:  dports@…             |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:                                       
Component:  ports                |     Version:  2.0.3                                
 Keywords:                       |        Port:  gnuplot                              
---------------------------------+------------------------------------------

Comment(by mojca.miklavec.lists@…):

 First of all, removing
 {{{
 destroot.destdir prefix=${destroot}${prefix}
 }}}
 seems to solve the problem of files skipping destroot. But as Dan
 suggested, it might be that we would need to add
 {{{
 # this temporary workaround removes files that accidentally circumvented
 destroot
 # and were installed straight into ${prefix}/share/texmf/tex/latex/gnuplot
 #
 # it may be removed after a while; it is only a problem for those who
 installed
 # with +tutorial
 pre-activate {
     if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot.cfg] {
         delete ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot.cfg
     }
     if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-
 tikz.sty] {
         delete ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-
 tikz.sty
     }

     # only since 4.6.0
     if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-
 tikz.tex] {
         delete ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-
 tikz.tex
     }
     if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-
 tikz-common.tex] {
         delete ${prefix}/share/texmf/tex/latex/gnuplot/gnuplot-lua-tikz-
 common.sty
     }
     if [file exists ${prefix}/share/texmf/tex/latex/gnuplot/t-gnuplot-lua-
 tikz.tex] {
         delete ${prefix}/share/texmf/tex/latex/gnuplot/t-gnuplot-lua-
 tikz.tex
     }
 }
 }}}
 to make sure that upgrade wouldn't fail. On the other hand, one could tell
 everyone to simply run
 {{{
 rm -rf /opt/local/share/texmf/tex/latex/gnuplot
 }}}
 More about naming variants in my next comment.

-- 
Ticket URL: <https://trac.macports.org/ticket/32872#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list