Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Dec 2017 10:54:10 -0600
From:      Jason Bacon <bacon4000@gmail.com>
To:        Alexey Dokuchaev <danfe@FreeBSD.org>
Cc:        Adam Weinberger <adamw@adamw.org>, yuri@freebsd.org, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r456674 - in head/graphics: . libQGLViewer libQGLViewer/files
Message-ID:  <5b2cd5f1-5fcb-35d2-9339-dcf97cd11d3f@gmail.com>
In-Reply-To: <20171227082713.GB51426@FreeBSD.org>
References:  <201712182143.vBILhFND023143@repo.freebsd.org> <20171224135522.GA1693@FreeBSD.org> <6fa2551a-dee7-9388-07fc-6539800b6c5a@freebsd.org> <20171225112028.GA61880@FreeBSD.org> <dd23ef4c-5136-d6b8-f638-95347ed3a357@freebsd.org> <E628F4ED-8707-4094-8849-AAF51477583E@adamw.org> <0e81e642-9157-d8e3-12f2-af08724accf6@gmail.com> <20171226155201.GA90333@FreeBSD.org> <4105e72a-cdd1-c792-7f69-e00bb22d01cb@gmail.com> <20171227082713.GB51426@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/27/17 02:27, Alexey Dokuchaev wrote:
> On Tue, Dec 26, 2017 at 02:47:05PM -0600, Jason Bacon wrote:
>> On 12/26/17 09:52, Alexey Dokuchaev wrote:
>>> On Tue, Dec 26, 2017 at 09:18:02AM -0600, Jason Bacon wrote:
>>> ...
>>>> 3. Should PORTNAME match the port directory name?
>>> Yes, it should, with a few exceptions when e.g. PKGNAMEPREFIX comes to
>>> play (examples include CPAN ports, Linux binary ports, etc.).
>> Clarifying my point #3: When I said "match" I meant in terms of
>> upper/lower case.
>>
>> Are you suggesting that PORTNAME should also be reduced to lowercase
>> to match the directory name?
> I'd say most certainly yes, unless I'm overlooking a particular edge-case
> where it could be useful, but I cannot think of right now.  Do you have
> some specific port(s) in mind?
>
> ./danfe

emulators/virtualbox-ose is an example.  DISTNAME and the main binary 
both contain caps, but the maintainers chose to lowercase both the 
portname and directory name.

math/freemat is a counterexample, where the directory name was 
lowercased, but PORTNAME contains caps to match DISTNAME.

Either of these strategies seems reasonable to me.

Mixed case in directory names is a nuisance when trying to use shell 
auto-complete, for example.

I can't think of a strong reason to favor either lowercase or mixed for 
PORTNAME, though, since pkg is case-insensitive and we'll always need to 
use -i when grepping for PORTNAME anyway, unless all PORTNAMEs are 
reduced to lower case.

I'd lean toward doing whatever simplifies a particular port.  In the 
case of lilyterm, I used a lowercase PORTNAME to avoid having to patch 
the build system, which uses share/doc/lilyterm by default.  This 
required "GH_PROJECT=LilyTerm", which I think is more palatable than 
patching.  Had upstream used share/doc/LilyTerm, I would have leaned 
toward PORTNAME=LilyTerm and dropping GH_TAGNAME.

     Jason

-- 
Earth is a beta site.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5b2cd5f1-5fcb-35d2-9339-dcf97cd11d3f>