Commit graph

5437 commits

Author SHA1 Message Date
rillig
7592d88865 pkgtools/R2pkg: make USE_LANGUAGES code simpler 2019-10-19 17:30:10 +00:00
rillig
5cb91c7b35 pkgtools/R2pkg: clean up shell program 2019-10-19 17:15:00 +00:00
rillig
80b0ad0df6 pkgtools/R2pkg: clean up shell program 2019-10-19 16:18:55 +00:00
rillig
592516565b pkgtools/R2pkg: update to 0.6.3
Changes since 0.6.1:

* Fix comparison of articles (a, an) in comments.
2019-10-19 15:47:03 +00:00
rillig
7cbd7fcc3d pkgtools/R2pkg: refactoring, tests 2019-10-19 14:52:40 +00:00
rillig
d74b3e43fa pkgtools/R2pkg: code cleanup 2019-10-19 13:55:09 +00:00
rillig
1a6da8e03d pkgtools/R2pkg: refactoring, tests 2019-10-19 13:37:00 +00:00
rillig
5b63090125 pkgtools/R2pkg: refactoring, tests 2019-10-19 11:47:23 +00:00
rillig
45180f7fb3 pkgtools/R2pkg: refactoring, tests 2019-10-19 11:04:46 +00:00
rillig
c3eb38efc4 pkgtools/R2pkg: make write.Makefile simpler 2019-10-18 22:10:46 +00:00
rillig
b36cbe9825 pkgtools/R2pkg: refactorings, tests 2019-10-18 21:42:20 +00:00
rillig
18e20d3517 pkgtools/R2pkg: remove unused code, add tests 2019-10-18 17:18:03 +00:00
rillig
05380acf01 pkgtools/R2pkg: fix tests with virtual files
textConnection does not expect a trailing '\n' in its argument.
2019-10-18 16:07:53 +00:00
bsiegert
cb070cf0eb Revbump all Go packages after lang/go112 update 2019-10-18 14:58:43 +00:00
rillig
e4c54a6929 pkgtools/R2pkg: add more tests 2019-10-17 22:08:13 +00:00
rillig
8583a0f1ac pkgtools/R2pkg: add tests 2019-10-17 17:50:54 +00:00
rillig
c8408e31df pkgtools/R2pkg: refactorings, small bugfixes, tests
find.Rcpp is now guaranteed to return a boolean.

Added some tests and many more templates that are still waiting to be
filled.
2019-10-17 17:14:34 +00:00
rillig
48ac9a62c8 pkgtools/R2pkg: fix indentation, make tabs visible 2019-10-17 01:21:12 +00:00
rillig
9c614d3f09 pkgtools/R2pkg: remove unused code 2019-10-15 18:44:21 +00:00
joerg
47fa1134f9 Use tab for indendation as the rest of the block. 2019-10-13 21:50:54 +00:00
joerg
7cc86d5212 Use __UNCONST to remove const attributes before free. 2019-10-13 21:49:36 +00:00
rillig
d9d373311f pkgtools/R2pkg: shorten code in read.Makefile.as.dataframe 2019-10-13 19:34:13 +00:00
rillig
a88f3e92b6 pkgtools/R2pkg: add more unit tests 2019-10-13 19:13:47 +00:00
rillig
5540d90513 pkgtools/R2pkg: add unit tests 2019-10-13 18:13:03 +00:00
rillig
9fe8d9ca3a pkgtools/R2pkg: code cleanup 2019-10-13 17:23:29 +00:00
rillig
5154306621 pkgtools/R2pkg: replace integer indices with named attributes 2019-10-13 17:20:00 +00:00
rillig
f63450b9c1 pkgtools/R2pkg: make R2pkg.R testable
Placing the code into a main function allows the tests to source the file
without any side effects.

The LC_ALL=C environment variable is necessary on NetBSD/x86_64 8.0 in
the en_US.UTF-8 locale since otherwise R dumps core in the source(...)
call, deep inside towctrans.
2019-10-13 15:35:48 +00:00
rillig
95d5be1715 pkgtools/R2pkg: fix typo 2019-10-13 13:28:45 +00:00
rillig
c158cfcbc6 pkgtools/R2pkg: separate R code from shell code
Before, it was difficult to edit the R code since all dollars,
backslashes and backticks had to be escaped. Separating the code also
makes the R part testable on its own.
2019-10-13 13:26:22 +00:00
rillig
9d7f6112a0 pkgtools/R2pkg: update to 0.6.1
Changes since 0.6:

* Run properly even if TMPDIR is not set.

* Quote variables to prevent unintended interpolation.

* Write error messages to stderr instead of stdout.
2019-10-13 09:43:26 +00:00
rillig
374ae0b4a4 pkgtools/url2pkg: remove unnecessary update_vars field 2019-10-13 08:48:23 +00:00
rillig
b36f2433db pkgtools/url2pkg: rename type Url2Pkg to Globals 2019-10-12 17:38:16 +00:00
rillig
70122f7240 pkgtools/url2pkg: fix type hinting declarations 2019-10-12 17:28:44 +00:00
rillig
d5250cbc60 pkgtools/pkglint: update to 19.3.1
Changes since 19.3.0:

* In buildlink3.mk files, the package identifier doesn't have to match
  the PKGBASE from the package Makefile exactly. The PKGBASE may have a
  leading "lib" (for libiconv and libgettext), as well as a trailing
  number (for emacs20 and netatalk22).

