1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
diff -Naur ptetex3-20080128.orig/2extract-src.sh ptetex3-20080128/2extract-src.sh
--- ptetex3-20080128.orig/2extract-src.sh 2008-01-28 17:21:23.000000000 +0900
+++ ptetex3-20080128/2extract-src.sh 2008-02-14 23:50:05.000000000 +0900
@@ -147,32 +147,32 @@
$CP $SRC/texk/dvipsk/* $SRC/texk/pdvipsk/ 2> /dev/null
$MKDIR $SRC/texk/pxdvik
$CP -r $SRC/texk/xdvik/* $SRC/texk/pxdvik/
- P=p
+ DVIPSK_P=p
fi # "$JAPANESE" = "international"
## for dvipsk
-#tarx archive/dvipsk-jpatch-p1.7a.tar.gz $SRC/texk/${P}dvipsk
-#cpatch $SRC/texk/${P}dvipsk/dvipsk-p1.7a.patch 1 $SRC/texk/${P}dvipsk
-$CP $SRC/texk/${P}dvipsk/Makefile.in $SRC/texk/${P}dvipsk/Makefile.in.tetex
-tarx archive/dvipsk-5.95b-p1.7a.tar.gz $SRC/texk/${P}dvipsk
-cpatch $SRC/texk/${P}dvipsk/dvipsk-5.95b-p1.7a.diff 1 $SRC/texk/${P}dvipsk
+#tarx archive/dvipsk-jpatch-p1.7a.tar.gz $SRC/texk/${DVIPSK_P}dvipsk
+#cpatch $SRC/texk/${DVIPSK_P}dvipsk/dvipsk-p1.7a.patch 1 $SRC/texk/${DVIPSK_P}dvipsk
+$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.tetex
+tarx archive/dvipsk-5.95b-p1.7a.tar.gz $SRC/texk/${DVIPSK_P}dvipsk
+cpatch $SRC/texk/${DVIPSK_P}dvipsk/dvipsk-5.95b-p1.7a.diff 1 $SRC/texk/${DVIPSK_P}dvipsk
## disable installing 'config.ps'
-$CP $SRC/texk/${P}dvipsk/Makefile.in $SRC/texk/${P}dvipsk/Makefile.in.jp
-$CP $SRC/texk/${P}dvipsk/Makefile.in.tetex $SRC/texk/${P}dvipsk/Makefile.in
+$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.jp
+$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.tetex $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in
## disable psfonts_jp.map
-#perlprint 's/^(p \+psfonts\_jp\.map)/* \1/g' $SRC/texk/${P}dvipsk/config.ps
+#perlprint 's/^(p \+psfonts\_jp\.map)/* \1/g' $SRC/texk/${DVIPSK_P}dvipsk/config.ps
#perlnoprint '$a=1 if /^# psfonts_jp.map/; $a=0 if /^# Info files/;
-# print unless $a' $SRC/texk/${P}dvipsk/Makefile.in
+# print unless $a' $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in
## for xdvik
-zpatch archive/xdvik-200?????-tetex-3.0.diff.gz 3 $SRC/texk/${P}xdvik
+zpatch archive/xdvik-200?????-tetex-3.0.diff.gz 3 $SRC/texk/${DVIPSK_P}xdvik
# fix for FC5
perlprint 'print "#define NeedWidePrototypes 1\n" if /limits/' \
- $SRC/texk/${P}xdvik/xdvi.h
+ $SRC/texk/${DVIPSK_P}xdvik/xdvi.h
# pTeX fontmap
perlprint "s/^ptexmap .*/ptexmap kanjix.map/" \
- $SRC/texk/${P}xdvik/texmf/xdvi.cfg
+ $SRC/texk/${DVIPSK_P}xdvik/texmf/xdvi.cfg
# adjust X resource
-cat <<EOF >> $SRC/texk/${P}xdvik/texmf/XDvi || exit 1
+cat <<EOF >> $SRC/texk/${DVIPSK_P}xdvik/texmf/XDvi || exit 1
!!! ------- added by ptetex3 -------
diff -Naur ptetex3-20080128.orig/7font-search.sh ptetex3-20080128/7font-search.sh
--- ptetex3-20080128.orig/7font-search.sh 2008-01-28 17:44:29.000000000 +0900
+++ ptetex3-20080128/7font-search.sh 2008-02-14 23:48:35.000000000 +0900
@@ -52,6 +52,17 @@
done
}
+mksymlink_gentoo(){
+ $MKDIR $TRUETYPE
+ fonts_dir=/usr/share/fonts/
+ find $fonts_dir -maxdepth 1 -mindepth 1 -type d | while read font_path; do
+ if [ `find $font_path -maxdepth 1 -type f -iname '*.ttf' | wc -l` -gt 0 ]; then
+ font_name=${font_path/$fonts_dir/}
+ test -h ${TRUETYPE}/${font_name} && continue
+ $LN "${font_path}" "${TRUETYPE}/${font_name}"
+ fi
+ done
+}
setrmlgbm() {
if test -n "$2"; then
@@ -107,7 +118,8 @@
### ���̾ �����ǥ��쥯�ȥ�/�ե�����
Acrobat4 /usr{,/local,/sfw}{,/lib}/Acrobat4/Resource/CMap
Acrobat5 /usr{,/local,/sfw}{,/lib}/Acrobat5/Resource/Font
-Acrobat7 /usr{,/local,/sfw}{,/lib}{,/Adobe}/Acrobat7.0/Resource/CMap
+Acrobat7 /opt/Acrobat7/Resource/CMap
+Acrobat8 /opt/Adobe/Reader8/Resource/CMap
ghostscript /usr{,/local,/sfw}/{share,lib}/ghostscript{,/*}/Resource/CMap
openwinja /usr/openwin/lib/locale/ja/X11/Resource/CMap
openwinko /usr/openwin/lib/locale/ko/X11/Resource/CMap
@@ -115,18 +127,7 @@
openwintw /usr/openwin/lib/locale/zh_TW.BIG5/X11/Resource/CMap
EOF
-mksymlink $TRUETYPE <<EOF
-### ���̾ �����ǥ��쥯�ȥ�/�ե�����
-x11 /usr{,/local,/X11R6}/lib/X11/fonts/truetype
-X11 /usr{,/local,/X11R6}/lib/X11/fonts/TrueType
-X11TTF /usr{,/local,/X11R6}/lib/X11/fonts/TTF
-openwin /usr/openwin/lib/locale/ja/X11/fonts/TT
-truetype /usr/share/fonts/truetype
-TTF /usr/share/fonts/TTF
-ja /usr/share/fonts/ja/TrueType
-japanese /usr/share/fonts/japanese/TrueType
-QtPalmtop /opt/QtPalmtop/lib/X11/fonts/TrueType
-EOF
+mksymlink_gentoo
mksymlink $OPENTYPE <<EOF
### ���̾ �����ǥ��쥯�ȥ�/�ե�����
|