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: texlive-core-2011-r5.ebuild ChangeLog texlive-core-2011-r4.ebuild
Date: Wed, 02 Nov 2011 21:09:03
Message-Id: 20111102210848.A315B2004B@flycatcher.gentoo.org
1 aballier 11/11/02 21:08:48
2
3 Modified: ChangeLog
4 Added: texlive-core-2011-r5.ebuild
5 Removed: texlive-core-2011-r4.ebuild
6 Log:
7 make a revbump to force rebuild with new patches
8
9 (Portage version: 2.2.0_alpha72/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.157 app-text/texlive-core/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.157&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/ChangeLog?rev=1.157&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/ChangeLog?r1=1.156&r2=1.157
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v
21 retrieving revision 1.156
22 retrieving revision 1.157
23 diff -u -r1.156 -r1.157
24 --- ChangeLog 2 Nov 2011 21:06:43 -0000 1.156
25 +++ ChangeLog 2 Nov 2011 21:08:48 -0000 1.157
26 @@ -1,6 +1,12 @@
27 # ChangeLog for app-text/texlive-core
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.156 2011/11/02 21:06:43 aballier Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.157 2011/11/02 21:08:48 aballier Exp $
31 +
32 +*texlive-core-2011-r5 (02 Nov 2011)
33 +
34 + 02 Nov 2011; Alexis Ballier <aballier@g.o>
35 + -texlive-core-2011-r4.ebuild, +texlive-core-2011-r5.ebuild:
36 + make a revbump to force rebuild with new patches
37
38 02 Nov 2011; Alexis Ballier <aballier@g.o>
39 texlive-core-2011-r4.ebuild:
40
41
42
43 1.1 app-text/texlive-core/texlive-core-2011-r5.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/texlive-core-2011-r5.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/texlive-core/texlive-core-2011-r5.ebuild?rev=1.1&content-type=text/plain
47
48 Index: texlive-core-2011-r5.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/texlive-core-2011-r5.ebuild,v 1.1 2011/11/02 21:08:48 aballier Exp $
53
54 EAPI=3
55
56 TL_UPSTREAM_PATCHLEVEL="1"
57 PATCHLEVEL="31"
58 TL_SOURCE_VERSION=20110705
59
60 inherit eutils flag-o-matic toolchain-funcs libtool texlive-common
61
62 MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source
63
64 DESCRIPTION="A complete TeX distribution"
65 HOMEPAGE="http://tug.org/texlive/"
66 SLOT="0"
67 LICENSE="GPL-2 LPPL-1.3c TeX"
68
69 SRC_URI="mirror://gentoo/${MY_PV}.tar.xz"
70
71 # Fetch patches
72 SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz
73 mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz"
74
75 TL_CORE_BINEXTRA_MODULES="
76 a2ping asymptote bibtex8 bundledoc ctie cweb de-macro dtl dvi2tty dviasm
77 dvicopy dvidvi dviljk dvipng dvipos findhyph fragmaster hyphenex installfont
78 lacheck latex2man listings-ext mkjobtexmf patgen pdfcrop pdftools pkfix
79 pkfix-helper purifyeps seetexk sty2dtx synctex texcount texdef texdiff
80 texdirflatten texdoc texloganalyser texware tie tpic2pdftex web
81 collection-binextra
82 "
83 TL_CORE_BINEXTRA_DOC_MODULES="
84 a2ping.doc asymptote.doc bibtex8.doc bundledoc.doc ctie.doc cweb.doc
85 de-macro.doc dvi2tty.doc dvicopy.doc dviljk.doc dvipng.doc dvipos.doc
86 findhyph.doc fragmaster.doc installfont.doc latex2man.doc listings-ext.doc
87 mkjobtexmf.doc patgen.doc pdfcrop.doc pdftools.doc pkfix.doc
88 pkfix-helper.doc purifyeps.doc sty2dtx.doc synctex.doc texcount.doc
89 texdef.doc texdiff.doc texdirflatten.doc texdoc.doc texloganalyser.doc
90 texware.doc tie.doc tpic2pdftex.doc web.doc
91 "
92 TL_CORE_BINEXTRA_SRC_MODULES="hyphenex.source listings-ext.source mkjobtexmf.source"
93
94 TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}"
95 TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}"
96 TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}"
97
98 for i in ${TL_CORE_EXTRA_MODULES}; do
99 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
100 done
101
102 SRC_URI="${SRC_URI} doc? ( "
103 for i in ${TL_CORE_EXTRA_DOC_MODULES}; do
104 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
105 done
106 SRC_URI="${SRC_URI} )"
107 SRC_URI="${SRC_URI} source? ( "
108 for i in ${TL_CORE_EXTRA_SRC_MODULES}; do
109 SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
110 done
111 SRC_URI="${SRC_URI} )"
112
113 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
114 IUSE="cjk X doc source tk xetex"
115
116 MODULAR_X_DEPEND="X? (
117 x11-libs/libXmu
118 x11-libs/libXp
119 x11-libs/libXpm
120 x11-libs/libICE
121 x11-libs/libSM
122 x11-libs/libXaw
123 x11-libs/libXfont
124 )"
125
126 COMMON_DEPEND="${MODULAR_X_DEPEND}
127 !app-text/ptex
128 !app-text/tetex
129 !<app-text/texlive-2007
130 !app-text/xetex
131 !<dev-texlive/texlive-basic-2009
132 !<dev-texlive/texlive-metapost-2011
133 !app-text/dvibook
134 sys-libs/zlib
135 >=media-libs/libpng-1.2.43-r2:0
136 >=app-text/poppler-0.12.3-r3
137 xetex? (
138 app-text/teckit
139 media-libs/fontconfig
140 media-libs/freetype:2
141 media-libs/silgraphite
142 )
143 >=dev-libs/kpathsea-6.0.1_p20110705
144 cjk? ( >=dev-libs/ptexenc-1.2.0_p20110705 )"
145
146 DEPEND="${COMMON_DEPEND}
147 dev-util/pkgconfig
148 sys-apps/ed
149 sys-devel/flex
150 app-arch/xz-utils"
151
152 RDEPEND="${COMMON_DEPEND}
153 >=app-text/ps2pkm-1.5_p20110705
154 >=app-text/dvipsk-5.991_p20110705
155 >=dev-tex/bibtexu-3.71_p20110705
156 virtual/perl-Getopt-Long
157 xetex? ( >=app-text/xdvipdfmx-0.7.8 )
158 tk? ( dev-perl/perl-tk )"
159
160 # texdoc needs luatex.
161 PDEPEND=">=dev-tex/luatex-0.70"
162
163 S="${WORKDIR}/${MY_PV}"
164
165 src_prepare() {
166 mv "${WORKDIR}"/texmf* "${S}" || die "failed to move texmf files"
167
168 EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches"
169 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
170
171 elibtoolize
172 }
173
174 src_configure() {
175 # It fails on alpha without this
176 use alpha && append-ldflags "-Wl,--no-relax"
177
178 # Too many regexps use A-Z a-z constructs, what causes problems with locales
179 # that don't have the same alphabetical order than ascii. Bug #242430
180 # So we set LC_ALL to C in order to avoid problems.
181 export LC_ALL=C
182 tc-export CC CXX AR
183 econf -C \
184 --bindir=/usr/bin \
185 --datadir="${S}" \
186 --with-system-freetype2 \
187 --with-freetype2-include=/usr/include \
188 --with-system-zlib \
189 --with-system-libpng \
190 --with-system-xpdf \
191 --with-system-teckit \
192 --with-teckit-includes=/usr/include/teckit \
193 --with-system-graphite \
194 --with-system-kpathsea \
195 --with-system-icu \
196 --with-system-ptexenc \
197 --without-texinfo \
198 --disable-dialog \
199 --disable-multiplatform \
200 --enable-epsfwin \
201 --enable-mftalkwin \
202 --enable-regiswin \
203 --enable-tektronixwin \
204 --enable-unitermwin \
205 --with-ps=gs \
206 --disable-psutils \
207 --disable-t1utils \
208 --enable-ipc \
209 --disable-biber \
210 --disable-bibtexu \
211 --disable-dvipng \
212 --disable-dvipsk \
213 --disable-dvipdfmx \
214 --disable-chktex \
215 --disable-lcdf-typetools \
216 --disable-pdfopen \
217 --disable-ps2eps \
218 --disable-ps2pkm \
219 --disable-detex \
220 --disable-ttf2pk \
221 --disable-tex4htk \
222 --disable-cjkutils \
223 --disable-xdvik \
224 --disable-xindy \
225 --disable-luatex \
226 --disable-dvi2tty \
227 --disable-dvisvgm \
228 --disable-vlna \
229 --disable-xdvipdfmx \
230 --enable-shared \
231 --disable-native-texlive-build \
232 --disable-largefile \
233 $(use_enable xetex) \
234 $(use_enable cjk ptex) \
235 $(use_enable cjk eptex) \
236 $(use_enable cjk mendexk) \
237 $(use_enable cjk makejvf) \
238 $(use_with X x)
239 }
240
241 src_compile() {
242 emake SHELL=/bin/sh texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake failed"
243
244 # Mimic updmap --syncwithtrees to enable only fonts installed
245 # Code copied from updmap script
246 for i in `egrep '^(Mixed)?Map' "texmf/web2c/updmap.cfg" | sed 's@.* @@'`; do
247 texlive-common_is_file_present_in_texmf "$i" || echo "$i"
248 done > "${T}/updmap_update"
249 {
250 sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
251 sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
252 } > "${T}/updmap_update2"
253 sed -f "${T}/updmap_update2" "texmf/web2c/updmap.cfg" > "${T}/updmap_update3"\
254 && cat "${T}/updmap_update3" > "texmf/web2c/updmap.cfg"
255 }
256
257 src_test() {
258 ewarn "Due to modular layout of texlive ebuilds,"
259 ewarn "It would not make much sense to use tests into the ebuild"
260 ewarn "And tests would fail anyway"
261 ewarn "Alternatively you can try to compile any tex file"
262 ewarn "Tex warnings should be considered as errors and reported"
263 ewarn "You can also run fmtutil-sys --all and check for errors/warnings there"
264 }
265
266 src_install() {
267 dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c
268 emake DESTDIR="${D}" texmf="${D}${TEXMF_PATH:-/usr/share/texmf}" run_texlinks="true" run_mktexlsr="true" install || die "install failed"
269
270 dodir /usr/share # just in case
271 cp -pR texmf{,-dist} "${D}/usr/share/" || die "failed to install texmf trees"
272 cp -pR "${WORKDIR}"/tlpkg "${D}/usr/share/" || die "failed to install tlpkg files"
273
274 newsbin "${FILESDIR}/texmf-update2010" texmf-update
275
276 # When X is disabled mf-nowin doesn't exist but some scripts expect it to
277 # exist. Instead, it is called mf, so we symlink it to please everything.
278 use X || dosym mf /usr/bin/mf-nowin
279
280 docinto texk
281 cd "${S}/texk"
282 dodoc ChangeLog README || die "failed to install texk docs"
283
284 docinto dviljk
285 cd "${S}/texk/dviljk"
286 dodoc ChangeLog README NEWS || die "failed to install dviljk docs"
287
288 docinto makeindexk
289 cd "${S}/texk/makeindexk"
290 dodoc ChangeLog NEWS NOTES README || die "failed to install makeindexk docs"
291
292 docinto web2c
293 cd "${S}/texk/web2c"
294 dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs"
295
296 use doc || rm -rf "${D}/usr/share/texmf/doc"
297 use doc || rm -rf "${D}/usr/share/texmf-dist/doc"
298
299 dodir /etc/env.d
300 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"
301 # populate /etc/texmf
302 keepdir /etc/texmf/web2c
303
304 # take care of updmap.cfg and language.d files
305 keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d}
306
307 mv "${D}${TEXMF_PATH}/web2c/updmap.cfg" "${D}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
308
309 # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
310 # by texmf-update
311 rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf"
312
313 texlive-common_handle_config_files
314
315 keepdir /usr/share/texmf-site
316
317 dosym /etc/texmf/web2c/updmap.cfg ${TEXMF_PATH}/web2c/updmap.cfg
318
319 # the virtex symlink is not installed
320 # The links has to be relative, since the targets
321 # is not present at this stage and MacOS doesn't
322 # like non-existing targets
323 dosym tex /usr/bin/virtex
324 dosym pdftex /usr/bin/pdfvirtex
325
326 # Remove texdoctk if we don't want it
327 if ! use tk ; then
328 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!"
329 fi
330
331 # Rename mpost to leave room for mplib
332 mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}"
333 dosym "mpost-${P}" /usr/bin/mpost
334
335 # Ditto for pdftex
336 mv "${D}/usr/bin/pdftex" "${D}/usr/bin/pdftex-${P}"
337 dosym "pdftex-${P}" /usr/bin/pdftex
338 }
339
340 pkg_preinst() {
341 # Remove stray files to keep the upgrade path sane
342 if has_version =app-text/texlive-core-2007* ; then
343 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
344 for j in log fmt ; do
345 local file="${ROOT}/var/lib/texmf/web2c/${i}.${j}"
346 if [ -f "${file}" ] ; then
347 elog "Removing stray ${file} from TeXLive 2007 install."
348 rm -f "${file}"
349 fi
350 done
351 done
352 for j in base log ; do
353 local file="${ROOT}/var/lib/texmf/web2c/metafont/mf.${j}"
354 if [ -f "${file}" ] ; then
355 elog "Removing stray ${file} from TeXLive 2007 install."
356 rm -f "${file}"
357 fi
358 done
359 fi
360 }
361
362 pkg_postinst() {
363 etexmf-update
364
365 elog
366 elog "If you have configuration files in /etc/texmf to merge,"
367 elog "please update them and run /usr/sbin/texmf-update."
368 elog
369 ewarn "If you are migrating from an older TeX distribution"
370 ewarn "Please make sure you have read:"
371 ewarn "http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml"
372 ewarn "in order to avoid possible problems"
373 elog
374 elog "TeXLive has been split in various ebuilds. If you are missing a"
375 elog "package to process your TeX documents, you can install"
376 elog "dev-tex/texmfind to easily search for them."
377 elog
378 }