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, 30 Dec 2019 19:24:13
Message-Id: 1577733840.51325edeb247cd79a24b5c032b142f80cf0c6e90.zlogene@gentoo
1 commit: 51325edeb247cd79a24b5c032b142f80cf0c6e90
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 30 19:23:36 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 30 19:24:00 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51325ede
7
8 app-text/texlive-core: Drop old
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 app-text/texlive-core/Manifest | 1 -
14 app-text/texlive-core/texlive-core-2019-r5.ebuild | 359 ----------------------
15 2 files changed, 360 deletions(-)
16
17 diff --git a/app-text/texlive-core/Manifest b/app-text/texlive-core/Manifest
18 index 84d2d1a0626..984f9d0c1dc 100644
19 --- a/app-text/texlive-core/Manifest
20 +++ b/app-text/texlive-core/Manifest
21 @@ -1,6 +1,5 @@
22 DIST texlive-20190410-source.tar.xz 53783408 BLAKE2B 8e34c7c2b74eab1c4d16ddbf7eddd8566593e6d68c42a2634760f11d86e68970698d8b9deddcf3297966968ede11ecf30e0b04ec19b708dc3e6d0a2abcc3799d SHA512 7759d8e668e53c0c73e48907096da9d8fb6384dd9c3342ddfb05e17d077054c5351d35256cf4e63a6da502de2f09f521979bede7209cdd5bd8ae80eba0efed2e
23 DIST texlive-core-patches-2019-4.tar.xz 11932 BLAKE2B 5e73e2bd3afeb904f2b8898081ffd770c9ab152368ae5a8699d5f63507e3c0584901d7d6f8fece7724b8e744d7816fe31db4b96962c0550491a57a6d51adb296 SHA512 fce31563f8c7e8f1f0bdcba9c5108d9f5d14529c22c110e33f32a6367560f7f255e51a1e86f1d5c8fb275085ff3ba6d0f5f474acd79ff61d67be795dfb330708
24 -DIST texlive-core-patches-2019-5.tar.xz 12444 BLAKE2B 0b6b24897a1fd5d6cb22dc126161c4da39a652249a1c9fde8fe771b196332b40af677c8128c561e404c81d5a0e6835d1cf246661957367ac94fce3fc4036b0fc SHA512 ce3b37423c89ba605608158a46e69e7a8aff29034be9583e0c09d41e16176544fda02a9a60071b3744b2b6004ad3f5986a116bb8e01acc1402e94d5cc6203d5c
25 DIST texlive-core-patches-2019-6.tar.xz 12696 BLAKE2B 6d87cab9040a0bfd8b1ef74d6a1cde4d8edbd977242d4584e94e29877ec7bca377aa7762470ae2aefaf282097f4919745c2d052403848e0805c5cde9dc0241ef SHA512 0382b097fc3b58abdd3550a10a54d9f667cd89a19e3bab747fe932d94563b92641da1516dc32f41c177482d8e3afa21f0575dc5f1e6c6efd63fdfcb21d40d874
26 DIST texlive-module-a2ping-2019.tar.xz 30616 BLAKE2B 545abfdd3aa23b8d2bed608d7b7aef0f9578d5c4d6039880d435144c687014edb8c841afcb2d9ca1fc48a365b2bcb57832d49d1c6bb35480a01a813e40e18ea6 SHA512 983084ca3d70eff729d81d5d52a74e1bf1f95e384916bc81d17be81290f70c1da5ac891c1665a2451975f36fd56ea0036e1d0dc46b2e98b61ddc660ac044c23c
27 DIST texlive-module-a2ping.doc-2019.tar.xz 39740 BLAKE2B 1a9cf6e4cf4dd4dd7677efddafc9da191ab3c34eea3b7bd0f51937f6946e1696b858aa9d53e7599c220933b06bc0332869a0bd596ca66b9801b48adb5ab1aa2b SHA512 daeefb01a0197e3b7751614cb84e2926f670d36b7e8a389bfbbe39cbd941c4d10ef5112593bfb88e11fa15f7f7bb07f2538c7d0a68cefe1482bbdaf02d475512
28
29 diff --git a/app-text/texlive-core/texlive-core-2019-r5.ebuild b/app-text/texlive-core/texlive-core-2019-r5.ebuild
30 deleted file mode 100644
31 index 57d09338eae..00000000000
32 --- a/app-text/texlive-core/texlive-core-2019-r5.ebuild
33 +++ /dev/null
34 @@ -1,359 +0,0 @@
35 -# Copyright 1999-2019 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -
40 -TL_SOURCE_VERSION=20190410
41 -
42 -inherit flag-o-matic toolchain-funcs libtool texlive-common
43 -
44 -MY_P=${PN%-core}-${TL_SOURCE_VERSION}-source
45 -
46 -PATCHLEVEL=5
47 -
48 -DESCRIPTION="A complete TeX distribution"
49 -HOMEPAGE="https://tug.org/texlive/"
50 -SLOT="0"
51 -LICENSE="GPL-2 LPPL-1.3c TeX"
52 -
53 -SRC_URI="mirror://gentoo/${MY_P}.tar.xz
54 - mirror://gentoo/${PN}-patches-${PV}-${PATCHLEVEL}.tar.xz
55 - mirror://gentoo/texlive-tlpdb-${PV}.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 ~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"
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 - sys-libs/zlib
121 - >=media-libs/libpng-1.2.43-r2:0=
122 - media-libs/gd[png]
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 - xetex? (
130 - >=media-libs/harfbuzz-1.4.5[icu,graphite]
131 - >=app-text/teckit-2.5.3
132 - media-libs/fontconfig
133 - media-gfx/graphite2
134 - )
135 - media-libs/freetype:2
136 - >=dev-libs/icu-50:=
137 - >=dev-libs/kpathsea-6.2.3
138 - cjk? ( >=dev-libs/ptexenc-1.3.7 )
139 - >=app-text/poppler-0.76.1:="
140 -
141 -BDEPEND="sys-apps/ed
142 - sys-devel/flex
143 - virtual/pkgconfig"
144 -
145 -DEPEND="${COMMON_DEPEND}"
146 -
147 -RDEPEND="${COMMON_DEPEND}
148 - >=app-text/ps2pkm-1.8_p20170524
149 - >=app-text/dvipsk-5.997
150 - >=dev-tex/bibtexu-3.71_p20170524
151 - virtual/perl-Getopt-Long
152 - tk? ( dev-perl/Tk )"
153 -
154 -S="${WORKDIR}/${P}_build"
155 -B="${WORKDIR}/${MY_P}"
156 -
157 -src_unpack() {
158 - unpack ${A}
159 - mkdir -p "${S}" || die "failed to create build dir"
160 -}
161 -
162 -RELOC_TARGET=texmf-dist
163 -
164 -src_prepare() {
165 - cd "${WORKDIR}" || die
166 -
167 - mv texlive.tlpdb tlpkg/ || die "failed to move texlive.tlpdb"
168 -
169 - # From texlive-module.eclass.
170 - grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist"
171 - { for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist"
172 - for i in $(<"${T}/dirlist"); do
173 - [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}"
174 - done
175 - for i in $(<"${T}/reloclist"); do
176 - mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})"
177 - done
178 -
179 - mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files"
180 -
181 - cd "${B}" || die
182 -
183 - default
184 -
185 - # These we need unconditionally
186 - eapply "${WORKDIR}"/patches/{0001..0006}*.patch
187 -
188 - # Conditional poppler patching
189 - if has_version ">=app-text/poppler-0.83.0"; then
190 - eapply "${WORKDIR}"/patches/${P}-poppler083.patch
191 - else
192 - eapply "${WORKDIR}"/patches/${P}-poppler076.patch
193 - fi
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 - elibtoolize
200 -}
201 -
202 -src_configure() {
203 - # It fails on alpha without this
204 - use alpha && append-ldflags "-Wl,--no-relax"
205 -
206 - # Too many regexps use A-Z a-z constructs, what causes problems with locales
207 - # that don't have the same alphabetical order than ascii. Bug #242430
208 - # So we set LC_ALL to C in order to avoid problems.
209 - export LC_ALL=C
210 -
211 - # Disable freetype-config as this is considered obsolete.
212 - # Also only pkg-config works for prefix as described in bug #690094
213 - export ac_cv_prog_ac_ct_FT2_CONFIG=no
214 -
215 - tc-export CC CXX AR RANLIB
216 - ECONF_SOURCE="${B}" \
217 - econf -C \
218 - --bindir="${EPREFIX}"/usr/bin \
219 - --datadir="${S}" \
220 - --with-system-freetype2 \
221 - --with-system-zlib \
222 - --with-system-libpng \
223 - --with-system-xpdf \
224 - --with-system-poppler \
225 - --with-system-teckit \
226 - --with-teckit-includes="${EPREFIX}"/usr/include/teckit \
227 - --with-system-kpathsea \
228 - --with-kpathsea-includes="${EPREFIX}"/usr/include \
229 - --with-system-icu \
230 - --with-system-ptexenc \
231 - --with-system-harfbuzz \
232 - --with-system-icu \
233 - --with-system-graphite2 \
234 - --with-system-cairo \
235 - --with-system-pixman \
236 - --with-system-zziplib \
237 - --with-system-libpaper \
238 - --with-system-gmp \
239 - --with-system-gd \
240 - --with-system-mpfr \
241 - --without-texinfo \
242 - --disable-dialog \
243 - --disable-multiplatform \
244 - --enable-epsfwin \
245 - --enable-mftalkwin \
246 - --enable-regiswin \
247 - --enable-tektronixwin \
248 - --enable-unitermwin \
249 - --with-ps=gs \
250 - --disable-psutils \
251 - --disable-t1utils \
252 - --enable-ipc \
253 - --disable-biber \
254 - --disable-bibtex-x \
255 - --disable-dvipng \
256 - --disable-dvipsk \
257 - --disable-chktex \
258 - --disable-lcdf-typetools \
259 - --disable-pdfopen \
260 - --disable-ps2eps \
261 - --disable-ps2pk \
262 - --disable-detex \
263 - --disable-ttf2pk2 \
264 - --disable-tex4htk \
265 - --disable-cjkutils \
266 - --disable-xdvik \
267 - --disable-xindy \
268 - --enable-luatex \
269 - --disable-dvi2tty \
270 - --disable-dvisvgm \
271 - --disable-vlna \
272 - --enable-shared \
273 - --disable-native-texlive-build \
274 - --disable-largefile \
275 - --disable-build-in-source-tree \
276 - --with-banner-add=" Gentoo Linux" \
277 - $(use_enable luajittex) \
278 - $(use_enable luajittex mfluajit) \
279 - $(use_enable xetex) \
280 - $(use_enable cjk dviout-util) \
281 - $(use_enable cjk ptex) \
282 - $(use_enable cjk eptex) \
283 - $(use_enable cjk uptex) \
284 - $(use_enable cjk euptex) \
285 - $(use_enable cjk mendexk) \
286 - $(use_enable cjk makejvf) \
287 - $(use_enable cjk pmp) \
288 - $(use_enable cjk upmp) \
289 - $(use_enable tk texdoctk) \
290 - $(use_with X x)
291 -}
292 -
293 -src_compile() {
294 - tc-export CC CXX AR RANLIB
295 - emake AR="$(tc-getAR)" SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist}
296 -
297 - cd "${B}" || die
298 - # Mimic updmap --syncwithtrees to enable only fonts installed
299 - # Code copied from updmap script
300 - for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do
301 - texlive-common_is_file_present_in_texmf "$i" || echo "$i"
302 - done > "${T}/updmap_update"
303 - {
304 - sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
305 - sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
306 - sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
307 - } > "${T}/updmap_update2"
308 - sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\
309 - && cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg"
310 -}
311 -
312 -src_install() {
313 - dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c
314 - emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install
315 -
316 - cd "${B}" || die
317 - dodir /usr/share # just in case
318 - cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
319 - cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
320 -
321 - # When X is disabled mf-nowin doesn't exist but some scripts expect it to
322 - # exist. Instead, it is called mf, so we symlink it to please everything.
323 - use X || dosym mf /usr/bin/mf-nowin
324 -
325 - docinto texk
326 - cd "${B}/texk" || die
327 - dodoc ChangeLog README
328 -
329 - docinto dviljk
330 - cd "${B}/texk/dviljk" || die
331 - dodoc ChangeLog README NEWS
332 -
333 - docinto makeindexk
334 - cd "${B}/texk/makeindexk" || die
335 - dodoc ChangeLog NOTES README
336 -
337 - docinto web2c
338 - cd "${B}/texk/web2c" || die
339 - dodoc ChangeLog NEWS PROJECTS README
340 -
341 - use doc || rm -rf "${ED}/usr/share/texmf-dist/doc"
342 -
343 - dodir /etc/env.d
344 - 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"
345 - # populate /etc/texmf
346 - keepdir /etc/texmf/web2c
347 -
348 - # take care of updmap.cfg and language.d files
349 - keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d}
350 -
351 - mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
352 -
353 - # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
354 - # by texmf-update
355 - rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf"
356 - # Remove bundled and invalid updmap.cfg
357 - rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg"
358 -
359 - texlive-common_handle_config_files
360 -
361 - keepdir /usr/share/texmf-site
362 -
363 - # the virtex symlink is not installed
364 - # The links has to be relative, since the targets
365 - # is not present at this stage and MacOS doesn't
366 - # like non-existing targets
367 - dosym tex /usr/bin/virtex
368 - dosym pdftex /usr/bin/pdfvirtex
369 -
370 - # Rename mpost to leave room for mplib
371 - mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}" || die
372 - dosym "mpost-${P}" /usr/bin/mpost
373 -
374 - # Ditto for pdftex
375 - mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}" || die
376 - dosym "pdftex-${P}" /usr/bin/pdftex
377 -}
378 -
379 -pkg_postinst() {
380 - etexmf-update
381 -
382 - einfo "Regenerating TeX formats"
383 - fmtutil-sys --all &> /dev/null
384 -
385 - elog
386 - elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge,"
387 - elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update."
388 - elog
389 - ewarn "If you are migrating from an older TeX distribution"
390 - ewarn "Please make sure you have read:"
391 - ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide"
392 - ewarn "in order to avoid possible problems"
393 -}