Commit graph

5564 commits

Author SHA1 Message Date
rillig
6a4fb76594 pkgtools/pkglint4: update to 4.193.2
Changes since 4.193.1:

Disabled unreliable check about possible typos in variable names. For
example, in pkgtools/url2pkg the variable TEST_DEPENDS was flagged even
though it is well-known.

Disabled unreliable check about unknown shell commands. For example, in
pkgtools/pkglint4 all commands from ${PREFIX} are ok, but were still
flagged.
2019-11-18 08:06:58 +00:00
rillig
433c1aee4f pkgtools/url2pkg: add unit test for USE_TOOLS 2019-11-18 07:56:02 +00:00
rillig
6acf204db0 pkgtools/url2pkg: update to 19.3.7
Changes since 19.3.6:

Detect whether the package uses GNU Make, based on the top-level
Makefile.
2019-11-18 07:50:51 +00:00
rillig
2fd8141705 pkgtools/pkglint: be strict about invalid doc/CHANGES entries 2019-11-17 02:55:56 +00:00
rillig
0e893646a7 pkgtools/pkglint4: update to 4.193.1
Changes since 4.193.0:

Don't mark BUILDLINK_TRANSFORM.${OPSYS} as deprecated.
2019-11-17 02:54:10 +00:00
rillig
20fd8730b0 pkgtools/pkglint: update to 19.3.8
Changes since 19.3.7:

Made check for doc/CHANGES file stricter. The check now catches entries
for added packages that are missing the word "version".
2019-11-17 02:06:01 +00:00
rillig
3fab179c40 pkgtools/pkglint: update to 19.3.7
Changes since 19.3.6:

Improved variable value alignment.

Fixed wrong warning about comment lines that were interpreted as shell
commands before.

Warn when the first category of a package doesn't correspond to the
path in the filesystem. This affects 603 packages.

No longer warn about deprecated BUILDLINK_TRANSFORM.${OPSYS}. The
deprecation warning was meant for BUILDLINK_TRANSFORM.${pkgbase}, but
since pkglint cannot distinguish between these, the warnings were wrong.
2019-11-17 01:26:25 +00:00
wiz
b0b2569805 evieext: remove, it's part of xorgproto now
Noted by taca.
2019-11-15 09:18:16 +00:00
rillig
7f67b9fbbe pkgtools/url2pkg: update to 19.3.6
Changes since 19.3.5:

No longer print a stack trace when Ctrl+C is pressed.
2019-11-14 20:03:47 +00:00
triaxx
4427cb5aec pkg_chk: add NO_CHECKSUM= yes to appease pkglint 2019-11-10 10:30:50 +00:00
triaxx
61e73ca199 pkg_chk: fix PR pkg/54675
Some OS (e.g. Arch Linux) do not have hostname in their base set of
packages.

pkgsrc changes:
---------------
  * Replace $(hostname) by $(uname -n).

Thanks jperkin@!
2019-11-10 10:25:43 +00:00
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
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
rillig
13d86735e6 pkgtools/url2pkg: clean up code 2019-10-05 19:59:04 +00:00
rillig
ef574bcc42 pkgtools/url2pkg: add test for main function 2019-10-05 19:24:35 +00:00
rillig
dda3ba4427 pkgtools/url2pkg: fixed migration of Python packages from GitHub to PyPI 2019-10-05 18:00:09 +00:00
rillig
69161ba6da pkgtools/url2pkg: ignore URL protocol
The MASTER_SITE_GNU still uses http:// for downloading the distfiles.
Since typical URLs today use https://, ignore the protocol when matching
the given URL against the MASTER_SITE_* variables from mk/fetch/sites.mk.
2019-10-05 12:22:51 +00:00
rillig
ee09a14fc0 pkgtools/url2pkg: improve URL handling for SourceForge
* Improved handling of SourceForge URLs
* Fixed wrong HOMEPAGE for URLs composed from MASTER_SITE_*
* Improved the existing tests and added some more
2019-10-05 11:02:30 +00:00
rillig
20c0cec0e4 pkgtools/url2pkg: reorganize the Python implementation
The previous version of the code was largely work in progress. Now the code
has been grouped and sorted. A few bugs have been fixed on the way:

