Сравнение texlive-core-2023-r10 с texlive-core-2026-r2

/usr/portage/app-text/texlive-core/texlive-core-2026-r2.ebuild 2026-11-03 20:01:05.940362277 +0300
1
# Copyright 1999-2025 Gentoo Authors
1
# Copyright 1999-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=8
4
EAPI=9
5 5

  
6
TL_SOURCE_VERSION=20230311
7
inherit flag-o-matic toolchain-funcs libtool texlive-common
6
TL_SOURCE_VERSION=20260301
7
inherit branding flag-o-matic toolchain-funcs libtool texlive-common
8 8

  
9 9
MY_P=${PN%-core}-${TL_SOURCE_VERSION}-source
10 10

  
11 11
DESCRIPTION="A complete TeX distribution"
12 12
HOMEPAGE="https://tug.org/texlive/"
13
GENTOO_TEX_PATCHES_NUM=5
13
GENTOO_TEX_PATCHES_NUM=9
14 14
SRC_URI="
15 15
	https://mirrors.ctan.org/systems/texlive/Source/${MY_P}.tar.xz
16 16
	https://gitweb.gentoo.org/proj/tex-patches.git/snapshot/tex-patches-${GENTOO_TEX_PATCHES_NUM}.tar.bz2
17 17
		-> gentoo-tex-patches-${GENTOO_TEX_PATCHES_NUM}.tar.bz2
18
	https://raw.githubusercontent.com/debian-tex/texlive-bin/58a00e704a15ec3dd8abbf3826f28207eb095251/debian/patches/1054218.patch
19
		-> ${PN}-2023-pdflatex-big-endian-fix.patch
20 18
	https://bugs.gentoo.org/attachment.cgi?id=908573
21 19
		-> ${PN}-2023-mplib-h.patch
20
	https://github.com/Flowdalic/texlive-source/commit/19e9eb6dab7c192b0f5dcee5fc87d46ae63296f0.patch
21
		-> ${PN}-2026-xdvipsk-kpathsea.patch
22 22
"
23 23

  
24 24
# Macros that are not a part of texlive-sources or or pulled in from collection-binextra
25 25
# but still needed for other packages during installation.
26 26
TL_CORE_EXTRA_CONTENTS="
27
	autosp.r58211
28
	axodraw2.r58155
29
	chktex.r64797
30
	detex.r66186
27
	autosp.r77851
28
	axodraw2.r77682
29
	chktex.r78219
30
	detex.r79618
31 31
	dvi2tty.r66186
32
	dvidvi.r65952
32
	dvidvi.r75712
33 33
	dviljk.r66186
34
	dvipdfmx.r69127
34
	dvipdfmx.r78409
35 35
	dvipos.r66186
36
	gsftopk.r52851
37
	hyphen-base.r68321
38
	lacheck.r66186
39
	m-tx.r64182
40
	makeindex.r62517
41
	pmx.r65926
36
	extractbb.r77855
37
	gsftopk.r79618
38
	hyphen-base.r78076
39
	lacheck.r75712
40
	m-tx.r79618
41
	makeindex.r75712
42
	pmx.r79618
42 43
	texdoctk.r62186
43
	texlive-scripts.r69754
44
	texlive-scripts-extra.r62517
45
	texlive.infra.r69740
46
	tpic2pdftex.r52851
47
	upmendex.r66381
44
	texlive-scripts.r79766
45
	texlive-scripts-extra.r78162
46
	texlive.infra.r79653
47
	tpic2pdftex.r75712
48
	upmendex.r77845
48 49
	velthuis.r66186
49
	vlna.r66186
50
	xindy.r65958
51
	xml2pmx.r57972
50
	vlna.r73908
51
	xindy.r78957
52
	xml2pmx.r79618
52 53
"
53
TL_CORE_EXTRA_DOC_CONTENTS="
54
	autosp.doc.r58211
55
	axodraw2.doc.r58155
56
	chktex.doc.r64797
57
	detex.doc.r66186
54
TL_CORE_EXTRA_SRC_CONTENTS="
55
	autosp.doc.r77851
56
	axodraw2.doc.r77682
57
	chktex.doc.r78219
58
	detex.doc.r79618
58 59
	dvi2tty.doc.r66186
59
	dvidvi.doc.r65952
60
	dvidvi.doc.r75712
60 61
	dviljk.doc.r66186
61
	dvipdfmx.doc.r69127
62
	dvipdfmx.doc.r78409
62 63
	dvipos.doc.r66186
63
	gsftopk.doc.r52851
64
	lacheck.doc.r66186
65
	m-tx.doc.r64182
66
	makeindex.doc.r62517
67
	pmx.doc.r65926
64
	extractbb.doc.r77855
65
	gsftopk.doc.r79618
66
	lacheck.doc.r75712
67
	m-tx.doc.r79618
68
	makeindex.doc.r75712
69
	pmx.doc.r79618
68 70
	texdoctk.doc.r62186
