Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/texlive-core/
Date: Wed, 05 Dec 2018 14:00:42
Message-Id: 1544018423.f1d9ace4fde8383c2aef8df76748fb0b1c4573c2.bman@gentoo
1 commit: f1d9ace4fde8383c2aef8df76748fb0b1c4573c2
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 5 14:00:23 2018 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 5 14:00:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1d9ace4
7
8 app-text/texlive-core: drop old
9
10 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
11
12 app-text/texlive-core/texlive-core-2017-r3.ebuild | 359 ----------------------
13 1 file changed, 359 deletions(-)
14
15 diff --git a/app-text/texlive-core/texlive-core-2017-r3.ebuild b/app-text/texlive-core/texlive-core-2017-r3.ebuild
16 deleted file mode 100644
17 index 660c0a04812..00000000000
18 --- a/app-text/texlive-core/texlive-core-2017-r3.ebuild
19 +++ /dev/null
20 @@ -1,359 +0,0 @@
21 -# Copyright 1999-2018 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=5
25 -
26 -#TL_UPSTREAM_PATCHLEVEL="1"
27 -PATCHLEVEL="70"
28 -TL_SOURCE_VERSION=20170524
29 -
30 -inherit eutils flag-o-matic toolchain-funcs libtool texlive-common
31 -
32 -MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source
33 -
34 -DESCRIPTION="A complete TeX distribution"
35 -HOMEPAGE="https://tug.org/texlive/"
36 -SLOT="0"
37 -LICENSE="GPL-2 LPPL-1.3c TeX"
38 -
39 -SRC_URI="mirror://gentoo/${MY_PV}.tar.xz"
40 -
41 -# Fetch patches
42 -SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz"
43 -# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz"
44 -
45 -TL_CORE_BINEXTRA_MODULES="
46 - a2ping adhocfilelist arara asymptote bundledoc checklistings ctan_chk
47 - ctanify ctanupload ctie cweb de-macro dtl dtxgen dvi2tty dviasm dvicopy
48 - dvidvi dviljk dvipos findhyph fragmaster hook-pre-commit-pkg hyphenex
49 - installfont lacheck latex-git-log latex-papersize latex2man latex2nemeth
50 - latexfileversion latexpand latexindent ltxfileinfo ltximg listings-ext make4ht
51 - match_parens mflua mkjobtexmf patgen pdfbook2 pdfcrop pdflatexpicscale pdftools
52 - pdfxup pfarrei pkfix pkfix-helper purifyeps seetexk srcredact sty2dtx
53 - synctex tex4ebook texcount texdef texdiff texdirflatten texdoc texfot
54 - texliveonfly texloganalyser texosquery texware tie tpic2pdftex typeoutfileinfo
55 - web collection-binextra
56 - "
57 -TL_CORE_BINEXTRA_DOC_MODULES="
58 - a2ping.doc adhocfilelist.doc arara.doc asymptote.doc bundledoc.doc
59 - checklistings.doc ctan_chk.doc ctanify.doc ctanupload.doc ctie.doc
60 - cweb.doc de-macro.doc dtl.doc dtxgen.doc dvi2tty.doc dviasm.doc dvicopy.doc
61 - dvidvi.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc
62 - hook-pre-commit-pkg.doc installfont.doc lacheck.doc latex-git-log.doc
63 - latex-papersize.doc latex2man.doc latex2nemeth.doc latexfileversion.doc
64 - 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 pdftools.doc pdfxup.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 texloganalyser.doc
70 - texosquery.doc texware.doc tie.doc tpic2pdftex.doc typeoutfileinfo.doc web.doc
71 -"
72 -TL_CORE_BINEXTRA_SRC_MODULES="
73 - adhocfilelist.source arara.source checklistings.source hyphenex.source
74 - listings-ext.source mkjobtexmf.source pfarrei.source pythontex.source
75 - texdef.source texosquery.source
76 -"
77 -
78 -TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}"
79 -TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}"
80 -TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}"
81 -
82 -for i in ${TL_CORE_EXTRA_MODULES}; do
83 - SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
84 -done
85 -
86 -SRC_URI="${SRC_URI} doc? ( "
87 -for i in ${TL_CORE_EXTRA_DOC_MODULES}; do
88 - SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
89 -done
90 -SRC_URI="${SRC_URI} )"
91 -SRC_URI="${SRC_URI} source? ( "
92 -for i in ${TL_CORE_EXTRA_SRC_MODULES}; do
93 - SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz"
94 -done
95 -SRC_URI="${SRC_URI} )"
96 -
97 -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 ~x64-solaris ~x86-solaris"
98 -IUSE="cjk X doc source tk +luajittex xetex"
99 -
100 -TEXMF_PATH=/usr/share/texmf-dist
101 -
102 -MODULAR_X_DEPEND="X? (
103 - x11-libs/libX11
104 - x11-libs/libXmu
105 - )"
106 -
107 -COMMON_DEPEND="${MODULAR_X_DEPEND}
108 - !app-text/ptex
109 - !app-text/tetex
110 - !<app-text/texlive-2007
111 - !app-text/xetex
112 - !<dev-texlive/texlive-basic-2014
113 - !<dev-texlive/texlive-metapost-2011
114 - !app-text/dvibook
115 - !dev-tex/luatex
116 - !app-text/dvipdfm
117 - !app-text/dvipdfmx
118 - !app-text/xdvipdfmx
119 - sys-libs/zlib
120 - >=media-libs/libpng-1.2.43-r2:0=
121 - >=app-text/poppler-0.58.0:=
122 - <app-text/poppler-0.64.0
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 - >=dev-libs/icu-50:=
132 - >=app-text/teckit-2.5.3
133 - media-libs/fontconfig
134 - media-gfx/graphite2
135 - )
136 - media-libs/freetype:2
137 - >=dev-libs/kpathsea-6.2.3
138 - cjk? ( >=dev-libs/ptexenc-1.3.5 )"
139 -
140 -DEPEND="${COMMON_DEPEND}
141 - <media-libs/freetype-2.9.1-r3
142 - virtual/pkgconfig
143 - sys-apps/ed
144 - sys-devel/flex
145 - app-arch/xz-utils"
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_PV}"
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}"
166 - # From texlive-module.eclass.
167 - grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist"
168 - { for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist"
169 - for i in $(<"${T}/dirlist"); do
170 - [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}"
171 - done
172 - for i in $(<"${T}/reloclist"); do
173 - mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})"
174 - done
175 -
176 - mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files"
177 -
178 - cd "${B}"
179 - #EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches"
180 - EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
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 - elibtoolize
187 -}
188 -
189 -src_configure() {
190 - # It fails on alpha without this
191 - use alpha && append-ldflags "-Wl,--no-relax"
192 -
193 - # Required for newest icu, bug #618732
194 - append-cxxflags '-std=c++11'
195 -
196 - # Too many regexps use A-Z a-z constructs, what causes problems with locales
197 - # that don't have the same alphabetical order than ascii. Bug #242430
198 - # So we set LC_ALL to C in order to avoid problems.
199 - export LC_ALL=C
200 - tc-export CC CXX AR RANLIB
201 - ECONF_SOURCE="${B}" \
202 - econf -C \
203 - --bindir="${EPREFIX}"/usr/bin \
204 - --datadir="${S}" \
205 - --with-system-freetype2 \
206 - --with-system-zlib \
207 - --with-system-libpng \
208 - --with-system-xpdf \
209 - --with-system-poppler \
210 - --with-system-teckit \
211 - --with-teckit-includes="${EPREFIX}"/usr/include/teckit \
212 - --with-system-kpathsea \
213 - --with-kpathsea-includes="${EPREFIX}"/usr/include \
214 - --with-system-icu \
215 - --with-system-ptexenc \
216 - --with-system-harfbuzz \
217 - --with-system-icu \
218 - --with-system-graphite2 \
219 - --with-system-cairo \
220 - --with-system-pixman \
221 - --with-system-zziplib \
222 - --with-system-libpaper \
223 - --with-system-gmp \
224 - --with-system-mpfr \
225 - --without-texinfo \
226 - --disable-dialog \
227 - --disable-multiplatform \
228 - --enable-epsfwin \
229 - --enable-mftalkwin \
230 - --enable-regiswin \
231 - --enable-tektronixwin \
232 - --enable-unitermwin \
233 - --with-ps=gs \
234 - --disable-psutils \
235 - --disable-t1utils \
236 - --enable-ipc \
237 - --disable-biber \
238 - --disable-bibtex-x \
239 - --disable-dvipng \
240 - --disable-dvipsk \
241 - --disable-chktex \
242 - --disable-lcdf-typetools \
243 - --disable-pdfopen \
244 - --disable-ps2eps \
245 - --disable-ps2pk \
246 - --disable-detex \
247 - --disable-ttf2pk2 \
248 - --disable-tex4htk \
249 - --disable-cjkutils \
250 - --disable-xdvik \
251 - --disable-xindy \
252 - --enable-luatex \
253 - --disable-dvi2tty \
254 - --disable-dvisvgm \
255 - --disable-vlna \
256 - --enable-shared \
257 - --disable-native-texlive-build \
258 - --disable-largefile \
259 - $(use_enable luajittex) \
260 - $(use_enable luajittex mfluajit) \
261 - $(use_enable xetex) \
262 - $(use_enable cjk ptex) \
263 - $(use_enable cjk eptex) \
264 - $(use_enable cjk uptex) \
265 - $(use_enable cjk euptex) \
266 - $(use_enable cjk mendexk) \
267 - $(use_enable cjk makejvf) \
268 - $(use_enable cjk pmp) \
269 - $(use_enable cjk upmp) \
270 - $(use_enable tk texdoctk) \
271 - $(use_with X x)
272 -}
273 -
274 -src_compile() {
275 - tc-export CC CXX AR RANLIB
276 - emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist}
277 -
278 - cd "${B}" || die
279 - # Mimic updmap --syncwithtrees to enable only fonts installed
280 - # Code copied from updmap script
281 - for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do
282 - texlive-common_is_file_present_in_texmf "$i" || echo "$i"
283 - done > "${T}/updmap_update"
284 - {
285 - sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
286 - sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
287 - sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update"
288 - } > "${T}/updmap_update2"
289 - sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\
290 - && cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg"
291 -}
292 -
293 -src_install() {
294 - dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c
295 - emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install
296 -
297 - cd "${B}" || die
298 - dodir /usr/share # just in case
299 - cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
300 - cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
301 -
302 - # When X is disabled mf-nowin doesn't exist but some scripts expect it to
303 - # exist. Instead, it is called mf, so we symlink it to please everything.
304 - use X || dosym mf /usr/bin/mf-nowin
305 -
306 - docinto texk
307 - cd "${B}/texk"
308 - dodoc ChangeLog README
309 -
310 - docinto dviljk
311 - cd "${B}/texk/dviljk"
312 - dodoc ChangeLog README NEWS
313 -
314 - docinto makeindexk
315 - cd "${B}/texk/makeindexk"
316 - dodoc ChangeLog NOTES README
317 -
318 - docinto web2c
319 - cd "${B}/texk/web2c"
320 - dodoc ChangeLog NEWS PROJECTS README
321 -
322 - use doc || rm -rf "${ED}/usr/share/texmf-dist/doc"
323 -
324 - dodir /etc/env.d
325 - 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"
326 - # populate /etc/texmf
327 - keepdir /etc/texmf/web2c
328 -
329 - # take care of updmap.cfg and language.d files
330 - keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d}
331 -
332 - mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed"
333 -
334 - # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files
335 - # by texmf-update
336 - rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf"
337 - # Remove bundled and invalid updmap.cfg
338 - rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg"
339 -
340 - texlive-common_handle_config_files
341 -
342 - keepdir /usr/share/texmf-site
343 -
344 - # the virtex symlink is not installed
345 - # The links has to be relative, since the targets
346 - # is not present at this stage and MacOS doesn't
347 - # like non-existing targets
348 - dosym tex /usr/bin/virtex
349 - dosym pdftex /usr/bin/pdfvirtex
350 -
351 - # Rename mpost to leave room for mplib
352 - mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}"
353 - dosym "mpost-${P}" /usr/bin/mpost
354 -
355 - # Ditto for pdftex
356 - mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}"
357 - dosym "pdftex-${P}" /usr/bin/pdftex
358 -}
359 -
360 -pkg_postinst() {
361 - etexmf-update
362 -
363 - einfo "Regenerating TeX formats"
364 - fmtutil-sys --all &> /dev/null
365 -
366 - elog
367 - elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge,"
368 - elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update."
369 - elog
370 - ewarn "If you are migrating from an older TeX distribution"
371 - ewarn "Please make sure you have read:"
372 - ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide"
373 - ewarn "in order to avoid possible problems"
374 - elog
375 - elog "TeXLive has been split in various ebuilds. If you are missing a"
376 - elog "package to process your TeX documents, you can install"
377 - elog "dev-tex/texmfind to easily search for them."
378 - elog
379 -}