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 | sed -i.orig -e "s/original texmf.cnf/modified texmf.cnf/" \
|
---|
13 | /usr/share/texmf/web2c/texmf.cnf
|
---|
14 | # TODO: This needs to be added below "ConTeXt is a memory hog" in
|
---|
15 | # /usr/share/texmf/web2c/texmf.cnf
|
---|
16 | #pool_size.context = 750000
|
---|
17 | cat >> /usr/share/texmf/web2c/texmf.cnf << "EOF"
|
---|
18 |
|
---|
19 | % The following 3 sections added for JadeTeX
|
---|
20 |
|
---|
21 | % latex settings
|
---|
22 | main_memory.latex = 1100000
|
---|
23 | param_size.latex = 1500
|
---|
24 | stack_size.latex = 1500
|
---|
25 | hash_extra.latex = 15000
|
---|
26 | string_vacancies.latex = 45000
|
---|
27 | pool_free.latex = 47500
|
---|
28 | nest_size.latex = 500
|
---|
29 | save_size.latex = 5000
|
---|
30 | pool_size.latex = 500000
|
---|
31 | max_strings.latex = 55000
|
---|
32 | font_mem_size.latex= 400000
|
---|
33 |
|
---|
34 | % jadetex settings
|
---|
35 | main_memory.jadetex = 1500000
|
---|
36 | param_size.jadetex = 1500
|
---|
37 | stack_size.jadetex = 1500
|
---|
38 | hash_extra.jadetex = 50000
|
---|
39 | string_vacancies.jadetex = 45000
|
---|
40 | pool_free.jadetex = 47500
|
---|
41 | nest_size.jadetex = 500
|
---|
42 | save_size.jadetex = 5000
|
---|
43 | pool_size.jadetex = 500000
|
---|
44 | max_strings.jadetex = 55000
|
---|
45 |
|
---|
46 | % pdfjadetex settings
|
---|
47 | main_memory.pdfjadetex = 2500000
|
---|
48 | param_size.pdfjadetex = 1500
|
---|
49 | stack_size.pdfjadetex = 1500
|
---|
50 | hash_extra.pdfjadetex = 50000
|
---|
51 | string_vacancies.pdfjadetex = 45000
|
---|
52 | pool_free.pdfjadetex = 47500
|
---|
53 | nest_size.pdfjadetex = 500
|
---|
54 | save_size.pdfjadetex = 5000
|
---|
55 | pool_size.pdfjadetex = 500000
|
---|
56 | max_strings.pdfjadetex = 55000
|
---|
57 | EOF
|
---|
58 |
|
---|
59 | cp -R /usr/share/texmf/tex/latex/config . &&
|
---|
60 | cd config &&
|
---|
61 | tex -ini -progname=latex latex.ini &&
|
---|
62 | mv /usr/share/texmf/web2c/latex.fmt \
|
---|
63 | /usr/share/texmf/web2c/latex.fmt.orig &&
|
---|
64 | install -m 644 latex.fmt /usr/share/texmf/web2c &&
|
---|
65 | cd ..
|
---|
66 |
|
---|
67 | min_log_init ${INSTLOGS} &&
|
---|
68 | make install \
|
---|
69 | >> ${LOGFILE} 2>&1 &&
|
---|
70 | echo " o ALL OK" || barf
|
---|
71 |
|
---|
72 | ln -sf tex /usr/bin/jadetex &&
|
---|
73 | ln -sf pdftex /usr/bin/pdfjadetex &&
|
---|
74 | mktexlsr
|
---|
75 |
|
---|