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