Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/texlive-core/, app-text/texlive-core/files/
Date: Fri, 23 Sep 2022 01:47:10
Message-Id: 1663897614.f496f44c04b285b80c7c987eb12ea8d5eb5722a7.sam@gentoo
1 commit: f496f44c04b285b80c7c987eb12ea8d5eb5722a7
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 23 01:39:55 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 23 01:46:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f496f44c
7
8 app-text/texlive-core: backport slibtool patch
9
10 May as well given there's nobody working on the 2022 bump right now.
11
12 This was also one of the few (notable, at least) packages left which didn't
13 build w/ slibtool.
14
15 Closes: https://bugs.gentoo.org/775170
16 Thanks-to: Michael Orlitzky <mjo <AT> gentoo.org>
17 Signed-off-by: Sam James <sam <AT> gentoo.org>
18
19 .../files/texlive-core-2021-slibtool.patch | 98 ++++++
20 app-text/texlive-core/texlive-core-2021-r4.ebuild | 366 +++++++++++++++++++++
21 2 files changed, 464 insertions(+)
22
23 diff --git a/app-text/texlive-core/files/texlive-core-2021-slibtool.patch b/app-text/texlive-core/files/texlive-core-2021-slibtool.patch
24 new file mode 100644
25 index 000000000000..4b026177b686
26 --- /dev/null
27 +++ b/app-text/texlive-core/files/texlive-core-2021-slibtool.patch
28 @@ -0,0 +1,98 @@
29 +https://bugs.gentoo.org/775170
30 +https://tug.org/svn/texlive?view=revision&revision=61639
31 +--- a/texk/web2c/web2c/Makefile.in
32 ++++ b/texk/web2c/web2c/Makefile.in
33 +@@ -127,8 +127,7 @@
34 + libweb2c_a_OBJECTS = $(am_libweb2c_a_OBJECTS)
35 + am_fixwrites_OBJECTS = fixwrites.$(OBJEXT)
36 + fixwrites_OBJECTS = $(am_fixwrites_OBJECTS)
37 +-am__DEPENDENCIES_1 =
38 +-fixwrites_DEPENDENCIES = $(am__DEPENDENCIES_1)
39 ++fixwrites_DEPENDENCIES = $(web2c_LDADD)
40 + AM_V_lt = $(am__v_lt_@AM_V@)
41 + am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
42 + am__v_lt_0 = --silent
43 +@@ -138,11 +137,11 @@
44 + makecpool_LDADD = $(LDADD)
45 + am_splitup_OBJECTS = splitup.$(OBJEXT)
46 + splitup_OBJECTS = $(am_splitup_OBJECTS)
47 +-splitup_DEPENDENCIES = $(am__DEPENDENCIES_1)
48 ++splitup_DEPENDENCIES = $(web2c_LDADD)
49 + am_web2c_OBJECTS = web2c-parser.$(OBJEXT) web2c-lexer.$(OBJEXT) \
50 + main.$(OBJEXT)
51 + web2c_OBJECTS = $(am_web2c_OBJECTS)
52 +-web2c_DEPENDENCIES =
53 ++web2c_DEPENDENCIES = libweb2c.a
54 + SCRIPTS = $(dist_noinst_SCRIPTS)
55 + AM_V_P = $(am__v_P_@AM_V@)
56 + am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
57 +@@ -416,7 +415,7 @@
58 + main.c \
59 + web2c.h
60 +
61 +-web2c_LDADD = -L. -lweb2c
62 ++web2c_LDADD = libweb2c.a
63 + fixwrites_SOURCES = \
64 + fixwrites.c
65 +
66 +--- a/texk/web2c/web2c/Makefile.in
67 ++++ b/texk/web2c/web2c/Makefile.in
68 +@@ -127,7 +127,6 @@
69 + libweb2c_a_OBJECTS = $(am_libweb2c_a_OBJECTS)
70 + am_fixwrites_OBJECTS = fixwrites.$(OBJEXT)
71 + fixwrites_OBJECTS = $(am_fixwrites_OBJECTS)
72 +-fixwrites_DEPENDENCIES = $(web2c_LDADD)
73 + AM_V_lt = $(am__v_lt_@AM_V@)
74 + am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
75 + am__v_lt_0 = --silent
76 +@@ -137,11 +136,9 @@
77 + makecpool_LDADD = $(LDADD)
78 + am_splitup_OBJECTS = splitup.$(OBJEXT)
79 + splitup_OBJECTS = $(am_splitup_OBJECTS)
80 +-splitup_DEPENDENCIES = $(web2c_LDADD)
81 + am_web2c_OBJECTS = web2c-parser.$(OBJEXT) web2c-lexer.$(OBJEXT) \
82 + main.$(OBJEXT)
83 + web2c_OBJECTS = $(am_web2c_OBJECTS)
84 +-web2c_DEPENDENCIES = libweb2c.a
85 + SCRIPTS = $(dist_noinst_SCRIPTS)
86 + AM_V_P = $(am__v_P_@AM_V@)
87 + am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
88 +@@ -395,6 +392,7 @@
89 + AM_CFLAGS = $(WARNING_CFLAGS)
90 + EXTRA_LIBRARIES = libweb2c.a
91 + BUILT_SOURCES = w2c/config.h
92 ++#
93 + DISTCLEANFILES = w2c/config.h web2c-parser.output
94 + noinst_HEADERS = coerce.h
95 + dist_noinst_SCRIPTS = convert
96 +@@ -415,14 +413,17 @@
97 + main.c \
98 + web2c.h
99 +
100 ++web2c_DEPENDENCIES = # don't build libweb2c.a in parallel
101 + web2c_LDADD = libweb2c.a
102 + fixwrites_SOURCES = \
103 + fixwrites.c
104 +
105 ++fixwrites_DEPENDENCIES = # don't build libweb2c.a in parallel
106 + fixwrites_LDADD = $(web2c_LDADD)
107 + splitup_SOURCES = \
108 + splitup.c
109 +
110 ++splitup_DEPENDENCIES = # don't build libweb2c.a in parallel
111 + splitup_LDADD = $(web2c_LDADD)
112 + makecpool_SOURCES = \
113 + makecpool.c
114 +@@ -973,11 +974,8 @@
115 + fi
116 +
117 + $(libweb2c_a_OBJECTS): w2c/config.h
118 +-
119 + $(web2c_OBJECTS): web2c-parser.h stamp-lib
120 +-
121 + $(fixwrites_OBJECTS): stamp-lib
122 +-
123 + $(splitup_OBJECTS): stamp-lib
124 +
125 + stamp-lib:
126 +
127
128 diff --git a/app-text/texlive-core/texlive-core-2021-r4.ebuild b/app-text/texlive-core/texlive-core-2021-r4.ebuild
129 new file mode 100644
130 index 000000000000..1d9065ebab6c
131 --- /dev/null
132 +++ b/app-text/texlive-core/texlive-core-2021-r4.ebuild
133 @@ -0,0 +1,366 @@
134 +# Copyright 1999-2022 Gentoo Authors
135 +# Distributed under the terms of the GNU General Public License v2
136 +
137 +EAPI=7
138 +
139 +TL_SOURCE_VERSION=20210325
140 +
141 +# autotools/reautoconf in src_prepare only needed for Cairo patch
142 +inherit autotools flag-o-matic toolchain-funcs libtool texlive-common
143 +
144 +MY_P=${PN%-core}-${TL_SOURCE_VERSION}-source
145 +
146 +PATCHLEVEL=1
147 +
148 +DESCRIPTION="A complete TeX distribution"
149 +HOMEPAGE="https://tug.org/texlive/"
150 +SLOT="0"
151 +LICENSE="GPL-2 LPPL-1.3c TeX"
152 +
153 +SRC_URI="https://dev.gentoo.org/~zlogene/distfiles/texlive/${MY_P}.tar.xz
154 + https://dev.gentoo.org/~zlogene/distfiles/texlive/texlive-tlpdb-${PV}.tar.xz
155 + https://dev.gentoo.org/~zlogene/distfiles/texlive/${PN}-patches-${PV}-${PATCHLEVEL}.tar.xz"
156 +
157 +# We ship binextra collection alongside
158 +TL_CORE_BINEXTRA_MODULES="
159 + a2ping adhocfilelist arara asymptote bundledoc checklistings chklref ctan_chk
160 + clojure-pamphlet cluttex ctanify ctan-o-mat ctanbib ctanupload ctie cweb de-macro
161 + dtl dtxgen dvi2tty dviasm dvicopy dvidvi dviinfox dviout-util dviljk dvipos findhyph
162 + fragmaster hook-pre-commit-pkg installfont ketcindy lacheck latex-git-log latex-papersize
163 + latex2man latex2nemeth latexfileversion latexpand latexindent ltxfileinfo ltximg
164 + listings-ext make4ht match_parens mflua mkjobtexmf patgen pdfbook2 pdfcrop pdfjam
165 + pdflatexpicscale pdftex-quiet pdfxup pdftosrc pfarrei pkfix pkfix-helper purifyeps
166 + seetexk spix srcredact sty2dtx synctex tex4ebook texcount texdef texdiff texdirflatten
167 + texdoc texfot texliveonfly texlive-scripts-extra texloganalyser texosquery texplate
168 + texware tie tlcockpit tpic2pdftex typeoutfileinfo web xindy xindex xpdfopen collection-binextra
169 + "
170 +TL_CORE_BINEXTRA_DOC_MODULES="
171 + a2ping.doc adhocfilelist.doc arara.doc asymptote.doc bundledoc.doc
172 + checklistings.doc chklref.doc ctan_chk.doc clojure-pamphlet.doc cluttex.doc
173 + ctanify.doc ctan-o-mat.doc ctanbib.doc ctanupload.doc ctie.doc cweb.doc de-macro.doc
174 + dtl.doc dtxgen.doc dvi2tty.doc dviasm.doc dvicopy.doc dvidvi.doc dviinfox.doc dviljk.doc
175 + dvipos.doc dviout-util.doc findhyph.doc fragmaster.doc hook-pre-commit-pkg.doc installfont.doc
176 + ketcindy.doc lacheck.doc latex-git-log.doc latex-papersize.doc latex2man.doc latex2nemeth.doc
177 + latexfileversion.doc latexpand.doc latexindent.doc ltxfileinfo.doc ltximg.doc listings-ext.doc
178 + make4ht.doc match_parens.doc mkjobtexmf.doc patgen.doc pdfbook2.doc pdfcrop.doc pdfjam.doc
179 + pdflatexpicscale.doc pdftex-quiet.doc pdfxup.doc pdftosrc.doc pfarrei.doc pkfix.doc
180 + pkfix-helper.doc purifyeps.doc pythontex.doc seetexk.doc spix.doc srcredact.doc
181 + sty2dtx.doc synctex.doc tex4ebook.doc texcount.doc texdef.doc texdiff.doc
182 + texdirflatten.doc texdoc.doc texfot.doc texliveonfly.doc texlive-scripts-extra.doc
183 + texloganalyser.doc texosquery.doc texware.doc tie.doc tlcockpit.doc tpic2pdftex.doc
184 + typeoutfileinfo.doc texplate.doc web.doc xindy.doc xindex.doc xpdfopen.doc
185 +"
186 +TL_CORE_BINEXTRA_SRC_MODULES="
187 + adhocfilelist.source arara.source checklistings.source clojure-pamphlet.source
188 + listings-ext.source mkjobtexmf.source pfarrei.source pythontex.source
189 + texdef.source texosquery.source texplate.source tlcockpit.source
190 +"
191 +# Macros that are not a part of texlive-sources or collection-binextra but still needed
192 +# for other packages during installation
193 +TL_CORE_EXTRA_MODULES="hyphen-base gsftopk texlive.infra texlive-scripts ${TL_CORE_BINEXTRA_MODULES}"
194 +TL_CORE_EXTRA_DOC_MODULES="gsftopk.doc texlive.infra.doc texlive-scripts.doc ${TL_CORE_BINEXTRA_DOC_MODULES}"
195 +TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}"
196 +
197 +for i in ${TL_CORE_EXTRA_MODULES}; do
198 + SRC_URI="${SRC_URI} https://dev.gentoo.org/~zlogene/distfiles/texlive/tl-${i}-${PV}.tar.xz"
199 +done
200 +
201 +SRC_URI="${SRC_URI} doc? ( "
202 +for i in ${TL_CORE_EXTRA_DOC_MODULES}; do
203 + SRC_URI="${SRC_URI} https://dev.gentoo.org/~zlogene/distfiles/texlive/tl-${i}-${PV}.tar.xz"
204 +done
205 +SRC_URI="${SRC_URI} )"
206 +SRC_URI="${SRC_URI} source? ( "
207 +for i in ${TL_CORE_EXTRA_SRC_MODULES}; do
208 + SRC_URI="${SRC_URI} https://dev.gentoo.org/~zlogene/distfiles/texlive/tl-${i}-${PV}.tar.xz"
209 +done
210 +SRC_URI="${SRC_URI} )"
211 +
212 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris"
213 +IUSE="cjk X doc source tk +luajittex xetex xindy"
214 +
215 +TEXMF_PATH=/usr/share/texmf-dist
216 +
217 +MODULAR_X_DEPEND="X? (
218 + x11-libs/libX11
219 + x11-libs/libXmu
220 + )"
221 +
222 +COMMON_DEPEND="${MODULAR_X_DEPEND}
223 + !app-text/epspdf
224 + !app-text/pdfjam
225 + sys-libs/zlib
226 + >=media-libs/harfbuzz-1.4.5:=[icu,graphite]
227 + >=media-libs/libpng-1.2.43-r2:0=
228 + media-libs/gd[png]
229 + media-gfx/graphite2
230 + >=x11-libs/cairo-1.12
231 + >=x11-libs/pixman-0.18
232 + dev-libs/zziplib:=
233 + app-text/libpaper:=
234 + dev-libs/gmp:=
235 + dev-libs/mpfr:=
236 + >=dev-libs/ptexenc-1.3.8
237 + xetex? (
238 + >=app-text/teckit-2.5.3
239 + media-libs/fontconfig
240 + )
241 + xindy? ( dev-lisp/clisp:= )
242 + media-libs/freetype:2
243 + >=dev-libs/icu-50:=
244 + >=dev-libs/kpathsea-6.3.2:="
245 +
246 +BDEPEND="sys-apps/ed
247 + sys-devel/flex
248 + virtual/pkgconfig"
249 +
250 +DEPEND="${COMMON_DEPEND}"
251 +
252 +RDEPEND="${COMMON_DEPEND}
253 + >=app-text/ps2pkm-1.8_p20170524
254 + >=app-text/dvipsk-5.997
255 + >=dev-tex/bibtexu-3.71_p20170524
256 + virtual/perl-Getopt-Long
257 + dev-perl/File-HomeDir
258 + dev-perl/Log-Dispatch
259 + dev-perl/Unicode-LineBreak
260 + dev-perl/YAML-Tiny
261 + tk? (
262 + dev-lang/tk
263 + dev-perl/Tk
264 + )"
265 +
266 +S="${WORKDIR}/${P}_build"
267 +B="${WORKDIR}/${MY_P}"
268 +
269 +src_unpack() {
270 + unpack ${A}
271 + mkdir -p "${S}" || die "failed to create build dir"
272 +}
273 +
274 +RELOC_TARGET=texmf-dist
275 +
276 +src_prepare() {
277 + cd "${WORKDIR}" || die
278 +
279 + mv texlive.tlpdb tlpkg/ || die "failed to move texlive.tlpdb"
280 +
281 + # From texlive-module.eclass.
282 + sed -n -e 's:\s*RELOC/::p' tlpkg/tlpobj/* > "${T}/reloclist" || die
283 + sed -e 's/\/[^/]*$//' -e "s:^:${RELOC_TARGET}/:" "${T}/reloclist" |
284 + sort -u |
285 + xargs mkdir -p || die
286 + local i
287 + while read i; do
288 + mv "${i}" "${RELOC_TARGET}/${i%/*}" || die
289 + done < "${T}/reloclist"
290 +
291 + mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files"
292 +
293 + cd "${B}" || die
294 +
295 + sed -i \
296 + -e "s,/usr/include /usr/local/include.*echo \$KPATHSEA_INCLUDES.*,${EPREFIX}/usr/include\"," \
297 + texk/web2c/configure || die
298 +
299 + eapply "${WORKDIR}"/patches
300 + eapply "${FILESDIR}"/${P}-cairo-strings.patch
301 + eapply "${FILESDIR}"/${P}-slibtool.patch
302 +
303 + default
304 +
305 + elibtoolize
306 +
307 + # Drop this on 2022 bump!
308 + "${B}"/reautoconf libs/cairo || die
309 +}
310 +
311 +src_configure() {
312 + # It fails on alpha without this
313 + use alpha && append-ldflags "-Wl,--no-relax"
314 +
315 + # Too many regexps use A-Z a-z constructs, what causes problems with locales
316 + # that don't have the same alphabetical order than ascii. Bug #242430
317 + # So we set LC_ALL to C in order to avoid problems.
318 + export LC_ALL=C
319 +
320 + # Disable freetype-config as this is considered obsolete.
321 + # Also only pkg-config works for prefix as described in bug #690094
322 + export ac_cv_prog_ac_ct_FT2_CONFIG=no
323 +
324 + tc-export CC CXX AR RANLIB
325 + ECONF_SOURCE="${B}" \
326 + econf -C \
327 + --bindir="${EPREFIX}"/usr/bin \
328 + --datadir="${S}" \
329 + --with-system-freetype2 \
330 + --with-system-zlib \
331 + --with-system-libpng \
332 + --with-system-teckit \
333 + --with-teckit-includes="${EPREFIX}"/usr/include/teckit \
334 + --with-system-kpathsea \
335 + --with-kpathsea-includes="${EPREFIX}"/usr/include \
336 + --with-system-icu \
337 + --with-system-ptexenc \
338 + --with-system-harfbuzz \
339 + --with-system-icu \
340 + --with-system-graphite2 \
341 + --with-system-cairo \
342 + --with-system-pixman \
343 + --with-system-zziplib \
344 + --with-system-libpaper \
345 + --with-system-gmp \
346 + --with-system-gd \
347 + --with-system-mpfr \
348 + --without-texinfo \
349 + --disable-dialog \
350 + --disable-multiplatform \
351 + --enable-chktex \
352 + --enable-epsfwin \
353 + --enable-detex \
354 + --enable-dvi2tty \
355 + --enable-mftalkwin \
356 + --enable-regiswin \
357 + --enable-shared \
358 + --enable-tektronixwin \
359 + --enable-unitermwin \
360 + --enable-vlna \
361 + --with-ps=gs \
362 + --disable-psutils \
363 + --disable-t1utils \
364 + --enable-ipc \
365 + --disable-biber \
366 + --disable-bibtex-x \
367 + --disable-dvipng \
368 + --disable-dvipsk \
369 + --disable-lcdf-typetools \
370 + --disable-ps2pk \
371 + --disable-ttf2pk2 \
372 + --disable-tex4htk \
373 + --disable-cjkutils \
374 + --disable-xdvik \
375 + --enable-luatex \
376 + --disable-dvisvgm \
377 + --disable-ps2eps \
378 + --disable-static \
379 + --disable-native-texlive-build \
380 + --disable-largefile \
381 + --disable-build-in-source-tree \
382 + --disable-xindy-docs \
383 + --disable-xindy-rules \
384 + --with-banner-add=" Gentoo Linux" \
385 + $(use_enable luajittex) \
386 + $(use_enable luajittex luajithbtex) \
387 + $(use_enable luajittex mfluajit) \
388 + $(use_enable xetex) \
389 + $(use_enable cjk dviout-util) \
390 + $(use_enable cjk ptex) \
391 + $(use_enable cjk eptex) \
392 + $(use_enable cjk uptex) \
393 + $(use_enable cjk euptex) \
394 + $(use_enable cjk mendexk) \
395 + $(use_enable cjk makejvf) \
396 + $(use_enable cjk pmp) \
397 + $(use_enable cjk upmp) \
398 + $(use_enable tk texdoctk) \
399 + $(use_with X x) \
400 + $(use_enable xindy)
401 +}
402 +
403 +src_compile() {
404 + tc-export CC CXX AR RANLIB
405 +
406 + emake AR="$(tc-getAR)" SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist}
407 +
408 + cd "${B}" || die
409 + # Mimic updmap --syncwithtrees to enable only fonts installed
410 + # Code copied from updmap script
411 + for i in `grep -E '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do
412 + texlive-common_is_file_present_in_texmf "${i}" || echo "${i}"
413 + done > "${T}/updmap_update"
414 + {
415 + sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
416 + sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
417 + sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
418 + } > "${T}/updmap_update2"
419 + sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\
420 + && cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg"
421 +}
422 +
423 +src_install() {
424 + dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c
425 +
426 + emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install
427 +
428 + cd "${B}" || die
429 + dodir /usr/share # just in case
430 + cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
431 + cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
432 +
433 + # When X is disabled mf-nowin doesn't exist but some scripts expect it to
434 + # exist. Instead, it is called mf, so we symlink it to please everything.
435 + use X || dosym mf /usr/bin/mf-nowin
436 +
437 + docinto texk
438 + cd "${B}/texk" || die
439 + dodoc ChangeLog README
440 +
441 + docinto dviljk
442 + cd "${B}/texk/dviljk" || die
443 + dodoc ChangeLog README NEWS
444 +
445 + docinto makeindexk
446 + cd "${B}/texk/makeindexk" || die
447 + dodoc ChangeLog NOTES README
448 +
449 + docinto web2c
450 + cd "${B}/texk/web2c" || die
451 + dodoc ChangeLog NEWS PROJECTS README
452 +
453 + use doc || rm -rf "${ED}/usr/share/texmf-dist/doc"
454 +
455 + dodir /etc/env.d
456 + echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${ED}/etc/env.d/98texlive"
457 + # populate /etc/texmf
458 + keepdir /etc/texmf/web2c
459 +
460 + # take care of updmap.cfg and language.d files
461 + keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d}
462 +
463 + mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
464 +
465 + # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
466 + # by texmf-update
467 + rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" || die
468 + # Remove bundled and invalid updmap.cfg
469 + rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg" || die
470 +
471 + texlive-common_handle_config_files
472 +
473 + keepdir /usr/share/texmf-site
474 +
475 + # the virtex symlink is not installed
476 + # The links has to be relative, since the targets
477 + # is not present at this stage and MacOS doesn't
478 + # like non-existing targets
479 + dosym tex /usr/bin/virtex
480 + dosym pdftex /usr/bin/pdfvirtex
481 +
482 + find "${ED}" -name '*.la' -delete || die
483 +}
484 +
485 +pkg_postinst() {
486 + etexmf-update
487 +
488 + einfo "Regenerating TeX formats"
489 + fmtutil-sys --all &> /dev/null
490 +
491 + elog
492 + elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge,"
493 + elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update."
494 + elog
495 + ewarn "If you are migrating from an older TeX distribution"
496 + ewarn "Please make sure you have read:"
497 + ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide"
498 + ewarn "in order to avoid possible problems"
499 +}