Changes between Version 17 and Version 18 of snc


Ignore:
Timestamp:
Feb 5, 2009, 2:08:14 PM (16 years ago)
Author:
nerdling (Jeremy Lavergne)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • snc

    v17 v18  
    66
    77Also hidden (to the point where I cannot find it) is how to write wrapper scripts; [source:trunk/dports/x11/wine/ wine] is considered the poster-portfile. Another example is [source:trunk/dports/math/pspp/ pspp]. The scripts should be included in the port's {{{files}}} directory and dynamically modified through the portfile by the [http://guide.macports.org/#reference.tcl-extensions tcl extensions], {{{xinstall}}} and {{{reinplace}}}.
     8=== Patch Files ===
     9Use a patchfile when possible:  When the upstream source changes and your patch breaks, you'll have the context of the patchfile to know whether you need to update or remove the patchfile. Use reinplace to replace things like {{{${prefix} }}}and {{{${x11prefix} }}}and other variables that can be different on users' systems — ideally first have a patchfile that changes the prefix to {{{@PREFIX@}}} then use {{{reinplace}}} to change {{{@PREFIX@}}} to {{{${prefix} }}}.
    810=== Do Not Hardcode /opt/local ===
    911Speaking of {{{reinplace}}}, '''do not''' hardcode {{{/opt/local}}} anywhere! Instead, use {{{reinplace}}} for string manipulation in files.