FreeBSD Port: ngircd-0.15

Chris Rees utisoft at gmail.com
Thu Dec 9 10:16:16 UTC 2010


On 9 December 2010 00:24, Sahil Tandon <sahil at freebsd.org> wrote:
> On Wed, 2010-12-08 at 14:39:42 +0000, Chris Rees wrote:
>
>> On 7 December 2010 21:04, Rick <rick at lgarchitecture.com> wrote:
>> > Hello,
>> >
>> > Here's an update for the irc/ngircd port from v0.15 to the latest stable
>> > v0.17.
>> >
>> > Thanks,
>> > Rick
>> >
>>
>> I would perhaps include:
>>
>> -DISTNAME=    ${PORTNAME}-17
>> +DISTVERSION= ${PORTVERSION:C/0.//1}
>>
>> negating the need to fiddle with DISTNAME after each upgrade.
>
> This works and I see it has already been committed, but it seems
> overkill to use an extended regular expressions in this situation.  A
> simple string replacement (using the 'S' instead of 'C' modifier) would
> suffice:
>
> DISTVERSION=    ${PORTVERSION:S/0.//}
>

Of course, sorry I was just doing it off the top of my head.

Chris


More information about the freebsd-ports mailing list