8 |
8 |
|
9 |
9 |
DESCRIPTION="Wolfram Mathematica"
|
10 |
10 |
HOMEPAGE="https://www.wolfram.com/mathematica/"
|
11 |
|
SRC_URI="Mathematica_${PV}_BNDL_LINUX.sh"
|
|
11 |
SRC_URI="
|
|
12 |
bundle? ( Mathematica_${PV}_BNDL_LINUX.sh )
|
|
13 |
!bundle? ( Mathematica_${PV}_LINUX.sh )
|
|
14 |
"
|
12 |
15 |
S="${WORKDIR}"
|
13 |
16 |
|
14 |
17 |
LICENSE="all-rights-reserved"
|
15 |
18 |
KEYWORDS="-* ~amd64"
|
16 |
19 |
SLOT="0"
|
17 |
|
IUSE="cuda doc ffmpeg R"
|
|
20 |
IUSE="bundle cuda doc ffmpeg R"
|
18 |
21 |
|
19 |
22 |
RESTRICT="strip mirror bindist fetch"
|
20 |
23 |
|
21 |
24 |
# Mathematica comes with a lot of bundled stuff. We should place here only what we
|
22 |
25 |
# explicitly override with LD_PRELOAD.
|
23 |
26 |
# RLink (libjri.so) requires dev-lang/R
|
24 |
|
# FFmpegTools (FFmpegToolsSystem-5.0.so) requires media-video/ffmpeg
|
|
27 |
# FFmpegTools (FFmpegToolsSystem-6.0.so) requires media-video/ffmpeg-6.0
|
|
28 |
# FFmpegTools (FFmpegToolsSystem-4.4.so) requires media-video/ffmpeg-4.4
|
25 |
29 |
RDEPEND="
|
26 |
|
cuda? ( dev-util/nvidia-cuda-toolkit )
|
|
30 |
dev-qt/qt5compat:6
|
|
31 |
dev-qt/qtbase:6[eglfs,wayland]
|
|
32 |
dev-qt/qtsvg:6
|
|
33 |
dev-qt/qtwayland:6[compositor]
|
27 |
34 |
media-libs/freetype
|
28 |
|
ffmpeg? ( <media-video/ffmpeg-5 )
|
29 |
|
R? ( dev-lang/R )
|
30 |
35 |
virtual/libcrypt
|
|
36 |
cuda? (
|
|
37 |
>=dev-util/nvidia-cuda-toolkit-11
|
|
38 |
<dev-util/nvidia-cuda-toolkit-13
|
|
39 |
)
|
|
40 |
ffmpeg? ( || (
|
|
41 |
media-video/ffmpeg:0/56.58.58
|
|
42 |
media-video/ffmpeg:0/58.60.60
|
|
43 |
) )
|
|
44 |
R? ( dev-lang/R )
|
31 |
45 |
"
|
32 |
46 |
|
33 |
47 |
DEPEND="
|
... | ... | |
62 |
76 |
sed -e "s|xdg-mime|xdg-dummy-command|g" -i "Unix/Installer/MathInstaller" || die
|
63 |
77 |
# fix ACCESS DENIED issue when installer check the avahi-daemon
|
64 |
78 |
sed -e "s|avahi-daemon -c|true|g" -i "Unix/Installer/MathInstaller" || die
|
|
79 |
# fix ACCESS DENIED issue when installing documentation
|
|
80 |
sed -e "s|\(exec ./MathInstaller\) -noprompt|\1 -auto -targetdir=${S}/${M_TARGET}/Documentation -noexec|" -i "Unix/Installer/MathInstaller" || die
|
|
81 |
|
65 |
82 |
/bin/sh "Unix/Installer/MathInstaller" -auto "-targetdir=${S}/${M_TARGET}" "-execdir=${S}/opt/bin" || die
|
66 |
83 |
popd > /dev/null || die
|
67 |
84 |
|
... | ... | |
82 |
99 |
|
83 |
100 |
if ! use cuda; then
|
84 |
101 |
einfo 'Removing cuda support'
|
85 |
|
rm -r "${S}/${M_TARGET}/SystemFiles/Components/CUDACompileTools/LibraryResources/Linux-x86-64/CUDAExtensions.so" || die
|
|
102 |
rm -r "${S}/${M_TARGET}/SystemFiles/Components/CUDACompileTools/LibraryResources/Linux-x86-64/CUDAExtensions"*.so || die
|
86 |
103 |
fi
|
87 |
104 |
|
88 |
105 |
# Linux-x86-64/AllVersions is the supported version, other versions remove
|