Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 915345
Collapse All | Expand All

(-)/usr/portage/sci-mathematics/mathematica/mathematica-13.3.1.ebuild (-7 / +11 lines)
Lines 3-14 Link Here
3
3
4
EAPI=8
4
EAPI=8
5
5
6
CHECKREQS_DISK_BUILD=20G
7
inherit check-reqs desktop unpacker xdg
6
inherit check-reqs desktop unpacker xdg
8
7
9
DESCRIPTION="Wolfram Mathematica"
8
DESCRIPTION="Wolfram Mathematica"
10
HOMEPAGE="https://www.wolfram.com/mathematica/"
9
HOMEPAGE="https://www.wolfram.com/mathematica/"
11
SRC_URI="Mathematica_${PV}_BNDL_LINUX.sh"
10
SRC_URI="doc? ( Mathematica_${PV}_BNDL_LINUX.sh ) !doc? ( Mathematica_${PV}_LINUX.sh )"
12
S="${WORKDIR}"
11
S="${WORKDIR}"
13
12
14
LICENSE="all-rights-reserved"
13
LICENSE="all-rights-reserved"
Lines 58-63 Link Here
58
# we might as well list all files in all QA variables...
57
# we might as well list all files in all QA variables...
59
QA_PREBUILT="opt/*"
58
QA_PREBUILT="opt/*"
60
59
60
pkg_pretend() {
61
	CHECKREQS_DISK_BUILD="$(usex doc 20G 10G)"
62
	check-reqs_pkg_pretend
63
}
64
65
pkg_setup() {
66
	CHECKREQS_DISK_BUILD="$(usex doc 20G 10G)"
67
	check-reqs_pkg_setup
68
}
69
61
src_unpack() {
70
src_unpack() {
62
	/bin/sh "${DISTDIR}/${A}" --nox11 --keep --target "${S}/unpack_app" -- "-help" || die
71
	/bin/sh "${DISTDIR}/${A}" --nox11 --keep --target "${S}/unpack_app" -- "-help" || die
63
}
72
}
Lines 79-89 Link Here
79
	/bin/sh "Unix/Installer/MathInstaller" -auto "-targetdir=${S}/${M_TARGET}" "-execdir=${S}/opt/bin" || die
88
	/bin/sh "Unix/Installer/MathInstaller" -auto "-targetdir=${S}/${M_TARGET}" "-execdir=${S}/opt/bin" || die
80
	popd > /dev/null || die
89
	popd > /dev/null || die
81
90
82
	if ! use doc; then
83
		einfo "Removing documentation"
84
		rm -r "${S}/${M_TARGET}/Documentation" || die
85
	fi
86
87
	# fix world writable file QA problem for files
91
	# fix world writable file QA problem for files
88
	while IFS= read -r -d '' i; do
92
	while IFS= read -r -d '' i; do
89
		chmod o-w "${i}" || die
93
		chmod o-w "${i}" || die

Return to bug 915345