Diff mathematica-10.3.1-r1 with a mathematica-12.1.0

/usr/portage/sci-mathematics/mathematica/mathematica-12.1.0.ebuild 2023-10-09 14:52:35.116368492 +0300
36 36
S=${WORKDIR}
37 37

  
38 38
src_unpack() {
39
	/bin/sh "${DISTDIR}/${A}" --nox11 --confirm -- -auto "-targetdir=${S}/${M_TARGET}" "-execdir=${S}/opt/bin" || die
39
	/bin/sh "${DISTDIR}/${A}" --nox11 --keep --target "${S}/unpack" -- "-help" || die
40
}
41

  
42
src_prepare() {
43
	default
44

  
45
	pushd "${S}/unpack" > /dev/null || die
46

  
47
	# fix ACCESS DENIED issue when installer check the avahi-daemon
48
	sed -e "s:avahi-daemon -c:true:g" -i "Unix/Installer/MathInstaller" || die
49

  
50
	/bin/sh "Unix/Installer/MathInstaller" -auto "-targetdir=${S}/${M_TARGET}" "-execdir=${S}/opt/bin" || die
51

  
52
	popd > /dev/null || die
40 53
}
41 54

  
42 55
src_install() {
43 56
	local ARCH='-x86-64'
44 57

  
45
	einfo 'Removing MacOS- and Windows-specific files'
46
	find AddOns SystemFiles -type d -\( -name Windows -o -name Windows-x86-64 \
47
		-o -name MacOSX -o -name MacOSX-x86-64 -\) -delete
48

  
49 58
	if ! use doc; then
50 59
		einfo "Removing documentation"
51 60
		rm -r "${S}/${M_TARGET}/Documentation"
52 61
	fi
53 62

  
63
	einfo 'Removing MacOS- and Windows-specific files'
64
	find AddOns SystemFiles -type d -\( -name Windows -o -name Windows-x86-64 \
65
		-o -name MacOSX -o -name MacOSX-x86-64 -\) -delete
66

  
54 67
	# move all over
55 68
	mv "${S}"/opt "${D}"/opt || die
56 69

  
Thank you!