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