1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Wolfram Player for the interactive Computable Document Format (CDF)"
9 SRC_URI="CDFPlayer_11.2.0_LINUX.sh"
10 HOMEPAGE="http://www.wolfram.com/cdf-player/"
12 LICENSE="WolframCDFPlayer"
13 KEYWORDS="-* ~amd64 ~x86"
17 RESTRICT="strip mirror bindist fetch"
21 # this list comes from lsof output
22 # probably there are still some libraries missing
43 sys-libs/ncurses-compat:5
46 # we need this a few times
47 MPV=$(get_version_component_range 1-2)
49 # we might as well list all files in all QA variables...
55 /bin/sh "${DISTDIR}/${A}" --nox11 --confirm --keep -- -auto "-targetdir=${S}/opt/Wolfram/CDFPlayer/${MPV}" "-execdir=${S}/opt/bin" || die
60 mv "${S}/opt" "${D}/opt" || die
62 # the autogenerated symlinks point into sandbox, redo
63 rm "${D}/opt/bin/"* || die
64 dosym ../Wolfram/CDFPlayer/${MPV}/Executables/wolframcdfplayer opt/bin/wolframcdfplayer
65 dosym ../Wolfram/CDFPlayer/${MPV}/Executables/WolframCDFPlayer opt/bin/WolframCDFPlayer
67 # fix some embedded paths and install desktop files
68 insinto /usr/share/applications
69 for filename in $(find "${D}" -name "wolfram-cdf11.desktop") ; do
70 echo Fixing "${filename}"
71 sed -e "s:${S}::g" -e 's:^\t\t::g' -i "${filename}"
72 echo "Categories=Physics;Science;Engineering;2DGraphics;Graphics;" >> "${filename}"
78 einfo "Sadly Wolfram provides no permanent link to the player files."
79 einfo "Please download the Wolfram CFD Player installation file ${SRC_URI} from"
80 einfo "${HOMEPAGE} and place it into your DISTDIR directory."