Is it possible to specify variant as part of depends_lib?

Ryan Schmidt ryandesign at macports.org
Wed Apr 18 22:39:15 UTC 2018


On Apr 18, 2018, at 12:39, Edward Maros wrote:
> 
> I have a package (gds) that has a build requirement on port root5 with
> the variant +python27.
> 
> Currently the buildbot system will not build the gds package because it
> installs the root5 package with only default variants.
> 
> Any ideas on how to get the variant passed (at least for the buildbot
> system) so I can address any issues related to the gds package?

You can't specify variants in dependencies. See https://trac.macports.org/ticket/126

You can use the require_active_variants procedure from the active_variants 1.1 portgroup. There are many portfiles using this procedure that you can use as examples, and take a look at the documentation in the comments at the top of this file:

https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/active_variants-1.1.tcl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20180418/af183337/attachment.html>


More information about the macports-dev mailing list