364
edits
(streamline and generally improve the content) |
(include instructions for adding a local portfile) |
||
Line 17: | Line 17: | ||
Installing an Octave port is done as; | Installing an Octave port is done as; | ||
<nowiki>sudo port install <portname></nowiki> | |||
Where {{Codeline|<nowiki><portname></nowiki>}} is the name of the port. For example, the name of the port for Octave | Where {{Codeline|<nowiki><portname></nowiki>}} is the name of the port. For example, the name of the port for Octave is simply {{Codeline|<nowiki>octave</nowiki>}}. | ||
All of Octave's dependencies will also be Installed. MacPorts' Octave port includes the non-GPL [http://glaros.dtc.umn.edu/gkhome/views/metis METIS]. To avoid license violations do not bundle Metis with Octave and then distribute to others. A second motivation to use a local portfile is that the portfiles for the 3.4.x and 3.6.x series did not include all dependencies for the {{Codeline|<nowiki>print</nowiki>}} feature. The missing dependencies are [http://www.macports.org/ports.php?by=name&substr=epstool epstool], [http://www.macports.org/ports.php?by=name&substr=pstoedit pstoedit], and [http://www.macports.org/ports.php?by=name&substr=transfig transfig]. | All of Octave's dependencies will also be Installed. MacPorts' Octave port includes the non-GPL [http://glaros.dtc.umn.edu/gkhome/views/metis METIS]. To avoid license violations do not bundle Metis with Octave and then distribute to others. A second motivation to use a local portfile is that the portfiles for the 3.4.x and 3.6.x series did not include all dependencies for the {{Codeline|<nowiki>print</nowiki>}} feature. The missing dependencies are [http://www.macports.org/ports.php?by=name&substr=epstool epstool], [http://www.macports.org/ports.php?by=name&substr=pstoedit pstoedit], and [http://www.macports.org/ports.php?by=name&substr=transfig transfig]. | ||
The steps are adding a local portfile repository and placing an Octave portfile in it are itemized below. It is assumed that the portfile name is {{Codeline|<nowiki>octave-local</nowiki>}}, and that the portfile has been placed on the users Desktop. | |||
* Create your local portfile repository | |||
<nowiki>mkdir ~/ports</nowiki> | |||
* Place the Octave portile in the local repository | |||
<nowiki>mkdir ~/ports/math | |||
mkdir ~/ports/math/octave-local | |||
cp ~/Desktop/portfile ~/ports/math/octave-local</nowiki> | |||
* Index your local repository | |||
<nowiki>cd ~/portfile | |||
portindex -f</nowiki> | |||
Once an Octave port is installed the command below may be used to determine / verify the port's version and variants. | Once an Octave port is installed the command below may be used to determine / verify the port's version and variants. | ||
<nowiki>port installed <portname></nowiki> | |||
=Create the MacOS X App Bundle= | =Create the MacOS X App Bundle= | ||
Line 53: | Line 64: | ||
* Set the "Script Type" to "Shell" | * Set the "Script Type" to "Shell" | ||
* Specify the "Script Path". | * Specify the "Script Path". | ||
** Click on the "Select" button and select the [[MacOS_X_App_Launcher_Script|App shell script]] used to launch the Terminal app | ** Click on the "Select" button and select the [[MacOS_X_App_Launcher_Script|App shell script]] used to launch the Terminal app. | ||
* Set the "Output" to "None". | * Set the "Output" to "None". | ||
* Specify App Name (Octave-3.7.0). | * Specify App Name (Octave-3.7.0). |
edits