1 | #!/bin/bash
|
---|
2 |
|
---|
3 | ### jadetex ###
|
---|
4 |
|
---|
5 | cd ${SRC}
|
---|
6 | LOG=jadetex-blfs.log
|
---|
7 |
|
---|
8 | unpack_tarball jadetex-${JADETEX_VER}
|
---|
9 | cd ${PKGDIR}
|
---|
10 |
|
---|
11 | max_log_init jadetex ${JADETEX_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
12 | (
|
---|
13 | sed -i.orig -e "s/original texmf.cnf/modified texmf.cnf/" \
|
---|
14 | -e "s/memory hog.../&\npool_size.context = 750000/" \
|
---|
15 | $(kpsewhich texmf.cnf)
|
---|
16 | cat >> $(kpsewhich texmf.cnf) << "EOF"
|
---|
17 |
|
---|
18 | % The following 3 sections added for JadeTeX
|
---|
19 |
|
---|
20 | % latex settings
|
---|
21 | main_memory.latex = 1100000
|
---|
22 | param_size.latex = 1500
|
---|
23 | stack_size.latex = 1500
|
---|
24 | hash_extra.latex = 15000
|
---|
25 | string_vacancies.latex = 45000
|
---|
26 | pool_free.latex = 47500
|
---|
27 | nest_size.latex = 500
|
---|
28 | save_size.latex = 5000
|
---|
29 | pool_size.latex = 500000
|
---|
30 | max_strings.latex = 55000
|
---|
31 | font_mem_size.latex= 400000
|
---|
32 |
|
---|
33 | % jadetex settings
|
---|
34 | main_memory.jadetex = 1500000
|
---|
35 | param_size.jadetex = 1500
|
---|
36 | stack_size.jadetex = 1500
|
---|
37 | hash_extra.jadetex = 50000
|
---|
38 | string_vacancies.jadetex = 45000
|
---|
39 | pool_free.jadetex = 47500
|
---|
40 | nest_size.jadetex = 500
|
---|
41 | save_size.jadetex = 5000
|
---|
42 | pool_size.jadetex = 500000
|
---|
43 | max_strings.jadetex = 55000
|
---|
44 |
|
---|
45 | % pdfjadetex settings
|
---|
46 | main_memory.pdfjadetex = 2500000
|
---|
47 | param_size.pdfjadetex = 1500
|
---|
48 | stack_size.pdfjadetex = 1500
|
---|
49 | hash_extra.pdfjadetex = 50000
|
---|
50 | string_vacancies.pdfjadetex = 45000
|
---|
51 | pool_free.pdfjadetex = 47500
|
---|
52 | nest_size.pdfjadetex = 500
|
---|
53 | save_size.pdfjadetex = 5000
|
---|
54 | pool_size.pdfjadetex = 500000
|
---|
55 | max_strings.pdfjadetex = 55000
|
---|
56 |
|
---|
57 | EOF
|
---|
58 |
|
---|
59 | LATEX_FMT_DIR="$(kpsewhich -expand-var '$TEXMFSYSVAR')/web2c" &&
|
---|
60 | mv -v $(kpsewhich latex.fmt) $(kpsewhich latex.fmt).orig &&
|
---|
61 | mv -v ${LATEX_FMT_DIR}/latex.log ${LATEX_FMT_DIR}/latex.log.orig &&
|
---|
62 | fmtutil-sys --byfmt latex
|
---|
63 | ) >> ${LOGFILE} 2>&1 &&
|
---|
64 | echo " o Configure OK" || barf
|
---|
65 |
|
---|
66 | min_log_init ${BUILDLOGS} &&
|
---|
67 | make \
|
---|
68 | >> ${LOGFILE} 2>&1 &&
|
---|
69 | echo " o Build OK" || barf
|
---|
70 |
|
---|
71 | min_log_init ${INSTLOGS} &&
|
---|
72 | (
|
---|
73 | install -v -m755 -d \
|
---|
74 | $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config &&
|
---|
75 | install -v -m644 dsssl.def jadetex.ltx \
|
---|
76 | $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex &&
|
---|
77 | install -v -m644 {,pdf}jadetex.ini \
|
---|
78 | $(kpsewhich -expand-var '$TEXMFLOCAL')/tex/jadetex/config &&
|
---|
79 | FMTUTIL_CNF="$(kpsewhich fmtutil.cnf)" &&
|
---|
80 | mv ${FMTUTIL_CNF} ${FMTUTIL_CNF}.orig &&
|
---|
81 |
|
---|
82 | cat ${FMTUTIL_CNF}.orig - >> ${FMTUTIL_CNF} << "EOF"
|
---|
83 |
|
---|
84 | # JadeTeX formats:
|
---|
85 | jadetex etex - "&latex" jadetex.ini
|
---|
86 | pdfjadetex pdfetex - "&pdflatex" pdfjadetex.ini
|
---|
87 |
|
---|
88 | EOF
|
---|
89 | mv -v $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R \
|
---|
90 | $(kpsewhich -expand-var '$TEXMFMAIN')/ls-R.orig &&
|
---|
91 | mv -v $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R \
|
---|
92 | $(kpsewhich -expand-var '$TEXMFSYSVAR')/ls-R.orig &&
|
---|
93 |
|
---|
94 | mktexlsr &&
|
---|
95 | fmtutil-sys --byfmt jadetex &&
|
---|
96 | fmtutil-sys --byfmt pdfjadetex &&
|
---|
97 | mktexlsr &&
|
---|
98 | ln -v -sf etex /usr/bin/jadetex &&
|
---|
99 | ln -v -sf pdfetex /usr/bin/pdfjadetex
|
---|
100 | ) >> ${LOGFILE} 2>&1 &&
|
---|
101 | echo " o Install OK" || barf
|
---|
102 |
|
---|