Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/texlive-core/
Date: Mon, 03 Jun 2019 20:56:30
Message-Id: 1559595379.63c6fcd54c7e1900959c05043a4ac305bae8ba0d.zlogene@gentoo
1 commit: 63c6fcd54c7e1900959c05043a4ac305bae8ba0d
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 3 20:56:02 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 3 20:56:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63c6fcd5
7
8 app-text/texlive-core: Drop old
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.66, Repoman-2.3.11
12
13 app-text/texlive-core/Manifest | 1 -
14 app-text/texlive-core/texlive-core-2019.ebuild | 348 -------------------------
15 2 files changed, 349 deletions(-)
16
17 diff --git a/app-text/texlive-core/Manifest b/app-text/texlive-core/Manifest
18 index 1285c05653f..6b12c597729 100644
19 --- a/app-text/texlive-core/Manifest
20 +++ b/app-text/texlive-core/Manifest
21 @@ -2,7 +2,6 @@ DIST texlive-20170524-source-freetype.patch.xz 625056 BLAKE2B 70bcd15da1edfe5422
22 DIST texlive-20170524-source.tar.xz 63483372 BLAKE2B 44669d1228f5be27e9d93672a4f4ead40f7f4c6cf386f2db6fef54d64f8b8a743a485fe1170904d8117b9745f71ec77db8434caa6cdd79359b1f3f387130a3b4 SHA512 18c18940992ab94ce22e22ccd4ad798253ea14ac2ab296a10ea5e9a8da9f33989f2e2641b42b564d1d5fb53bd371da3e68726b676d706b469016ad146cd19daa
23 DIST texlive-20190410-source.tar.xz 53783408 BLAKE2B 8e34c7c2b74eab1c4d16ddbf7eddd8566593e6d68c42a2634760f11d86e68970698d8b9deddcf3297966968ede11ecf30e0b04ec19b708dc3e6d0a2abcc3799d SHA512 7759d8e668e53c0c73e48907096da9d8fb6384dd9c3342ddfb05e17d077054c5351d35256cf4e63a6da502de2f09f521979bede7209cdd5bd8ae80eba0efed2e
24 DIST texlive-core-2017-poppler076.tar.xz 9232 BLAKE2B 945e4f8e6f3230b78dc43560c664fbe4989fb32759b41c0ef83d656b43b008030cebdbf668718c4f22831d01c3fe1466f686f7f6b76183d3d1bb5e760f17140d SHA512 63fb2b426921be5f6d310b31e7fea6fc0edc0900f4790445fcaface9c931ca6c3e8f98b81a3bccfd1c877750e854c9410a59ff9a124aa2826d7b4187d54ed8ab
25 -DIST texlive-core-patches-2019-1.tar.xz 11896 BLAKE2B f0c6283c4a1fd7158d9db26531db897c48d466dc32e60996221b70ebd799e702acb68760005fa4f8bbf60df8841b21e2117b5afad46c76e3cc749ed3de95da7c SHA512 eca8bce62ea47871da24371474ccd3c8d0d9431ef8d3b585e0811bd3d48606bf26bc88d45075e046c5b95860fc9482fe6b5d1e1914231363712b2a273e0fd7c6
26 DIST texlive-core-patches-2019-2.tar.xz 11936 BLAKE2B b8ee1bbf2b2e58101b4e03c3d86b1c78d022f69e462fa652640d3f9feaa0672bddbf7ff9b7410ea9876f5e1cea50db0c43cf57898708cad3af550bbc1dad307f SHA512 50d24df7c2773c8a94676cc986bd15e0f9c652c68ec4df4ce0abec4e8cbfbf56386b59021bab348fb8e218cf67ff365295056712bee37c86a6ccdd7bcb8bc192
27 DIST texlive-core-patches-70.tar.xz 13068 BLAKE2B 011cf51af10d28ac9df7c9b9d7aea2cac3e562d393dcf09d57b3c2832fe6816cf926458417577f7c9d9414639a291c09240444145bdbb3d132170f51a8a16980 SHA512 fd26b92a03cd0446007728d0c16a8c7301e254515b997e6a0bd9b325db162bf3f2a2e96be0cb185f042038205c4b4dacf1785a216c8326328682f1c42da9079e
28 DIST texlive-module-a2ping-2017.tar.xz 31136 BLAKE2B cc0d99992cb780711a2a423fa26135845fa1f2cbbac76485d64a0b3184e338e7a60cdcfeaca129e6251f72110b0069c32164f9c4904d7f7c9c2edc6306f50411 SHA512 4711f184222fd95498a6d3ee94db19209c7836e6b775303926766d97921f2e8324b0aa2252a958fb619dbeca50729d2be4851a2add5503e7e8f4e713fc993e41
29
30 diff --git a/app-text/texlive-core/texlive-core-2019.ebuild b/app-text/texlive-core/texlive-core-2019.ebuild
31 deleted file mode 100644
32 index 84f9cf4dd38..00000000000
33 --- a/app-text/texlive-core/texlive-core-2019.ebuild
34 +++ /dev/null
35 @@ -1,348 +0,0 @@
36 -# Copyright 1999-2019 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -
41 -TL_SOURCE_VERSION=20190410
42 -
43 -inherit flag-o-matic toolchain-funcs libtool texlive-common
44 -
45 -MY_P=${PN%-core}-${TL_SOURCE_VERSION}-source
46 -
47 -PATCHLEVEL=1
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="mirror://gentoo/${MY_P}.tar.xz
55 - mirror://gentoo/${PN}-patches-${PV}-${PATCHLEVEL}.tar.xz"
56 -
57 -TL_CORE_BINEXTRA_MODULES="
58 - a2ping adhocfilelist arara asymptote bundledoc checklistings ctan_chk
59 - ctanify ctanupload ctie cweb de-macro dtl dtxgen dvi2tty dviasm dvicopy
60 - dvidvi dviljk dvipos findhyph fragmaster hook-pre-commit-pkg hyphenex
61 - installfont lacheck latex-git-log latex-papersize latex2man latex2nemeth
62 - latexfileversion latexpand latexindent ltxfileinfo ltximg listings-ext make4ht
63 - match_parens mflua mkjobtexmf patgen pdfbook2 pdfcrop pdflatexpicscale pdftools
64 - pdfxup pfarrei pkfix pkfix-helper purifyeps seetexk srcredact sty2dtx
65 - synctex tex4ebook texcount texdef texdiff texdirflatten texdoc texfot
66 - texliveonfly texloganalyser texosquery texware tie tpic2pdftex typeoutfileinfo
67 - web collection-binextra
68 - "
69 -TL_CORE_BINEXTRA_DOC_MODULES="
70 - a2ping.doc adhocfilelist.doc arara.doc asymptote.doc bundledoc.doc
71 - checklistings.doc ctan_chk.doc ctanify.doc ctanupload.doc ctie.doc
72 - cweb.doc de-macro.doc dtl.doc dtxgen.doc dvi2tty.doc dviasm.doc dvicopy.doc
73 - dvidvi.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc
74 - hook-pre-commit-pkg.doc installfont.doc lacheck.doc latex-git-log.doc
75 - latex-papersize.doc latex2man.doc latex2nemeth.doc latexfileversion.doc
76 - latexpand.doc latexindent.doc ltxfileinfo.doc ltximg.doc listings-ext.doc
77 - make4ht.doc match_parens.doc mkjobtexmf.doc patgen.doc pdfbook2.doc pdfcrop.doc
78 - pdflatexpicscale.doc pdftools.doc pdfxup.doc pfarrei.doc pkfix.doc
79 - pkfix-helper.doc purifyeps.doc pythontex.doc seetexk.doc srcredact.doc
80 - sty2dtx.doc synctex.doc tex4ebook.doc texcount.doc texdef.doc texdiff.doc
81 - texdirflatten.doc texdoc.doc texfot.doc texliveonfly.doc texloganalyser.doc
82 - texosquery.doc texware.doc tie.doc tpic2pdftex.doc typeoutfileinfo.doc web.doc
83 -"
84 -TL_CORE_BINEXTRA_SRC_MODULES="
85 - adhocfilelist.source arara.source checklistings.source hyphenex.source
86 - listings-ext.source mkjobtexmf.source pfarrei.source pythontex.source
87 - texdef.source texosquery.source
88 -"
89 -
90 -TL_CORE_EXTRA_MODULES="tetex hyphen-base gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}"
91 -TL_CORE_EXTRA_DOC_MODULES="tetex.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}"
92 -TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}"
93 -
94 -for i in ${TL_CORE_EXTRA_MODULES}; do
95 - SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
96 -done
97 -
98 -SRC_URI="${SRC_URI} doc? ( "
99 -for i in ${TL_CORE_EXTRA_DOC_MODULES}; do
100 - SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
101 -done
102 -SRC_URI="${SRC_URI} )"
103 -SRC_URI="${SRC_URI} source? ( "
104 -for i in ${TL_CORE_EXTRA_SRC_MODULES}; do
105 - SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
106 -done
107 -SRC_URI="${SRC_URI} )"
108 -
109 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
110 -IUSE="cjk X doc source tk +luajittex xetex"
111 -
112 -TEXMF_PATH=/usr/share/texmf-dist
113 -
114 -MODULAR_X_DEPEND="X? (
115 - x11-libs/libX11
116 - x11-libs/libXmu
117 - )"
118 -
119 -COMMON_DEPEND="${MODULAR_X_DEPEND}
120 - !dev-tex/luatex
121 - sys-libs/zlib
122 - >=media-libs/libpng-1.2.43-r2:0=
123 - media-libs/gd[png]
124 - >=app-text/poppler-0.58.0:=
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 - >=dev-libs/icu-50:=
134 - >=app-text/teckit-2.5.3
135 - media-libs/fontconfig
136 - media-gfx/graphite2
137 - )
138 - media-libs/freetype:2
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 - # From texlive-module.eclass.
169 - grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist"
170 - { for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist"
171 - for i in $(<"${T}/dirlist"); do
172 - [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}"
173 - done
174 - for i in $(<"${T}/reloclist"); do
175 - mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})"
176 - done
177 -
178 - mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files"
179 -
180 - cd "${B}" || die
181 -
182 - default
183 -
184 - eapply "${WORKDIR}"/patches
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 - 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 - tc-export CC CXX AR RANLIB
202 - ECONF_SOURCE="${B}" \
203 - econf -C \
204 - --bindir="${EPREFIX}"/usr/bin \
205 - --datadir="${S}" \
206 - --with-system-freetype2 \
207 - --with-system-zlib \
208 - --with-system-libpng \
209 - --with-system-xpdf \
210 - --with-system-poppler \
211 - --with-system-teckit \
212 - --with-teckit-includes="${EPREFIX}"/usr/include/teckit \
213 - --with-system-kpathsea \
214 - --with-kpathsea-includes="${EPREFIX}"/usr/include \
215 - --with-system-icu \
216 - --with-system-ptexenc \
217 - --with-system-harfbuzz \
218 - --with-system-icu \
219 - --with-system-graphite2 \
220 - --with-system-cairo \
221 - --with-system-pixman \
222 - --with-system-zziplib \
223 - --with-system-libpaper \
224 - --with-system-gmp \
225 - --with-system-gd \
226 - --with-system-mpfr \
227 - --without-texinfo \
228 - --disable-dialog \
229 - --disable-multiplatform \
230 - --enable-epsfwin \
231 - --enable-mftalkwin \
232 - --enable-regiswin \
233 - --enable-tektronixwin \
234 - --enable-unitermwin \
235 - --with-ps=gs \
236 - --disable-psutils \
237 - --disable-t1utils \
238 - --enable-ipc \
239 - --disable-biber \
240 - --disable-bibtex-x \
241 - --disable-dvipng \
242 - --disable-dvipsk \
243 - --disable-chktex \
244 - --disable-lcdf-typetools \
245 - --disable-pdfopen \
246 - --disable-ps2eps \
247 - --disable-ps2pk \
248 - --disable-detex \
249 - --disable-ttf2pk2 \
250 - --disable-tex4htk \
251 - --disable-cjkutils \
252 - --disable-xdvik \
253 - --disable-xindy \
254 - --enable-luatex \
255 - --disable-dvi2tty \
256 - --disable-dvisvgm \
257 - --disable-vlna \
258 - --enable-shared \
259 - --disable-native-texlive-build \
260 - --disable-largefile \
261 - --disable-build-in-source-tree \
262 - $(use_enable luajittex) \
263 - $(use_enable luajittex mfluajit) \
264 - $(use_enable xetex) \
265 - $(use_enable cjk dviout-util) \
266 - $(use_enable cjk ptex) \
267 - $(use_enable cjk eptex) \
268 - $(use_enable cjk uptex) \
269 - $(use_enable cjk euptex) \
270 - $(use_enable cjk mendexk) \
271 - $(use_enable cjk makejvf) \
272 - $(use_enable cjk pmp) \
273 - $(use_enable cjk upmp) \
274 - $(use_enable tk texdoctk) \
275 - $(use_with X x)
276 -}
277 -
278 -src_compile() {
279 - tc-export CC CXX AR RANLIB
280 - emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist}
281 -
282 - cd "${B}" || die
283 - # Mimic updmap --syncwithtrees to enable only fonts installed
284 - # Code copied from updmap script
285 - for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do
286 - texlive-common_is_file_present_in_texmf "$i" || echo "$i"
287 - done > "${T}/updmap_update"
288 - {
289 - sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
290 - sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
291 - sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
292 - } > "${T}/updmap_update2"
293 - sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\
294 - && cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg"
295 -}
296 -
297 -src_install() {
298 - dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c
299 - emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install
300 -
301 - cd "${B}" || die
302 - dodir /usr/share # just in case
303 - cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
304 - cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
305 -
306 - # When X is disabled mf-nowin doesn't exist but some scripts expect it to
307 - # exist. Instead, it is called mf, so we symlink it to please everything.
308 - use X || dosym mf /usr/bin/mf-nowin
309 -
310 - docinto texk
311 - cd "${B}/texk" || die
312 - dodoc ChangeLog README
313 -
314 - docinto dviljk || die
315 - cd "${B}/texk/dviljk"
316 - dodoc ChangeLog README NEWS
317 -
318 - docinto makeindexk || die
319 - cd "${B}/texk/makeindexk"
320 - dodoc ChangeLog NOTES README
321 -
322 - docinto web2c || die
323 - cd "${B}/texk/web2c"
324 - dodoc ChangeLog NEWS PROJECTS README
325 -
326 - use doc || rm -rf "${ED}/usr/share/texmf-dist/doc"
327 -
328 - dodir /etc/env.d
329 - 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"
330 - # populate /etc/texmf
331 - keepdir /etc/texmf/web2c
332 -
333 - # take care of updmap.cfg and language.d files
334 - keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d}
335 -
336 - mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
337 -
338 - # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
339 - # by texmf-update
340 - rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf"
341 - # Remove bundled and invalid updmap.cfg
342 - rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg"
343 -
344 - texlive-common_handle_config_files
345 -
346 - keepdir /usr/share/texmf-site
347 -
348 - # the virtex symlink is not installed
349 - # The links has to be relative, since the targets
350 - # is not present at this stage and MacOS doesn't
351 - # like non-existing targets
352 - dosym tex /usr/bin/virtex
353 - dosym pdftex /usr/bin/pdfvirtex
354 -
355 - # Rename mpost to leave room for mplib
356 - mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}"
357 - dosym "mpost-${P}" /usr/bin/mpost
358 -
359 - # Ditto for pdftex
360 - mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}"
361 - dosym "pdftex-${P}" /usr/bin/pdftex
362 -}
363 -
364 -pkg_postinst() {
365 - etexmf-update
366 -
367 - einfo "Regenerating TeX formats"
368 - fmtutil-sys --all &> /dev/null
369 -
370 - elog
371 - elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge,"
372 - elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update."
373 - elog
374 - ewarn "If you are migrating from an older TeX distribution"
375 - ewarn "Please make sure you have read:"
376 - ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide"
377 - ewarn "in order to avoid possible problems"
378 - elog
379 - elog "TeXLive has been split in various ebuilds. If you are missing a"
380 - elog "package to process your TeX documents, you can install"
381 - elog "dev-tex/texmfind to easily search for them."
382 - elog
383 -}