[MacPorts] snc modified

MacPorts noreply at macports.org
Tue Feb 3 06:15:57 PST 2009


Changed page "snc" by snc at macports.org from 24.172.137.66*
Page URL: <http://trac.macports.org/wiki/snc>
Diff URL: <http://trac.macports.org/wiki/snc?action=diff&version=15>
Revision 15

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: snc
=========================================================================
--- snc (version: 14)
+++ snc (version: 15)
@@ -1,6 +1,8 @@
 = Portfile Development =
 == MacPorts Guide ==
 It's a good idea to start out with the [http://guide.macports.org/#development Portfile Development] section of the MacPorts Guide.  There's a line-by-line explanation in [http://guide.macports.org/#development.creating-portfile Section 4.2] that will help you write a portfile from scratch.
+
+Obviously there are always things not listed in the Guide that are useful. For example, if you're developing for mysql5 (or some other package with multiple versions), you specify the binary instead of the port for the dependency:  {{{depends_lib-append path:bin/mysql_config5:mysql5}}}.  The trailing mysql5 indicates which port to be installed if the binary cannot be found.
 == Portindex ==
 Once you've created your portfile, it's best to test it with your copy of MacPorts.  The first step is to create a [http://guide.macports.org/#development.local-repositories local portfile repository] for testing. For this, I suggest creating the directory {{{~/ports}}}.   Inside this new directory, you should run {{{portindex}}} which will create the repository index of everything following the {{{./group/port/Portfile}}} heirarchy.  '''Note:''' This command should be run everytime you make changes as it will include the new index data for MacPorts. Also watch out for any errors it reports, which stop the portfile from showing up in MacPorts.
 == Port Info ==

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on snc. If it was not you, please
report to .


More information about the macports-changes mailing list