diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
commit | 3cf7c3ef441822c889356fd1812ebf2944a59851 (patch) | |
tree | c513fe68548b40365c1c2ebfe35c58ad431cdd77 /sci-mathematics/mathematica | |
parent | 05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff) |
gentoo resync : 25.08.2020
Diffstat (limited to 'sci-mathematics/mathematica')
-rw-r--r-- | sci-mathematics/mathematica/Manifest | 4 | ||||
-rw-r--r-- | sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild | 29 | ||||
-rw-r--r-- | sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild (renamed from sci-mathematics/mathematica/mathematica-12.1.1.ebuild) | 29 |
3 files changed, 40 insertions, 22 deletions
diff --git a/sci-mathematics/mathematica/Manifest b/sci-mathematics/mathematica/Manifest index 11091d32732d..35750914fc97 100644 --- a/sci-mathematics/mathematica/Manifest +++ b/sci-mathematics/mathematica/Manifest @@ -1,5 +1,5 @@ DIST Mathematica_10.3.1_LINUX.sh 3200459545 BLAKE2B 5a057b4e714eabb0afebe5a3ef536dbdc2d49a775130442e21493d6a0756527362fddfa7fabf927f996464456309c37b10b70a37f05718cb9f79d8ffc5912098 SHA512 08658a01a18c14a9b3f422816007980bf6576162e4cca6779ed1bdaf6b9748fb36a195006529ed6725f462042a264e7ee7753e802af8072ba6bebfee0cad8543 DIST Mathematica_12.1.1_LINUX.sh 4438946649 BLAKE2B 473f814a3e0686bb3a6ac1f49c887842bc17db11439b65c1dad1dae8cd5797e6762d94bccdf156f6f9ba1edb9a16ed5172936a6884d2f0f98c29808214b1eabe SHA512 5cfdd91bae9bad53afe405b40759732589119256c3f785058808b20faf21f593d90bf7bb2dbaccf3e983aa84ff380a1fa6d40fd63f5ba17109c1cd6818c63490 -EBUILD mathematica-10.3.1-r1.ebuild 2623 BLAKE2B ea4a2ffd01c5acde572183947566eba260bef8181a1b120be2c5b06ba12bec7f19b2ce0640baa0ebd0274dd15e9b7f5f81daa9de97aa4e7f9a16eef2f0367061 SHA512 86b1929d30ab0a06a1337480c1c974eda2bb2814009631673898d5bad03824b983c2a844954203c26aaa145bd896f6c42a53b78fb6b52f645ae8ee87993dbeb5 -EBUILD mathematica-12.1.1.ebuild 2623 BLAKE2B ea4a2ffd01c5acde572183947566eba260bef8181a1b120be2c5b06ba12bec7f19b2ce0640baa0ebd0274dd15e9b7f5f81daa9de97aa4e7f9a16eef2f0367061 SHA512 86b1929d30ab0a06a1337480c1c974eda2bb2814009631673898d5bad03824b983c2a844954203c26aaa145bd896f6c42a53b78fb6b52f645ae8ee87993dbeb5 +EBUILD mathematica-10.3.1-r1.ebuild 2821 BLAKE2B 958869840413f275d50272636693c776ac399cc14401d21d8709aab81ec23f396b0407618b787a4c04fe5a70327c604bef81735f6fcdeb8cbbaf6b74cf387172 SHA512 ac52970098b31e2e1a72d50dffc0db3cfe67c68eed8272b1d78febe5e47eb514b333c23a9c5f7030bb606f937106b5a237818d9ab829779533e33f5459d2aeb2 +EBUILD mathematica-12.1.1-r1.ebuild 2821 BLAKE2B 3433f43e527bb9efbd07b2d0768ce324a2097b2813c412dd6fa15fd6644d298a2f621fee9fc810548f72fb133086179d539645bcf7c5c68fb337109014690b1d SHA512 4883533ccf4df1ae99fe265e497f16b0c33202f921dc77a55fc9a33f54d65ade2efc020bd01998c11fa2159a8e9a37c936d7b1d39f40af9163bb6853359a7f08 MISC metadata.xml 260 BLAKE2B 5eb8d87919aaab2f101cfc899ccb00b8efb723b67cb102ce580e0e69781639708cb8523b8967f9fb169e00455c548cff19d2827ce711c3f36d5ae58a1d3777ee SHA512 b6369aad1615446c9a4e1740a51a49d843868e114e49bc526e7b00cefdc795a601b9c508d866b065cc4ed750b85f48f136ee5925b9511a80f4056d7ef832eab2 diff --git a/sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild b/sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild index 51e74ad3cc99..6abf0f35a7dd 100644 --- a/sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild +++ b/sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit multilib versionator xdg +inherit desktop multilib xdg DESCRIPTION="Wolfram Mathematica" SRC_URI="Mathematica_${PV}_LINUX.sh" @@ -12,7 +12,7 @@ HOMEPAGE="https://www.wolfram.com/mathematica/" LICENSE="all-rights-reserved" KEYWORDS="-* ~amd64" SLOT="0" -IUSE="" +IUSE="+doc" RESTRICT="strip mirror bindist fetch" @@ -26,8 +26,9 @@ RDEPEND=" # we need this a few times MPN="Mathematica" -MPV=$(get_version_component_range 1-2) +MPV=$(ver_cut 1-2) M_BINARIES="MathKernel Mathematica MathematicaScript WolframKernel WolframScript math mathematica mcc wolfram" +M_TARGET="opt/Wolfram/${MPN}/${MPV}" # we might as well list all files in all QA variables... QA_PREBUILT="opt/*" @@ -35,12 +36,21 @@ QA_PREBUILT="opt/*" S=${WORKDIR} src_unpack() { - /bin/sh "${DISTDIR}/${A}" --nox11 --confirm --keep -- -auto "-targetdir=${S}/opt/Wolfram/${MPN}/${MPV}" "-execdir=${S}/opt/bin" || die + /bin/sh "${DISTDIR}/${A}" --nox11 --confirm -- -auto "-targetdir=${S}/${M_TARGET}" "-execdir=${S}/opt/bin" || die } src_install() { local ARCH='-x86-64' + einfo 'Removing MacOS- and Windows-specific files' + find AddOns SystemFiles -type d -\( -name Windows -o -name Windows-x86-64 \ + -o -name MacOSX -o -name MacOSX-x86-64 -\) -delete + + if ! use doc; then + einfo "Removing documentation" + rm -r "${S}/${M_TARGET}/Documentation" + fi + # move all over mv "${S}"/opt "${D}"/opt || die @@ -51,7 +61,7 @@ src_install() { for name in ${M_BINARIES} ; do einfo "Generating wrapper for ${name}" echo '#!/bin/sh' >> "${T}/${name}" - echo "LD_PRELOAD=/usr/$(get_libdir)/libfreetype.so.6:/$(get_libdir)/libz.so.1 /opt/Wolfram/${MPN}/${MPV}/Executables/${name} \$*" \ + echo "LD_PRELOAD=/usr/$(get_libdir)/libfreetype.so.6:/$(get_libdir)/libz.so.1 /${M_TARGET}/Executables/${name} \$*" \ >> "${T}/${name}" dobin "${T}/${name}" done @@ -61,17 +71,16 @@ src_install() { done # fix some embedded paths and install desktop files - insinto /usr/share/applications - for filename in $(find "${D}/opt/Wolfram/Mathematica/10.3/SystemFiles/Installation" -name "wolfram-mathematica.desktop") ; do + for filename in $(find "${D}/${M_TARGET}/SystemFiles/Installation" -name "wolfram-mathematica.desktop") ; do echo Fixing "${filename}" sed -e "s:${S}::g" -e 's:^\t\t::g' -i "${filename}" echo "Categories=Physics;Science;Engineering;2DGraphics;Graphics;" >> "${filename}" - doins "${filename}" + domenu "${filename}" done # install mime types insinto /usr/share/mime/application - for filename in $(find "${D}/opt/Wolfram/Mathematica/10.3/SystemFiles/Installation" -name "application-*.xml"); do + for filename in $(find "${D}/${M_TARGET}/SystemFiles/Installation" -name "application-*.xml"); do basefilename=$(basename "${filename}") mv "${filename}" "${T}/${basefilename#application-}" doins "${T}/${basefilename#application-}" diff --git a/sci-mathematics/mathematica/mathematica-12.1.1.ebuild b/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild index 51e74ad3cc99..b15d9ff67885 100644 --- a/sci-mathematics/mathematica/mathematica-12.1.1.ebuild +++ b/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit multilib versionator xdg +inherit desktop multilib xdg DESCRIPTION="Wolfram Mathematica" SRC_URI="Mathematica_${PV}_LINUX.sh" @@ -12,7 +12,7 @@ HOMEPAGE="https://www.wolfram.com/mathematica/" LICENSE="all-rights-reserved" KEYWORDS="-* ~amd64" SLOT="0" -IUSE="" +IUSE="+doc" RESTRICT="strip mirror bindist fetch" @@ -26,8 +26,9 @@ RDEPEND=" # we need this a few times MPN="Mathematica" -MPV=$(get_version_component_range 1-2) +MPV=$(ver_cut 1-2) M_BINARIES="MathKernel Mathematica MathematicaScript WolframKernel WolframScript math mathematica mcc wolfram" +M_TARGET="opt/Wolfram/${MPN}/${MPV}" # we might as well list all files in all QA variables... QA_PREBUILT="opt/*" @@ -35,12 +36,21 @@ QA_PREBUILT="opt/*" S=${WORKDIR} src_unpack() { - /bin/sh "${DISTDIR}/${A}" --nox11 --confirm --keep -- -auto "-targetdir=${S}/opt/Wolfram/${MPN}/${MPV}" "-execdir=${S}/opt/bin" || die + /bin/sh "${DISTDIR}/${A}" --nox11 --confirm -- -auto "-targetdir=${S}/${M_TARGET}" "-execdir=${S}/opt/bin" || die } src_install() { local ARCH='-x86-64' + if ! use doc; then + einfo "Removing documentation" + rm -r "${S}/${M_TARGET}/Documentation" + fi + + einfo 'Removing MacOS- and Windows-specific files' + find AddOns SystemFiles -type d -\( -name Windows -o -name Windows-x86-64 \ + -o -name MacOSX -o -name MacOSX-x86-64 -\) -delete + # move all over mv "${S}"/opt "${D}"/opt || die @@ -51,7 +61,7 @@ src_install() { for name in ${M_BINARIES} ; do einfo "Generating wrapper for ${name}" echo '#!/bin/sh' >> "${T}/${name}" - echo "LD_PRELOAD=/usr/$(get_libdir)/libfreetype.so.6:/$(get_libdir)/libz.so.1 /opt/Wolfram/${MPN}/${MPV}/Executables/${name} \$*" \ + echo "LD_PRELOAD=/usr/$(get_libdir)/libfreetype.so.6:/$(get_libdir)/libz.so.1 /${M_TARGET}/Executables/${name} \$*" \ >> "${T}/${name}" dobin "${T}/${name}" done @@ -61,17 +71,16 @@ src_install() { done # fix some embedded paths and install desktop files - insinto /usr/share/applications - for filename in $(find "${D}/opt/Wolfram/Mathematica/10.3/SystemFiles/Installation" -name "wolfram-mathematica.desktop") ; do + for filename in $(find "${D}/${M_TARGET}/SystemFiles/Installation" -name "wolfram-mathematica.desktop") ; do echo Fixing "${filename}" sed -e "s:${S}::g" -e 's:^\t\t::g' -i "${filename}" echo "Categories=Physics;Science;Engineering;2DGraphics;Graphics;" >> "${filename}" - doins "${filename}" + domenu "${filename}" done # install mime types insinto /usr/share/mime/application - for filename in $(find "${D}/opt/Wolfram/Mathematica/10.3/SystemFiles/Installation" -name "application-*.xml"); do + for filename in $(find "${D}/${M_TARGET}/SystemFiles/Installation" -name "application-*.xml"); do basefilename=$(basename "${filename}") mv "${filename}" "${T}/${basefilename#application-}" doins "${T}/${basefilename#application-}" |