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