1 |
matsuu 08/02/14 16:05:48 |
2 |
|
3 |
Modified: ptex-3.1.10_p20071214.ebuild |
4 |
ptex-3.1.10_p20080107.ebuild |
5 |
ptex-3.1.10_p20071203.ebuild ChangeLog |
6 |
ptex-3.1.5-r1.ebuild |
7 |
Added: ptex-3.1.10_p20080128.ebuild |
8 |
Log: |
9 |
Version bumped. |
10 |
Removed lesstif USE flag, bug #209859. |
11 |
Clean up ebuild. |
12 |
(Portage version: 2.1.3.19) |
13 |
|
14 |
Revision Changes Path |
15 |
1.2 app-text/ptex/ptex-3.1.10_p20071214.ebuild |
16 |
|
17 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071214.ebuild?rev=1.2&view=markup |
18 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071214.ebuild?rev=1.2&content-type=text/plain |
19 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071214.ebuild?r1=1.1&r2=1.2 |
20 |
|
21 |
Index: ptex-3.1.10_p20071214.ebuild |
22 |
=================================================================== |
23 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071214.ebuild,v |
24 |
retrieving revision 1.1 |
25 |
retrieving revision 1.2 |
26 |
diff -u -r1.1 -r1.2 |
27 |
--- ptex-3.1.10_p20071214.ebuild 31 Dec 2007 14:18:51 -0000 1.1 |
28 |
+++ ptex-3.1.10_p20071214.ebuild 14 Feb 2008 16:05:47 -0000 1.2 |
29 |
@@ -1,6 +1,6 @@ |
30 |
-# Copyright 1999-2007 Gentoo Foundation |
31 |
+# Copyright 1999-2008 Gentoo Foundation |
32 |
# Distributed under the terms of the GNU General Public License v2 |
33 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071214.ebuild,v 1.1 2007/12/31 14:18:51 matsuu Exp $ |
34 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071214.ebuild,v 1.2 2008/02/14 16:05:47 matsuu Exp $ |
35 |
|
36 |
TETEX_PV=3.0_p1 |
37 |
|
38 |
@@ -33,7 +33,7 @@ |
39 |
BUILD_DIR="${WORKDIR}/build/usr" |
40 |
|
41 |
LICENSE="GPL-2 BSD" |
42 |
-IUSE="X motif lesstif Xaw3d neXt iconv unicode" |
43 |
+IUSE="X motif Xaw3d neXt iconv unicode" |
44 |
|
45 |
DEPEND="!app-text/tetex |
46 |
!<app-text/ptetex-3.1.9 |
47 |
|
48 |
|
49 |
|
50 |
1.2 app-text/ptex/ptex-3.1.10_p20080107.ebuild |
51 |
|
52 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080107.ebuild?rev=1.2&view=markup |
53 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080107.ebuild?rev=1.2&content-type=text/plain |
54 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080107.ebuild?r1=1.1&r2=1.2 |
55 |
|
56 |
Index: ptex-3.1.10_p20080107.ebuild |
57 |
=================================================================== |
58 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080107.ebuild,v |
59 |
retrieving revision 1.1 |
60 |
retrieving revision 1.2 |
61 |
diff -u -r1.1 -r1.2 |
62 |
--- ptex-3.1.10_p20080107.ebuild 18 Jan 2008 16:29:06 -0000 1.1 |
63 |
+++ ptex-3.1.10_p20080107.ebuild 14 Feb 2008 16:05:47 -0000 1.2 |
64 |
@@ -1,6 +1,6 @@ |
65 |
# Copyright 1999-2008 Gentoo Foundation |
66 |
# Distributed under the terms of the GNU General Public License v2 |
67 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080107.ebuild,v 1.1 2008/01/18 16:29:06 matsuu Exp $ |
68 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080107.ebuild,v 1.2 2008/02/14 16:05:47 matsuu Exp $ |
69 |
|
70 |
TETEX_PV=3.0_p1 |
71 |
|
72 |
@@ -33,7 +33,7 @@ |
73 |
BUILD_DIR="${WORKDIR}/build/usr" |
74 |
|
75 |
LICENSE="GPL-2 BSD" |
76 |
-IUSE="X motif lesstif Xaw3d neXt iconv unicode" |
77 |
+IUSE="X motif Xaw3d neXt iconv unicode" |
78 |
|
79 |
RDEPEND="!app-text/tetex |
80 |
!<app-text/ptetex-3.1.9 |
81 |
|
82 |
|
83 |
|
84 |
1.9 app-text/ptex/ptex-3.1.10_p20071203.ebuild |
85 |
|
86 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071203.ebuild?rev=1.9&view=markup |
87 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071203.ebuild?rev=1.9&content-type=text/plain |
88 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071203.ebuild?r1=1.8&r2=1.9 |
89 |
|
90 |
Index: ptex-3.1.10_p20071203.ebuild |
91 |
=================================================================== |
92 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071203.ebuild,v |
93 |
retrieving revision 1.8 |
94 |
retrieving revision 1.9 |
95 |
diff -u -r1.8 -r1.9 |
96 |
--- ptex-3.1.10_p20071203.ebuild 29 Dec 2007 11:42:43 -0000 1.8 |
97 |
+++ ptex-3.1.10_p20071203.ebuild 14 Feb 2008 16:05:47 -0000 1.9 |
98 |
@@ -1,6 +1,6 @@ |
99 |
-# Copyright 1999-2007 Gentoo Foundation |
100 |
+# Copyright 1999-2008 Gentoo Foundation |
101 |
# Distributed under the terms of the GNU General Public License v2 |
102 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071203.ebuild,v 1.8 2007/12/29 11:42:43 vapier Exp $ |
103 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071203.ebuild,v 1.9 2008/02/14 16:05:47 matsuu Exp $ |
104 |
|
105 |
TETEX_PV=3.0_p1 |
106 |
|
107 |
@@ -33,7 +33,7 @@ |
108 |
BUILD_DIR="${WORKDIR}/build/usr" |
109 |
|
110 |
LICENSE="GPL-2 BSD" |
111 |
-IUSE="X motif lesstif Xaw3d neXt iconv unicode" |
112 |
+IUSE="X motif Xaw3d neXt iconv unicode" |
113 |
|
114 |
DEPEND="!app-text/tetex |
115 |
!<app-text/ptetex-3.1.9 |
116 |
|
117 |
|
118 |
|
119 |
1.78 app-text/ptex/ChangeLog |
120 |
|
121 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ChangeLog?rev=1.78&view=markup |
122 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ChangeLog?rev=1.78&content-type=text/plain |
123 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ChangeLog?r1=1.77&r2=1.78 |
124 |
|
125 |
Index: ChangeLog |
126 |
=================================================================== |
127 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v |
128 |
retrieving revision 1.77 |
129 |
retrieving revision 1.78 |
130 |
diff -u -r1.77 -r1.78 |
131 |
--- ChangeLog 18 Jan 2008 16:29:06 -0000 1.77 |
132 |
+++ ChangeLog 14 Feb 2008 16:05:47 -0000 1.78 |
133 |
@@ -1,6 +1,16 @@ |
134 |
# ChangeLog for app-text/ptex |
135 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
136 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.77 2008/01/18 16:29:06 matsuu Exp $ |
137 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.78 2008/02/14 16:05:47 matsuu Exp $ |
138 |
+ |
139 |
+*ptex-3.1.10_p20080128 (14 Feb 2008) |
140 |
+ |
141 |
+ 14 Feb 2008; MATSUU Takuto <matsuu@g.o> |
142 |
+ +files/ptex-3.1.10_p20080128-gentoo.patch, ptex-3.1.5-r1.ebuild, |
143 |
+ ptex-3.1.10_p20071203.ebuild, ptex-3.1.10_p20071214.ebuild, |
144 |
+ ptex-3.1.10_p20080107.ebuild, +ptex-3.1.10_p20080128.ebuild: |
145 |
+ Version bumped. |
146 |
+ Removed lesstif USE flag, bug #209859. |
147 |
+ Clean up ebuild. |
148 |
|
149 |
*ptex-3.1.10_p20080107 (18 Jan 2008) |
150 |
|
151 |
|
152 |
|
153 |
|
154 |
1.14 app-text/ptex/ptex-3.1.5-r1.ebuild |
155 |
|
156 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.5-r1.ebuild?rev=1.14&view=markup |
157 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.5-r1.ebuild?rev=1.14&content-type=text/plain |
158 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.5-r1.ebuild?r1=1.13&r2=1.14 |
159 |
|
160 |
Index: ptex-3.1.5-r1.ebuild |
161 |
=================================================================== |
162 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.5-r1.ebuild,v |
163 |
retrieving revision 1.13 |
164 |
retrieving revision 1.14 |
165 |
diff -u -r1.13 -r1.14 |
166 |
--- ptex-3.1.5-r1.ebuild 11 Jan 2008 21:43:40 -0000 1.13 |
167 |
+++ ptex-3.1.5-r1.ebuild 14 Feb 2008 16:05:47 -0000 1.14 |
168 |
@@ -1,6 +1,6 @@ |
169 |
# Copyright 1999-2008 Gentoo Foundation |
170 |
# Distributed under the terms of the GNU General Public License v2 |
171 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.5-r1.ebuild,v 1.13 2008/01/11 21:43:40 grobian Exp $ |
172 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.5-r1.ebuild,v 1.14 2008/02/14 16:05:47 matsuu Exp $ |
173 |
|
174 |
PTEX_TEXMF_PV=2.3 |
175 |
TETEX_PV=2.0.2 |
176 |
@@ -36,26 +36,26 @@ |
177 |
tetex-2_src_unpack |
178 |
|
179 |
einfo "Unpacking pTeX sources..." |
180 |
- cd ${S}/texmf |
181 |
+ cd "${S}"/texmf |
182 |
unpack ${PTEX_TEXMF} |
183 |
|
184 |
- cd ${S}/texk/web2c |
185 |
+ cd "${S}"/texk/web2c |
186 |
unpack ${PTEX_SRC} |
187 |
|
188 |
- cd ${S}/texk |
189 |
+ cd "${S}"/texk |
190 |
unpack dvipsk-jpatch-p1.6a.tar.gz |
191 |
epatch dvipsk-5.92b-p1.6a.patch |
192 |
|
193 |
if use X ; then |
194 |
- cd ${S} |
195 |
- epatch ${DISTDIR}/tetex-src-2.0.2-xdvik-y1.patch.gz |
196 |
- epatch ${DISTDIR}/xdvik-22.40y1-j1.21.patch.gz |
197 |
- epatch ${DISTDIR}/tetex-src-2.0.2-xdvik-y1-j1.19.patch.gz |
198 |
+ cd "${S}" |
199 |
+ epatch "${DISTDIR}"/tetex-src-2.0.2-xdvik-y1.patch.gz |
200 |
+ epatch "${DISTDIR}"/xdvik-22.40y1-j1.21.patch.gz |
201 |
+ epatch "${DISTDIR}"/tetex-src-2.0.2-xdvik-y1-j1.19.patch.gz |
202 |
sed -i -e "/\/usr\/local/s:^:%:g" \ |
203 |
-e "/kochi-.*-subst/s:%::g" \ |
204 |
-e "s:/usr/local:/usr:g" \ |
205 |
-e "s:/usr/X11R6/lib/X11/fonts/truetype:/usr/share/fonts/kochi-substitute:g" \ |
206 |
- ${S}/texk/xdvik/vfontmap.freetype || die |
207 |
+ "${S}"/texk/xdvik/vfontmap.freetype || die |
208 |
cd texk/oxdvik |
209 |
ln -s ../xdvik/*.{c,h} ./ |
210 |
cp -f ../xdvik/Makefile.in.oxdvi Makefile.in |
211 |
@@ -63,21 +63,21 @@ |
212 |
fi |
213 |
|
214 |
# bug 75801 |
215 |
- EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p0" epatch ${FILESDIR}/xpdf-CESA-2004-007-xpdf2-newer.diff |
216 |
- EPATCH_OPTS="-d ${S}/libs/xpdf -p1" epatch ${FILESDIR}/xpdf-goo-sizet.patch |
217 |
- EPATCH_OPTS="-d ${S}/libs/xpdf -p1" epatch ${FILESDIR}/xpdf2-underflow.patch |
218 |
- EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p0" epatch ${FILESDIR}/xpdf-3.00pl2-CAN-2004-1125.patch |
219 |
- EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p0" epatch ${FILESDIR}/xpdf-3.00pl3-CAN-2005-0064.patch |
220 |
- EPATCH_OPTS="-d ${S} -p1" epatch ${FILESDIR}/xdvizilla.patch |
221 |
+ EPATCH_OPTS="-d "${S}"/libs/xpdf/xpdf -p0" epatch "${FILESDIR}"/xpdf-CESA-2004-007-xpdf2-newer.diff |
222 |
+ EPATCH_OPTS="-d "${S}"/libs/xpdf -p1" epatch "${FILESDIR}"/xpdf-goo-sizet.patch |
223 |
+ EPATCH_OPTS="-d "${S}"/libs/xpdf -p1" epatch "${FILESDIR}"/xpdf2-underflow.patch |
224 |
+ EPATCH_OPTS="-d "${S}"/libs/xpdf/xpdf -p0" epatch "${FILESDIR}"/xpdf-3.00pl2-CAN-2004-1125.patch |
225 |
+ EPATCH_OPTS="-d "${S}"/libs/xpdf/xpdf -p0" epatch "${FILESDIR}"/xpdf-3.00pl3-CAN-2005-0064.patch |
226 |
+ EPATCH_OPTS="-d "${S}" -p1" epatch "${FILESDIR}"/xdvizilla.patch |
227 |
|
228 |
#bug 115775 |
229 |
- EPATCH_OPTS="-d ${S}/libs/xpdf/xpdf -p2" epatch ${FILESDIR}/xpdf-2.02pl1-CAN-2005-3191-3.patch |
230 |
+ EPATCH_OPTS="-d "${S}"/libs/xpdf/xpdf -p2" epatch "${FILESDIR}"/xpdf-2.02pl1-CAN-2005-3191-3.patch |
231 |
|
232 |
#bug 122365 |
233 |
- EPATCH_OPTS="-d ${WORKDIR}" epatch ${FILESDIR}/${P}-flex-unput.patch |
234 |
+ EPATCH_OPTS="-d ${WORKDIR}" epatch "${FILESDIR}"/${P}-flex-unput.patch |
235 |
|
236 |
# bug 118264 |
237 |
- EPATCH_OPTS="-d ${WORKDIR} -p0" epatch ${FILESDIR}/${P}-dvi-draw-conflicting-types.patch |
238 |
+ EPATCH_OPTS="-d ${WORKDIR} -p0" epatch "${FILESDIR}"/${P}-dvi-draw-conflicting-types.patch |
239 |
|
240 |
} |
241 |
|
242 |
@@ -89,7 +89,7 @@ |
243 |
|
244 |
tetex_src_compile |
245 |
|
246 |
- cat >>${S}/texk/web2c/fmtutil.cnf<<-EOF |
247 |
+ cat >>"${S}"/texk/web2c/fmtutil.cnf<<-EOF |
248 |
|
249 |
# Japanese pLaTeX: |
250 |
ptex ptex - ptex.ini |
251 |
@@ -97,12 +97,12 @@ |
252 |
platex209 ptex language.dat plplain.ini |
253 |
EOF |
254 |
|
255 |
- cat >>${S}/texk/web2c/texmf.cnf<<-EOF |
256 |
+ cat >>"${S}"/texk/web2c/texmf.cnf<<-EOF |
257 |
|
258 |
CMAPINPUTS = .;/opt/Acrobat5/Resource/Font//;/usr/share/xpdf// |
259 |
EOF |
260 |
|
261 |
- cd ${S}/texk/web2c/${PN}-src-${PV} || die |
262 |
+ cd "${S}"/texk/web2c/${PN}-src-${PV} || die |
263 |
./configure EUC || die "configure pTeX failed" |
264 |
|
265 |
make programs || die "make pTeX failed" |
266 |
@@ -112,23 +112,23 @@ |
267 |
tetex-2_src_install |
268 |
|
269 |
einfo "Installing pTeX..." |
270 |
- cd ${S}/texk/web2c/${PN}-src-${PV} || die |
271 |
- einstall bindir=${D}/usr/bin texmf=${D}/usr/share/texmf || die |
272 |
+ cd "${S}"/texk/web2c/${PN}-src-${PV} || die |
273 |
+ einstall bindir="${D}"/usr/bin texmf="${D}"/usr/share/texmf || die |
274 |
|
275 |
insinto /usr/share/texmf/dvips/config |
276 |
- doins ${FILESDIR}/psfonts-ja.map || die |
277 |
- cat >>${D}/usr/share/texmf/web2c/updmap.cfg<<-EOF |
278 |
+ doins "${FILESDIR}"/psfonts-ja.map || die |
279 |
+ cat >>"${D}"/usr/share/texmf/web2c/updmap.cfg<<-EOF |
280 |
|
281 |
# Japanese fonts |
282 |
MixedMap psfonts-ja.map |
283 |
EOF |
284 |
|
285 |
docinto dvipsk |
286 |
- cd ${S}/texk/dvipsk |
287 |
+ cd "${S}"/texk/dvipsk |
288 |
dodoc ../ChangeLog.jpatch ../README.jpatch |
289 |
|
290 |
if use X ; then |
291 |
- cd ${S}/texk/xdvik |
292 |
+ cd "${S}"/texk/xdvik |
293 |
docinto xdvik |
294 |
dodoc ANNOUNCE BUGS CHANGES.xdvik-jp FAQ README.* |
295 |
docinto xdvik/READMEs |
296 |
|
297 |
|
298 |
|
299 |
1.1 app-text/ptex/ptex-3.1.10_p20080128.ebuild |
300 |
|
301 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080128.ebuild?rev=1.1&view=markup |
302 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080128.ebuild?rev=1.1&content-type=text/plain |
303 |
|
304 |
Index: ptex-3.1.10_p20080128.ebuild |
305 |
=================================================================== |
306 |
# Copyright 1999-2008 Gentoo Foundation |
307 |
# Distributed under the terms of the GNU General Public License v2 |
308 |
# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080128.ebuild,v 1.1 2008/02/14 16:05:47 matsuu Exp $ |
309 |
|
310 |
TETEX_PV=3.0_p1 |
311 |
|
312 |
inherit eutils tetex-3 flag-o-matic autotools multilib |
313 |
|
314 |
SMALL_PV="${TETEX_PV/_p*}" |
315 |
TETEX_TEXMF_PV="${SMALL_PV}" |
316 |
TETEX_S="${WORKDIR}/tetex-src-${SMALL_PV}" |
317 |
|
318 |
DESCRIPTION="TeX distribution teTeX with Japanese patch collection 'ptetex3'" |
319 |
HOMEPAGE="http://www.nn.iij4u.or.jp/~tutimura/tex/ptetex.html" |
320 |
|
321 |
#TETEX_SRC="tetex-src-${TETEX_PV}.tar.gz" |
322 |
TETEX_SRC="tetex-src-${SMALL_PV}.tar.gz" |
323 |
TETEX_TEXMF="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}" |
324 |
TETEX_TEXMF_SRC="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}po.tar.gz" |
325 |
PTETEX="ptetex3-${PV/*_p}" |
326 |
PTETEX_CMAP="ptetex-cmap-20051117" |
327 |
|
328 |
SRC_PATH_TETEX="ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib" |
329 |
SRC_URI="${SRC_PATH_TETEX}/${TETEX_SRC} |
330 |
${SRC_PATH_TETEX}/${TETEX_TEXMF_SRC} |
331 |
http://tutimura.ath.cx/~nob/tex/ptetex/ptetex3/${PTETEX}.tar.gz |
332 |
http://tutimura.ath.cx/~nob/tex/ptetex/ptetex-cmap/${PTETEX_CMAP}.tar.gz |
333 |
mirror://gentoo/${PN}-3.1.10_p20071122-dviljk-security-fixes.patch.bz2" |
334 |
# mirror://gentoo/tetex-${TETEX_PV}-gentoo.tar.gz |
335 |
|
336 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" |
337 |
|
338 |
BUILD_DIR="${WORKDIR}/build/usr" |
339 |
|
340 |
LICENSE="GPL-2 BSD" |
341 |
IUSE="X motif Xaw3d neXt iconv unicode" |
342 |
|
343 |
RDEPEND="!app-text/tetex |
344 |
!<app-text/ptetex-3.1.9 |
345 |
!app-text/dvipdfmx |
346 |
!app-text/xdvik |
347 |
media-libs/t1lib |
348 |
media-libs/gd |
349 |
X? ( |
350 |
>=media-libs/freetype-2.3.4 |
351 |
|| ( |
352 |
media-fonts/ja-ipafonts |
353 |
media-fonts/ipamonafont |
354 |
media-fonts/vlgothic |
355 |
media-fonts/sazanami |
356 |
media-fonts/kochi-substitute |
357 |
) |
358 |
)" |
359 |
DEPEND="${RDEPEND} |
360 |
app-arch/unzip" |
361 |
|
362 |
S="${WORKDIR}/${PTETEX}" |
363 |
|
364 |
# Sorry this provides tetex again... |
365 |
PROVIDE="virtual/tetex" |
366 |
|
367 |
src_unpack() { |
368 |
#tetex-3_src_unpack |
369 |
mkdir -p "${WORKDIR}/${TETEX_TEXMF}" |
370 |
cd "${WORKDIR}/${TETEX_TEXMF}" |
371 |
unpack ${TETEX_TEXMF_SRC} |
372 |
cd "${WORKDIR}" |
373 |
unpack ${TETEX_SRC} |
374 |
cd "${WORKDIR}" |
375 |
unpack ${PN}-3.1.10_p20071122-dviljk-security-fixes.patch.bz2 |
376 |
unpack ${PTETEX}.tar.gz |
377 |
unpack ${PTETEX_CMAP}.tar.gz |
378 |
echo ">>> Unpacking jis and morisawa fonts ..." |
379 |
tar xzf "${WORKDIR}"/${PTETEX}/archive/jis.tar.gz -C "${WORKDIR}" || die |
380 |
tar xzf "${WORKDIR}"/${PTETEX}/archive/morisawa.tar.gz -C "${WORKDIR}" || die |
381 |
|
382 |
# Gentoo box reserves variable ${P}!! |
383 |
cd "${S}" |
384 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
385 |
|
386 |
cat <<EOF > "${S}"/my_option |
387 |
SRC_DIR="${WORKDIR}" |
388 |
TMP_PREFIX="${BUILD_DIR}" |
389 |
PREFIX=/usr |
390 |
DATADIR=/usr/share |
391 |
TEXMFDIST="${WORKDIR}/${TETEX_TEXMF}" |
392 |
TEXSRC_EXTRACTED="${WORKDIR}" |
393 |
#make_option vartexfonts=/var/lib/texmf |
394 |
make_option vartexfonts="${T}/texfonts" |
395 |
make_option CC="$(tc-getCC)" |
396 |
make_option CXX="$(tc-getCXX)" |
397 |
JAPANESE=international |
398 |
XDVI=echo |
399 |
PXDVI=echo |
400 |
PLATEX209=no |
401 |
conf_option --without-dviljk |
402 |
conf_option --without-dvipng |
403 |
conf_option --without-info |
404 |
conf_option --without-texi2html |
405 |
conf_option --without-texinfo |
406 |
|
407 |
conf_option --with-system-zlib |
408 |
conf_option --with-system-pnglib |
409 |
conf_option --with-system-gd |
410 |
conf_option --with-system-ncurses |
411 |
conf_option --with-system-t1lib |
412 |
conf_option --enable-shared |
413 |
EOF |
414 |
|
415 |
if use iconv ; then |
416 |
echo "conf_option --enable-kanji-iconv" >> "${S}"/my_option |
417 |
fi |
418 |
|
419 |
if use unicode ; then |
420 |
echo "KANJI_CODE=UTF8" >> "${S}"/my_option |
421 |
else |
422 |
echo "KANJI_CODE=EUC" >> "${S}"/my_option |
423 |
fi |
424 |
|
425 |
# copied from tetex-3.eclass and modified |
426 |
if use X ; then |
427 |
if use motif ; then |
428 |
append-ldflags $(motif-config --libs) |
429 |
export CPPFLAGS="${CPPFLAGS} $(motif-config --cflags)" |
430 |
toolkit="motif" |
431 |
elif use neXt ; then |
432 |
toolkit="neXtaw" |
433 |
elif use Xaw3d ; then |
434 |
toolkit="xaw3d" |
435 |
else |
436 |
toolkit="xaw" |
437 |
fi |
438 |
append-ldflags $(freetype-config --libs) |
439 |
echo "export CPPFLAGS=\"${CPPFLAGS} $(freetype-config --cflags)\"" >> "${S}"/my_option |
440 |
echo "conf_option --with-xdvi-x-toolkit=${toolkit}" >> "${S}"/my_option |
441 |
else |
442 |
echo "conf_option --without-x" >> "${S}"/my_option |
443 |
echo "conf_option --without-xdvik" >> "${S}"/my_option |
444 |
echo "conf_option --without-pxdvik" >> "${S}"/my_option |
445 |
fi |
446 |
|
447 |
cd "${S}" |
448 |
unset TEXMFMAIN TEXMF HOME |
449 |
emake -j1 x || die "emake x failed" |
450 |
|
451 |
cd "${TETEX_S}" |
452 |
|
453 |
epatch "${FILESDIR}/tetex-${SMALL_PV}-kpathsea-pic.patch" |
454 |
|
455 |
# bug 85404 |
456 |
epatch "${FILESDIR}/${PN}-3.1.10_p20071122-epstopdf-wrong-rotation.patch" |
457 |
|
458 |
# ptetex included |
459 |
#epatch "${FILESDIR}/tetex-${TETEX_PV}-amd64-xdvik-wp.patch" |
460 |
epatch "${FILESDIR}/tetex-${TETEX_PV}-mptest.patch" |
461 |
|
462 |
#bug 98029 |
463 |
# no need |
464 |
#epatch "${FILESDIR}/${PN}-3.1.10_p20071122-fmtutil-etex.patch" |
465 |
|
466 |
#bug 115775 |
467 |
# ptex included |
468 |
#epatch "${FILESDIR}/tetex-${TETEX_PV}-xpdf-vulnerabilities.patch" |
469 |
|
470 |
# bug 94860 |
471 |
epatch "${FILESDIR}/${PN}-3.1.10_p20071122-pdftosrc-install.patch" |
472 |
|
473 |
# bug 126918 |
474 |
epatch "${FILESDIR}/tetex-${TETEX_PV}-create-empty-files.patch" |
475 |
|
476 |
# bug 94901 |
477 |
epatch "${FILESDIR}/tetex-${TETEX_PV}-dvipdfm-timezone.patch" |
478 |
|
479 |
# security bug #170861 |
480 |
# ptetex included |
481 |
# epatch "${FILESDIR}/tetex-${TETEX_PV}-CVE-2007-0650.patch" |
482 |
|
483 |
# security bug #188172 |
484 |
# ptetex included |
485 |
#epatch "${FILESDIR}/tetex-${TETEX_PV}-xpdf-CVE-2007-3387.patch" |
486 |
|
487 |
# security bug #198238 |
488 |
epatch "${FILESDIR}/tetex-${TETEX_PV}-dvips_bufferoverflow.patch" |
489 |
|
490 |
# securty bug #196735 |
491 |
epatch "${FILESDIR}/xpdf-3.02pl2.patch" |
492 |
|
493 |
# Construct a Gentoo site texmf directory |
494 |
# that overlays the upstream supplied |
495 |
# target not found |
496 |
#epatch "${FILESDIR}/tetex-${TETEX_PV}-texmf-site.patch" |
497 |
|
498 |
# security bug #198238 |
499 |
epatch "${WORKDIR}/${PN}-3.1.10_p20071122-dviljk-security-fixes.patch" |
500 |
|
501 |
# security bug #198238 and bug #193437 |
502 |
epatch "${FILESDIR}/tetex-${TETEX_PV}-t1lib-SA26241_buffer_overflow.patch" |
503 |
|
504 |
cd "${TETEX_S}/texk/dviljk" |
505 |
eautoreconf |
506 |
} |
507 |
|
508 |
src_compile() { |
509 |
unset TEXMFMAIN TEXMF HOME |
510 |
|
511 |
emake -j1 c || die "emake c failed" |
512 |
emake -j1 macro || die "emake macro failed" |
513 |
emake -j1 otf || die "emake otf failed" |
514 |
emake -j1 fonty || die "emake fonty failed" |
515 |
emake -j1 babel || die "emake babel failed" |
516 |
|
517 |
einfo "Setting ptetex-cmap ..." |
518 |
cd "${WORKDIR}/${PTETEX_CMAP}" |
519 |
PATH="${BUILD_DIR}/bin:$PATH" ./setup.sh "${BUILD_DIR}"/share/texmf/fonts/cmap |
520 |
} |
521 |
|
522 |
src_test() { |
523 |
emake -j1 test || die "emake test failed" |
524 |
} |
525 |
|
526 |
src_install() { |
527 |
#tetex-3_src_install |
528 |
einfo "Installing ptetex3 binaries ..." |
529 |
dobin "${BUILD_DIR}"/bin/* |
530 |
dolib "${BUILD_DIR}"/lib/* |
531 |
|
532 |
einfo "Installing /usr/include/* files ..." |
533 |
insinto /usr/include |
534 |
doins -r "${BUILD_DIR}"/include/* |
535 |
|
536 |
einfo "Installing /usr/share/* files ..." |
537 |
insinto /usr/share |
538 |
#doins -r "${BUILD_DIR}"/share/* |
539 |
cp -dr "${BUILD_DIR}"/share/* "${D}"/usr/share |
540 |
|
541 |
einfo "Installing document files ..." |
542 |
doman "${BUILD_DIR}"/man/*/* |
543 |
doinfo "${BUILD_DIR}"/info/* |
544 |
|
545 |
einfo "Installing jis and morisawa fonts ..." |
546 |
insinto /usr/share/texmf/fonts/tfm |
547 |
doins -r "${WORKDIR}"/jis/tfm/* || die "installing jis/tfm failed" |
548 |
doins -r "${WORKDIR}"/morisawa/tfm/* || die "installing morisawa/tfm failed" |
549 |
|
550 |
einfo "Installing texmf files ..." |
551 |
find "${WORKDIR}"/${TETEX_TEXMF} -maxdepth 1 -mindepth 1 -type f | xargs rm -f |
552 |
insinto /usr/share/texmf |
553 |
doins -r "${WORKDIR}"/${TETEX_TEXMF}/* |
554 |
|
555 |
einfo "Installing other files ..." |
556 |
insinto /usr/share/texmf/fonts/map/dvips/tetex |
557 |
doins "${WORKDIR}"/${TETEX_S}/texk/pdvipsk/psfonts_jp.map |
558 |
#insinto /var/lib/texmf/web2c |
559 |
insinto /usr/share/texmf/web2c |
560 |
doins -r "${BUILD_DIR}"/share/texmf-config/web2c/* |
561 |
doins -r "${BUILD_DIR}"/share/texmf-var/web2c/*.fmt |
562 |
|
563 |
einfo "Removing unnecessary files ..." |
564 |
rm -r "${D}"/usr/share/texmf/doc |
565 |
#rm -r "${D}"/usr/share/texmf-config |
566 |
#rm -r "${D}"/usr/share/texmf-var |
567 |
rm -r "${D}"/usr/share/texmf/web2c/texmf.cnf.* |
568 |
rm -r "${D}"/usr/share/texmf/web2c/fmtutil.cnf.* |
569 |
rm -r "${D}"/usr/info/dir |
570 |
find "${D}"/usr/share/texmf | grep "ls-R" | xargs rm -f |
571 |
|
572 |
einfo "Installing texmf-update scripte ..." |
573 |
dosbin "${FILESDIR}"/texmf-update |
574 |
#einfo "Making ls-R files ..." |
575 |
#TEXMF="${D}"/usr/share/texmf "${D}"/usr/bin/mktexlsr || die |
576 |
|
577 |
dodoc ChangeLog* README* |
578 |
} |
579 |
|
580 |
pkg_postinst() { |
581 |
tetex-3_pkg_postinst |
582 |
|
583 |
elog |
584 |
elog "Japanese dvips and xdvi have been renamed to pdvipsk and pxdvik." |
585 |
#elog "You also need to emerge app-text/dvipdfmx to convert dvi into PDF." |
586 |
elog |
587 |
} |
588 |
|
589 |
|
590 |
|
591 |
-- |
592 |
gentoo-commits@l.g.o mailing list |