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