1 |
matsuu 08/02/14 16:05:49 |
2 |
|
3 |
Added: ptex-3.1.10_p20080128-gentoo.patch |
4 |
Log: |
5 |
Version bumped. |
6 |
Removed lesstif USE flag, bug #209859. |
7 |
Clean up ebuild. |
8 |
(Portage version: 2.1.3.19) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 app-text/ptex/files/ptex-3.1.10_p20080128-gentoo.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/files/ptex-3.1.10_p20080128-gentoo.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/files/ptex-3.1.10_p20080128-gentoo.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: ptex-3.1.10_p20080128-gentoo.patch |
17 |
=================================================================== |
18 |
diff -Naur ptetex3-20080128.orig/2extract-src.sh ptetex3-20080128/2extract-src.sh |
19 |
--- ptetex3-20080128.orig/2extract-src.sh 2008-01-28 17:21:23.000000000 +0900 |
20 |
+++ ptetex3-20080128/2extract-src.sh 2008-02-14 23:50:05.000000000 +0900 |
21 |
@@ -147,32 +147,32 @@ |
22 |
$CP $SRC/texk/dvipsk/* $SRC/texk/pdvipsk/ 2> /dev/null |
23 |
$MKDIR $SRC/texk/pxdvik |
24 |
$CP -r $SRC/texk/xdvik/* $SRC/texk/pxdvik/ |
25 |
- P=p |
26 |
+ DVIPSK_P=p |
27 |
fi # "$JAPANESE" = "international" |
28 |
## for dvipsk |
29 |
-#tarx archive/dvipsk-jpatch-p1.7a.tar.gz $SRC/texk/${P}dvipsk |
30 |
-#cpatch $SRC/texk/${P}dvipsk/dvipsk-p1.7a.patch 1 $SRC/texk/${P}dvipsk |
31 |
-$CP $SRC/texk/${P}dvipsk/Makefile.in $SRC/texk/${P}dvipsk/Makefile.in.tetex |
32 |
-tarx archive/dvipsk-5.95b-p1.7a.tar.gz $SRC/texk/${P}dvipsk |
33 |
-cpatch $SRC/texk/${P}dvipsk/dvipsk-5.95b-p1.7a.diff 1 $SRC/texk/${P}dvipsk |
34 |
+#tarx archive/dvipsk-jpatch-p1.7a.tar.gz $SRC/texk/${DVIPSK_P}dvipsk |
35 |
+#cpatch $SRC/texk/${DVIPSK_P}dvipsk/dvipsk-p1.7a.patch 1 $SRC/texk/${DVIPSK_P}dvipsk |
36 |
+$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.tetex |
37 |
+tarx archive/dvipsk-5.95b-p1.7a.tar.gz $SRC/texk/${DVIPSK_P}dvipsk |
38 |
+cpatch $SRC/texk/${DVIPSK_P}dvipsk/dvipsk-5.95b-p1.7a.diff 1 $SRC/texk/${DVIPSK_P}dvipsk |
39 |
## disable installing 'config.ps' |
40 |
-$CP $SRC/texk/${P}dvipsk/Makefile.in $SRC/texk/${P}dvipsk/Makefile.in.jp |
41 |
-$CP $SRC/texk/${P}dvipsk/Makefile.in.tetex $SRC/texk/${P}dvipsk/Makefile.in |
42 |
+$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.jp |
43 |
+$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.tetex $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in |
44 |
## disable psfonts_jp.map |
45 |
-#perlprint 's/^(p \+psfonts\_jp\.map)/* \1/g' $SRC/texk/${P}dvipsk/config.ps |
46 |
+#perlprint 's/^(p \+psfonts\_jp\.map)/* \1/g' $SRC/texk/${DVIPSK_P}dvipsk/config.ps |
47 |
#perlnoprint '$a=1 if /^# psfonts_jp.map/; $a=0 if /^# Info files/; |
48 |
-# print unless $a' $SRC/texk/${P}dvipsk/Makefile.in |
49 |
+# print unless $a' $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in |
50 |
|
51 |
## for xdvik |
52 |
-zpatch archive/xdvik-200?????-tetex-3.0.diff.gz 3 $SRC/texk/${P}xdvik |
53 |
+zpatch archive/xdvik-200?????-tetex-3.0.diff.gz 3 $SRC/texk/${DVIPSK_P}xdvik |
54 |
# fix for FC5 |
55 |
perlprint 'print "#define NeedWidePrototypes 1\n" if /limits/' \ |
56 |
- $SRC/texk/${P}xdvik/xdvi.h |
57 |
+ $SRC/texk/${DVIPSK_P}xdvik/xdvi.h |
58 |
# pTeX fontmap |
59 |
perlprint "s/^ptexmap .*/ptexmap kanjix.map/" \ |
60 |
- $SRC/texk/${P}xdvik/texmf/xdvi.cfg |
61 |
+ $SRC/texk/${DVIPSK_P}xdvik/texmf/xdvi.cfg |
62 |
# adjust X resource |
63 |
-cat <<EOF >> $SRC/texk/${P}xdvik/texmf/XDvi || exit 1 |
64 |
+cat <<EOF >> $SRC/texk/${DVIPSK_P}xdvik/texmf/XDvi || exit 1 |
65 |
|
66 |
|
67 |
!!! ------- added by ptetex3 ------- |
68 |
diff -Naur ptetex3-20080128.orig/7font-search.sh ptetex3-20080128/7font-search.sh |
69 |
--- ptetex3-20080128.orig/7font-search.sh 2008-01-28 17:44:29.000000000 +0900 |
70 |
+++ ptetex3-20080128/7font-search.sh 2008-02-14 23:48:35.000000000 +0900 |
71 |
@@ -52,6 +52,17 @@ |
72 |
done |
73 |
} |
74 |
|
75 |
+mksymlink_gentoo(){ |
76 |
+ $MKDIR $TRUETYPE |
77 |
+ fonts_dir=/usr/share/fonts/ |
78 |
+ find $fonts_dir -maxdepth 1 -mindepth 1 -type d | while read font_path; do |
79 |
+ if [ `find $font_path -maxdepth 1 -type f -iname '*.ttf' | wc -l` -gt 0 ]; then |
80 |
+ font_name=${font_path/$fonts_dir/} |
81 |
+ test -h ${TRUETYPE}/${font_name} && continue |
82 |
+ $LN "${font_path}" "${TRUETYPE}/${font_name}" |
83 |
+ fi |
84 |
+ done |
85 |
+} |
86 |
|
87 |
setrmlgbm() { |
88 |
if test -n "$2"; then |
89 |
@@ -107,7 +118,8 @@ |
90 |
### リンク名 検索ディレクトリ/ファイル |
91 |
Acrobat4 /usr{,/local,/sfw}{,/lib}/Acrobat4/Resource/CMap |
92 |
Acrobat5 /usr{,/local,/sfw}{,/lib}/Acrobat5/Resource/Font |
93 |
-Acrobat7 /usr{,/local,/sfw}{,/lib}{,/Adobe}/Acrobat7.0/Resource/CMap |
94 |
+Acrobat7 /opt/Acrobat7/Resource/CMap |
95 |
+Acrobat8 /opt/Adobe/Reader8/Resource/CMap |
96 |
ghostscript /usr{,/local,/sfw}/{share,lib}/ghostscript{,/*}/Resource/CMap |
97 |
openwinja /usr/openwin/lib/locale/ja/X11/Resource/CMap |
98 |
openwinko /usr/openwin/lib/locale/ko/X11/Resource/CMap |
99 |
@@ -115,18 +127,7 @@ |
100 |
openwintw /usr/openwin/lib/locale/zh_TW.BIG5/X11/Resource/CMap |
101 |
EOF |
102 |
|
103 |
-mksymlink $TRUETYPE <<EOF |
104 |
-### リンク名 検索ディレクトリ/ファイル |
105 |
-x11 /usr{,/local,/X11R6}/lib/X11/fonts/truetype |
106 |
-X11 /usr{,/local,/X11R6}/lib/X11/fonts/TrueType |
107 |
-X11TTF /usr{,/local,/X11R6}/lib/X11/fonts/TTF |
108 |
-openwin /usr/openwin/lib/locale/ja/X11/fonts/TT |
109 |
-truetype /usr/share/fonts/truetype |
110 |
-TTF /usr/share/fonts/TTF |
111 |
-ja /usr/share/fonts/ja/TrueType |
112 |
-japanese /usr/share/fonts/japanese/TrueType |
113 |
-QtPalmtop /opt/QtPalmtop/lib/X11/fonts/TrueType |
114 |
-EOF |
115 |
+mksymlink_gentoo |
116 |
|
117 |
mksymlink $OPENTYPE <<EOF |
118 |
### リンク名 検索ディレクトリ/ファイル |
119 |
|
120 |
|
121 |
|
122 |
-- |
123 |
gentoo-commits@l.g.o mailing list |