Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2010 22:52:34 -0400
From:      Sahil Tandon <sahil@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: ccache 3.0 port
Message-ID:  <20100511025234.GB34736@magic.hamla.org>
In-Reply-To: <201005110409.22796.avilla@freebsd.org>
References:  <AANLkTikD_SZBDIywPMkl1GI-WoycERMyjdjfnkwE1r7z@mail.gmail.com> <20100511013700.GA34279@magic.hamla.org> <201005110409.22796.avilla@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 11 May 2010, Alberto Villa wrote:

> On Tuesday 11 May 2010 03:37:01 Sahil Tandon wrote:
> > Regarding portlint's FATAL output, please review Package Naming
> > Conventions in the Handbook. Specifically, "If the software version has
> > strings like ``alpha'', ``beta'', ``rc'', or ``pre'', take the first
> > letter and put it immediately after a period."  So you could try
> > sometihng like:
> > 
> >  PORTVERSION=	3.0.p1
> >  DISTNAME=	${PORTNAME}-${PORTVERSION:S/.p/pre/}
> 
> DISTVERSION=	3.0pre1
> is shorter and cleaner

I appreciate the brevity, but this requires adjustment with every
PORTVERSION change.  I prefer a solution that requires one less (albeit
simple) manual step; perhaps some sed-fu in DISTVERSION if the DISTNAME
example is aesthetically unpalatable. TMTOWTDI. :-)

-- 
Sahil Tandon <sahil@FreeBSD.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100511025234.GB34736>