[MacPorts] #32872: gnuplot +tutorial installs texmf files during destroot phase
MacPorts
noreply at macports.org
Fri May 4 14:14:07 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@…):
So, what do --with-latex and --with-tutorial do?
--with-latex installs five files into TEXMF tree. One of them is
gnuplot.cfg which only contains one line,
{{{
\usepackage[T1]{fontenc}
}}}
The file is used only by some very rare terminals and even then it seems
to be there just as a model, so that a user can put the file into
TEXMFLOCAL and add his own definitions there. In my opinion putting the
file to distribution defeats the whole purpose of having that file with
local configuration in the first place. Moreover, this line breaks
XeLaTeX.
The other four files belong to tikz terminal and:
* are needed (they are a prerequisite to be able to compile results from
"set term tikz")
* can be auto-generated with "set term tikz createstyle", however it is
actually very useful to have them in TEXMF, also because they need to
match the version of gnuplot exactly
* they are actually needed as a kind of "dependency" on +lua
* gnuplot is not willing to honour --with-latex switch to work (or "make
install" the files automatically) without having kpathsea, pdftex and some
binaries available, but copying the four files is trivial on the other
hand
* they are wrongly placed by default; having them all under latex is
pointless since ConTeXt or plain TeX won't find them; the proper structure
would be for example:
{{{
/tex/context/third/gnuplot-lua-tikz/t-gnuplot-lua-tikz.tex
/tex/generic/gnuplot-lua-tikz/gnuplot-lua-tikz-common.tex
/tex/latex/gnuplot-lua-tikz/gnuplot-lua-tikz.sty
/tex/plain/gnuplot-lua-tikz/gnuplot-lua-tikz.tex
}}}
* I use a different/external TeX distribution (outside of macports), so
installing the whole texlive just to get +lua working is an overkill, but
I do need tikz terminal (+lua) and it is perfectly usable without having
texlive in macports installed. However, I have to make sure that I run
"createstyle" myself then, since my own TeX distribution won't be able to
find TeX support files installed by macports.
My slight preference would be to install the four TikZ-related files to
TEXMFPORTS whenever +lua is installed (not with --with-latex, but by
manually copying the files) and not to install gnuplot.cfg at all.
--with-tutorial currently builds DVI (instead of at least PDF) version of
tutorial and doesn't install it anywhere. So unless for those who dive
into details, it is a pure waste of resources (without some fixes). It
also seems to me that tutorial is mean more like an example to show the
user how to do things with LaTeX terminals. It could be useful, but then
one needs to create a PDF and copy it to the same place where the other
documentation is.
I can fix the issue (to enable closing the ticket), but I need more
feedback from experienced developers to suggest me what to do.
--
Ticket URL: <https://trac.macports.org/ticket/32872#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list