Custom user select groups

Mark Anderson 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
_______________________
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
> create
> 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'
> that
> could be used like so:
>
>      sudo port select --add GROUP TARGET OPTIONS...
>
> Presently, each port that has multiple options has to provide its own
> 'select'
> companion port. Not all ports have these and it can be tedious to create
> them
> for every port that needs it. This is especially true for Python and Lua
> ports
> that install executables: users often want to use the plain executable
> name
> without the version information which is only possible with a select group.
>
> This would also solve another personal pain point for me: the current
> inability
> 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
> perfectly
> valid reasons). However, if I were able to create my own select group I
> could
> still accomplish this with no compatibility issues for the greater
> MacPorts
> project:
>
>      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
> installs
> itself as 'uctags'. I would love to be able to create my own
> "ctags_select"
> 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
> know
> your thoughts. I will start work on a prototype PR if I get a positive (or
> at
> least, non-negative) response.
>
> Thanks!
>
> Greg
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20211203/9fe0eedb/attachment.htm>


More information about the macports-dev mailing list