tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkglint and R packages



Am 01.08.2019 um 15:32 schrieb Brook Milligan:
> I have just updated all the R packages to a canonical form.  Now
> would be a good time to look at how pkglint handles them as they are
> all quite standardized and all build (at least for me).
>
> One specific addition I suggest is that 'R' be added as a legitimate
> category. It is being used (and has been forever) just like 'perl5'
> and 'python' as a language-specific category.

Done.

> There may be other fixes that would help ensure that the canonical
> form of a package is checked for and maintained as much as possible.

My suggestions for the minimal canonical R package are:

1. The first paragraph contains R_PKGNAME, R_PKGVER and CATEGORIES, to
make them as similar as possible to the other "simple package definitions".

2. The category "R" is added automatically by math/R/Makefile.extension,
in the same way that "math" is currently added.

3. The maintainer defaults to pkgsrc-users%NetBSD.org@localhost, unless OWNER is
set, which would obviously override this.

What other rules do you have in mind? I looked at several examples in
math/R-* and found them all very simple and similar in structure.

The default setting of HOMEPAGE made me wonder a bit: There's a default
in math/R/Makefile.extension, and there are many packages that override
this default with effectively ${R_HOMEPAGE_BASE}/${R_PKGNAME}. Therefore
I think the default HOMEPAGE should be exactly that expression instead
of the current default.


Home | Main Index | Thread Index | Old Index