Diff mathematica-13.1.0 with a mathematica-13.2.1

/usr/portage/sci-mathematics/mathematica/mathematica-13.2.1.ebuild 2023-10-09 14:52:35.116368492 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
CHECKREQS_DISK_BUILD=19G
6
CHECKREQS_DISK_BUILD=20G
7 7
inherit check-reqs desktop unpacker xdg
8 8

  
9 9
DESCRIPTION="Wolfram Mathematica"
10
SRC_URI="
11
	doc? ( WLDocs_${PV}_LINUX.sh )
12
	Mathematica_${PV}_LINUX.sh
13
"
14 10
HOMEPAGE="https://www.wolfram.com/mathematica/"
11
SRC_URI="Mathematica_${PV}_BNDL_LINUX.sh"
12
S="${WORKDIR}"
15 13

  
16 14
LICENSE="all-rights-reserved"
17 15
KEYWORDS="-* ~amd64"
......
27 25
RDEPEND="
28 26
	cuda? ( dev-util/nvidia-cuda-toolkit )
29 27
	media-libs/freetype
30
	ffmpeg? ( media-video/ffmpeg )
28
	ffmpeg? ( <media-video/ffmpeg-5 )
31 29
	R? ( dev-lang/R )
32 30
	virtual/libcrypt
33 31
"
......
49 47
# we might as well list all files in all QA variables...
50 48
QA_PREBUILT="opt/*"
51 49

  
52
S=${WORKDIR}
53

  
54 50
src_unpack() {
55
	/bin/sh "${DISTDIR}/Mathematica_${PV}_LINUX.sh" --nox11 --keep --target "${S}/unpack_app" -- "-help" || die
56
	if use doc; then
57
		/bin/sh "${DISTDIR}/WLDocs_${PV}_LINUX.sh" --nox11 --keep --target "${S}/unpack_doc" -- "-help" || die
58
	fi
51
	/bin/sh "${DISTDIR}/${A}" --nox11 --keep --target "${S}/unpack_app" -- "-help" || die
59 52
}
60 53

  
61 54
src_install() {
......
75 68
	if ! use doc; then
76 69
		einfo "Removing documentation"
77 70
		rm -r "${S}/${M_TARGET}/Documentation" || die
78
	else
79
		pushd "${S}/unpack_doc" > /dev/null || die
80
		/bin/sh "Unix/Installer/MathInstaller" -auto "-targetdir=${S}/temp_doc" "-execdir=${S}/opt/bin" || die
81
		popd > /dev/null || die
82
		# Merge contents of Mathematica_docs with Mathematica
83
		rm -r "${S}/${M_TARGET}"/Documentation/English/{SearchIndex,System} || die
84
		mv "${S}"/temp_doc/Documentation/English/* "${S}/${M_TARGET}/"Documentation/English/ || die
85
		rm -r "${S}"/temp_doc || die
86 71
	fi
87 72

  
88 73
	# fix world writable file QA problem for files
......
111 96
		rm -r "${S}/${M_TARGET}/SystemFiles/Links/RLink/SystemFiles/Libraries/Linux-x86-64/AllVersions/libjri.so" || die
112 97
	fi
113 98
	# FFmpegTools can't use if ffmpeg not used
114
	if ! use ffmpeg || ! has_version '>=media-video/ffmpeg-5'; then
115
		einfo 'Removing FFmpegTools support because lack of >=media-video/ffmpeg-5'
116
		rm -r "${S}/${M_TARGET}/SystemFiles/Links/FFmpegTools/LibraryResources/Linux-x86-64/FFmpegToolsSystem-5.0.so" || die
99
	if ! use ffmpeg; then
100
		einfo 'Removing FFmpegTools support'
101
		rm -r "${S}/${M_TARGET}/SystemFiles/Links/FFmpegTools/LibraryResources/Linux-x86-64/FFmpegToolsSystem"*.so || die
117 102
	fi
118 103

  
119 104
	# fix RPATH
Thank you!