diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 14:42:46 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 14:42:46 +0000 |
commit | 994ebe2e32a42fa81e60b8de2bbbda2da477bcd5 (patch) | |
tree | d00d45949f37413f5a1d4586f7e9890f51b642a3 /app-sci/mupad/mupad-2.5.2-r1.ebuild | |
parent | Fixed dependency: "app-sci/maxima" is now "sci-mathematics/maxima". (Manifest... (diff) | |
download | gentoo-2-994ebe2e32a42fa81e60b8de2bbbda2da477bcd5.tar.gz gentoo-2-994ebe2e32a42fa81e60b8de2bbbda2da477bcd5.tar.bz2 gentoo-2-994ebe2e32a42fa81e60b8de2bbbda2da477bcd5.zip |
Moving to sci-mathematics/mupad
Diffstat (limited to 'app-sci/mupad/mupad-2.5.2-r1.ebuild')
-rw-r--r-- | app-sci/mupad/mupad-2.5.2-r1.ebuild | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/app-sci/mupad/mupad-2.5.2-r1.ebuild b/app-sci/mupad/mupad-2.5.2-r1.ebuild deleted file mode 100644 index 863ece37955c..000000000000 --- a/app-sci/mupad/mupad-2.5.2-r1.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-sci/mupad/mupad-2.5.2-r1.ebuild,v 1.6 2004/07/15 03:46:46 agriffis Exp $ - -VER=`echo $PV|awk -F. '{ print $1$2$3 }'` -URLPATH="ftp://ftp.mupad.de/MuPAD/distrib/unix/" -INSTDIR="/usr/lib/mupad" -INSTBINDIR="${INSTDIR}/share/bin" -BINDIR="/usr/bin" - -RESTRICT="nostrip" -DESCRIPTION="MuPAD is an open computer algebra system" -HOMEPAGE="http://www.mupad.de/index_uni.shtml" - -SRC_URI="${URLPATH}/linux_libs.tgz - ${URLPATH}/share_${VER}.tgz - ${URLPATH}/bin_linux_scilab_${VER}.tgz" - -# If version is 2.5.2, download documentation patch -if [ "${VER}" = "252" ] ; then - SRC_URI="${SRC_URI} ${URLPATH}/docpatch25x.tgz" -fi - -#see also http://www.sciface.com/personal.shtml -LICENSE="mupad" - -SLOT="0" -KEYWORDS="x86" -IUSE="mupad-noscilab" -DEPEND="virtual/libc" -RDEPEND="=dev-lang/tk-8.3*" - -src_unpack() { - echo -n "" -} - -src_compile() { - echo -n "" -} - -src_install() { - einfo "Unpacking binary distribution ..." - einfo " - Creating container directory ..." - dodir ${INSTDIR} - einfo " - Unpacking common files ..." - tar -C ${D}${INSTDIR} -xzpf ${DISTDIR}/share_${VER}.tgz \ - > /dev/null 2>&1 || die - einfo " - Unpacking Linux binaries for MuPAD and Scilab ..." - tar -C ${D}${INSTDIR} -xzpf ${DISTDIR}/bin_linux_scilab_${VER}.tgz \ - > /dev/null 2>&1 || die - einfo " - Unpacking support libs for Linux binaries ..." - tar -C ${D}${INSTDIR} -xzpf ${DISTDIR}/linux_libs.tgz \ - > /dev/null 2>&1 || die - # This (conditional) patch has to be last, obviously - if [ "${VER}" = "252" ] ; then - einfo "Unpacking documentation patch for version 2.5.2 ..." - tar -C ${D}${INSTDIR} -xzpf ${DISTDIR}/docpatch25x.tgz \ - > /dev/null 2>&1 || die - fi - einfo "Making wrapper scripts for executables ..." - dodir ${BINDIR} - FILES="mupad xmupad" - for FILE in $FILES; do - einfo " - ${FILE}" - # How do I get this do "die" if it fails? - cat > ${D}${BINDIR}/${FILE} <<-ENDOFSCRIPT - #!/bin/sh - exec ${INSTBINDIR}/${FILE} - ENDOFSCRIPT - fperms 0755 ${BINDIR}/${FILE} || die - done - - #move docs to the roper place - dodir /usr/share/doc/${PF}/ - mv ${D}/usr/lib/mupad/{INSTALL,LICENSE} ${D}/usr/share/doc/${PF}/ - for fn in changes copyright doc; do dosym /usr/lib/mupad/share/$fn /usr/share/doc/${PF}; done - - #remove scilab stuff if user set the flag - use mupad-noscilab && rm -rf ${D}/usr/lib/mupad/packages/scilab/ -} - -pkg_postinst() { - echo "" - einfo "SOME IMPORTANT NOTES:" - einfo "" - einfo " - This version of MuPAD has Scilab functionality" - einfo " integrated, so if you have Scilab installed already, " - einfo " you might find it to be redundant." - einfo "" - einfo " - MuPAD is only free for non-commercial use. Visit" - einfo " http://www.mupad.com/ for commercial downloads." - einfo "" - einfo " - In this non-commercial version, you must register to" - einfo " obtain a license key in order to deactivate the memory" - einfo " limit. The memory limit prevents large calculations." - einfo " Read the documentation or visit" - einfo "" - einfo " ${HOMEPAGE}" - einfo "" - einfo " for more info." - echo "" -} |