This commit is contained in:
Jean-Francois Dockes 2018-12-03 18:04:43 +01:00
parent ae88175ba0
commit ff5c981ca4

View File

@ -1,24 +1,28 @@
To use/test the port out of the official macports tree:
- Edit sources.conf /opt/local/etc/macports/sources.conf, and insert a URL http://guide.macports.org/#development.local-repositories
pointing to your local repository before the rsync one:
file:///Users/dockes/projets/fulltext/recoll/packaging/macports To use/test the macports Portfile port out of the official macports tree:
- Edit /opt/local/etc/macports/sources.conf, and insert a URL pointing to
your local repository before the rsync one (replace <me> with your user
name):
file:///Users/<me>/macports/
rsync://rsync.macports.org/release/ports [default] rsync://rsync.macports.org/release/ports [default]
(inserting before ensures it's used before the macports one) Inserting before ensures it's used before the macports one.
- The port should live under category/portname (ie: textproc/ - The Portfile file should be copied under category/portname. e.g.:
/Users/<me>/macports/textproc/recoll/Portfile
- After you create or update your Portfile, use the MacPorts portindex - After you create or update your Portfile, use the MacPorts portindex
command in the local repository's directory to create or update the index command in the local repository's directory to create or update the index
of the ports in your local repository. of the ports in your local repository.
%% cd ~/path/to/macports cd /Users/<me>/macports
%% portindex portindex
Once the local port is added to the PortIndex, it becomes available for Once the local port is added to the PortIndex, it becomes available for
searching or installation as with any other Portfile in the MacPorts searching or installation as with any other Portfile in the MacPorts tree
tree
http://guide.macports.org/#development.local-repositories