* GITHUB_RELEASE is added to the variables that should appear in a fixed
  order in the package Makefile.

* In the MASTER_SITE URLs, the transport protocol is irrelevant for
  matching direct URLs to the predefined MASTER_SITE_* variables.
2019-10-11 23:30:02 +00:00
joerg
a07706e7d6 pkg_install-20191008: Add pkg_admin digest command 2019-10-11 11:57:41 +00:00
triaxx
cd3c709f82 rc.subr: which is not present in Arch Linux boostrap 2019-10-11 11:56:06 +00:00
joerg
fe227f6b78 pkg_admin(1): sort commands 2019-10-08 21:33:35 +00:00
prlw1
c02441770e Rename py-meson to meson.
The motivation is to consider meson as an application, so there is only
one copy on the system, and as a python 3 program, it can build python 2
packages.
2019-10-07 09:28:09 +00:00
rillig
44cbbac051 pkgtools/url2pkg: update to 19.3.3
Changes since 19.3.2:

* Replaced the Perl implementation with the Python implementation.

* Improved detection of WRKSRC: only directories are candidates, regular
  files are ignored.

* R packages are handled by R2pkg instead of url2pkg.
2019-10-06 12:55:30 +00:00
rillig
5e9c9526ef pkgtools/url2pkg: remove Perl implementation
The Python implementation has received more bugfixes, new features and
handles all kinds of edge cases better. All previous features have been
either copied or intentionally omitted.
2019-10-06 12:52:13 +00:00
rillig
8f0befb40e pkgtools/url2pkg: update man page 2019-10-06 12:50:41 +00:00
rillig
e2df0a63ff pkgtools/url2pkg: refer to R2pkg for creating R packages 2019-10-06 12:50:23 +00:00
rillig
167f4e9d9c pkgtools/pkglint4: remove more unreliable or outdated checks
CFLAGS and LDFLAGS had been checked for GCC-style flags only. This didn't
make sense since wrong flags would be detected on the exotic platforms
anyway.

The experimental --autofix has been removed.

The check for "# used by" comments in Makefile.common has been removed.
Especially the --autofix could damage files.

The warnings for ICON_THEMES have been removed since they appear in
groups of thousands, and the old pkglint cannot issue warnings "once per
file" simply.
2019-10-06 11:45:05 +00:00
rillig
195ab1e0c0 pkgtools/pkglint4: remove some unreliable checks
The warnings about variable permissions were not understandable enough to
be acted upon. The new pkglint does this better.

The languages that are allowed in USE_LANGUAGES are defined differently
in the pkgsrc infrastructure, thus the old parsing code does not work
anymore. Therefore all identifiers are allowed now.

Dependency patterns like 'package>=1.0<2.0' are no longer marked as
wrong.

The debatable warning about plural names is gone.

The order of variables in simple Makefiles is no longer checked. Some new
variables have been added in the meantime, and keeping the consistent
order is not of utmost importance to those pkgsrc developers who work
with pkglint4. They are experienced enough to know the rules.

Missing manual pages are no longer marked in the PLIST files. It's not
the job of pkgsrc to provide these files.

The warning about unnoticed errors in pipelines like 'find | xargs' has
been removed because the shell parser is unreliable. This is solved
better in the new pkglint.
2019-10-06 11:06:42 +00:00
rillig
95b06139fc pkgtools/pkglint4: remove broken version check
The version number '4.193.0' had always been compared to the string
'pkglint4-4.193.0', which when interpreted as a version number, was:
(16, 11, 7, 12, 9, 14, 20, 4, 0, 193, 0, 0). This was always greater than
the (4, 0, 193, 0, 0).
2019-10-06 10:46:18 +00:00
rillig
a5f3f1aedf pkgtools/pkglint4: update to 4.193.0, remove check for absolute paths
The check for absolute paths is not necessary since it doesn't provide
any benefit. It had been removed from pkgtools/pkglint already.
2019-10-06 10:33:34 +00:00
rillig
28229f8599 pkgtools/url2pkg: improve determining WRKSRC
For setting WRKSRC, only the directories in WRKDIR are relevant, not the
files.
2019-10-06 08:24:18 +00:00
rillig
40f0613279 pkgtools/url2pkg: fix version tag detection 2019-10-06 05:53:00 +00:00
rillig
153d122916 pkgtools/url2pkg: update to 19.3.2
Changes since 19.3.1 (only to the Python implementation):

* In Python packages, the variables LICENSE, HOMEPAGE and COMMENT are
  filled from their counterparts in setup.py, no matter whether
  the package uses setuptools or distutils.core.

* For buildlink3 dependencies, the variables BUILDLINK_DEPENDS and
  BUILDLINK_API_DEPENDS are added to the package Makefile.

* The DESCR and PLIST files are only created if they are missing.
  Existing files are not overwritten.

* Packages that contain .po files will set USE_PKGLOCALEDIR=yes.
  Before, only packages that contained .mo or .gmo did that.

* More download URLs from SourceForge can be handled.

* SourceForge packages get their HOMEPAGE set correctly.

* When matching the URL against the MASTER_SITE_* variables, the
  protocol is ignored. This allows https URLs to use the
  MASTER_SITE_GNU, which still uses http.

* Python packages from GitHub only get their MASTER_SITES converted to
  PyPI if they can be actually downloaded from there as well. This
  check was missing before.
2019-10-05 22:02:32 +00:00
rillig
a21b921705 pkgtools/url2pkg: clean up path handling 2019-10-05 21:05:50 +00:00