From owner-freebsd-ports@FreeBSD.ORG Thu Dec 9 10:16:16 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9517C106566C; Thu, 9 Dec 2010 10:16:16 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f49.google.com (mail-bw0-f49.google.com [209.85.214.49]) by mx1.freebsd.org (Postfix) with ESMTP id ECBE28FC20; Thu, 9 Dec 2010 10:16:15 +0000 (UTC) Received: by bwz5 with SMTP id 5so2506510bwz.8 for ; Thu, 09 Dec 2010 02:16:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:reply-to :in-reply-to:references:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=XSS8CHXlaSBTO/cCH4FxLXROI1DMURmiZxZCYdG9L+I=; b=fa/iF6SQtW/cWzKIcTMRzobqnPqmdhbuQIYTlfPAXByP+Iq97asqH5nH9iNYx4BGaS Tv0k08XSQb6H6bWN1WWN1rmfYemTWpARkMC0HxYUXGAENkAuvM+/Do5SL86lmFGv23Q7 UBYymSVhAR8BRXkZeZgfn9eFZo/HG7TslASAQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=ljrn+b4PP1VmMGZWn/u6AKY5dQbD/buRqkIrOSZXJS4o14f4eTCH0JDIaihkcuEtMx BbtX7Jegc8H1k4PGxpMDDZuFLOFQylDIDwnwBGQy5hVAMBoa4/trX0j4+L/uFIugSYiH PKCIAGwH3Rnqidflv28PgVZnAiEy3uN4g3MaU= Received: by 10.204.65.135 with SMTP id j7mr3004755bki.85.1291889774625; Thu, 09 Dec 2010 02:16:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.52.19 with HTTP; Thu, 9 Dec 2010 02:15:44 -0800 (PST) In-Reply-To: <20101209002438.GB35076@magic.hamla.org> References: <4CFEA151.8010708@lgarchitecture.com> <20101209002438.GB35076@magic.hamla.org> From: Chris Rees Date: Thu, 9 Dec 2010 10:15:44 +0000 Message-ID: To: Sahil Tandon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: dinoex@freebsd.org, ports@freebsd.org, Rick Subject: Re: FreeBSD Port: ngircd-0.15 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2010 10:16:16 -0000 On 9 December 2010 00:24, Sahil Tandon wrote: > On Wed, 2010-12-08 at 14:39:42 +0000, Chris Rees wrote: > >> On 7 December 2010 21:04, Rick wrote: >> > Hello, >> > >> > Here's an update for the irc/ngircd port from v0.15 to the latest stab= le >> > v0.17. >> > >> > Thanks, >> > Rick >> > >> >> I would perhaps include: >> >> -DISTNAME=3D =A0 =A0${PORTNAME}-17 >> +DISTVERSION=3D ${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. =A0A > simple string replacement (using the 'S' instead of 'C' modifier) would > suffice: > > DISTVERSION=3D =A0 =A0${PORTVERSION:S/0.//} > Of course, sorry I was just doing it off the top of my head. Chris