On May 30, 2016, at 6:33 AM, Mojca Miklavec wrote:

> On 29 May 2016 at 20:19, Chris Gorman wrote:
>> Hello,
>> 
>> I was wondering how to inspect variables in a port file.  Specifically, I 
>> want to apply a patch conditionally if perl is version 5.10.0.
>> 
>> I'm trying something like
>> 
>> if { ${configure.perl} eq "/usr/bin/perl" && [vercmp ${perl5.version} 
>> 5.10.0] < 0 } {
>>    patchfiles-append patch-man_Makefile.in.diff
>> }
> 
> What use case do you have in mind?

https://trac.macports.org/ticket/51505

However, I would not recommend attempting to address the issue in that way.


_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to