Custom user select groups
mark at macports.org
Fri Dec 3 21:18:16 UTC 2021
I rather like this idea. I'm not sure of the complexity but it would come
in handy in a number of places.
Mark E. Anderson <mark at macports.org>
MacPorts Trac WikiPage <https://trac.macports.org/wiki/mark>
GitHub Profile <https://github.com/markemer>
On Thu, Dec 2, 2021 at 3:25 PM Gregory Anders <greg at gpanders.com> wrote:
> A feature I would personally like to see in MacPorts is the ability to
> my own select groups and add arbitrary programs to it. I am happy to
> create a
> prototype PR for review, but wanted to see if this had been proposed or
> considered before.
> What I have in mind is a new subcommand to 'port select', e.g. '--add'
> could be used like so:
> sudo port select --add GROUP TARGET OPTIONS...
> Presently, each port that has multiple options has to provide its own
> companion port. Not all ports have these and it can be tedious to create
> for every port that needs it. This is especially true for Python and Lua
> that install executables: users often want to use the plain executable
> without the version information which is only possible with a select group.
> This would also solve another personal pain point for me: the current
> to use a plain 'clangd' command installed via MacPorts. I proposed adding
> clangd to the clang_select group in #10558, but it was closed (for
> valid reasons). However, if I were able to create my own select group I
> still accomplish this with no compatibility issues for the greater
> sudo port select --add clangd clangd clangd-mp-13
> sudo port select --set clangd clangd-mp-13
> A similar situation exists for e.g. universal-ctags, which currently
> itself as 'uctags'. I would love to be able to create my own
> group that allows me to use universal-ctags as plain 'ctags'.
> sudo port select --add ctags ctags ctags uctags
> sudo port select --set ctags uctags
> I hope the above provides enough motivation for the feature. Please let me
> your thoughts. I will start work on a prototype PR if I get a positive (or
> least, non-negative) response.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-dev