Some private customized Portfiles. Not tested.
TODO: Write history
NOTE: You must have MacPorts installed.
-
Download or clone this repository into your
$HOME
dir (it can be placed anywhere, as long as you use that path in the following instructions):cd $HOME git clone https://github.com/dsoares/portfiles.git
-
Now you need to tell MacPorts to look first for Portfiles in this local path.
Manually edit the file
/opt/local/etc/macports/sources.conf
and insert a URL pointing to your local repository location before the rsync URL as shown:(...) file:///Users/<your_username>/portfiles [nosync] rsync://rsync.macports.org/release/tarballs/ports.tar [default]
or use this command line to add the line to
/opt/local/etc/macports/sources.conf
:cd /opt/local/etc/macports sudo cp -p sources.conf sources.conf.bak sudo awk '/^rsync:/ && !x {print "file://'"$HOME"'/portfiles [nosync]"; x=1} 1' \ sources.conf.bak > sources.conf cd -
-
Use
portindex
in the local repository's directory to create or update the index of the ports in your local repository:cd $HOME/portfiles portindex
TODO: Write usage instructions.
- opencv:
sudo port install opencv-devel
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Released under the GNU General Public License.
Comments and suggestions are welcome! Email: Diana Soares