| 20 | |
| 21 | |
| 22 | == Test Portfile changes in your user svn == |
| 23 | |
| 24 | |
| 25 | Use the Trac Browser to explore the MacPorts svn; the repository root is located at |
| 26 | |
| 27 | https://svn.macosforge.org/repository/macports |
| 28 | |
| 29 | To create your own users directory: |
| 30 | |
| 31 | {{{ |
| 32 | svn mkdir https://svn.macports.org/repository/macports/users/<YourMacPortsUserID> |
| 33 | }}} |
| 34 | |
| 35 | Then, checkout your user svn repo: |
| 36 | |
| 37 | {{{ |
| 38 | $ mkdir -p ~/myports |
| 39 | $ svn co https://svn.macports.org/repository/macports/users/<YourMacPortsUserID> ~/myports |
| 40 | }}} |
| 41 | |
| 42 | Then edit your MacPorts sources.conf file {{{/opt/local/etc/macports/sources.conf}}} to add ~/macports to the list before the main rsync source at rsync.macports.org, e.g.: |
| 43 | |
| 44 | {{{ |
| 45 | file:///Users/<YourSystemUserID>/myports [nosync] |
| 46 | }}} |
| 47 | |
| 48 | To work on a copy of a port from macports trunk, use {{{svn copy}}}. For example, to test changes on the cableswig port: |
| 49 | |
| 50 | {{{ |
| 51 | $ svn mkdir ~/myports/devel/cableswig |
| 52 | $ svn copy https://svn.macosforge.org/repository/macports/trunk/dports/devel/cableswig/Portfile ~/myports/devel/cableswig/Portfile |
| 53 | }}} |
| 54 | |
| 55 | |
| 56 | |