summaryrefslogtreecommitdiff
path: root/pkgtools/url2pkg
AgeCommit message (Collapse)AuthorFilesLines
2022-08-26pkgtools/url2pkg: make distutils.version.LooseVersion more completerillig1-3/+15
For the benefit of wip/py-torch.
2022-08-26pkgtools/url2pkg: clean up Globals.pkgsrc_licenserillig1-8/+7
Having a nested function accessing nonlocal variables was more complicated to understand than the straight-forward copy-and-paste code.
2022-08-25pkgtools/url2pkg: add support for distutils.errorsrillig4-1/+36
Needed for geography/py-maxmindb.
2022-08-25pkgtools/url2pkg: fix line endsrillig9-114/+114
2022-08-25pkgtools/url2pkg: support Python with setuptools.command.testrillig4-4/+22
Needed for www/py-pook 1.0.2.
2022-07-26url2pkg: clean up package Makefilerillig1-2/+3
Start each shell command in a new line. This makes it easier to find the 'for' that corresponds to the 'done', especially since the 'done' could also be started by a 'while' or an 'until'. No functional change.
2022-07-16url2pkg: disable resuming transfers when fetching distfilesrillig1-2/+7
Resuming the transfer only works if there already is a distinfo file, as otherwise the correct size of the file is not known. This prevents these warnings from mk/fetch/fetch: > fetch: ``-r'' requires ``-f distinfo''. > fetch: Falling back to non-resume fetch.
2022-07-16url2pkg: split support files for Python distutils and setuptoolsrillig16-76/+185
When url2pkg determines the metadata of a Python module, it had merged the two implementations for Python's distutils and setuptools, which made the code hard to understand. Split them again. Extend the support for setuptools, so that url2pkg correctly handles wip/pytorch; it still fails because pytorch does some Git stuff from inside setup.py, but that may be fixed later. Bump version to 22.2.0.
2022-06-30*: Revbump packages that use Python at runtime without a PKGNAME prefixnia1-2/+2
2022-06-28*: recursive bump for perl 5.36wiz1-1/+2
2022-02-08url2pkg: make code for analyzing CPAN URLs simplerrillig1-5/+5
No functional change.
2022-02-06url2pkg: add support for metacpan.org URLsrillig2-8/+31
2022-02-06url2pkg: for Python packages, prefix directory name with 'py-'rillig2-9/+52
2022-02-06url2pkg: allow url2pkg to be run from a category directory as wellrillig3-18/+28
Previously, it was necessary to create the package directory, change into it and then run url2pkg from there. Since the name of the package directory usually corresponds to DISTNAME without the version number, all necessary data is readily available, so automate this. Update version to 21.4.2.
2022-02-06url2pkg: only accept a single URL as command line argumentrillig1-2/+2
2022-02-06url2pkg: extract code for analyzing the distfile URLrillig2-45/+50
In a few commits, this will allow url2pkg to be run from a category directory, thereby omitting the need to create the package directory manually. No functional change.
2022-02-06url2pkg: add type annotation for usagerillig1-4/+4
2022-01-01url2pkg: improve MASTER_SITES and HOMEPAGE for PyPI packagesrillig4-13/+32
https://mail-index.netbsd.org/tech-pkg/2021/12/31/msg025908.html Bump version.
2022-01-01url2pkg: test current behavior for PyPI downloadsrillig1-1/+30
2022-01-01url2pkg: remove interactivityrillig4-22/+12
In the first phase, url2pkg generates a minimal package Makefile, barely enough for downloading the distfile from the given URL. That part runs fully automated in almost all cases, so there is no need to invoke the editor at this point. After adjusting the package Makefile based on the downloaded and extracted distfile, url2pkg has done its job, so there is no reason to run the editor there as well. Bump version.
2021-11-14pkgtools/url2pkg: update to 21.3.0rillig3-16/+16
Changes since 21.1.0: When creating a package from a GitHub archive URL, make the generated package simpler and place the distfile in the main directory instead of using DIST_SUBDIR.
2021-11-14pkgtools/url2pkg: add test for overly complicated package definitionrillig2-4/+33
Seen in wip/netmask.
2021-05-25url2pkg: fix dependency pattern for buildlink3 Python dependenciesrillig2-5/+5
This includes the PYPKGPREFIX for Python dependencies, whether or not they use buildlink3.
2021-05-25url2pkg: generate proper package name for Python dependenciesrillig2-13/+14
Reported by Brook Milligan via private mail.
2021-05-25url2pkg: break long lines, no functional changerillig1-51/+99
2021-05-24*: recursive bump for perl 5.34wiz1-1/+2
2021-05-23url2pkg: update to 21.1.0rillig3-9/+9
Changes since 20.4.0: Fixed handling of GitHub archive URLs with extra slashes, such as https://github.com/org/proj/archive/refs/tags/1.0.0.tar.gz.
2021-05-23url2pkg: add test for GitHub URL that leads to wrong DISTNAMErillig1-1/+27
Reported by Brook Milligan via private mail.
2020-12-28pkgtools/url2pkg: bump version to 20.4.0 to match the upcoming branchrillig1-3/+2
2020-12-04Revbump packages with a runtime Python dep but no version prefix.nia1-1/+2
For the Python 3.8 default switch.
2020-10-17pkgtools/url2pkg: update to 20.3.0rillig3-12/+81
Changes since 20.2.0: Fixed detection for V2 Cargo.lock files. Patch provided by snow flurry via tech-pkg, slightly adjusted. The test case for Cargo.lock file detection had been incomplete and unrealistic. It has been extended to show the relevant section of a whole package. https://mail-index.netbsd.org/tech-pkg/2020/10/12/msg023897.html https://mail-index.netbsd.org/tech-pkg/2020/10/13/msg023901.html https://mail-index.netbsd.org/tech-pkg/2020/10/13/msg023902.html
2020-08-31*: bump PKGREVISION for perl-5.32.wiz1-1/+2
2020-06-28pkgtools/url2pkg: update version to 20.2.0rillig1-2/+2
No code changes. This is just to align the url2pkg version number with the upcoming branch name.
2020-05-18pytest from versioned dependsadam1-2/+3
2020-01-18all: migrate several HOMEPAGEs to httpsrillig1-2/+2
pkglint --only "https instead of http" -r -F With manual adjustments afterwards since pkglint 19.4.4 fixed a few indentations in unrelated lines. This mainly affects projects hosted at SourceForce, as well as freedesktop.org, CTAN and GNU.
2019-11-18pkgtools/url2pkg: add unit test for USE_TOOLSrillig1-1/+4
2019-11-18pkgtools/url2pkg: update to 19.3.7rillig3-6/+28
Changes since 19.3.6: Detect whether the package uses GNU Make, based on the top-level Makefile.
2019-11-14pkgtools/url2pkg: update to 19.3.6rillig2-4/+7
Changes since 19.3.5: No longer print a stack trace when Ctrl+C is pressed.
2019-10-28pkgtools/url2pkg: update to 19.3.5rillig3-19/+70
Changes since 19.3.4: Added the license names from R2pkg and texlive2pkg.
2019-10-27pkgtools/url2pkg: update to 19.3.4rillig7-25/+87
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-27pkgtools/url2pkg: move license handling from Python to common coderillig3-36/+87
This way, the code is shared between Python modules, Perl modules, and maybe in the future R packages. No functional change.
2019-10-13pkgtools/url2pkg: remove unnecessary update_vars fieldrillig2-17/+23
2019-10-12pkgtools/url2pkg: rename type Url2Pkg to Globalsrillig2-152/+152
2019-10-12pkgtools/url2pkg: fix type hinting declarationsrillig2-75/+116
2019-10-07Rename py-meson to meson.prlw12-4/+4
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-06pkgtools/url2pkg: update to 19.3.3rillig2-8/+5
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-06pkgtools/url2pkg: remove Perl implementationrillig2-1277/+0
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-06pkgtools/url2pkg: update man pagerillig1-46/+18
2019-10-06pkgtools/url2pkg: refer to R2pkg for creating R packagesrillig2-2/+16
2019-10-06pkgtools/url2pkg: improve determining WRKSRCrillig2-37/+64
For setting WRKSRC, only the directories in WRKDIR are relevant, not the files.