commit:     bd92affe982e785060a0b9f0679c974d5920f120
Author:     Jeffrey Lin <jeffrey <AT> icurse <DOT> nl>
AuthorDate: Sun Jun 28 03:33:51 2020 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Jul  4 14:18:29 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd92affe

sci-mathematics/mathematica: add doc USE flag

The documentation for this package is recommended, but particularly
heavy.  Allow users to suppress installation if desired.

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Jeffrey Lin <jeffrey <AT> icurse.nl>
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild | 7 ++++++-
 sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild 
b/sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild
index a5af27f51d9..d5e4aec9ca1 100644
--- a/sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild
+++ b/sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild
@@ -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"
 
@@ -42,6 +42,11 @@ src_unpack() {
 src_install() {
        local ARCH='-x86-64'
 
+       if ! use doc; then
+               einfo "Removing documentation"
+               rm -r "${S}/${M_TARGET}/Documentation"
+       fi
+
        # move all over
        mv "${S}"/opt "${D}"/opt || die
 

diff --git a/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild 
b/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild
index a5af27f51d9..d5e4aec9ca1 100644
--- a/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild
+++ b/sci-mathematics/mathematica/mathematica-12.1.1-r1.ebuild
@@ -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"
 
@@ -42,6 +42,11 @@ src_unpack() {
 src_install() {
        local ARCH='-x86-64'
 
+       if ! use doc; then
+               einfo "Removing documentation"
+               rm -r "${S}/${M_TARGET}/Documentation"
+       fi
+
        # move all over
        mv "${S}"/opt "${D}"/opt || die
 

Reply via email to