# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit versionator MY_PV="$(get_version_component_range 1-2)" At="${PN}-${MY_PV}.tar.gz" DESCRIPTION="Fully integrated environment for technical and scientific computing" HOMEPAGE="http://www.wolfram.com" SRC_URI="${At}" LICENSE="Mathematica" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="virtual/x11" RESTRICT="fetch nostrip" S="${WORKDIR}/${PN}-${MY_PV}" pkg_nofetch() { einfo "Please copy the ${At} file from your ${P} CD_ROM" einfo "and move it to ${DISTDIR}" } src_unpack() { unpack ${A} cd ${S} for files in Files/*/contents.tar.gz; do unpack $files done } src_install() { cd ${S} dodir /usr/bin exeinto /usr/bin doexe "${FILESDIR}"/math || die "failed" doexe "${FILESDIR}"/mcc || die "failed" doexe "${FILESDIR}"/mathematica || die "failed" dodir /opt/${PN}/lib cp SystemFiles/Libraries/Linux/* ${D}/opt/${PN}/lib dodir /opt/${PN}/SystemFiles cp -r SystemFiles/C* SystemFiles/F* SystemFiles/G* SystemFiles/I* SystemFiles/J* SystemFiles/K* SystemFiles/Sp* ${D}/opt/${PN}/SystemFiles cp -r AddOns Configuration Documentation ${D}/opt/${PN} doman SystemFiles/SystemDocumentation/Unix/math.1 doman SystemFiles/SystemDocumentation/Unix/mathematica.1 doman SystemFiles/SystemDocumentation/Unix/mcc.1 }