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/
Date: Sat, 12 Sep 2020 23:49:35
Message-Id: 1599954568.774c3f29d778727e596c0a24b6743cedf10fde9d.sam@gentoo
1 commit: 774c3f29d778727e596c0a24b6743cedf10fde9d
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 12 23:49:28 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 12 23:49:28 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=774c3f29
7
8 app-text/texlive-core: cleanup old
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 app-text/texlive-core/texlive-core-2020-r11.ebuild | 365 ---------------------
14 1 file changed, 365 deletions(-)
15
16 diff --git a/app-text/texlive-core/texlive-core-2020-r11.ebuild b/app-text/texlive-core/texlive-core-2020-r11.ebuild
17 deleted file mode 100644
18 index 9d9af1de3fa..00000000000
19 --- a/app-text/texlive-core/texlive-core-2020-r11.ebuild
20 +++ /dev/null
21 @@ -1,365 +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 - !dev-tex/detex
111 - !dev-tex/dvi2tty
112 - !app-text/vlna
113 - !app-eselect/eselect-mpost
114 - !app-eselect/eselect-pdftex
115 - !app-text/xindy
116 - !~dev-texlive/texlive-basic-2019
117 - !~dev-texlive/texlive-fontutils-2019
118 - sys-libs/zlib
119 - >=media-libs/harfbuzz-1.4.5[icu,graphite]
120 - >=media-libs/libpng-1.2.43-r2:0=
121 - media-libs/gd[png]
122 - media-gfx/graphite2
123 - >=x11-libs/cairo-1.12
124 - >=x11-libs/pixman-0.18
125 - dev-libs/zziplib:=
126 - app-text/libpaper
127 - dev-libs/gmp:0
128 - dev-libs/mpfr:0=
129 - >=dev-libs/ptexenc-1.3.8
130 - xetex? (
131 - >=app-text/teckit-2.5.3
132 - media-libs/fontconfig
133 - )
134 - xindy? ( dev-lisp/clisp:= )
135 - media-libs/freetype:2
136 - >=dev-libs/icu-50:=
137 - >=dev-libs/kpathsea-6.3.2
138 - >=app-text/poppler-0.87.0:="
139 -
140 -BDEPEND="sys-apps/ed
141 - sys-devel/flex
142 - virtual/pkgconfig"
143 -
144 -DEPEND="${COMMON_DEPEND}"
145 -
146 -RDEPEND="${COMMON_DEPEND}
147 - >=app-text/ps2pkm-1.8_p20170524
148 - >=app-text/dvipsk-5.997
149 - >=dev-tex/bibtexu-3.71_p20170524
150 - virtual/perl-Getopt-Long
151 - dev-perl/File-HomeDir
152 - dev-perl/Log-Dispatch
153 - dev-perl/Unicode-LineBreak
154 - dev-perl/YAML-Tiny
155 - tk? ( dev-perl/Tk )"
156 -
157 -S="${WORKDIR}/${P}_build"
158 -B="${WORKDIR}/${MY_P}"
159 -
160 -src_unpack() {
161 - unpack ${A}
162 - mkdir -p "${S}" || die "failed to create build dir"
163 -}
164 -
165 -RELOC_TARGET=texmf-dist
166 -
167 -src_prepare() {
168 - cd "${WORKDIR}" || die
169 -
170 - mv texlive.tlpdb tlpkg/ || die "failed to move texlive.tlpdb"
171 -
172 - # From texlive-module.eclass.
173 - sed -n -e 's:\s*RELOC/::p' tlpkg/tlpobj/* > "${T}/reloclist" || die
174 - sed -e 's/\/[^/]*$//' -e "s:^:${RELOC_TARGET}/:" "${T}/reloclist" |
175 - sort -u |
176 - xargs mkdir -p || die
177 - local i
178 - while read i; do
179 - mv "${i}" "${RELOC_TARGET}/${i%/*}" || die
180 - done < "${T}/reloclist"
181 -
182 - mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files"
183 -
184 - cd "${B}" || die
185 -
186 - sed -i \
187 - -e "s,/usr/include /usr/local/include.*echo \$KPATHSEA_INCLUDES.*,${EPREFIX}/usr/include\"," \
188 - texk/web2c/configure || die
189 -
190 - eapply "${WORKDIR}"/patches
191 -
192 - default
193 -
194 - elibtoolize
195 -}
196 -
197 -src_configure() {
198 - # It fails on alpha without this
199 - use alpha && append-ldflags "-Wl,--no-relax"
200 -
201 - # Too many regexps use A-Z a-z constructs, what causes problems with locales
202 - # that don't have the same alphabetical order than ascii. Bug #242430
203 - # So we set LC_ALL to C in order to avoid problems.
204 - export LC_ALL=C
205 -
206 - # Disable freetype-config as this is considered obsolete.
207 - # Also only pkg-config works for prefix as described in bug #690094
208 - export ac_cv_prog_ac_ct_FT2_CONFIG=no
209 -
210 - tc-export CC CXX AR RANLIB
211 - ECONF_SOURCE="${B}" \
212 - econf -C \
213 - --bindir="${EPREFIX}"/usr/bin \
214 - --datadir="${S}" \
215 - --with-system-freetype2 \
216 - --with-system-zlib \
217 - --with-system-libpng \
218 - --with-system-xpdf \
219 - --with-system-poppler \
220 - --with-system-teckit \
221 - --with-teckit-includes="${EPREFIX}"/usr/include/teckit \
222 - --with-system-kpathsea \
223 - --with-kpathsea-includes="${EPREFIX}"/usr/include \
224 - --with-system-icu \
225 - --with-system-ptexenc \
226 - --with-system-harfbuzz \
227 - --with-system-icu \
228 - --with-system-graphite2 \
229 - --with-system-cairo \
230 - --with-system-pixman \
231 - --with-system-zziplib \
232 - --with-system-libpaper \
233 - --with-system-gmp \
234 - --with-system-gd \
235 - --with-system-mpfr \
236 - --without-texinfo \
237 - --disable-dialog \
238 - --disable-multiplatform \
239 - --enable-epsfwin \
240 - --enable-detex \
241 - --enable-dvi2tty \
242 - --enable-mftalkwin \
243 - --enable-regiswin \
244 - --enable-tektronixwin \
245 - --enable-unitermwin \
246 - --enable-vlna \
247 - --with-ps=gs \
248 - --disable-psutils \
249 - --disable-t1utils \
250 - --enable-ipc \
251 - --disable-biber \
252 - --disable-bibtex-x \
253 - --disable-dvipng \
254 - --disable-dvipsk \
255 - --disable-chktex \
256 - --disable-lcdf-typetools \
257 - --disable-pdfopen \
258 - --disable-ps2eps \
259 - --disable-ps2pk \
260 - --disable-ttf2pk2 \
261 - --disable-tex4htk \
262 - --disable-cjkutils \
263 - --disable-xdvik \
264 - --enable-luatex \
265 - --disable-dvisvgm \
266 - --enable-shared \
267 - --disable-static \
268 - --disable-native-texlive-build \
269 - --disable-largefile \
270 - --disable-build-in-source-tree \
271 - --disable-xindy-docs \
272 - --disable-xindy-rules \
273 - --with-banner-add=" Gentoo Linux" \
274 - $(use_enable luajittex) \
275 - $(use_enable luajittex luajithbtex) \
276 - $(use_enable luajittex mfluajit) \
277 - $(use_enable xetex) \
278 - $(use_enable cjk dviout-util) \
279 - $(use_enable cjk ptex) \
280 - $(use_enable cjk eptex) \
281 - $(use_enable cjk uptex) \
282 - $(use_enable cjk euptex) \
283 - $(use_enable cjk mendexk) \
284 - $(use_enable cjk makejvf) \
285 - $(use_enable cjk pmp) \
286 - $(use_enable cjk upmp) \
287 - $(use_enable tk texdoctk) \
288 - $(use_with X x) \
289 - $(use_enable xindy)
290 -}
291 -
292 -src_compile() {
293 - tc-export CC CXX AR RANLIB
294 - emake AR="$(tc-getAR)" SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist}
295 -
296 - cd "${B}" || die
297 - # Mimic updmap --syncwithtrees to enable only fonts installed
298 - # Code copied from updmap script
299 - for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do
300 - texlive-common_is_file_present_in_texmf "${i}" || echo "${i}"
301 - done > "${T}/updmap_update"
302 - {
303 - sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
304 - sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
305 - sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
306 - } > "${T}/updmap_update2"
307 - sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\
308 - && cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg"
309 -}
310 -
311 -src_install() {
312 - dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c
313 - emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install
314 -
315 - cd "${B}" || die
316 - dodir /usr/share # just in case
317 - cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
318 - cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
319 -
320 - # When X is disabled mf-nowin doesn't exist but some scripts expect it to
321 - # exist. Instead, it is called mf, so we symlink it to please everything.
322 - use X || dosym mf /usr/bin/mf-nowin
323 -
324 - docinto texk
325 - cd "${B}/texk" || die
326 - dodoc ChangeLog README
327 -
328 - docinto dviljk
329 - cd "${B}/texk/dviljk" || die
330 - dodoc ChangeLog README NEWS
331 -
332 - docinto makeindexk
333 - cd "${B}/texk/makeindexk" || die
334 - dodoc ChangeLog NOTES README
335 -
336 - docinto web2c
337 - cd "${B}/texk/web2c" || die
338 - dodoc ChangeLog NEWS PROJECTS README
339 -
340 - use doc || rm -rf "${ED}/usr/share/texmf-dist/doc"
341 -
342 - dodir /etc/env.d
343 - 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"
344 - # populate /etc/texmf
345 - keepdir /etc/texmf/web2c
346 -
347 - # take care of updmap.cfg and language.d files
348 - keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d}
349 -
350 - mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
351 -
352 - # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
353 - # by texmf-update
354 - rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf"
355 - # Remove bundled and invalid updmap.cfg
356 - rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg"
357 -
358 - texlive-common_handle_config_files
359 -
360 - keepdir /usr/share/texmf-site
361 -
362 - # the virtex symlink is not installed
363 - # The links has to be relative, since the targets
364 - # is not present at this stage and MacOS doesn't
365 - # like non-existing targets
366 - dosym tex /usr/bin/virtex
367 - dosym pdftex /usr/bin/pdfvirtex
368 -
369 - find "${ED}" -name '*.la' -delete || die
370 -}
371 -
372 -pkg_postinst() {
373 - etexmf-update
374 -
375 - einfo "Regenerating TeX formats"
376 - fmtutil-sys --all &> /dev/null
377 -
378 - elog
379 - elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge,"
380 - elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update."
381 - elog
382 - ewarn "If you are migrating from an older TeX distribution"
383 - ewarn "Please make sure you have read:"
384 - ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide"
385 - ewarn "in order to avoid possible problems"
386 -}