From owner-freebsd-ports@freebsd.org Tue Aug 14 23:35:25 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9AD761069BC0 for ; Tue, 14 Aug 2018 23:35:25 +0000 (UTC) (envelope-from dan@langille.org) Received: from clavin1.langille.org (clavin1.langille.org [162.208.116.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "clavin.langille.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 533938E026 for ; Tue, 14 Aug 2018 23:35:25 +0000 (UTC) (envelope-from dan@langille.org) Received: from (clavin1.int.langille.org (clavin1.int.unixathome.org [10.4.7.7]) (Authenticated sender: hidden) with ESMTPSA id 83A211261E ; Tue, 14 Aug 2018 23:35:16 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: getting PKGNAME from CONFLICTS From: Dan Langille In-Reply-To: <286CAC11-E9C6-42C4-8D41-97F51EFF1596@yahoo.com> Date: Tue, 14 Aug 2018 19:35:15 -0400 Cc: FreeBSD Ports , Dan Langille Content-Transfer-Encoding: quoted-printable Message-Id: <9823D065-3FCC-4D69-9EB4-9C4CD01C7778@langille.org> References: <286CAC11-E9C6-42C4-8D41-97F51EFF1596@yahoo.com> To: Mark Millard X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2018 23:35:25 -0000 > On Aug 14, 2018, at 2:55 PM, Mark Millard via freebsd-ports = wrote: >=20 >=20 > Dan Langille dan at langille.org wrote on > Tue Aug 14 17:54:01 UTC 2018 : >=20 >> . . . >> At https://dev.freshports.org/www/p5-CGI/ you can see: >>=20 >> CONFLICTS: p5-CGI.pm-[1-3]* >> . . . >> To extract the PKGNAME values from the CONFLICTS I will need to = remove everything after the trailing dash. >> . . . >=20 > p5- > vs. > p5-CGI.pm- > vs. > p5-CGI.pm-[1- >=20 > 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. --=20 Dan Langille - BSDCan / PGCon dan@langille.org