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-2008-r5.ebuild
Date: Wed, 29 Apr 2009 22:32:32
Message-Id: E1LzIKL-00080g-C0@stork.gentoo.org
1 aballier 09/04/29 22:32:29
2
3 Modified: ChangeLog
4 Added: texlive-core-2008-r5.ebuild
5 Log:
6 Add xpdf patch for bug #264601 and set var/cache/fonts world writable by default, bug #266680
7 (Portage version: 2.2_rc31/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.97 app-text/texlive-core/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.97&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.97&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/ChangeLog?r1=1.96&r2=1.97
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v
19 retrieving revision 1.96
20 retrieving revision 1.97
21 diff -u -r1.96 -r1.97
22 --- ChangeLog 18 Mar 2009 20:50:09 -0000 1.96
23 +++ ChangeLog 29 Apr 2009 22:32:29 -0000 1.97
24 @@ -1,6 +1,13 @@
25 # ChangeLog for app-text/texlive-core
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.96 2009/03/18 20:50:09 ranger Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.97 2009/04/29 22:32:29 aballier Exp $
29 +
30 +*texlive-core-2008-r5 (29 Apr 2009)
31 +
32 + 29 Apr 2009; Alexis Ballier <aballier@g.o>
33 + +texlive-core-2008-r5.ebuild:
34 + Add xpdf patch for bug #264601 and set var/cache/fonts world writable by
35 + default, bug #266680
36
37 18 Mar 2009; Brent Baude <ranger@g.o> texlive-core-2008-r4.ebuild:
38 Marking texlive-core-2008-r4 ppc stable for bug 253551
39
40
41
42 1.1 app-text/texlive-core/texlive-core-2008-r5.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/texlive-core-2008-r5.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/texlive-core/texlive-core-2008-r5.ebuild?rev=1.1&content-type=text/plain
46
47 Index: texlive-core-2008-r5.ebuild
48 ===================================================================
49 # Copyright 1999-2009 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-2008-r5.ebuild,v 1.1 2009/04/29 22:32:29 aballier Exp $
52
53 EAPI=1
54
55 inherit eutils flag-o-matic toolchain-funcs libtool autotools texlive-common
56
57 PATCHLEVEL="10"
58 TEXMFD_VERSION="1"
59
60 DESCRIPTION="A complete TeX distribution"
61 HOMEPAGE="http://tug.org/texlive/"
62 SLOT="0"
63 LICENSE="GPL-2 LPPL-1.3c"
64
65 TEXLIVE_BASICBIN_CONTENTS="bin-bibtex bin-dialog bin-dvipdfmx bin-dvipsk bin-getnonfreefonts bin-gsftopk bin-kpathsea bin-makeindex bin-mfware bin-tetex bin-texlive bin-texconfig dvipdfmx-def glyphlist texlive.infra collection-basicbin"
66 TEXLIVE_BASICBIN_DOC_CONTENTS="bin-bibtex.doc bin-dialog.doc bin-dvipsk.doc bin-getnonfreefonts.doc bin-gsftopk.doc bin-kpathsea.doc bin-makeindex.doc bin-mfware.doc bin-tetex.doc bin-texlive.doc bin-texconfig.doc texlive.infra.doc"
67
68 TEXLIVE_FONTBIN_CONTENTS="fontinst mft bin-afm2pl bin-fontware bin-ps2pkm collection-fontbin"
69 TEXLIVE_FONTBIN_DOC_CONTENTS="fontinst.doc bin-afm2pl.doc bin-fontware.doc"
70 TEXLIVE_FONTBIN_SRC_CONTENTS="fontinst.source"
71
72 TEXLIVE_BINEXTRA_CONTENTS="a2ping bin-bibtex8 bin-ctie bin-cweb bin-dtl bin-dvicopy bin-dvidvi bin-dviljk bin-dvipos bin-lacheck bin-patgen bin-pdftools bin-seetexk bin-texdoc bin-texware bin-tie bin-tpic2pdftex bin-web cweb dviasm hyphenex mkind-english mkjobtexmf pdfcrop synctex texcount collection-binextra"
73 TEXLIVE_BINEXTRA_DOC_CONTENTS="a2ping.doc bin-bibtex8.doc bin-ctie.doc bin-cweb.doc bin-dvicopy.doc bin-dviljk.doc bin-dvipos.doc bin-patgen.doc bin-pdftools.doc bin-texdoc.doc bin-texware.doc bin-tie.doc bin-tpic2pdftex.doc bin-web.doc cweb.doc mkjobtexmf.doc pdfcrop.doc synctex.doc texcount.doc"
74 TEXLIVE_BINEXTRA_SRC_CONTENTS="hyphenex.source mkjobtexmf.source"
75
76 TEXLIVE_CORE_INCLUDED_TEXMF="${TEXLIVE_BASICBIN_CONTENTS} ${TEXLIVE_FONTBIN_CONTENTS} ${TEXLIVE_BINEXTRA_CONTENTS}"
77 TEXLIVE_CORE_INCLUDED_DOC_TEXMF="${TEXLIVE_BASICBIN_DOC_CONTENTS} ${TEXLIVE_FONTBIN_DOC_CONTENTS} ${TEXLIVE_BINEXTRA_DOC_CONTENTS}"
78 TEXLIVE_CORE_INCLUDED_SRC_TEXMF="${TEXLIVE_FONTBIN_SRC_CONTENTS} ${TEXLIVE_BINEXTRA_SRC_CONTENTS}"
79
80 SRC_URI="mirror://gentoo/${P}.tar.lzma"
81
82 for i in ${TEXLIVE_CORE_INCLUDED_TEXMF}; do
83 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
84 done
85 SRC_URI="${SRC_URI} doc? ( "
86 for i in ${TEXLIVE_CORE_INCLUDED_DOC_TEXMF}; do
87 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
88 done
89 SRC_URI="${SRC_URI} )"
90 SRC_URI="${SRC_URI} source? ( "
91 for i in ${TEXLIVE_CORE_INCLUDED_SRC_TEXMF}; do
92 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.lzma"
93 done
94 SRC_URI="${SRC_URI} )"
95
96 # Fetch patches
97 SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.lzma
98 mirror://gentoo/${PN}-2008-texmf.d-${TEXMFD_VERSION}.tar.lzma"
99
100 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
101 IUSE="X doc source tk"
102
103 MODULAR_X_DEPEND="X? (
104 x11-libs/libXmu
105 x11-libs/libXp
106 x11-libs/libXpm
107 x11-libs/libICE
108 x11-libs/libSM
109 x11-libs/libXaw
110 x11-libs/libXfont
111 )"
112
113 COMMON_DEPEND="${MODULAR_X_DEPEND}
114 !app-text/ptex
115 !app-text/tetex
116 !<app-text/texlive-2007
117 !app-text/xetex
118 !=dev-texlive/texlive-basic-2007*
119 !app-text/xdvipdfmx
120 !app-text/dvibook
121 sys-libs/zlib
122 >=media-libs/libpng-1.2.1
123 media-libs/freetype:2
124 media-libs/fontconfig"
125
126 DEPEND="${COMMON_DEPEND}
127 sys-apps/ed
128 sys-devel/flex
129 app-arch/lzma-utils"
130
131 RDEPEND="${COMMON_DEPEND}
132 tk? ( dev-perl/perl-tk )"
133
134 # texdoc needs luatex.
135 PDEPEND="dev-tex/luatex"
136
137 S="${WORKDIR}/texlive-20080816-source"
138
139 src_unpack() {
140 unpack ${A}
141 cd "${S}"
142 mv "${WORKDIR}"/texmf* "${S}" || die "failed to move texmf files"
143
144 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
145
146 elibtoolize
147
148 cd libs/teckit
149 AT_M4DIR="." eautoreconf
150 }
151
152 src_compile() {
153 # Too many regexps use A-Z a-z constructs, what causes problems with locales
154 # that don't have the same alphabetical order than ascii. Bug #242430
155 # So we set LC_ALL to C in order to avoid problems.
156 export LC_ALL=C
157 tc-export CC CXX AR
158 econf \
159 --bindir=/usr/bin \
160 --datadir="${S}" \
161 --with-system-freetype2 \
162 --with-freetype2-include=/usr/include \
163 --with-system-zlib \
164 --with-system-pnglib \
165 --without-texinfo \
166 --without-dialog \
167 --without-texi2html \
168 --disable-multiplatform \
169 --with-epsfwin \
170 --with-mftalkwin \
171 --with-regiswin \
172 --with-tektronixwin \
173 --with-unitermwin \
174 --with-ps=gs \
175 --without-psutils \
176 --without-sam2p \
177 --without-t1utils \
178 --enable-ipc \
179 --without-etex \
180 --with-xetex \
181 --without-dvipng \
182 --without-dvipdfm \
183 --without-dvipdfmx \
184 --with-xdvipdfmx \
185 --without-lcdf-typetools \
186 --without-pdfopen \
187 --without-ps2eps \
188 --without-detex \
189 --without-ttf2pk \
190 --without-tex4htk \
191 --without-cjkutils \
192 --without-xdvik --without-oxdvik \
193 --without-xindy \
194 --without-luatex \
195 --without-dvi2tty \
196 --without-vlna \
197 --disable-largefile \
198 --enable-shared \
199 $(use_with X x) \
200
201 emake texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake failed"
202
203 # Mimic updmap --syncwithtrees to enable only fonts installed
204 # Code copied from updmap script
205 for i in `egrep '^(Mixed)?Map' "texmf/web2c/updmap.cfg" | sed 's@.* @@'`; do
206 texlive-common_is_file_present_in_texmf "$i" || echo "$i"
207 done > "${T}/updmap_update"
208 {
209 sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
210 sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
211 } > "${T}/updmap_update2"
212 sed -f "${T}/updmap_update2" "texmf/web2c/updmap.cfg" > "${T}/updmap_update3"\
213 && cat "${T}/updmap_update3" > "texmf/web2c/updmap.cfg"
214 }
215
216 src_test() {
217 ewarn "Due to modular layout of texlive ebuilds,"
218 ewarn "It would not make much sense to use tests into the ebuild"
219 ewarn "And tests would fail anyway"
220 ewarn "Alternatively you can try to compile any tex file"
221 ewarn "Tex warnings should be considered as errors and reported"
222 ewarn "You can also run fmtutil-sys --all and check for errors/warnings there"
223 }
224
225 src_install() {
226 insinto /usr/share
227 doins -r texmf texmf-dist || die "failed to install texmf trees"
228 if use source ; then
229 doins -r "${WORKDIR}"/tlpkg || die "failed to install tlpkg files"
230 fi
231
232 dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c
233 einstall bindir="${D}/usr/bin" texmf="${D}${TEXMF_PATH:-/usr/share/texmf}" run_texlinks="true" run_mktexlsr="true" || die "einstall failed"
234
235 newsbin "${FILESDIR}/texmf-update2008" texmf-update
236
237 # When X is disabled mf-nowin doesn't exist but some scripts expect it to
238 # exist. Instead, it is called mf, so we symlink it to please everything.
239 use X || dosym mf /usr/bin/mf-nowin
240
241 docinto texk
242 cd "${S}/texk"
243 dodoc ChangeLog README || die "failed to install texk docs"
244
245 docinto kpathsea
246 cd "${S}/texk/kpathsea"
247 dodoc BUGS ChangeLog NEWS PROJECTS README || die "failed to install kpathsea docs"
248
249 docinto dviljk
250 cd "${S}/texk/dviljk"
251 dodoc ChangeLog README NEWS || die "failed to install dviljk docs"
252
253 docinto dvipsk
254 cd "${S}/texk/dvipsk"
255 dodoc ChangeLog README || die "failed to install dvipsk docs"
256
257 docinto makeindexk
258 cd "${S}/texk/makeindexk"
259 dodoc ChangeLog NEWS NOTES README || die "failed to install makeindexk docs"
260
261 docinto ps2pkm
262 cd "${S}/texk/ps2pkm"
263 dodoc ChangeLog README README.14m || die "failed to install ps2pkm docs"
264
265 docinto web2c
266 cd "${S}/texk/web2c"
267 dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs"
268
269 use doc || rm -rf "${D}/usr/share/texmf/doc"
270 use doc || rm -rf "${D}/usr/share/texmf-dist/doc"
271
272 dodir /var/cache/fonts
273 # The default configuration expects it to be world writable, bug #266680
274 # People can still change it with texconfig though.
275 fperms 1777 /var/cache/fonts
276
277 dodir /etc/env.d
278 echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${D}/etc/env.d/98texlive"
279 # populate /etc/texmf
280 keepdir /etc/texmf/web2c
281
282 # take care of updmap.cfg, fmtutil.cnf and texmf.cnf
283 dodir /etc/texmf/{updmap.d,fmtutil.d,texmf.d,language.dat.d,language.def.d}
284
285 # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
286 # by texmf-update
287 rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf"
288
289 # Remove default texmf.cnf to ship our own, greatly based on texlive dvd's
290 # texmf.cnf
291 # It will also be generated from /etc/texmf/texmf.d files by texmf-update
292 rm -f "${D}${TEXMF_PATH}/web2c/texmf.cnf"
293
294 insinto /etc/texmf/texmf.d
295 doins "${S}/texmf.d/"*.cnf || die "failed to install texmf.d configuration files"
296
297 mv "${D}${TEXMF_PATH}/web2c/updmap.cfg" "${D}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
298
299 # dvips config file
300 keepdir /etc/texmf/dvips/config
301 dodir /etc/texmf/dvips.d
302 mv "${D}${TEXMF_PATH}/dvips/config/config.ps" "${D}/etc/texmf/dvips.d/00${PN}-config.ps" || die "moving config.ps failed"
303
304 # Create symlinks from format to engines
305 # This will avoid having to call texlinks in texmf-update
306 cd "${S}"
307 for i in texmf/fmtutil/format*.cnf; do
308 [ -f "${i}" ] && etexlinks "${i}"
309 done
310
311 texlive-common_handle_config_files
312
313 keepdir /usr/share/texmf-site
314
315 dosym /etc/texmf/web2c/fmtutil.cnf ${TEXMF_PATH}/web2c/fmtutil.cnf
316 dosym /etc/texmf/web2c/texmf.cnf ${TEXMF_PATH}/web2c/texmf.cnf
317 dosym /etc/texmf/web2c/updmap.cfg ${TEXMF_PATH}/web2c/updmap.cfg
318 dosym /etc/texmf/dvips/config/config.ps ${TEXMF_PATH}/dvips/config/config.ps
319
320 # the virtex symlink is not installed
321 # The links has to be relative, since the targets
322 # is not present at this stage and MacOS doesn't
323 # like non-existing targets
324 dosym tex /usr/bin/virtex
325 dosym pdftex /usr/bin/pdfvirtex
326
327 # Keep it as that's where the formats will go
328 keepdir /var/lib/texmf
329
330 # Remove texdoctk if we don't want it
331 if ! use tk ; then
332 rm -f "${D}/usr/bin/texdoctk" "${D}/usr/share/texmf/scripts/tetex/texdoctk.pl" "${D}/usr/share/man/man1/texdoctk.1" || die "failed to remove texdoc tk!"
333 fi
334
335 # Rename mpost to leave room for mplib
336 mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}"
337 dosym "mpost-${P}" /usr/bin/mpost
338
339 # Ditto for pdftex
340 mv "${D}/usr/bin/pdftex" "${D}/usr/bin/pdftex-${P}"
341 dosym "pdftex-${P}" /usr/bin/pdftex
342 }
343
344 pkg_preinst() {
345 # Remove stray files to keep the upgrade path sane
346 if has_version =app-text/texlive-core-2007* ; then
347 for i in pdftex/pdflatex aleph/aleph aleph/lamed omega/lambda omega/omega xetex/xetex xetex/xelatex tex/tex pdftex/etex pdftex/pdftex pdftex/pdfetex ; do
348 for j in log fmt ; do
349 local file="${ROOT}/var/lib/texmf/web2c/${i}.${j}"
350 if [ -f "${file}" ] ; then
351 elog "Removing stray ${file} from TeXLive 2007 install."
352 rm -f "${file}"
353 fi
354 done
355 done
356 for j in base log ; do
357 local file="${ROOT}/var/lib/texmf/web2c/metafont/mf.${j}"
358 if [ -f "${file}" ] ; then
359 elog "Removing stray ${file} from TeXLive 2007 install."
360 rm -f "${file}"
361 fi
362 done
363 fi
364 }
365
366 pkg_postinst() {
367 if [ "$ROOT" = "/" ] ; then
368 /usr/sbin/texmf-update
369 fi
370
371 elog
372 elog "If you have configuration files in /etc/texmf to merge,"
373 elog "please update them and run /usr/sbin/texmf-update."
374 elog
375 ewarn "If you are migrating from an older TeX distribution"
376 ewarn "Please make sure you have read:"
377 ewarn "http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml"
378 ewarn "in order to avoid possible problems"
379 elog
380 elog "TeXLive has been split in various ebuilds. If you are missing a"
381 elog "package to process your TeX documents, you can install"
382 elog "dev-tex/texmfind to easily search for them."
383 elog
384 }