1. svn co http://svn.macports.org/repository/macports/trunk/base/ macports
2. cd macports
3. ./configure
4. make
5. sudo make install
6. sudo /opt/local/bin/port -v selfupdate
To test the setup, lets try to install MySQL via MacPorts...
1. export PATH=/Developer/usr/bin:/Developer/usr/sbin:/opt/local/bin:/opt/local/sbin:$PATH
2. sudo port install mysql5-server