Diff mathematica-10.3.1-r2 with a mathematica-12.1.0

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

  
4 4
EAPI=7
......
22 22
# explicitly override with LD_PRELOAD.
23 23
RDEPEND="
24 24
	media-libs/freetype
25
	media-libs/harfbuzz
26 25
"
27 26

  
28 27
# we need this a few times
......
37 36
S=${WORKDIR}
38 37

  
39 38
src_unpack() {
40
	/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
41 53
}
42 54

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

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

  
50 58
	if ! use doc; then
51 59
		einfo "Removing documentation"
52 60
		rm -r "${S}/${M_TARGET}/Documentation"
53 61
	fi
54 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

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

  
......
62 74
	for name in ${M_BINARIES} ; do
63 75
		einfo "Generating wrapper for ${name}"
64 76
		echo '#!/bin/sh' >> "${T}/${name}"
65
		echo "LD_PRELOAD=/usr/$(get_libdir)/libharfbuzz.so.0:/usr/$(get_libdir)/libfreetype.so.6:/$(get_libdir)/libz.so.1 /${M_TARGET}/Executables/${name} \$*" \
77
		echo "LD_PRELOAD=/usr/$(get_libdir)/libfreetype.so.6:/$(get_libdir)/libz.so.1 /${M_TARGET}/Executables/${name} \$*" \
66 78
			>> "${T}/${name}"
67 79
		dobin "${T}/${name}"
68 80
	done
Thank you!