diff options
author | Jeffrey Lin <jeffrey@icurse.nl> | 2020-06-27 23:33:51 -0400 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-07-04 17:18:29 +0300 |
commit | bd92affe982e785060a0b9f0679c974d5920f120 (patch) | |
tree | d61d065d4c60e2e035d7377069c35d9307d70ab2 /sci-mathematics | |
parent | sci-mathematics/mathematica: use domenu instead of direct insinto (diff) | |
download | gentoo-bd92affe982e785060a0b9f0679c974d5920f120.tar.gz gentoo-bd92affe982e785060a0b9f0679c974d5920f120.tar.bz2 gentoo-bd92affe982e785060a0b9f0679c974d5920f120.zip |
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@icurse.nl>
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/mathematica/mathematica-10.3.1-r1.ebuild | 7 | ||||
-rw-r--r-- | 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 a5af27f51d9c..d5e4aec9ca12 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 a5af27f51d9c..d5e4aec9ca12 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 |