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