Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/ptex/files: ptex-3.1.10_p20080414-gentoo.patch
Date: Sat, 10 May 2008 01:50:48
Message-Id: E1JueEX-00074Z-PW@stork.gentoo.org
1 matsuu 08/05/10 01:50:45
2
3 Added: ptex-3.1.10_p20080414-gentoo.patch
4 Log:
5 Version bumped. Removed motif-config, bug #219300.
6 (Portage version: 2.1.5_rc6)
7
8 Revision Changes Path
9 1.1 app-text/ptex/files/ptex-3.1.10_p20080414-gentoo.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/files/ptex-3.1.10_p20080414-gentoo.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/files/ptex-3.1.10_p20080414-gentoo.patch?rev=1.1&content-type=text/plain
13
14 Index: ptex-3.1.10_p20080414-gentoo.patch
15 ===================================================================
16 diff -Naur ptetex3-20080414.orig/2extract-src.sh ptetex3-20080414/2extract-src.sh
17 --- ptetex3-20080414.orig/2extract-src.sh 2008-04-11 02:34:49.000000000 +0900
18 +++ ptetex3-20080414/2extract-src.sh 2008-05-10 09:23:08.000000000 +0900
19 @@ -147,32 +147,32 @@
20 $MKDIR $SRC/texk/pdvipsk
21 $CP $SRC/texk/dvipsk/* $SRC/texk/pdvipsk/ 2> /dev/null
22 tarcp $SRC/texk/xdvik $SRC/texk/pxdvik
23 - P=p
24 + DVIPSK_P=p
25 fi # "$JAPANESE" = "international"
26 ## for dvipsk
27 -#tarx archive/dvipsk-jpatch-p1.7a.tar.gz $SRC/texk/${P}dvipsk
28 -#cpatch $SRC/texk/${P}dvipsk/dvipsk-p1.7a.patch 1 $SRC/texk/${P}dvipsk
29 -$CP $SRC/texk/${P}dvipsk/Makefile.in $SRC/texk/${P}dvipsk/Makefile.in.tetex
30 -tarx archive/dvipsk-5.96-p1.7b.tar.gz $SRC/texk/${P}dvipsk
31 -cpatch $SRC/texk/${P}dvipsk/dvipsk-5.96-p1.7b.diff 1 $SRC/texk/${P}dvipsk
32 +#tarx archive/dvipsk-jpatch-p1.7a.tar.gz $SRC/texk/${DVIPSK_P}dvipsk
33 +#cpatch $SRC/texk/${DVIPSK_P}dvipsk/dvipsk-p1.7a.patch 1 $SRC/texk/${DVIPSK_P}dvipsk
34 +$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.tetex
35 +tarx archive/dvipsk-5.96-p1.7b.tar.gz $SRC/texk/${DVIPSK_P}dvipsk
36 +cpatch $SRC/texk/${DVIPSK_P}dvipsk/dvipsk-5.96-p1.7b.diff 1 $SRC/texk/${DVIPSK_P}dvipsk
37 ## disable installing 'config.ps'
38 -$CP $SRC/texk/${P}dvipsk/Makefile.in $SRC/texk/${P}dvipsk/Makefile.in.jp
39 -$CP $SRC/texk/${P}dvipsk/Makefile.in.tetex $SRC/texk/${P}dvipsk/Makefile.in
40 +$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.jp
41 +$CP $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in.tetex $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in
42 ## disable psfonts_jp.map
43 -#perlprint 's/^(p \+psfonts\_jp\.map)/* \1/g' $SRC/texk/${P}dvipsk/config.ps
44 +#perlprint 's/^(p \+psfonts\_jp\.map)/* \1/g' $SRC/texk/${DVIPSK_P}dvipsk/config.ps
45 #perlnoprint '$a=1 if /^# psfonts_jp.map/; $a=0 if /^# Info files/;
46 -# print unless $a' $SRC/texk/${P}dvipsk/Makefile.in
47 +# print unless $a' $SRC/texk/${DVIPSK_P}dvipsk/Makefile.in
48
49 ## for xdvik
50 -zpatch archive/xdvik-200?????-tetex-3.0.diff.gz 3 $SRC/texk/${P}xdvik
51 +zpatch archive/xdvik-200?????-tetex-3.0.diff.gz 3 $SRC/texk/${DVIPSK_P}xdvik
52 # fix for FC5
53 perlprint 'print "#define NeedWidePrototypes 1\n" if /limits/' \
54 - $SRC/texk/${P}xdvik/xdvi.h
55 + $SRC/texk/${DVIPSK_P}xdvik/xdvi.h
56 # pTeX fontmap
57 perlnoprint "s/^ptexmap .*/ptexmap kanjix.map/; print unless /IPA/" \
58 - $SRC/texk/${P}xdvik/texmf/xdvi.cfg
59 + $SRC/texk/${DVIPSK_P}xdvik/texmf/xdvi.cfg
60 # adjust X resource
61 -cat <<EOF >> $SRC/texk/${P}xdvik/texmf/XDvi || exit 1
62 +cat <<EOF >> $SRC/texk/${DVIPSK_P}xdvik/texmf/XDvi || exit 1
63
64
65 !!! ------- added by ptetex3 -------
66 diff -Naur ptetex3-20080414.orig/7font-search.sh ptetex3-20080414/7font-search.sh
67 --- ptetex3-20080414.orig/7font-search.sh 2008-04-14 18:07:04.000000000 +0900
68 +++ ptetex3-20080414/7font-search.sh 2008-05-10 09:36:33.000000000 +0900
69 @@ -58,6 +58,17 @@
70 done
71 }
72
73 +mksymlink_gentoo(){
74 + $MKDIR $TRUETYPE
75 + fonts_dir=/usr/share/fonts/
76 + find $fonts_dir -maxdepth 1 -mindepth 1 -type d | while read font_path; do
77 + if [ `find $font_path -maxdepth 1 -type f -iname '*.ttf' | wc -l` -gt 0 ]; then
78 + font_name=${font_path/$fonts_dir/}
79 + test -h ${TRUETYPE}/${font_name} && continue
80 + $LN "${font_path}" "${TRUETYPE}/${font_name}"
81 + fi
82 + done
83 +}
84
85 setrmlgbm() {
86 if test -n "$2"; then
87 @@ -111,10 +122,10 @@
88
89 mksymlink $CMAP <<EOF
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 -Acrobat8 /usr{,/local,/sfw}{,/lib}{,/Adobe}/Acrobat8.0/Resource/CMap
95 +Acrobat4 {/opt,/usr{,/local,/sfw}{,/lib}}/Acrobat4/Resource/CMap
96 +Acrobat5 {/opt,/usr{,/local,/sfw}{,/lib}}/Acrobat5/Resource/Font
97 +Acrobat7 {/opt,/usr{,/local,/sfw}{,/lib}}{,/Adobe}/Acrobat7{,.0}/Resource/CMap
98 +Acrobat8 {/opt,/usr{,/local,/sfw}{,/lib}}{,/Adobe}/{Acrobat,Reader}8{,.0}/Resource/CMap
99 ghostscript /usr{,/local,/sfw}/{share,lib}/ghostscript{,/*}/Resource/CMap
100 openwinja /usr/openwin/lib/locale/ja/X11/Resource/CMap
101 openwinko /usr/openwin/lib/locale/ko/X11/Resource/CMap
102 @@ -122,21 +133,7 @@
103 openwintw /usr/openwin/lib/locale/zh_TW.BIG5/X11/Resource/CMap
104 EOF
105
106 -mksymlink $TRUETYPE <<EOF
107 -### リンク名 検索ディレクトリ/ファイル
108 -x11 /usr{,/local,/X11R6}/lib/X11/fonts/truetype
109 -X11 /usr{,/local,/X11R6}/lib/X11/fonts/TrueType
110 -X11TTF /usr{,/local,/X11R6}/lib/X11/fonts/TTF
111 -truetype /usr{,/local}/share/fonts/truetype
112 -TrueType /usr{,/local}/share/fonts/TrueType
113 -TTF /usr{,/local}/share/fonts/TTF
114 -ja /usr{,/local}/share/fonts/ja/TrueType
115 -japanese /usr{,/local}/share/fonts/japanese/TrueType
116 -openwin /usr/openwin/lib/locale/ja/X11/fonts/TT
117 -QtPalmtop /opt/QtPalmtop/lib/X11/fonts/TrueType
118 -f8sazanami-min /usr/share/fonts/sazanami-fonts-mincho
119 -f8sazanami-goth /usr/share/fonts/sazanami-fonts-gothic
120 -EOF
121 +mksymlink_gentoo
122
123 mksymlink $OPENTYPE <<EOF
124 ### リンク名 検索ディレクトリ/ファイル
125 diff -Naur ptetex3-20080414.orig/common.sh ptetex3-20080414/common.sh
126 --- ptetex3-20080414.orig/common.sh 2008-04-05 17:51:07.000000000 +0900
127 +++ ptetex3-20080414/common.sh 2008-05-10 09:47:00.000000000 +0900
128 @@ -220,12 +220,12 @@
129 echo "You are root."
130 echo "It is RECOMMENDED to execute by a user."
131 echo "Executing by root may cause SERIOUS DAMAGE for your system."
132 - echo -n "Are you sure to execute by root AT YOUR OWN RISK? (yes/NO) "
133 - read REPLY
134 - case $REPLY in
135 - yes) ;;
136 - *) exit 1;;
137 - esac
138 +# echo -n "Are you sure to execute by root AT YOUR OWN RISK? (yes/NO) "
139 +# read REPLY
140 +# case $REPLY in
141 +# yes) ;;
142 +# *) exit 1;;
143 +# esac
144 fi
145 }
146
147
148
149
150 --
151 gentoo-commits@l.g.o mailing list