I believe variants are global for a port, but Iyou could use conditional logic based on which subport gets installed for a variant. What are you trying to achieve?
Nils. > Op 27 jun. 2022, om 23:35 heeft Mark Brethen <mark.bret...@gmail.com> het > volgende geschreven: > > Can a subport have variants? > > Mark Brethen > mark.bret...@gmail.com > > > >> On Jun 26, 2022, at 9:03 PM, Mark Brethen <mark.bret...@gmail.com> wrote: >> >> I’ll do that. It’s been so long that I’ve forgotten how they’re set up. >> >> Mark Brethen >> mark.bret...@gmail.com >> >> >> >>> On Jun 26, 2022, at 8:56 PM, Ryan Schmidt <ryandes...@macports.org> wrote: >>> >>> On Jun 26, 2022, at 17:39, Mark Brethen wrote: >>>> >>>> Attaching a Portfile that uses variants—downside is you can only install >>>> one. Maybe that is sufficient? I couldn’t find any documentation for using >>>> subports. >>> >>> What would you like to know about subports? Have you looked at any existing >>> portfiles that use subports to see how they work? >>> >> >