getting PKGNAME from CONFLICTS

Dan Langille dan at langille.org
Tue Aug 14 23:35:25 UTC 2018


> On Aug 14, 2018, at 2:55 PM, Mark Millard via freebsd-ports <freebsd-ports at freebsd.org> wrote:
> 
> 
> Dan Langille dan at langille.org wrote on
> Tue Aug 14 17:54:01 UTC 2018 :
> 
>> . . .
>> At https://dev.freshports.org/www/p5-CGI/ you can see:
>> 
>>   CONFLICTS: p5-CGI.pm-[1-3]*
>> . . .
>> To extract the PKGNAME values from the CONFLICTS I will need to remove everything after the trailing dash.
>> . . .
> 
> p5-
> vs.
> p5-CGI.pm-
> vs.
> p5-CGI.pm-[1-
> 
> It looks to me like "trailing dash" probably has a
> complicated definition where some "-"(s) may exist
> that are to be ignored after the one of interest.
> In the example I'm guessing that the middle
> "-" is intended (so "p5-CGI.pm-").

Agreed.  The hard part is identifying the regex and deleting it from consideration.

-- 
Dan Langille - BSDCan / PGCon
dan at langille.org





More information about the freebsd-ports mailing list