For development of ports, we can use a local repository as a sandbox to test
port changes before adding back to the trunk.  Would it be possible to set
some general configuration options that apply to any ports from this local
repository?

For example, the local repo is at ~/ports and it contains a PortIndex file
and an entry in /opt/local/etc/macports/sources.conf

Is it possible to have a file with settings from macports.conf in the local
repo (say ~/ports/macports.conf)?  It might contain a subset of variables,
which would override the defaults in $prefix/etc/macports/macports.conf, to
provide specific settings only for ports from the local repository.

For example, it would be handy to set "portautoclean off" for the local dev
repo, but keep it on for the regular operation of macports.  We can use a
command line option for the dev port process (-k).  To make it the default
for the local repo, ~/ports/macports.conf might contain "portautoclean off"
(among other settings) and those settings would override the same settings
in the general $prefix config.  Any settings missing from
~/ports/macports.conf would be defined by the general $prefix config.

Best, Darren
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to