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