69
	texlive-scripts.doc.r69754
70
	texlive-scripts-extra.doc.r62517
71
	texlive.infra.doc.r69740
72
	tpic2pdftex.doc.r52851
73
	upmendex.doc.r66381
71
	texlive-scripts.doc.r79766
72
	texlive-scripts-extra.doc.r78162
73
	texlive.infra.doc.r79653
74
	tpic2pdftex.doc.r75712
75
	upmendex.doc.r77845
74 76
	velthuis.doc.r66186
75
	vlna.doc.r66186
76
	xindy.doc.r65958
77
	xml2pmx.doc.r57972
78
"
79
TL_CORE_EXTRA_SRC_CONTENTS="
80
	axodraw2.source.r58155
77
	vlna.doc.r73908
78
	xindy.doc.r78957
79
	xml2pmx.doc.r79618
81 80
"
82 81

  
83 82
TEXLIVE_MODULE_BINSCRIPTS="
84
	texmf-dist/scripts/m-tx/m-tx.lua
83
	texmf-dist/scripts/extractbb/extractbb.lua
85 84
	texmf-dist/scripts/texlive/fmtutil-sys.sh
86 85
	texmf-dist/scripts/texlive/fmtutil-user.sh
87 86
	texmf-dist/scripts/texlive/fmtutil.pl
......
110 109
"
111 110

  
112 111
TEXLIVE_MODULE_BINLINKS="
112
	extractbb:ebb
113 113
	fmtutil:mktexfmt
114 114
	mktexlsr:texhash
115 115
	allcm:allec
......
118 118
"
119 119
texlive-common_append_to_src_uri TL_CORE_EXTRA_CONTENTS
120 120

  
121
SRC_URI+=" doc? ( "
122
texlive-common_append_to_src_uri TL_CORE_EXTRA_DOC_CONTENTS
123
SRC_URI+=" )"
124

  
125 121
SRC_URI+=" source? ( "
126 122
texlive-common_append_to_src_uri TL_CORE_EXTRA_SRC_CONTENTS
127 123
SRC_URI+=" )"
128 124

  
129 125
S="${WORKDIR}/${MY_P}"
130
LICENSE="BSD GPL-1+ GPL-2 GPL-2+ GPL-3+ MIT TeX-other-free"
126
LICENSE="BSD CC-BY-SA-4.0 GPL-1+ GPL-2 GPL-2+ GPL-3+ MIT TeX-other-free"
131 127
SLOT="0"
132
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
128
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
133 129
IUSE="cjk X doc source tk +luajittex xetex xindy"
134 130

  
135 131
TEXMF_PATH=/usr/share/texmf-dist
136 132
MODULAR_X_DEPEND="
137 133
	X? (
138 134
		x11-libs/libX11
139
		x11-libs/libXmu
140 135
	)"
141 136

  
142 137
COMMON_DEPEND="
143 138
	${MODULAR_X_DEPEND}
139
	sci-libs/mpfi
144 140
	virtual/zlib:=
145 141
	>=media-libs/harfbuzz-1.4.5:=[icu,graphite]
146 142
	>=media-libs/libpng-1.2.43-r2:0=
......
153 149
	app-text/libpaper:=
154 150
	dev-libs/gmp:=
155 151
	dev-libs/mpfr:=
156
	>=dev-libs/ptexenc-1.4.3
152
	>=dev-libs/ptexenc-1.5.2
