On Mon, Jun 27, 2022 at 5:35 PM Mark Brethen <mark.bret...@gmail.com> wrote:
> Can a subport have variants? Yes, they can. As Nils points out, subports can have variants that are specific to that subport by using conditional logic: if {$subport eq "mySubport"} { variant theVariant description {This variant only exists for subport "mySubport"} { ... } } -- Jason Liu On Mon, Jun 27, 2022 at 6:17 PM Nils Breunese <n...@breun.nl> wrote: > 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? > >>> > >> > > > >