231a63bd02
INSTALL script. Use magic markers and remove the texmf.cnf fragment at DEINSTALL time. This fixes the deinstallation when other packages modify it and are installed afterwards, but removed out-of-order. Bump revision. Addresses PR 32376 and PR 34003 (the latter indirectly from myself).
29 lines
835 B
Text
29 lines
835 B
Text
# $NetBSD: INSTALL,v 1.1 2006/10/12 13:38:35 joerg Exp $
|
|
|
|
case ${STAGE} in
|
|
POST-INSTALL)
|
|
${CAT} >> @PKG_TEXMFPREFIX@/web2c/texmf.cnf <<EOF
|
|
%%% BEGIN hugelatex
|
|
% added by hugelatex package
|
|
main_memory.hugelatex = 1100000
|
|
param_size.hugelatex = 1500
|
|
stack_size.hugelatex = 1500
|
|
hash_extra.hugelatex = 15000
|
|
string_vacancies.hugelatex = 45000
|
|
pool_free.hugelatex = 47500
|
|
nest_size.hugelatex = 500
|
|
save_size.hugelatex = 5000
|
|
pool_size.hugelatex = 500000
|
|
max_strings.hugelatex = 55000
|
|
font_mem_size.hugelatex= 400000
|
|
%%% END hugelatex
|
|
EOF
|
|
cd @PKG_TEXMFPREFIX@/web2c
|
|
${MV} latex.fmt latex.fmt.BAK || ${TRUE}
|
|
${ECHO} "" | ${PREFIX}/bin/latex -ini -fmt=hugelatex -progname=hugelatex latex.ini || ${TRUE}
|
|
${MV} latex.fmt hugelatex.fmt
|
|
${MV} latex.log hugelatex.log
|
|
${MV} latex.fmt.BAK latex.fmt || ${TRUE}
|
|
${RM} -f texsys.aux
|
|
;;
|
|
esac
|