FreeBSD Port: ngircd-0.15
Sahil Tandon
sahil at FreeBSD.org
Thu Dec 9 00:24:42 UTC 2010
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.//}
--
Sahil Tandon <sahil at FreeBSD.org>
More information about the freebsd-ports
mailing list