Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/texlive-core: ChangeLog texlive-core-2007-r2.ebuild texlive-core-2007-r1.ebuild
Date: Mon, 22 Oct 2007 06:33:27
Message-Id: E1IjqgF-0005Id-UE@stork.gentoo.org
1 aballier 07/10/22 06:22:27
2
3 Modified: ChangeLog
4 Added: texlive-core-2007-r2.ebuild
5 Removed: texlive-core-2007-r1.ebuild
6 Log:
7 Add a patch from upstream to prevent buffer overflow with too long hrefs using dvips -z
8 (Portage version: 2.1.3.15)
9
10 Revision Changes Path
11 1.10 app-text/texlive-core/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?r1=1.9&r2=1.10
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ChangeLog 21 Oct 2007 11:32:02 -0000 1.9
24 +++ ChangeLog 22 Oct 2007 06:22:27 -0000 1.10
25 @@ -1,6 +1,14 @@
26 # ChangeLog for app-text/texlive-core
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.9 2007/10/21 11:32:02 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.10 2007/10/22 06:22:27 aballier Exp $
30 +
31 +*texlive-core-2007-r2 (22 Oct 2007)
32 +
33 + 22 Oct 2007; Alexis Ballier <aballier@g.o>
34 + +files/2007/texlive-core-2007-dvips_bufferoverflow.patch,
35 + -texlive-core-2007-r1.ebuild, +texlive-core-2007-r2.ebuild:
36 + Add a patch from upstream to prevent buffer overflow with too long hrefs
37 + using dvips -z
38
39 *texlive-core-2007-r1 (21 Oct 2007)
40
41
42
43
44 1.1 app-text/texlive-core/texlive-core-2007-r2.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/texlive-core-2007-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/texlive-core-2007-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: texlive-core-2007-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2007 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/texlive-core-2007-r2.ebuild,v 1.1 2007/10/22 06:22:27 aballier Exp $
54
55 inherit eutils flag-o-matic toolchain-funcs libtool autotools texlive-common
56
57 DESCRIPTION="A complete TeX distribution"
58 HOMEPAGE="http://tug.org/texlive/"
59 SLOT="0"
60 LICENSE="GPL-2 LPPL-1.3c"
61
62 TEXLIVE_BASICBIN_CONTENTS="bin-bibtex bin-dialog bin-dvipdfmx bin-dvipsk bin-etex bin-getnonfreefonts bin-gsftopk bin-kpathsea bin-makeindex bin-metafont bin-mfware bin-pdftex bin-tetex bin-tex bin-texconfig lib-regex lib-zlib"
63
64 TEXLIVE_BINEXTRA_CONTENTS="bin-bibtex8 bin-chktex bin-ctie bin-cweb bin-detex bin-dtl bin-dvi2tty bin-dvicopy bin-dvidvi bin-dviljk bin-lacheck bin-patgen bin-pdftools bin-seetexk bin-texdoc bin-texware bin-thumbpdf bin-tie bin-tpic2pdftex bin-vpe bin-web bin-xpdf cweb mkind-english"
65
66 TEXLIVE_FONTBIN_CONTENTS="bin-afm2pl bin-fontware bin-ps2pkm fontinst mft"
67
68 TEXLIVE_CORE_EXTRA_BUILT_BINARIES="bin-xetex bin-aleph bin-omega"
69
70 TEXLIVE_CORE_INCLUDED_TEXMF="${TEXLIVE_BASICBIN_CONTENTS} ${TEXLIVE_FONTBIN_CONTENTS} ${TEXLIVE_BINEXTRA_CONTENTS} ${TEXLIVE_CORE_EXTRA_BUILT_BINARIES}"
71
72 SRC_URI="mirror://gentoo/${P}.tar.bz2"
73
74 for i in ${TEXLIVE_CORE_INCLUDED_TEXMF}; do
75 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.zip"
76 done
77
78 KEYWORDS=""
79 IUSE="X doc"
80
81 MODULAR_X_DEPEND="X? (
82 x11-libs/libXmu
83 x11-libs/libXp
84 x11-libs/libXpm
85 x11-libs/libICE
86 x11-libs/libSM
87 x11-libs/libXaw
88 x11-libs/libXfont
89 )"
90
91 DEPEND="${MODULAR_X_DEPEND}
92 !app-text/ptex
93 !app-text/cstetex
94 !app-text/tetex
95 !<app-text/texlive-2007
96 !app-text/xetex
97 !dev-tex/xmltex
98 !dev-tex/vntex
99 !dev-tex/tex4ht
100 sys-apps/ed
101 sys-libs/zlib
102 >=media-libs/libpng-1.2.1
103 app-arch/unzip
104 =media-libs/freetype-2*
105 media-libs/fontconfig"
106
107 RDEPEND="${DEPEND}
108 dev-lang/ruby"
109
110 S="${WORKDIR}"
111
112 src_unpack() {
113 unpack ${A}
114 cd "${S}"
115
116 epatch "${FILESDIR}/${PV}/${P}-mpware.patch"
117 epatch "${FILESDIR}/${PV}/${P}-libteckit-asneeded.patch"
118
119 # it is also affected by bug 170861
120 epatch "${FILESDIR}/${PV}/tetex-3.0-CVE-2007-0650.patch"
121
122 # Bug #188172 and bug #185225
123 epatch "${FILESDIR}/${PV}/tetex-3.0_p1-xpdf-CVE-2007-3387.patch"
124
125 # Do not require exec stacks for asm generated by icu genccode program
126 # it would be better to use system icu... but it doesn't seem that well
127 # supported
128 epatch "${FILESDIR}/${PV}/${P}-icu-xetex-execstacks.patch"
129
130 # See http://permalink.gmane.org/gmane.comp.tex.live/14939
131 epatch "${FILESDIR}/${PV}/${P}-dvips_bufferoverflow.patch"
132
133 sed -i -e "/mktexlsr/,+3d" -e "s/\(updmap-sys\)/\1 --nohash/" \
134 Makefile.in || die "sed failed"
135
136 elibtoolize
137
138 cd libs/teckit
139 eautoreconf
140 }
141
142 src_compile() {
143 local my_conf
144
145 export LC_ALL=C
146 tc-export CC CXX
147
148 econf --bindir=/usr/bin \
149 --datadir="${S}" \
150 --with-system-freetype2 \
151 --with-freetype2-include=/usr/include \
152 --with-system-zlib \
153 --with-system-pnglib \
154 --without-texinfo \
155 --without-dialog \
156 --without-texi2html \
157 --disable-multiplatform \
158 --with-epsfwin \
159 --with-mftalkwin \
160 --with-regiswin \
161 --with-tektronixwin \
162 --with-unitermwin \
163 --with-ps=gs \
164 --without-psutils \
165 --without-sam2p \
166 --without-t1utils \
167 --enable-ipc \
168 --without-etex \
169 --with-xetex \
170 --without-dvipng \
171 --without-dvipdfm \
172 --without-dvipdfmx \
173 --without-xdvipdfmx \
174 --without-lcdf-typetools \
175 --without-pdfopen \
176 --without-detex \
177 --without-ttf2pk \
178 --without-xdvik --without-oxdvik \
179 --enable-shared \
180 $(use_with X x) \
181 ${my_conf} || die "econf failed"
182
183 cd "${S}/libs/icu-xetex"
184 emake -j1 texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake of icu-xetex failed"
185 cd "${S}"
186 emake texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake failed"
187
188 # Mimic updmap --syncwithtrees to enable only fonts installed
189 # Code copied from updmap script
190 for i in `egrep '^(Mixed)?Map' "texmf/web2c/updmap.cfg" | sed 's@.* @@'`; do
191 texlive-common_is_file_present_in_texmf "$i" || echo "$i"
192 done > "${T}/updmap_update"
193 {
194 sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
195 sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
196 } > "${T}/updmap_update2"
197 sed -f "${T}/updmap_update2" "texmf/web2c/updmap.cfg" > "${T}/updmap_update3"\
198 && cat "${T}/updmap_update3" > "texmf/web2c/updmap.cfg"
199 }
200
201 src_test() {
202 ewarn "Due to modular layout of texlive ebuilds,"
203 ewarn "It would not make much sense to use tests into the ebuild"
204 ewarn "And tests would fail anyway"
205 ewarn "Alternatively you can try to compile any tex file"
206 ewarn "Tex warnings should be considered as errors and reported"
207 ewarn "You can also run fmtutil-sys --all and check for errors/warnings there"
208 }
209
210 src_install() {
211 insinto /usr/share
212 doins -r texmf texmf-dist
213
214 dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c
215 einstall bindir="${D}/usr/bin" texmf="${D}${TEXMF_PATH:-/usr/share/texmf}" || die "einstall failed"
216
217 dosbin "${FILESDIR}/texmf-update"
218
219 docinto texk
220 cd "${S}/texk"
221 dodoc ChangeLog README
222
223 docinto kpathesa
224 cd "${S}/texk/kpathsea"
225 dodoc BUGS ChangeLog NEWS PROJECTS README
226
227 docinto dviljk
228 cd "${S}/texk/dviljk"
229 dodoc ChangeLog README NEWS
230
231 docinto dvipsk
232 cd "${S}/texk/dvipsk"
233 dodoc ChangeLog README
234
235 docinto makeindexk
236 cd "${S}/texk/makeindexk"
237 dodoc ChangeLog NEWS NOTES README
238
239 docinto ps2pkm
240 cd "${S}/texk/ps2pkm"
241 dodoc ChangeLog README README.14m
242
243 docinto web2c
244 cd "${S}/texk/web2c"
245 dodoc ChangeLog NEWS PROJECTS README
246
247 use doc || rm -rf "${D}/usr/share/texmf/doc"
248 use doc || rm -rf "${D}/usr/share/texmf-dist/doc"
249
250 dodir /var/cache/fonts
251
252 dodir /etc/env.d
253 echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c"' > "${D}/etc/env.d/98texlive"
254 # populate /etc/texmf
255 keepdir /etc/texmf/web2c
256
257 # take care of updmap.cfg, fmtutil.cnf and texmf.cnf
258 dodir /etc/texmf/{updmap.d,fmtutil.d,texmf.d}
259
260 # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
261 # by texmf-update
262 rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf"
263
264 # Remove default texmf.cnf to ship our own, greatly based on texlive dvd's
265 # texmf.cnf
266 # It will also be generated from /etc/texmf/texmf.d files by texmf-update
267 rm -f "${D}${TEXMF_PATH}/web2c/texmf.cnf"
268
269 insinto /etc/texmf/texmf.d
270 doins "${FILESDIR}/${PV}/texmf.d/"{00header,05searchpaths,10standardpaths,15options,20sizes}.cnf
271
272 mv "${D}${TEXMF_PATH}/web2c/updmap.cfg" "${D}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
273
274 # Create symlinks from format to engines
275 # This will avoid having to call texlinks in texmf-update
276 cd "${S}"
277 for i in texmf/fmtutil/format*.cnf; do
278 [ -f "${i}" ] && etexlinks "${i}"
279 done
280
281 texlive-common_handle_config_files
282
283 keepdir /usr/share/texmf-site
284
285 dosym /etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf
286 dosym /etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf
287 dosym /etc/texmf/web2c/updmap.cfg ${TEXMF_PATH}/web2c/updmap.cfg
288
289 # the virtex symlink is not installed
290 # The links has to be relative, since the targets
291 # is not present at this stage and MacOS doesn't
292 # like non-existing targets
293 dosym tex /usr/bin/virtex
294 dosym pdftex /usr/bin/pdfvirtex
295 }
296
297 pkg_postinst() {
298 if [ "$ROOT" = "/" ] ; then
299 /usr/sbin/texmf-update
300 fi
301
302 elog
303 elog "If you have configuration files in /etc/texmf to merge,"
304 elog "please update them and run /usr/sbin/texmf-update."
305 elog
306 }
307
308
309
310 --
311 gentoo-commits@g.o mailing list