# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-sci/maestro/maestro-2004-r1.ebuild,v 1.2 2004/02/26 23:46:08 zx Exp $ DESCRIPTION="Maestro is a public release software package that NASA scientists use to operate the Spirit and Opportunity Rovers." SRC_URI="http://freecache.org/http://mars9.telascience.org:81/softwaredownload/Maestro-Linux.tar.gz spirit?( http://maestro2.sun.com/Maestro-Update01-LinuxAndSolaris.tar.gz http://maestro2.sun.com/Maestro-Update02-LinuxAndSolaris.tar.gz http://maestro2.sun.com/MaestroUpdate-Spirit03-LinuxAndSolaris.tar.gz http://maestro2.sun.com/MaestroUpdate-Spirit4-LinuxAndSolaris.tar.gz http://maestro2.sun.com/MaestroUpdate-Spirit5-LinuxAndSolaris.tar.gz http://maestro2.sun.com/MaestroUpdate-Spirit6-LinuxAndSolaris.tar.gz ) oppor?( http://maestro2.sun.com/MaestroUpdate-Oppor1-LinuxAndSolaris.tar.gz http://maestro2.sun.com/MaestroUpdate-Oppor2-LinuxAndSolaris.tar.gz http://maestro2.sun.com/MaestroUpdate-Oppor3-LinuxAndSolaris.tar.gz )" HOMEPAGE="http://mars.telascience.org/" IUSE="doc spirit oppor" DEPEND="" RDEPEND=">=virtual/jre-1.4" LICENSE="maestro" SLOT="0" KEYWORDS="~x86" S=${WORKDIR}/R2004_02-Public-Linux src_unpack() { unpack ${A} cd ${S}/JPL/SAP/WITS-db einfo "Unpacking default data sets..." tar xf mer.tar rm mer.tar [ `use spirit` ] \ && mv ${WORKDIR}/JPL/SAP/WITS-db/mer/Spirit ./mer/ [ `use oppor` ] \ && mv ${WORKDIR}/JPL/SAP/WITS-db/mer/Opportunity ./mer/ [ `use spirit` -o `use oppor` ] \ && rm -r ${WORKDIR}/JPL cd ${S} } src_install () { dodir /opt/${PN} cp -r JPL/ ${D}/opt/${PN} echo "#!/bin/sh" >> ${PN} echo "cd /opt/${PN}/JPL/SAP/bin" >> ${PN} echo "./SAP" >> ${PN} into /opt dobin ${PN} } pkg_postinst() { einfo einfo "Dataset updates can be found online at:" einfo " http://mars.telascience.org/update" einfo einfo "To run maestro, simply type: maestro" einfo }