----- Forwarded message from Roberto Canteri <[EMAIL PROTECTED]> ----- > Date: Tue, 17 Jun 2008 14:55:29 +0200 > From: Roberto Canteri <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: SAGE for Mac OSX-installation > > Hello dr. Drake, > I am writing you because I wish to share the information for > making > SAGE a Mac OSX application with icon and double click for open it. > In the file sage-README-osx.txt there is the following: > > If you're an OSX guru and want to make steps 4--6 much nicer, > join sage-devel and tell us. You'll be greatly appreciated > by a lot of people! > http://groups.google.com/group/sage-devel > > Unfortunately I am not a guru at all and I do not know how to post in a > IRC channel. So I beg your pardon for writing you instead of the > sage-devel. May be you are more familiar with IRC channel or mailing > lists than me and you could forward this small howto to the sage-devel. > Many thanks in advance. > Roberto > > > The following how-to worked for me: > > HOWTO - SAGE - Mac OSX > > 1) Download the Platypus application from here: http:// > www.sveinbjorn.org/platypus > > 2) Unzip it and Drag the Platypus folder somewhere, e.g., ~/Applications > > 3) run the Platypus application: > At the graphical interface set the following: > App name: SAGE > Script Type: Shell > Script Path: Select... the file sage_script reported into this mail > Version: 3.0.2 > Identifier: "" > Author: "" > > On the right check "Remain running after completion" > optional: drag a png picture (eg:sage_banner.png) on the icon to change > it > then click on "Create" > > This shoud create a MacOSX application folder SAGE.app with your icon > > 4) Download the sage dmg from sagemath.org somewhere and double click on > it. > 5) Use finder to visit the SAGE.app folder (show package contents in the > Action menu) you just created and locate the Resources folder > > 6) Drag all the files and folders which are in the sage folder into the > Resources folder of the SAGE.app you created > > ** WARNING ** If you get an error copying the folder do the following: > Do not drag the the folder out of the dmg image. Use the > shell (via Terminal) and do a > "cp -R -P /Volumes/sage-2.9.2-OSX10.4-intel-i386-Darwin/sage/* ." > from the location where you want to install to. Adjust the name of > the > Volume as needed. > > 7) Double click on the SAGE.app icon and SAGE should pop up in a > Terminal window. > > No modification to any file are requested. > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++++++++++++++ > save the following script as a file eg:sage_script > > #!/bin/sh > # Copyright (C) 2007, Thomas Treichl and Paul Kienzle > # This program is free software; you can redistribute it and/or modify > # it under the terms of the GNU General Public License as published by > # the Free Software Foundation; either version 2 of the License, or > # (at your option) any later version. > # > # This program is distributed in the hope that it will be useful, but > # WITHOUT ANY WARRANTY; without even the implied warranty of > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > # General Public License for more details. > # > # You should have received a copy of the GNU General Public License > # along with this program; if not, write to the Free Software > # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA > # 02110-1301 USA > > SAGE_ROOT="${0%/script}" > > if [ -z ${SAGE_TERM} ]; then > # This is the startup procedure written as AppleScript to open a > # Terminal.app (if the Terminal.app is not already running) and start > # the sage program. > # 20071007 removed: open -a /Applications/Utilities/Terminal.app > osascript 2>&1>/dev/null <<EOF > tell application "System Events" to set ProcessList to get name of > every process > tell application "Terminal" > activate > if ProcessList contains "Terminal" then > do script ("exec '${SAGE_ROOT}/sage'") > else > do script ("exec '${SAGE_ROOT}/sage'") in front window > end if > end tell > EOF > > # If you set the variable ${SAGE_TERM} to "x11" then we try to open the > # X11 environment and a XTerm with the sage program running in this > # XTerm instead of a shell. > elif [ ${SAGE_TERM} == "x11" ]; then > open "/Applications/Utilities/X11.app" > if [ -z ${DISPLAY} ]; then export DISPLAY=:0.0; fi > /usr/X11R6/bin/xterm -fn -adobe-courier-medium-*-*-*-14-*-*-*-*-*-*-* \ > -e "'${SAGE_ROOT}/sage'"; > fi > > # Quit the sage application immediately after startup (ie. quitting > # it in the taskbar) because once it is started it cannot be restarted > # a second time. If sage.app stays (eg. because of a crash) opened > # then restarting is not possible. > osascript 2>&1>/dev/null <<EOF > tell application "sage" > quit > end tell > EOF > > > > > Roberto Canteri > > Research Scientist > > Fondazione Bruno Kessler > Scientific and Technological Research > > via Sommarive 18, 38050 Povo (Trento) - Italy > > http://fcs.fbk.eu/ > > Phone +39 0461 314486/460 > Fax +39 0461 810851 > > ----------------------------------------------------------------- ----- End forwarded message -----
Dan -- --- Dan Drake <[EMAIL PROTECTED]> ----- KAIST Department of Mathematical Sciences ------- http://math.kaist.ac.kr/~drake
signature.asc
Description: Digital signature