* If a PKGNAME had been added in the interactive editor session, it had
  been overwritten before. This was because of a typo.

* The whole code has been grouped into classes, to clearly show the
  dependencies between the parts.

* Generation of the initial Makefile has been split into smaller methods,
  to make them individually testable and to reduce the scope of the local
  variables.

* When creating a package in a directory pkgsrc/local/*, "local" is not
  used as the primary category of the package.

* GNU configure and other configure scripts are also detected if they are
  not placed directly in WRKSRC.

* Packages that contain *.po files will have USE_PKGLOCALEDIR=yes in the
  package Makefile. Previously, only *.mo or *.gmo files triggered this
  variable.

* When PKGNAME is based on DISTNAME, it is only written to the package
  Makefile if there is an actual prefix or transformation.
2019-10-04 22:26:34 +00:00
rillig
1dad43e5ec pkgtools/url2pkg: keep DESCR and PLIST, fix GConf detection
The files DESCR and PLIST are no longer overwritten. They are only
created if they don't exist.

The GConf schemas detection had written the include line too often, once
for every schema file.
2019-10-03 23:02:59 +00:00
rillig
9f6159e636 pkgtools/url2pkg: ignore commented variables 2019-10-03 18:28:29 +00:00
rillig
a79314833e pkgtools/url2pkg: use filenames relative to WRKSRC
Before this change, the Python implementation had written absolute paths
to PKGCONFIG_OVERRIDE, which didn't make sense.
2019-10-03 16:43:58 +00:00
rillig
df89c4576a pkgtools/url2pkg: add BUILDLINK_API_DEPENDS and BUILDLINK_DEPENDS 2019-10-03 16:32:47 +00:00
rillig
6723bb6cd0 pkgtools/url2pkg: remove leftover debug print statement 2019-10-03 14:48:48 +00:00
rillig
35fa65524e pkgtools/url2pkg: improve Python implementation
* verbose mode no longer crashes
* licenses and other variables are copied to the package Makefile
* several more automatic tests
2019-10-03 12:52:54 +00:00
rillig
b1d365d642 pkgtools/url2pkg: update to 19.3.1
Changes since 19.3.0:

* Added an alternative url2pkg implementation in Python that will
  eventually replace the Perl implementation. Reasons are:

  * Perl is cumbersome to type with all the special characters
  * Perl does not even have a Boolean type, after all the years
  * Perl cannot check the number of arguments passed to subs
  * Python does not suffer from the above limitations
  * Python is available on as many platforms as Perl

* The two implementations will be kept in sync until all the features
  have made it into the Python implementation, and everything has
  automatic tests.

* Added the -v or --verbose command line option.
2019-10-03 09:37:40 +00:00
rillig
ae18c3f6b7 pkgtools/url2pkg: fix option handling 2019-10-03 09:31:36 +00:00
rillig
44572afbfd pkgtools/url2pkg: small adjustments
* Fixed copy-and-paste typo in MakeMaker Perl module.

* Added -v command line option.
2019-10-02 15:57:37 +00:00
rillig
0b4c862c88 pkgtools/pkglint: update to 19.3.0
Changes since 5.7.24:

* There is no need to ask the dummy MAINTAINER from url2pkg whether
  committing changes is ok.

* When autofixing a condition like !empty(PKGPATH:Mliteral), don't
  generate unnecessary parentheses around ${PKGPATH} == literal.

* In a _VARGROUPS section, the public variables should be listed
  before the private variables, to put important things first.

* When pkglint suggests to be run again with the -e, -fs or -F options,
  repeat the whole command line, to allow for copy-and-paste.

* The checks for PKGPATH are fixed and enhanced. It is not a relative
  path like in ../../category/package, but relative to the pkgsrc root.

* Unintended file globbing in sed commands such as s,.*,any, gets a
  warning.

* MASTER_SITES should normally end with a slash, in rare cases an
  equals sign or a colon are correct, too.

* Detect redundant directories in INSTALLATION_DIRS.
2019-10-01 21:37:59 +00:00
rillig
b38d9bdba3 pkgtools/url2pkg: update to 19.3.0
Changes since 2.37:

* Test dependencies in Perl MakeMaker modules are copied to the
  package Makefile.

* Unknown dependencies in Perl MakeMaker modules no longer abort url2pkg
  but instead are added as "# TODO" dependencies to the package Makefile.

* The license from Perl MakeMaker and Python modules is copied to the
  package Makefile.

* The build dependencies, COMMENT and HOMEPAGE from Python setuptools
  modules are copied to the package Makefile.

* No more "undefined $url" when running url2pkg in a directory that
  already has a package Makefile and is extracted.
2019-10-01 19:41:23 +00:00
rillig
3d927c90d8 pkgtools/url2pkg: update to 2.37
Changes since 2.36:

* Fixed generation of the package Makefile. Due to a typo, the line that
  included bsd.pkg.mk had been omitted, making any generated package fail.
2019-10-01 18:43:46 +00:00
bsiegert
866c85b303 Revbump all Go packages after 1.12.10 update.
ok wiz@ for PMC
2019-09-26 20:10:39 +00:00
jperkin
c0b827e822 pkgin: Update to 0.13.0.
## Version 0.13.0 (2019-09-24)

 * "pkgin upgrade" now upgrades all packages instead of only keep packages, and
   essentially replaces "pkgin full-upgrade".  Selective upgrades have always
   been risky and provide no benefit, especially in light of refresh support.
   "pkgin full-upgrade" is retained for compatibility but marked as deprecated.
 * Refresh the local package repository when a forced update is requested, so
   that a failed update can be repaired easily.
 * Switch NetBSD default repository from ftp.netbsd.org to cdn.netbsd.org.
2019-09-24 12:57:22 +00:00
rillig
0c496b4733 pkgtools/libnbcompat: fix regular expression literals in AWK program
gawk: nbcompat.awk:5: warning:
regexp escape sequence `\#' is not a known regexp operator
2019-09-13 20:23:50 +00:00
rillig
89c2624ba0 pkgtools/texlive2pkg: fix pkglint warning 2019-09-13 13:45:22 +00:00
rillig
3ac301ed80 pkgtools/texlive2pkg: fix shell quoting, update to 1.8
Before this fix, running "texlive2pkg --help" in a directory that
contains a file named "d" would output only "d" instead of "[-d]".
2019-09-13 13:43:30 +00:00
rillig
06f9c49ddb pkgtools/url2pkg: refactor to group the subs that modify Makefile lines 2019-09-13 13:31:39 +00:00
rillig
8bc8671851 pkgtools/url2pkg: use MetaCPAN HOMEPAGE for Perl modules 2019-09-13 06:22:33 +00:00
rillig
fb81fe5b18 pkgtools/url2pkg: refactor code for determining WRKSRC into separate sub 2019-09-13 05:38:27 +00:00
rillig
b689ab5ca7 pkgtools/url2pkg: fix typo, left over from manual testing 2019-09-13 05:19:27 +00:00
rillig
58d2d50c2a pkgtools/pkglint: update to 5.7.24
Changes since 5.7.23:

* Improved the _VARGROUPS check for ignored variables
* Removed wrong warnings for variable expressions like ${VAR:Dyes:Uno}
* Used correct terminology for the :Q modifier (it's not an operator)
2019-09-12 21:15:48 +00:00
rillig
98ce03c078 pkgtools/url2pkg: replace CRLF with LF 2019-09-12 20:02:07 +00:00
rillig
68987c00b5 pkgtools/url2pkg: update to 2.36
Changes since 2.35:

* Added support for Module::Build Perl modules.
2019-09-12 18:23:00 +00:00
rillig
5467eed239 pkgtools/url2pkg: refactoring: don't use experimental smartmatch 2019-09-12 05:56:59 +00:00
rillig
dbcbecdd52 pkgtools/url2pkg: claim maintainership 2019-09-12 05:49:03 +00:00
rillig
8c03e5a125 pkgtools/url2pkg: strip leading v from distfile version number 2019-09-12 05:45:34 +00:00
rillig
9afe00458e pkgtools/url2pkg: update to 2.35
Changes since 2.34:

* Python packages get a PKGNAME variable containing PYPKGPREFIX
* Refactoring: merged duplicate code for reading dependencies
2019-09-12 04:18:28 +00:00
rillig
70d0f3ed60 pkgtools/url2pkg: split Perl package code into separate subs 2019-09-12 02:49:33 +00:00
rillig
46c30b6289 pkgtools/url2pkg: discover test cases automatically 2019-09-12 02:35:07 +00:00
rillig
5cc81c5b85 pkgtools/url2pkg: update to 2.34
Changes since 2.33:

* code cleanup in MakeMaker.pm
* don't create a PLIST for Perl packages

* allow Python dependencies from setup.py to use spaces around >=
* properly indented Python code according to PEP 8
* added mock for setuptools.find_package
* only try to migrate a package from GitHub to PyPI if it is really
  a Python package on GitHub
2019-09-11 05:25:55 +00:00
nia
83beeda6cf pkg_select: Add networking libs on SunOS 2019-09-09 10:03:21 +00:00
maya
45f14a7175 url2pkg 2.33: fix cargo packaging typo.
We don't have a third match to the regex.
2019-09-09 08:08:02 +00:00
rillig
38f0aa6a18 pkgtools/pkglint: update to 5.7.23
Changes since 5.7.22:

* Added a warning for lines that look empty but are actually follow-up
  lines from a previous line.

* Added notes for unusual placement of the continuation backslash. It
  should always be preceded by a single space or tab, or be in column
  73.

* Improved check for needlessly complicated !empty(PKGPATH:Mcat/pkg)
  that is transformed into the simpler ${PKGPATH} == cat/pkg, even if
  the package name contains hyphens, dots, plus or slashes.

* Added check for the _VARGROUPS section since that section contains
  many redundancies that can easily be checked. For example, in
  mk/compiler/gcc.mk the _VARGROUPS section is 67 lines long and
  contains far more than 100 variables. It's tedious to manually check
  this file for internal consistency. That's better left to pkglint.

* The empty variable is no longer flagged as "used but not defined".
  It appears in expressions like ${:Ustring}.

* When --source is combined with --explain, don't unnecessarily
  repeat the source code for a single line if there are several
  diagnostics. Instead, even omit the empty line between the diagnostics
  for the same line.
2019-09-08 22:47:47 +00:00
nia
dcb43af864 pkg: needs pthreads.
fixes build on netbsd-9.
2019-09-07 23:30:45 +00:00
nia
6610a0da5e pkg_select: remove Werror, helps building on netbsd-current 2019-09-07 23:18:57 +00:00
adam
435af01a8b Changed PYTHON_VERSIONS_INCOMPATIBLE to PYTHON_VERSIONS_ACCEPTED; needed for future Python 3.8 2019-09-02 13:19:35 +00:00
nia
4061210488 Switch packages using GLUT to FreeGLUT.
Start building FreeGLUT with GLUT compatibility on.

- GLUT's maintainance state is much worse than FreeGLUT's, with no
  substanital commits since 2011.
- GLUT can no longer be consider a core component of Mesa or X11.
- Nobody except us seems to be using it...

Other vendors still shipping GLUT:
- GoboLinux, T2 SDE, PLD Linux

Revbump packages using GLUT or freeglut by default.
2019-08-30 17:01:32 +00:00
nia
5ba9a08f9e x11-links-1.30: Add xproxymngproto.pc 2019-08-29 10:59:00 +00:00
gdt
e0be187af7 pkgtools/pkg_rolling-replace: Update to 0.24.8
Be more tolerant of not finding PKGPATH, and basically attempt to skip
the package rather than treating it as a fatal error.  (This was a
stray edit that I've been running with for a while.)
2019-08-27 19:30:36 +00:00
markd
361a8eacce texlive2pkg: update to 1.7
add option to derive doc tarball path from the base package path.
allow tarball path to be a url.
2019-08-27 06:21:18 +00:00
rillig
00b8c55b94 pkgtools/pkglint: update to 5.7.22
Changes since 5.7.21:

* The files from wip/mk do not belong to the main pkgsrc infrastructure.
  Therefore, when loading the package Makefile to look for defined but
  unused variables, parsing doesn't stop in these files.
2019-08-25 21:47:11 +00:00
rillig
397e7ee2b6 pkgtools/pkglint: update to 5.7.22
Changes since 5.7.21:

* The files from wip/mk do not belong to the main pkgsrc infrastructure.
  Therefore, when loading the package Makefile to look for defined but
  unused variables, parsing doesn't stop in these files.
2019-08-25 21:44:37 +00:00
rjs
f57dc4ec7f x11-links-1.29: Add libxshmfence. 2019-08-23 15:18:39 +00:00
nia
9a362856a2 x11-links-1.28: Add dri3proto 2019-08-22 13:01:14 +00:00
nia
772c540667 x11-links-1.27: Add libXfont2 2019-08-22 12:35:37 +00:00
rillig
269a5efe8e pkgtools/pkglint: update to 5.7.21
Changes since 5.7.20:

* PKG_OPTIONS that are handled using patterns are correctly identified.

* Simple R packages should follow the canonical variable order.

* Fixed some edge cases for aligning variable assignments.

* Improved detection of allowed values for USE_LANGUAGES.
2019-08-21 16:45:16 +00:00
hauke
6febf13e03 Bump the _other_ version, since the sources have changed. 2019-08-21 13:22:10 +00:00
hauke
29ff1771b9 Properly preserve patch comments when working with a readonly pkgsrc tree.
Do not prefix an absolute path argument with $cwd.
Declare a handful of variables, and 'use warnings'.

Fixes PR pkg/54485
2019-08-21 13:00:06 +00:00
nia
3df6869755 x11-links-1.26: Add libsync.h from libdrm 2019-08-21 11:51:46 +00:00
nia
dda183b23d x11-links-1.25: Add xcb-dri3.pc 2019-08-21 09:48:41 +00:00
rillig
a125668415 pkgtools/url2pkg: rewrite regular expression to avoid confusing mcedit 2019-08-18 21:04:37 +00:00
rillig
22c2dd5000 pkgtools/url2pkg: add a few more tests 2019-08-18 18:02:48 +00:00
rillig
b03b08976f pkgtools/url2pkg: document and clean up the code 2019-08-18 17:34:13 +00:00
rillig
3cd16da354 pkgtools/url2pkg: rename helper functions 2019-08-18 16:18:04 +00:00
rillig
d4af333aea pkgtools/url2pkg: migrate from GitHub to PyPI if necessary
Suggested by gdt@ via private mail.
2019-08-18 16:09:01 +00:00
rillig
8a91656475 pkgtools/url2pkg: move chdir into the main test function 2019-08-18 13:59:38 +00:00
rillig
f95f30668b pkgtools/url2pkg: consistently use double quotes for string literals 2019-08-18 13:49:13 +00:00
rillig
b336a24430 pkgtools/url2pkg: add secondary category for Perl and Python modules 2019-08-18 13:32:21 +00:00
rillig
ffd7a81520 pkgtools/url2pkg: determine the dependencies of Python modules 2019-08-18 11:26:33 +00:00
rillig
e31d74bb59 pkgtools/url2pkg: remove unnecessary local variable 2019-08-18 07:51:40 +00:00
rillig
53e0f2f323 pkgtools/url2pkg: update SourceForge and GitHub to use https only 2019-08-18 07:47:58 +00:00
rillig
f1c6a5b7ac pkgtools/url2pkg: rename magic subroutines
There's nothing magic about generating a package Makefile based on the
extracted distfile.
2019-08-18 07:10:32 +00:00
rillig
34d88b9637 pkgtools/url2pkg: extract code for writing lines to file 2019-08-18 06:56:20 +00:00
rillig
debcaff424 pkgtools/url2pkg: add abstraction for variable assignments 2019-08-18 06:41:16 +00:00
maya
8090649252 url2pkg 2.31:
maya:
detect meson

rillig:
refactor generation of Makefiles
rename local variables to match pkgsrc counterparts
make print_section simpler to use
run editor with line number only if supported
refactoring to make Makefile generation testable
make dist_subdir a local variable
initialize dist_subdir early
fix indentation
fix for p5-HTML-Quoted
fix parsing of mk/fetch/sites.mk
2019-08-18 06:23:19 +00:00
rillig
c8165cd5fe pkgtools/url2pkg: refactor generation of Makefiles
By generating the content of the files before actually writing it to
disk, the code becomes easier to test.
2019-08-18 06:10:38 +00:00