diff --git a/sci-mathematics/mathematica/mathematica-13.1.0.ebuild b/sci-mathematics/mathematica/mathematica-13.1.0-r1.ebuild similarity index 93% rename from sci-mathematics/mathematica/mathematica-13.1.0.ebuild rename to sci-mathematics/mathematica/mathematica-13.1.0-r1.ebuild index 577553f186a1..f5ed6341a002 100644 --- a/sci-mathematics/mathematica/mathematica-13.1.0.ebuild +++ b/sci-mathematics/mathematica/mathematica-13.1.0-r1.ebuild @@ -1,23 +1,23 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 CHECKREQS_DISK_BUILD=19G -inherit check-reqs desktop unpacker xdg +inherit check-reqs desktop ffmpeg-compat unpacker xdg DESCRIPTION="Wolfram Mathematica" +HOMEPAGE="https://www.wolfram.com/mathematica/" SRC_URI=" doc? ( WLDocs_${PV}_LINUX.sh ) Mathematica_${PV}_LINUX.sh " -HOMEPAGE="https://www.wolfram.com/mathematica/" +S="${WORKDIR}" LICENSE="all-rights-reserved" -KEYWORDS="-* ~amd64" SLOT="0" +KEYWORDS="-* ~amd64" IUSE="cuda doc ffmpeg R" - RESTRICT="strip mirror bindist fetch" # Mathematica comes with a lot of bundled stuff. We should place here only what we @@ -27,7 +27,7 @@ RESTRICT="strip mirror bindist fetch" RDEPEND=" cuda? ( dev-util/nvidia-cuda-toolkit ) media-libs/freetype - ffmpeg? ( media-video/ffmpeg ) + ffmpeg? ( media-video/ffmpeg-compat:4 ) R? ( dev-lang/R ) virtual/libcrypt " @@ -49,8 +49,6 @@ M_TARGET="opt/Wolfram/${MPN}/${MPV}" # we might as well list all files in all QA variables... QA_PREBUILT="opt/*" -S=${WORKDIR} - src_unpack() { /bin/sh "${DISTDIR}/Mathematica_${PV}_LINUX.sh" --nox11 --keep --target "${S}/unpack_app" -- "-help" || die if use doc; then @@ -97,7 +95,8 @@ 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 @@ -111,9 +110,11 @@ src_install() { rm -r "${S}/${M_TARGET}/SystemFiles/Links/RLink/SystemFiles/Libraries/Linux-x86-64/AllVersions/libjri.so" || die fi # FFmpegTools can't use if ffmpeg not used - if ! use ffmpeg || ! has_version '>=media-video/ffmpeg-5'; then - einfo 'Removing FFmpegTools support because lack of >=media-video/ffmpeg-5' - rm -r "${S}/${M_TARGET}/SystemFiles/Links/FFmpegTools/LibraryResources/Linux-x86-64/FFmpegToolsSystem-5.0.so" || die + if ! use ffmpeg; then + einfo 'Removing FFmpegTools support' + rm -r "${S}/${M_TARGET}/SystemFiles/Links/FFmpegTools/LibraryResources/Linux-x86-64/FFmpegToolsSystem"*.so || die + else + ffmpeg_compat_setup 4 fi # fix RPATH @@ -134,7 +135,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 diff --git a/sci-mathematics/mathematica/mathematica-13.2.1.ebuild b/sci-mathematics/mathematica/mathematica-13.2.1-r1.ebuild similarity index 95% rename from sci-mathematics/mathematica/mathematica-13.2.1.ebuild rename to sci-mathematics/mathematica/mathematica-13.2.1-r1.ebuild index d5bae7e2927e..4214a88a41c6 100644 --- a/sci-mathematics/mathematica/mathematica-13.2.1.ebuild +++ b/sci-mathematics/mathematica/mathematica-13.2.1-r1.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 CHECKREQS_DISK_BUILD=20G -inherit check-reqs desktop unpacker xdg +inherit check-reqs desktop ffmpeg-compat unpacker xdg DESCRIPTION="Wolfram Mathematica" HOMEPAGE="https://www.wolfram.com/mathematica/" @@ -12,8 +12,8 @@ SRC_URI="Mathematica_${PV}_BNDL_LINUX.sh" S="${WORKDIR}" LICENSE="all-rights-reserved" -KEYWORDS="-* ~amd64" SLOT="0" +KEYWORDS="-* ~amd64" IUSE="cuda doc ffmpeg R" RESTRICT="strip mirror bindist fetch" @@ -25,7 +25,7 @@ RESTRICT="strip mirror bindist fetch" RDEPEND=" cuda? ( dev-util/nvidia-cuda-toolkit ) media-libs/freetype - ffmpeg? ( /dev/null || die @@ -99,7 +100,8 @@ 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 @@ -116,6 +118,12 @@ src_install() { if ! use ffmpeg; then einfo 'Removing FFmpegTools support' rm -r "${S}/${M_TARGET}/SystemFiles/Links/FFmpegTools/LibraryResources/Linux-x86-64/FFmpegToolsSystem"*.so || die + else + if has_version 'media-video/ffmpeg-compat:6'; then + ffmpeg_compat_setup 6 + elif has_version 'media-video/ffmpeg-compat:4'; then + ffmpeg_compat_setup 4 + fi fi # fix RPATH @@ -136,7 +144,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 diff --git a/sci-mathematics/mathematica/mathematica-14.0.0-r2.ebuild b/sci-mathematics/mathematica/mathematica-14.0.0-r3.ebuild similarity index 92% rename from sci-mathematics/mathematica/mathematica-14.0.0-r2.ebuild rename to sci-mathematics/mathematica/mathematica-14.0.0-r3.ebuild index 923e6cf18b96..5451a9ee27b5 100644 --- a/sci-mathematics/mathematica/mathematica-14.0.0-r2.ebuild +++ b/sci-mathematics/mathematica/mathematica-14.0.0-r3.ebuild @@ -4,7 +4,7 @@ EAPI=8 CHECKREQS_DISK_BUILD=20G -inherit check-reqs desktop unpacker xdg +inherit check-reqs desktop ffmpeg-compat unpacker xdg DESCRIPTION="Wolfram Mathematica" HOMEPAGE="https://www.wolfram.com/mathematica/" @@ -15,8 +15,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" @@ -38,8 +38,8 @@ RDEPEND=" /dev/null || die @@ -99,7 +100,8 @@ 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 @@ -116,6 +118,12 @@ src_install() { if ! use ffmpeg; then einfo 'Removing FFmpegTools support' rm -r "${S}/${M_TARGET}/SystemFiles/Links/FFmpegTools/LibraryResources/Linux-x86-64/FFmpegToolsSystem"*.so || die + else + if has_version 'media-video/ffmpeg-compat:6'; then + ffmpeg_compat_setup 6 + elif has_version 'media-video/ffmpeg-compat:4'; then + ffmpeg_compat_setup 4 + fi fi # fix RPATH @@ -136,7 +144,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 diff --git a/sci-mathematics/mathematica/mathematica-14.1.0-r2.ebuild b/sci-mathematics/mathematica/mathematica-14.1.0-r2.ebuild index d3b28155d654..834c6f98e145 100644 --- a/sci-mathematics/mathematica/mathematica-14.1.0-r2.ebuild +++ b/sci-mathematics/mathematica/mathematica-14.1.0-r2.ebuild @@ -4,7 +4,7 @@ EAPI=8 CHECKREQS_DISK_BUILD=20G -inherit check-reqs desktop unpacker xdg +inherit check-reqs desktop ffmpeg-compat unpacker xdg DESCRIPTION="Wolfram Mathematica" @@ -45,8 +45,8 @@ RDEPEND="