depends

Mark Brethen mark.brethen at gmail.com
Sat Oct 18 17:16:57 PDT 2014


On Oct 18, 2014, at 7:10 PM, Ryan Schmidt <ryandesign at macports.org> wrote:

> 
> On Oct 18, 2014, at 1:41 PM, Mark Brethen wrote:
>> 
>> Is it possible to specify e.g lib-depends {port:A || port:B} i.e. either port A or port B?
> 
> No, unless port A and port B are different versions of the same software that install their files to the same locations.
> 
> For example, if your port requires Graphviz, then the dependency should be written "path:bin/dot:graphviz"; thus either the graphviz port or the graphviz-devel port will satisfy the dependency, since they both provide (different versions of) the dot binary.
> 
> What is the specific scenario you're dealing with?
> 
> 

I have four subports: A, B, C and D. Subports B, C depend on A (pretty straightforward). Subport D depends on either B or C. The stub installs all four.


Mark






More information about the macports-dev mailing list