Merge pull request #49416 from veprbl/pr/texlive_repstopdf_fix
texlive: provide repstopdf
This commit is contained in:
commit
b201817eb3
@ -218,8 +218,29 @@ in buildEnv {
|
|||||||
ln -sv "$(realpath $s)" "$out/bin/$tName" # wrapped below
|
ln -sv "$(realpath $s)" "$out/bin/$tName" # wrapped below
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
'' +
|
||||||
|
# A hacky way to provide repstopdf
|
||||||
|
# * Copy is done to have a correct "$0" so that epstopdf enables the restricted mode
|
||||||
|
# * ./bin/repstopdf needs to be a symlink to be processed by wrapBin
|
||||||
|
''
|
||||||
|
if [[ -e ./bin/epstopdf ]]; then
|
||||||
|
cp $(realpath ./bin/epstopdf) ./share/texmf/scripts/repstopdf
|
||||||
|
ln -s "$out"/share/texmf/scripts/repstopdf ./bin/repstopdf
|
||||||
|
fi
|
||||||
|
'' +
|
||||||
|
# finish up the wrappers
|
||||||
|
''
|
||||||
rm "$out"/bin/*-sys
|
rm "$out"/bin/*-sys
|
||||||
wrapBin
|
wrapBin
|
||||||
|
'' +
|
||||||
|
# Perform a small test to verify that the restricted mode get enabled when
|
||||||
|
# needed (detected by checking if it disallows --gscmd)
|
||||||
|
''
|
||||||
|
if [[ -e ./bin/epstopdf ]]; then
|
||||||
|
echo "Testing restricted mode for {,r}epstopdf"
|
||||||
|
! (epstopdf --gscmd echo /dev/null 2>&1 || true) | grep forbidden
|
||||||
|
(repstopdf --gscmd echo /dev/null 2>&1 || true) | grep forbidden
|
||||||
|
fi
|
||||||
'' +
|
'' +
|
||||||
# TODO: a context trigger https://www.preining.info/blog/2015/06/debian-tex-live-2015-the-new-layout/
|
# TODO: a context trigger https://www.preining.info/blog/2015/06/debian-tex-live-2015-the-new-layout/
|
||||||
# http://wiki.contextgarden.net/ConTeXt_Standalone#Unix-like_platforms_.28Linux.2FMacOS_X.2FFreeBSD.2FSolaris.29
|
# http://wiki.contextgarden.net/ConTeXt_Standalone#Unix-like_platforms_.28Linux.2FMacOS_X.2FFreeBSD.2FSolaris.29
|
||||||
|
Loading…
Reference in New Issue
Block a user