# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_VER=${PV/.0.0/} DESCRIPTION="Fully integrated environment for technical and scientific computing" HOMEPAGE="http://www.wolfram.com" SRC_URI="${PN}-${MY_VER}.tar.gz" LICENSE="Mathematica" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/x11" RDEPEND="" RESTRICT="fetch nostrip" S=${WORKDIR}/${PN}-${MY_VER} src_install() { cd ${S} for files in Files/*/contents.tar.gz; do tar -xvzf $files || die "unpack contents.tar.gz failed" done dodir /usr/bin exeinto /usr/bin doexe ${FILESDIR}/math || die "failed" doexe ${FILESDIR}/mcc || die "failed" doexe ${FILESDIR}/mathematica || die "failed" dodir /usr/lib/${PN} cp SystemFiles/Libraries/Linux/* ${D}/usr/lib/${PN} dodir /usr/share/${PN}/SystemFiles cp -r SystemFiles/C* SystemFiles/F* SystemFiles/G* SystemFiles/I* SystemFiles/J* SystemFiles/K* SystemFiles/Sp* ${D}/usr/share/${PN}/SystemFiles cp -r AddOns Configuration Documentation ${D}/usr/share/${PN} doman SystemFiles/SystemDocumentation/Unix/math.1 doman SystemFiles/SystemDocumentation/Unix/mathematica.1 doman SystemFiles/SystemDocumentation/Unix/mcc.1 }