[MacPorts] #32872: gnuplot +tutorial installs texmf files during destroot phase
MacPorts
noreply at macports.org
Tue Apr 24 11:17:19 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@…):
Forgetting about +tutorial vs. +latex for a moment - compiling gnuplot
outside of macports and running
{{{
make install DESTDIR=/some/weird/path
}}}
will properly place the latex files into /some/weird/path. However
macports seems to use
{{{
make -w install --prefix=/some/weird/path
}}}
and that one fails. The file configure.in contains:
{{{
dnl we only care about texdir if latex is enabled
if test "$with_latex" = yes; then
test "$KPSEXPAND" = "no" -a "$TEXDIR" = "no" && AC_MSG_ERROR(dnl
[texdir is not given and there is no kpsexpand, please tell where to
install])
dnl texdir has priority
if test "$TEXDIR" = "no"; then
if test "x$prefix" != "xNONE"; then
TEXDIR=${prefix}/share/texmf
else
TEXDIR=`$KPSEXPAND '$TEXMFLOCAL'`
if test "x$TEXDIR" = "x" -o "$TEXDIR" = "\$TEXMFLOCAL"; then
TEXDIR=${ac_default_prefix}/share/texmf
fi
fi
TEXDIR=${TEXDIR}/tex/latex/gnuplot
fi
fi
}}}
The resulting Makefile in share/LaTeX would contain most variables with
prefix, for example:
{{{
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
}}}
but
{{{
texdir = /usr/local/texlive/2011/../texmf-local/tex/latex/gnuplot
}}}
without prefix. DESTDIR would be obeyed with
{{{
$(INSTALL_DATA) $$files "$(DESTDIR)$(texdir)" || exit $$?; \
}}}
but prefix gets ignored. I'm not yet sure how exactly to properly fix
that, but setting an explicit DESTDIR could help as a temporary
workaround. Another option would be providing an explicit --with-
texdir=PATH.
--
Ticket URL: <https://trac.macports.org/ticket/32872#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list