8 | | "(Optional) Configure MacPorts to use port information from Git |
| 8 | > 3. (Optional) Configure MacPorts to use port information from Git |
| 9 | > |
| 10 | > This step is useful if you want to do port development. Check out the ports tree from git: |
| 11 | > |
| 12 | > {{{ |
| 13 | > $ cd /opt/mports |
| 14 | > $ git clone https://github.com/macports/macports-ports.git |
| 15 | > }}} |
| 16 | > |
| 17 | > Then open /opt/local/etc/macports/sources.conf in a text editor. The last line should look like this: |
| 18 | > |
| 19 | > {{{ |
| 20 | > rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default] |
| 21 | > }}} |
| 22 | > |
| 23 | > Change it to point to the working copy you checked out: |
| 24 | > |
| 25 | > {{{ |
| 26 | > file:///opt/mports/macports-ports [default] |
| 27 | > }}} |
| 28 | > |
| 29 | > Now MacPorts will look for portfiles in the working copy and use Git instead of rsync to update your ports tree. |
12 | | $ cd /opt/mports |
13 | | $ git clone https://github.com/macports/macports-ports.git |
14 | | Then open /opt/local/etc/macports/sources.conf in a text editor. The last line should look like this: |
15 | | |
16 | | rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default] |
17 | | Change it to point to the working copy you checked out: |
18 | | |
19 | | file:///opt/mports/macports-ports [default] |
20 | | Now MacPorts will look for portfiles in the working copy and use Git instead of rsync to update your ports tree. |
21 | | " |
22 | | |
23 | | file:///opt/mports/macports-ports [default] is wrong because the line up have been changed, I suppose. |
24 | | The right content for this /opt/local/etc/macports/sources.conf is, at the end of the file: |
25 | | file:///opt/mports/macports-base/ [default] |
26 | | |
27 | | macports-base is good, macports-ports was wrong for me. |
| 35 | `macports-base` is good, `macports-ports` was wrong for me. |