Commit graph

5453 commits

Author SHA1 Message Date
rillig
5d38f7a07a pkgtools/pkglint: update to 19.3.6
Changes since 19.3.5:

Improved indentation and alignment of multi-line variable assignments.

Improved indentation of multi-line shell commands.

Added warning for adding unquoted words to PKG_FAIL_REASON, which is a
list of messages, one per line.

Lines that start with tabs followed by a # are not shell commands, they
are comments. Bmake treats them in the same way.

Change the type of BROKEN to be a list of messages, instead of a single
message. This allows at least a bit of formatting in the error messages.
2019-11-04 18:44:21 +00:00
wiz
6c1e67a77b pkgin: fix build with gcc-8.x
Turn off string truncation and overflow warnings until the code is fixed
2019-11-04 08:39:04 +00:00
rillig
f2837a2c0f pkgtools/pkglint: update to 19.3.5
Changes since 19.3.4:

Variable uses in parentheses (such as $(VAR) instead of ${VAR}) are
treated the same. The ones in parentheses had less support before.

Improved the checks for options.mk files, adding support for options
that are defined using .for loops and those referring to other
variables.

Packages that set DISTFILES to an empty list no longer require a
distinfo file.

Patches whose filename contains the word CVE may patch more than one
target file.
2019-11-02 16:37:48 +00:00
rillig
d4cef40230 pkgtools/pkglint: update to 19.3.4
Changes since 19.3.3:

In cases where the conditions for including buildlink3.mk files differ
between the package itself and its own buildlink3.mk file, explain how
to determine PKG_OPTIONS for dependencies.

Don't issue wrong warnings in options.mk files when the options are
handled in a .for loop.
2019-11-01 19:56:52 +00:00
rillig
5e88ef68e9 pkgtools/url2pkg: update to 19.3.5
Changes since 19.3.4:

Added the license names from R2pkg and texlive2pkg.
2019-10-28 20:17:24 +00:00
rillig
32b1197bb9 pkgtools/url2pkg: update to 19.3.4
Changes since 19.3.3:

The code that handles license names is the same for Python and Perl
modules.

Python packages that use distutils.extension can be handled. An example
package is devel/py-pysha3.

The DESCR file is filled from the package's README file.

The PLIST is generated with some comments providing further assistance.
2019-10-27 19:19:54 +00:00
rillig
7e9533246a pkgtools/url2pkg: move license handling from Python to common code
This way, the code is shared between Python modules, Perl modules, and
maybe in the future R packages.

No functional change.
2019-10-27 13:15:04 +00:00
rillig
48ebfd0f74 pkgtools/pkglint: update to 19.3.3
Changes since 19.3.2:

The rationale for variables like BROKEN, GCC_REQD and for direct
inclusion of builtin.mk files may span multiple lines, and it may end
with an empty comment line.
2019-10-26 11:43:36 +00:00
rillig
fe85bf5b22 pkgtools/pkglint: update to 19.3.2
Changes since 19.3.1:

* Pkglint no longer warns about a missing :Q modifier if there is also
  a :D modifier, since the latter hides the original variable value
  from the expression value.

* Variable names like .CURDIR are now allowed in the _VARGROUPS section.

* In dependency lines like "${_COOKIE.extract}:", pkglint no longer
  warns about the unknown target. No matter whether this is a file name
  or even a list of other targets, there's no chance for a typo here.

* If some dependencies are included conditionally, and the package
  Makefile and buildlink3.mk disagree, and the conditions depend on
  PKG_OPTIONS, pkglint outputs a helpful explanation.

* The check for including builtin.mk directly can be disabled by giving
  a reason in a comment at the end of the line.
2019-10-26 09:51:47 +00:00
rillig
e21dca09cc pkgtools/R2pkg: format source code 2019-10-25 19:00:16 +00:00
rillig
941232a552 pkgtools/R2pkg: remove unused code 2019-10-19 22:10:58 +00:00
rillig
4aeb97616f pkgtools/R2pkg: refactoring 2019-10-19 21:32:02 +00:00
rillig
d5d380541c pkgtools/R2pkg: refactoring, tests 2019-10-19 21:12:18 +00:00
rillig
330530e02e pkgtools/R2pkg: make license handling code simpler 2019-10-19 19:10:31 +00:00
rillig
9f3bbc66d1 pkgtools/R2pkg: create fewer temporary files 2019-10-19 18:47:59 +00:00
rillig
e1a3e3d515 pkgtools/R2pkg: code cleanup, use fewer temporary files 2019-10-19 18:43:51 +00:00
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