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: ptex-3.1.10_p20071203.ebuild ptex-3.1.10_p20080128.ebuild ChangeLog ptex-3.1.10_p20080414.ebuild
Date: Sat, 10 May 2008 01:50:48
Message-Id: E1JueEX-00074P-7x@stork.gentoo.org
1 matsuu 08/05/10 01:50:45
2
3 Modified: ptex-3.1.10_p20071203.ebuild
4 ptex-3.1.10_p20080128.ebuild ChangeLog
5 Added: ptex-3.1.10_p20080414.ebuild
6 Log:
7 Version bumped. Removed motif-config, bug #219300.
8 (Portage version: 2.1.5_rc6)
9
10 Revision Changes Path
11 1.10 app-text/ptex/ptex-3.1.10_p20071203.ebuild
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071203.ebuild?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071203.ebuild?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071203.ebuild?r1=1.9&r2=1.10
16
17 Index: ptex-3.1.10_p20071203.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071203.ebuild,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ptex-3.1.10_p20071203.ebuild 14 Feb 2008 16:05:47 -0000 1.9
24 +++ ptex-3.1.10_p20071203.ebuild 10 May 2008 01:50:44 -0000 1.10
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2008 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $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 $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20071203.ebuild,v 1.10 2008/05/10 01:50:44 matsuu Exp $
30
31 TETEX_PV=3.0_p1
32
33 @@ -118,8 +118,6 @@
34 # copied from tetex-3.eclass and modified
35 if use X ; then
36 if use motif ; then
37 - append-ldflags $(motif-config --libs)
38 - export CPPFLAGS="${CPPFLAGS} $(motif-config --cflags)"
39 toolkit="motif"
40 elif use neXt ; then
41 toolkit="neXtaw"
42
43
44
45 1.2 app-text/ptex/ptex-3.1.10_p20080128.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080128.ebuild?rev=1.2&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080128.ebuild?rev=1.2&content-type=text/plain
49 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080128.ebuild?r1=1.1&r2=1.2
50
51 Index: ptex-3.1.10_p20080128.ebuild
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080128.ebuild,v
54 retrieving revision 1.1
55 retrieving revision 1.2
56 diff -u -r1.1 -r1.2
57 --- ptex-3.1.10_p20080128.ebuild 14 Feb 2008 16:05:47 -0000 1.1
58 +++ ptex-3.1.10_p20080128.ebuild 10 May 2008 01:50:44 -0000 1.2
59 @@ -1,6 +1,6 @@
60 # Copyright 1999-2008 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 -# $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 $
63 +# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080128.ebuild,v 1.2 2008/05/10 01:50:44 matsuu Exp $
64
65 TETEX_PV=3.0_p1
66
67 @@ -120,8 +120,6 @@
68 # copied from tetex-3.eclass and modified
69 if use X ; then
70 if use motif ; then
71 - append-ldflags $(motif-config --libs)
72 - export CPPFLAGS="${CPPFLAGS} $(motif-config --cflags)"
73 toolkit="motif"
74 elif use neXt ; then
75 toolkit="neXtaw"
76
77
78
79 1.80 app-text/ptex/ChangeLog
80
81 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ChangeLog?rev=1.80&view=markup
82 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ChangeLog?rev=1.80&content-type=text/plain
83 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ChangeLog?r1=1.79&r2=1.80
84
85 Index: ChangeLog
86 ===================================================================
87 RCS file: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v
88 retrieving revision 1.79
89 retrieving revision 1.80
90 diff -u -r1.79 -r1.80
91 --- ChangeLog 21 Feb 2008 16:27:08 -0000 1.79
92 +++ ChangeLog 10 May 2008 01:50:44 -0000 1.80
93 @@ -1,6 +1,13 @@
94 # ChangeLog for app-text/ptex
95 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
96 -# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.79 2008/02/21 16:27:08 matsuu Exp $
97 +# $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ChangeLog,v 1.80 2008/05/10 01:50:44 matsuu Exp $
98 +
99 +*ptex-3.1.10_p20080414 (10 May 2008)
100 +
101 + 10 May 2008; MATSUU Takuto <matsuu@g.o>
102 + +files/ptex-3.1.10_p20080414-gentoo.patch, ptex-3.1.10_p20071203.ebuild,
103 + ptex-3.1.10_p20080128.ebuild, +ptex-3.1.10_p20080414.ebuild:
104 + Version bumped. Removed motif-config, bug #219300.
105
106 21 Feb 2008; MATSUU Takuto <matsuu@g.o>
107 -files/xpdf-2.02pl1-CAN-2005-3191-3.patch,
108
109
110
111 1.1 app-text/ptex/ptex-3.1.10_p20080414.ebuild
112
113 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080414.ebuild?rev=1.1&view=markup
114 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080414.ebuild?rev=1.1&content-type=text/plain
115
116 Index: ptex-3.1.10_p20080414.ebuild
117 ===================================================================
118 # Copyright 1999-2008 Gentoo Foundation
119 # Distributed under the terms of the GNU General Public License v2
120 # $Header: /var/cvsroot/gentoo-x86/app-text/ptex/ptex-3.1.10_p20080414.ebuild,v 1.1 2008/05/10 01:50:44 matsuu Exp $
121
122 TETEX_PV=3.0_p1
123
124 inherit eutils tetex-3 flag-o-matic autotools multilib
125
126 SMALL_PV="${TETEX_PV/_p*}"
127 TETEX_TEXMF_PV="${SMALL_PV}"
128 TETEX_S="${WORKDIR}/tetex-src-${SMALL_PV}"
129
130 DESCRIPTION="TeX distribution teTeX with Japanese patch collection 'ptetex3'"
131 HOMEPAGE="http://www.nn.iij4u.or.jp/~tutimura/tex/ptetex.html"
132
133 #TETEX_SRC="tetex-src-${TETEX_PV}.tar.gz"
134 TETEX_SRC="tetex-src-${SMALL_PV}.tar.gz"
135 TETEX_TEXMF="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}"
136 TETEX_TEXMF_SRC="tetex-texmf-${TETEX_TEXMF_PV:-${TETEX_PV}}po.tar.gz"
137 PTETEX="ptetex3-${PV/*_p}"
138 PTETEX_CMAP="ptetex-cmap-20051117"
139
140 SRC_PATH_TETEX="ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/3.0/distrib"
141 SRC_URI="${SRC_PATH_TETEX}/${TETEX_SRC}
142 ${SRC_PATH_TETEX}/${TETEX_TEXMF_SRC}
143 http://tutimura.ath.cx/~nob/tex/ptetex/ptetex3/${PTETEX}.tar.gz
144 http://tutimura.ath.cx/~nob/tex/ptetex/ptetex-cmap/${PTETEX_CMAP}.tar.gz
145 mirror://gentoo/${PN}-3.1.10_p20071122-dviljk-security-fixes.patch.bz2"
146 # mirror://gentoo/tetex-${TETEX_PV}-gentoo.tar.gz
147
148 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
149
150 BUILD_DIR="${WORKDIR}/build/usr"
151
152 LICENSE="GPL-2 BSD"
153 IUSE="X motif Xaw3d neXt iconv unicode"
154
155 RDEPEND="!app-text/tetex
156 !<app-text/ptetex-3.1.9
157 !app-text/dvipdfmx
158 !app-text/xdvik
159 media-libs/t1lib
160 media-libs/gd
161 X? (
162 >=media-libs/freetype-2.3.4
163 || (
164 media-fonts/ja-ipafonts
165 media-fonts/ipamonafont
166 media-fonts/vlgothic
167 media-fonts/sazanami
168 media-fonts/kochi-substitute
169 )
170 )"
171 DEPEND="${RDEPEND}
172 app-arch/unzip"
173
174 S="${WORKDIR}/${PTETEX}"
175
176 # Sorry this provides tetex again...
177 PROVIDE="virtual/tetex"
178
179 src_unpack() {
180 #tetex-3_src_unpack
181 mkdir -p "${WORKDIR}/${TETEX_TEXMF}"
182 cd "${WORKDIR}/${TETEX_TEXMF}"
183 unpack ${TETEX_TEXMF_SRC}
184 cd "${WORKDIR}"
185 unpack ${TETEX_SRC}
186 cd "${WORKDIR}"
187 unpack ${PN}-3.1.10_p20071122-dviljk-security-fixes.patch.bz2
188 unpack ${PTETEX}.tar.gz
189 unpack ${PTETEX_CMAP}.tar.gz
190 echo ">>> Unpacking jis and morisawa fonts ..."
191 tar xzf "${WORKDIR}"/${PTETEX}/archive/jis.tar.gz -C "${WORKDIR}" || die
192 tar xzf "${WORKDIR}"/${PTETEX}/archive/morisawa.tar.gz -C "${WORKDIR}" || die
193
194 # Gentoo box reserves variable ${P}!!
195 cd "${S}"
196 epatch "${FILESDIR}"/${P}-gentoo.patch
197
198 cat <<EOF > "${S}"/my_option
199 SRC_DIR="${WORKDIR}"
200 TMP_PREFIX="${BUILD_DIR}"
201 PREFIX=/usr
202 DATADIR=/usr/share
203 TEXMFDIST="${WORKDIR}/${TETEX_TEXMF}"
204 TEXSRC_EXTRACTED="${WORKDIR}"
205 #make_option vartexfonts=/var/lib/texmf
206 make_option vartexfonts="${T}/texfonts"
207 make_option CC="$(tc-getCC)"
208 make_option CXX="$(tc-getCXX)"
209 JAPANESE=international
210 XDVI=echo
211 PXDVI=echo
212 PLATEX209=no
213 conf_option --without-dviljk
214 conf_option --without-dvipng
215 conf_option --without-info
216 conf_option --without-texi2html
217 conf_option --without-texinfo
218
219 conf_option --with-system-zlib
220 conf_option --with-system-pnglib
221 conf_option --with-system-gd
222 conf_option --with-system-ncurses
223 conf_option --with-system-t1lib
224 conf_option --enable-shared
225 EOF
226
227 if use iconv ; then
228 echo "conf_option --enable-kanji-iconv" >> "${S}"/my_option
229 fi
230
231 if use unicode ; then
232 echo "KANJI_CODE=UTF8" >> "${S}"/my_option
233 else
234 echo "KANJI_CODE=EUC" >> "${S}"/my_option
235 fi
236
237 # copied from tetex-3.eclass and modified
238 if use X ; then
239 if use motif ; then
240 toolkit="motif"
241 elif use neXt ; then
242 toolkit="neXtaw"
243 elif use Xaw3d ; then
244 toolkit="xaw3d"
245 else
246 toolkit="xaw"
247 fi
248 append-ldflags $(freetype-config --libs)
249 echo "export CPPFLAGS=\"${CPPFLAGS} $(freetype-config --cflags)\"" >> "${S}"/my_option
250 echo "conf_option --with-xdvi-x-toolkit=${toolkit}" >> "${S}"/my_option
251 else
252 echo "conf_option --without-x" >> "${S}"/my_option
253 echo "conf_option --without-xdvik" >> "${S}"/my_option
254 echo "conf_option --without-pxdvik" >> "${S}"/my_option
255 fi
256
257 cd "${S}"
258 unset TEXMFMAIN TEXMF HOME
259 emake -j1 x || die "emake x failed"
260
261 cd "${TETEX_S}"
262
263 epatch "${FILESDIR}/tetex-${SMALL_PV}-kpathsea-pic.patch"
264
265 # bug 85404
266 epatch "${FILESDIR}/${PN}-3.1.10_p20071122-epstopdf-wrong-rotation.patch"
267
268 # ptetex included
269 #epatch "${FILESDIR}/tetex-${TETEX_PV}-amd64-xdvik-wp.patch"
270 epatch "${FILESDIR}/tetex-${TETEX_PV}-mptest.patch"
271
272 #bug 98029
273 # no need
274 #epatch "${FILESDIR}/${PN}-3.1.10_p20071122-fmtutil-etex.patch"
275
276 #bug 115775
277 # ptex included
278 #epatch "${FILESDIR}/tetex-${TETEX_PV}-xpdf-vulnerabilities.patch"
279
280 # bug 94860
281 epatch "${FILESDIR}/${PN}-3.1.10_p20071122-pdftosrc-install.patch"
282
283 # bug 126918
284 epatch "${FILESDIR}/tetex-${TETEX_PV}-create-empty-files.patch"
285
286 # bug 94901
287 epatch "${FILESDIR}/tetex-${TETEX_PV}-dvipdfm-timezone.patch"
288
289 # security bug #170861
290 # ptetex included
291 # epatch "${FILESDIR}/tetex-${TETEX_PV}-CVE-2007-0650.patch"
292
293 # security bug #188172
294 # ptetex included
295 #epatch "${FILESDIR}/tetex-${TETEX_PV}-xpdf-CVE-2007-3387.patch"
296
297 # security bug #198238
298 epatch "${FILESDIR}/tetex-${TETEX_PV}-dvips_bufferoverflow.patch"
299
300 # securty bug #196735
301 epatch "${FILESDIR}/xpdf-3.02pl2.patch"
302
303 # Construct a Gentoo site texmf directory
304 # that overlays the upstream supplied
305 # target not found
306 #epatch "${FILESDIR}/tetex-${TETEX_PV}-texmf-site.patch"
307
308 # security bug #198238
309 epatch "${WORKDIR}/${PN}-3.1.10_p20071122-dviljk-security-fixes.patch"
310
311 # security bug #198238 and bug #193437
312 epatch "${FILESDIR}/tetex-${TETEX_PV}-t1lib-SA26241_buffer_overflow.patch"
313
314 cd "${TETEX_S}/texk/dviljk"
315 eautoreconf
316 }
317
318 src_compile() {
319 unset TEXMFMAIN TEXMF HOME
320
321 emake -j1 c || die "emake c failed"
322 emake -j1 macro || die "emake macro failed"
323 emake -j1 otf || die "emake otf failed"
324 emake -j1 fonty || die "emake fonty failed"
325 emake -j1 babel || die "emake babel failed"
326
327 einfo "Setting ptetex-cmap ..."
328 cd "${WORKDIR}/${PTETEX_CMAP}"
329 PATH="${BUILD_DIR}/bin:$PATH" ./setup.sh "${BUILD_DIR}"/share/texmf/fonts/cmap
330 }
331
332 src_test() {
333 emake -j1 test || die "emake test failed"
334 }
335
336 src_install() {
337 #tetex-3_src_install
338 einfo "Installing ptetex3 binaries ..."
339 dobin "${BUILD_DIR}"/bin/*
340 dolib "${BUILD_DIR}"/lib/*
341
342 einfo "Installing /usr/include/* files ..."
343 insinto /usr/include
344 doins -r "${BUILD_DIR}"/include/*
345
346 einfo "Installing /usr/share/* files ..."
347 insinto /usr/share
348 #doins -r "${BUILD_DIR}"/share/*
349 cp -dr "${BUILD_DIR}"/share/* "${D}"/usr/share
350
351 einfo "Installing document files ..."
352 doman "${BUILD_DIR}"/man/*/*
353 doinfo "${BUILD_DIR}"/info/*
354
355 einfo "Installing jis and morisawa fonts ..."
356 insinto /usr/share/texmf/fonts/tfm
357 doins -r "${WORKDIR}"/jis/tfm/* || die "installing jis/tfm failed"
358 doins -r "${WORKDIR}"/morisawa/tfm/* || die "installing morisawa/tfm failed"
359
360 einfo "Installing texmf files ..."
361 find "${WORKDIR}"/${TETEX_TEXMF} -maxdepth 1 -mindepth 1 -type f | xargs rm -f
362 insinto /usr/share/texmf
363 doins -r "${WORKDIR}"/${TETEX_TEXMF}/*
364
365 einfo "Installing other files ..."
366 insinto /usr/share/texmf/fonts/map/dvips/tetex
367 doins "${WORKDIR}"/${TETEX_S}/texk/pdvipsk/psfonts_jp.map
368 #insinto /var/lib/texmf/web2c
369 insinto /usr/share/texmf/web2c
370 doins -r "${BUILD_DIR}"/share/texmf-config/web2c/*
371 doins -r "${BUILD_DIR}"/share/texmf-var/web2c/*.fmt
372
373 einfo "Removing unnecessary files ..."
374 rm -r "${D}"/usr/share/texmf/doc
375 #rm -r "${D}"/usr/share/texmf-config
376 #rm -r "${D}"/usr/share/texmf-var
377 rm -r "${D}"/usr/share/texmf/web2c/texmf.cnf.*
378 rm -r "${D}"/usr/share/texmf/web2c/fmtutil.cnf.*
379 rm -r "${D}"/usr/info/dir
380 find "${D}"/usr/share/texmf | grep "ls-R" | xargs rm -f
381
382 einfo "Installing texmf-update scripte ..."
383 dosbin "${FILESDIR}"/texmf-update
384 #einfo "Making ls-R files ..."
385 #TEXMF="${D}"/usr/share/texmf "${D}"/usr/bin/mktexlsr || die
386
387 dodoc ChangeLog* README*
388 }
389
390 pkg_postinst() {
391 tetex-3_pkg_postinst
392
393 elog
394 elog "Japanese dvips and xdvi have been renamed to pdvipsk and pxdvik."
395 #elog "You also need to emerge app-text/dvipdfmx to convert dvi into PDF."
396 elog
397 }
398
399
400
401 --
402 gentoo-commits@l.g.o mailing list