commit:     108ec9c331fe8ae27212342dabee7fcc81248b6a
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Fri Oct 31 16:38:01 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 18 04:20:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=108ec9c3

sci-mathematics/mathematica: fix doc install permission

Signed-off-by: Huang Rui <vowstar <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44406
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...ca-14.1.0-r1.ebuild => mathematica-14.1.0-r2.ebuild} | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/sci-mathematics/mathematica/mathematica-14.1.0-r1.ebuild 
b/sci-mathematics/mathematica/mathematica-14.1.0-r2.ebuild
similarity index 92%
rename from sci-mathematics/mathematica/mathematica-14.1.0-r1.ebuild
rename to sci-mathematics/mathematica/mathematica-14.1.0-r2.ebuild
index 984c77fdbfd8..d3b28155d654 100644
--- a/sci-mathematics/mathematica/mathematica-14.1.0-r1.ebuild
+++ b/sci-mathematics/mathematica/mathematica-14.1.0-r2.ebuild
@@ -21,8 +21,8 @@ SRC_URI="
 S="${WORKDIR}"
 
 LICENSE="all-rights-reserved"
-KEYWORDS="-* ~amd64"
 SLOT="0"
+KEYWORDS="-* ~amd64"
 IUSE="bundle cuda doc ffmpeg R"
 
 RESTRICT="strip mirror bindist fetch"
@@ -84,11 +84,15 @@ src_install() {
        # fix ACCESS DENIED issue when installer check the avahi-daemon
        sed -e "s|avahi-daemon -c|true|g" -i "Unix/Installer/WolframInstaller" 
|| die
        # fix ACCESS DENIED issue when installing documentation
-       sed -e "s|\(exec ./WolframInstaller\) -noprompt|\1 -auto 
-targetdir=${S}/${M_TARGET}/Documentation -noexec|" -i 
"Unix/Installer/WolframInstaller" || die
-
+       sed -e "s|\(exec ./WolframInstaller\) -noprompt|\1 -auto 
-targetdir=${S}/${M_TARGET}/Documentation -noexec|" \
+               -i "Unix/Installer/WolframInstaller" || die
+       sed -e "s|\(exec ./MathInstaller\) -noprompt|\1 -auto 
-targetdir=${S}/${M_TARGET}/Documentation -noexec|" \
+               -i "Unix/Installer/WolframInstaller" || die
        # in the depths of the installer it tests whether it can write here
        # addpredict is by far the simplest solution
+       # bug 960526, the installer may check the following two paths for write 
access
        addpredict /usr/share/Wolfram/thisisatest
+       addpredict /usr/share/thisisatest
 
        /bin/sh "Unix/Installer/WolframInstaller" -auto 
"-targetdir=${S}/${M_TARGET}" "-execdir=${S}/opt/bin" || die
        popd > /dev/null || die
@@ -110,7 +114,9 @@ src_install() {
 
        if ! use cuda; then
                einfo 'Removing cuda support'
-               rm -r 
"${S}/${M_TARGET}/SystemFiles/Components/CUDACompileTools/LibraryResources/Linux-x86-64/CUDAExtensions"*.so
 || die
+               rm -r \
+                       
"${S}/${M_TARGET}/SystemFiles/Components/CUDACompileTools/LibraryResources/Linux-x86-64/CUDAExtensions"*.so
 \
+                       || die
        fi
 
        # Linux-x86-64/AllVersions is the supported version, other versions 
remove
@@ -148,7 +154,8 @@ src_install() {
        done < <(find "${S}/${M_TARGET}" -type f -print0)
 
        # fix broken symbolic link
-       ln -sf 
"/${M_TARGET}/SystemFiles/Kernel/Binaries/Linux-x86-64/wolframscript" 
"${S}/${M_TARGET}/Executables/wolframscript" || die
+       ln -sf 
"/${M_TARGET}/SystemFiles/Kernel/Binaries/Linux-x86-64/wolframscript" \
+               "${S}/${M_TARGET}/Executables/wolframscript" || die
 
        # move all over
        mv "${S}"/opt "${ED}"/opt || die

Reply via email to