157 153
	xetex? (
158 154
		>=app-text/teckit-2.5.10
159 155
		media-libs/fontconfig
......
161 157
	xindy? ( dev-lisp/clisp:= )
162 158
	media-libs/freetype:2
163 159
	>=dev-libs/icu-50:=
164
	>=dev-libs/kpathsea-6.3.5:=
160
	>=dev-libs/kpathsea-6.4.2:=
165 161
"
166 162

  
167 163
BDEPEND="
......
177 173
# !<dev-texlive/texlive-langother-2023 see https://bugs.gentoo.org/928307
178 174
RDEPEND="
179 175
	${COMMON_DEPEND}
180
	virtual/perl-Getopt-Long
181
	dev-perl/File-HomeDir
182
	dev-perl/Log-Dispatch
183
	dev-perl/Unicode-LineBreak
184
	dev-perl/YAML-Tiny
176
	app-misc/ca-certificates
177
	dev-lang/perl
185 178
	tk? (
186 179
		dev-lang/tk
187 180
		dev-perl/Tk
......
192 185
	!<dev-texlive/texlive-music-2023
193 186
"
194 187

  
188
PATCHES=(
189
	# https://github.com/TeX-Live/texlive-source/pull/85
190
	"${DISTDIR}"/${PN}-2026-xdvipsk-kpathsea.patch
191
)
192

  
195 193
BUILDDIR="${WORKDIR}/${P}_build"
196 194

  
197 195
RELOC_TARGET=texmf-dist
......
222 220
	local patch_dir="${WORKDIR}/tex-patches-${GENTOO_TEX_PATCHES_NUM}"
223 221
	eapply "${patch_dir}"
224 222

  
225
	# Can be dropped in texlive 2024
226
	# https://git.texlive.info/texlive/commit/?id=c45afdc843154fcb09b583f54a2f802c6069b50e
227
	eapply "${DISTDIR}"/texlive-core-2023-pdflatex-big-endian-fix.patch
228

  
229
	# bug #837875
230
	eapply "${DISTDIR}"/texlive-core-2023-mplib-h.patch
231

  
232 223
	default
233 224

  
234 225
	elibtoolize
226
	# ${PN}-2026-xdvipsk-kpathsea.patch modifies configure.ac, rerun autoreconf
227
	"${S}"/reautoconf texk/xdvipsk || die
235 228

  
236 229
	# Drop this once cairo's and mplibdir's (texlive-core-2023-mplib-h.patch)
237 230
	# autoconf patches are gone. See bug #927714#c4, bug #853121 for cairo,
238 231
	# and bug #837875 for mplibdir (in web2c).
239
	"${S}"/reautoconf libs/cairo texk/web2c || die
232
	"${S}"/reautoconf libs/cairo || die
240 233
}
241 234

  
242 235
src_configure() {
......
245 238
	append-flags -fno-strict-aliasing
246 239
	filter-lto
247 240

  
241
	# bug #946142
242
	append-cflags -std=gnu17
243

  
248 244
	# Needed for 32bit architectures, bug 928096
249 245
	# This is upstream recommendation for the moment, see also
250 246
	# https://www.tug.org/texlive/build.html
......
252 248
	# thus open, but hey, at least it's not a regression...
253 249
	append-cflags -Wno-incompatible-pointer-types
254 250

  
251
	# bug #966834
252
	# running reautoconf would also fix the issue; however, there are several
253
	# configure scripts, so adding the flag is a much faster approach.
254
	append-cxxflags $(test-flags-CXX -std=gnu++17)
255

  
255 256
	# It fails on alpha without this
256 257
	use alpha && append-ldflags "-Wl,--no-relax"
257 258

  
......
283 284
		--with-system-libpaper
284 285
		--with-system-gmp
285 286
		--with-system-gd
287
		--with-system-mpfi
286 288
		--with-system-mpfr
287 289
		--with-system-potrace
288 290
		--disable-multiplatform
......
316 318
		--disable-largefile
317 319
		--disable-xindy-docs
318 320
		--disable-xindy-rules
319
		--with-banner-add=" Gentoo Linux"
321
		--disable-xpdfopen # https://bugs.gentoo.org/652212
322
		--with-banner-add=" ${BRANDING_OS_PRETTY_NAME}"
320 323
		$(use_enable luajittex)
321 324
		$(use_enable luajittex luajithbtex)
322 325
		$(use_enable luajittex mfluajit)
......
333 336
		$(use_enable tk texdoctk)
334 337
		$(use_with X x)
335 338
		$(use_enable xindy)
336
		--enable-ptex=no
337 339
		--enable-autosp=yes
338 340
		--enable-axodraw2=yes
339 341
		--enable-devnag=yes
......
343 345
		--enable-tpic2pdftex=yes
344 346
		--with-clisp-runtime=system
345 347
		--enable-xml2pmx=yes
346
		$(use_enable X xpdfopen)
347 348
		--enable-web2c=yes
348 349
		--enable-afm2pl=yes
349 350
		--enable-dvidvi=yes
......
407 408
	sed -i \
408 409
		-e 's;dvispc.test;;' \
409 410
		texk/dviout-util/Makefile || die
410

  
411
	# TODO: Drop -j1 when bumping to texlive-2024
412
	# https://bugs.gentoo.org/935825
413
	emake check -j1
411
	local -x KpsDir="${ESYSROOT}"/usr/bin
412
	emake check
414 413
}
415 414

  
416 415
src_install() {
......
424 423
	cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees"
425 424
	cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files"
426 425

  
426
	# Use the system CA bundle instead of the stale bundled copy
427
	# (used by tlmgr), https://bugs.gentoo.org/984637
428
	rm "${ED}"/usr/share/tlpkg/installer/curl/curl-ca-bundle.crt || die
429
	dosym -r /etc/ssl/certs/ca-certificates.crt \
430
		/usr/share/tlpkg/installer/curl/curl-ca-bundle.crt
431

  
427 432
	# When X is disabled mf-nowin doesn't exist but some scripts expect it to
428 433
	# exist. Instead, it is called mf, so we symlink it to please everything.
429 434
	use X || dosym mf /usr/bin/mf-nowin
......
463 468
	rm "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" || die
464 469

  
465 470
	if use cjk; then
466
		rm "${ED}/usr/bin/"{,u}ptex || die
471
		rm "${ED}/usr/bin/"uptex || die
467 472
	fi
468 473

  
469 474
	if ! use xindy; then
Спасибо!