Frotz build targets

Jason Liu jasonliu at umich.edu
Mon Jun 27 22:46:09 UTC 2022


On Mon, Jun 27, 2022 at 5:35 PM Mark Brethen <mark.brethen at 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 <nils at 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.brethen at gmail.com>
> het volgende geschreven:
> >
> > Can a subport have variants?
> >
> > Mark Brethen
> > mark.brethen at gmail.com
> >
> >
> >
> >> On Jun 26, 2022, at 9:03 PM, Mark Brethen <mark.brethen at gmail.com>
> wrote:
> >>
> >> I’ll do that. It’s been so long that I’ve forgotten how they’re set up.
> >>
> >> Mark Brethen
> >> mark.brethen at gmail.com
> >>
> >>
> >>
> >>> On Jun 26, 2022, at 8:56 PM, Ryan Schmidt <ryandesign at 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?
> >>>
> >>
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220627/9e889d6b/attachment.htm>


More information about the macports-dev mailing list