Create a MacOS X App Bundle Using MacPorts: Difference between revisions

no edit summary
(include instructions for adding a local portfile)
No edit summary
Line 21: Line 21:
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>}}.
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]. A [[Prototype MacPorts PortFile|prototype portfile]] which does not depend upon METIS and does depend upon epstool, pstoedit, and transfig has been prepared.


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.
After [http://guide.macports.org/chunked/development.local-repositories.html creating a local portfile repository] an Octave portfile may be added to the local repository using the commands below.
* Create your local portfile repository
  <nowiki>mkdir -p ~/ports/math/octave-local
  <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>
cp ~/Desktop/portfile ~/ports/math/octave-local</nowiki>
* Index your local repository
This assumes the Octave portfile had been placed on the users Desktop. After adding the portfile, the local repository must be indexed for MacPorts to recognize it.
  <nowiki>cd ~/portfile
  <nowiki>cd ~/portfile
portindex -f</nowiki>
portindex -f</nowiki>
Once indexed the local Octave port may be installed.
<nowiki>sudo port install octave-local</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.
364

edits