From owner-freebsd-ports@FreeBSD.ORG Thu Dec 9 00:24:42 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 43C46106566C for ; Thu, 9 Dec 2010 00:24:42 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from spartan.hamla.org (spartan.hamla.org [206.251.255.30]) by mx1.freebsd.org (Postfix) with ESMTP id 1622C8FC16 for ; Thu, 9 Dec 2010 00:24:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by spartan.hamla.org (Postfix) with ESMTP id B0F151715D; Wed, 8 Dec 2010 19:24:41 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tandon.net; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:reply-to:message-id :subject:subject:from:from:date:date:received:received; s=aegis; t=1291854281; bh=KviYY2HsXsIcxi1R1EwqDiKUKy34Z5QGD3mbS2Ms7KM=; b= puXcH8CTQd6pA+SctNGy/Gvh0bWJZbO6W7HxFJjw1CSaTibCL0P3mOBUBon+LsQo UVbp2/PBMPO4iuPtgG6c3pTk/M+7/hXay+XfAgAhw8nnLsog0dzmLAnF2mUlkfDo 82smQxUIdogNyEJaLeDdtIJs9ry/Fwn1t9pmvhmBqJY= X-Virus-Scanned: by ClamAV at spartan.hamla.org Received: from spartan.hamla.org ([127.0.0.1]) by localhost (spartan.hamla.org [127.0.0.1]) (amavisd-new, port 10027) with LMTP id QzuwkbHNk04f; Wed, 8 Dec 2010 19:24:41 -0500 (EST) Received: from magic.hamla.org (cpe-69-201-179-80.nyc.res.rr.com [69.201.179.80]) by spartan.hamla.org (Postfix) with ESMTPSA id 941A01715C; Wed, 8 Dec 2010 19:24:40 -0500 (EST) Date: Wed, 8 Dec 2010 19:24:38 -0500 From: Sahil Tandon To: Chris Rees Message-ID: <20101209002438.GB35076@magic.hamla.org> References: <4CFEA151.8010708@lgarchitecture.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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: Sahil Tandon List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2010 00:24:42 -0000 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 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