handle variant dependency
Daniel J. Luke
dluke at geeklair.net
Wed Feb 15 13:30:20 PST 2012
On Feb 15, 2012, at 1:19 PM, Bradley Giesbrecht wrote:
> The py25-gtk, py26-gtk, py27-gtk depend on cairo +x11.
>
> Does MacPorts have a standard way of dealing with this?
The only good solution right now is to create separate ports (as the dependency engine really only works on the port level, not the variant level).
It's one of the reasons why ports should build by default with as much functionality as is reasonable (and limit the use of variants).
> I recall that the suggestion to test for a variant specific file and error if it is [not] present. In this case is there anything that could/would prevent a user from upgrading the variant away with --enforce-variants?
nope.
There's a (very old) ticket for enhancing the dependency engine to handle variants, but I don't think there has ever been any work on any code for the issue. It has been discussed many times (and there were at least two versions of pretty complete specifications for proposed portfile syntax).
--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
More information about the macports-dev
mailing list