svn commit: r419671 - in head/astro: . py-horoscopegenerator

Mathieu Arnold mat at FreeBSD.org
Fri Aug 5 12:41:31 UTC 2016



+--On 5 août 2016 22:32:29 +1000 Kubilay Kocak <koobs at FreeBSD.org> wrote:
| On 5/08/2016 10:27 PM, John Marino wrote:
|> On 8/5/2016 07:19, Mathieu Arnold wrote:
|>> +--On 5 août 2016 07:55:34 +0000 Kevin Lo <kevlo at FreeBSD.org> wrote:
|>> | +PORTNAME=    horoscopegenerator
|>> | +PORTVERSION=    0.1.8
|>> | +CATEGORIES=    astro python
|>> | +MASTER_SITES=    CHEESESHOP
|>> | +DISTNAME=    ${PORTNAME:S/h/H/:S/g/G/}-${PORTVERSION}
|>> 
|>> You should use PORTNAME=HoroscopeGenerator instead of doing things like
|>> this (it makes it a bit hard to figure out what you mean, at first.)
|>> 
|> 
|> I thought mixed case was discouraged.

Well, I've had a look at the porter's handbook, and it doesn't say anything
like that, it must be some urban legend.

There is one case that is only documented in an example, in the table at
the end of the Package Naming Convention section [1], and it is for single
programs, like, say, you have this distribution file named PSTree-1.0,
which produces bin/pstree and man/man1/pstree.1, you have to name the port
pstree in lower case, so that people don't wonder wtf.  It is the only case.

1:
<https://www.freebsd.org/doc/en/books/porters-handbook/makefile-naming.html#porting-pkgname>

|> Anyway, this would have been fine:
|> DISTNAME=    ${PORTNAME:tl}-${PORTVERSION}
|> 
|> right?
| 
| Right

In that case, the distfile is "HoroscopeGenerator-0.1.8", so setting
PORTNAME to HoroscopeGenerator would have been just fine.

-- 
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20160805/4bb28413/attachment.sig>


More information about the svn-ports-all mailing list