commit: f95a81542a0af9238d8d947c8f3207d220551738 Author: Jeffrey Lin <jeffrey <AT> icurse <DOT> nl> AuthorDate: Sun Jun 28 04:03:22 2020 +0000 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> CommitDate: Sat Jul 4 14:18:32 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f95a8154
sci-mathematics/mathematica: remove Windows/MacOS-specific files This saves about 10MB, not a significant amount. Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Jeffrey Lin <jeffrey <AT> icurse.nl> Closes: https://github.com/gentoo/gentoo/pull/16463 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild | 4 ++++ sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild b/sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild index d5e4aec9ca1..6abf0f35a7d 100644 --- a/sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild +++ b/sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild @@ -42,6 +42,10 @@ src_unpack() { 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" diff --git a/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild b/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild index d5e4aec9ca1..b15d9ff6788 100644 --- a/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild +++ b/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild @@ -47,6 +47,10 @@ src_install() { 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