The NetBSD Project

CVS log for pkgsrc/pkgtools/url2pkg/files/url2pkg.py

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / url2pkg / files

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Jul 13 15:57:40 2025 UTC (16 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, HEAD
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +9 -2 lines
pkgtools/url2pkg: update to 23.6.0

Changes since 23.5.0:

Generate simpler package makefile for GitHub distfiles that are using a
tag but whose version number does not start with 'v'. Suggested by Greg
Troxel for geography/draco.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Jan 23 06:05:44 2025 UTC (21 months, 3 weeks ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +11 -9 lines
url2pkg: add very basic support for Python packages using pyproject.toml

Suggested by Greg Troxel via private mail.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu Jan 23 05:53:08 2025 UTC (21 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
url2pkg: fix order of standard package variables

Previously, pkglint warned that the GitHub variables were in the wrong
order.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Thu Jan 23 05:49:53 2025 UTC (21 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +2 -2 lines
url2pkg: fix WRKSRC for distfiles hosted on GitHub

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Jan 23 05:23:01 2025 UTC (21 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +8 -1 lines
url2pkg: don't use "refs/tags" as WRKSRC for packages hosted on GitHub

Suggested by Greg Troxel via private mail.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Jan 23 05:10:43 2025 UTC (21 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +36 -18 lines
url2pkg: clean up

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Jan 23 05:08:21 2025 UTC (21 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +2 -2 lines
url2pkg: fix unintended CVS keyword expansion

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Nov 24 07:21:58 2024 UTC (23 months, 3 weeks ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +6 -3 lines
pkgtools/url2pkg: fix distinfo generation for Rust packages

A Rust package needs a second invocation of 'bmake distinfo', as the
contents of its Cargo.lock file ends up as direct distfiles, not as
dependencies.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Nov 23 22:30:30 2024 UTC (23 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +20 -5 lines
pkgtools/url2pkg: update to 23.4.0

Changes since 23.3.3:

Place Rust dependencies in a separate file cargo-depends.mk.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Oct 26 19:05:45 2024 UTC (2 years ago) by schmonz
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +1 -2 lines
url2pkg: PYTHON_VERSIONS_INCOMPATIBLE=27 is the default now.

Bump version.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri May 10 06:33:04 2024 UTC (2 years, 6 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +9 -9 lines
pkgtools/url2pkg: use deterministic filesystem lookups

Some filesystems return the filenames in unsorted order, so sort each
result of a 'glob' call. Reported by Adam Ciarcinski.

When looking for candidates for a package in the pkgsrc tree, only
consider directories that contain a Makefile. One of the url2pkg tests
looks for pkglint, and while a 'cvs update' is running, there is an old
entry 'devel/pkglint' in the filesystem that made the test fail.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Jan 17 21:01:07 2024 UTC (2 years, 9 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +12 -1 lines
pkgtools/url2pkg: omit lowercase Perl dependencies, sort dependencies

Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Jan 17 18:33:43 2024 UTC (2 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -1 lines
pkgtools/url2pkg: skip p5-Module-Build for Module::Build Perl packages

That dependency is added implicitly whenever PERL5_MODULE_TYPE is
Module::Build.

Suggested by gdt@.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Jan 17 17:18:14 2024 UTC (2 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -1 lines
url2pkg: use TOOL_DEPENDS for Perl and Python modules

Suggested by gdt@.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Oct 30 07:12:49 2023 UTC (3 years ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -2 lines
url2pkg: use wheel.mk for Python packages

Bump version.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Aug 15 21:20:03 2023 UTC (3 years, 3 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -1 lines
url2pkg: clean and extract after adjusting the package

The first 'bmake extract' is done only to look at the files from the
package, to determine the dependencies.  In that stage, the package
cannot be built successfully.  To make the whole workflow less
surprising, install the auto-detected dependencies before leaving the
rest of the work to the human package maintainer.  This means that
running url2pkg produces more output and may take significantly more
time, but that time would be spent anyway later, so it's a net win.

Suggested by gdt@.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Aug 13 21:19:02 2023 UTC (3 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +19 -13 lines
url2pkg: update to 23.2.0

Changes since 23.1.1:

Resolve dependencies from Python modules in more cases.  Suggested by
Greg Troxel for py-slixmpp.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Jun 11 07:42:16 2023 UTC (3 years, 5 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2023Q2-base, pkgsrc-2023Q2
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -1 lines
url2pkg: for python modules, assume Python 3

Bump version.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:21:58 2023 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -2 lines
url2pkg: update to 23.1.0

Changes since 22.4.0:

Be more user-friendly when being passed a URL without version number.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Jan 22 18:58:45 2023 UTC (3 years, 9 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -2 lines
pkgtools/url2pkg: update to 22.4.0

Changes since 22.2.1:

In packages that use CMake, no longer set USE_CMAKE=yes but instead
include the build.mk file.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Aug 26 20:11:35 2022 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +8 -9 lines
pkgtools/url2pkg: clean up Globals.pkgsrc_license

Having a nested function accessing nonlocal variables was more
complicated to understand than the straight-forward copy-and-paste code.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Jul 16 09:16:50 2022 UTC (4 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +7 -2 lines
url2pkg: disable resuming transfers when fetching distfiles

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.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Jul 16 08:59:38 2022 UTC (4 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -2 lines
url2pkg: split support files for Python distutils and setuptools

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.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Feb 8 20:48:09 2022 UTC (4 years, 9 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +5 -5 lines
url2pkg: make code for analyzing CPAN URLs simpler

No functional change.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Feb 6 21:07:44 2022 UTC (4 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +27 -2 lines
url2pkg: add support for metacpan.org URLs

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Feb 6 20:08:49 2022 UTC (4 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +25 -8 lines
url2pkg: for Python packages, prefix directory name with 'py-'

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Feb 6 18:42:26 2022 UTC (4 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +23 -13 lines
url2pkg: allow url2pkg to be run from a category directory as well

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.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Feb 6 18:04:50 2022 UTC (4 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -2 lines
url2pkg: only accept a single URL as command line argument

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Feb 6 18:00:08 2022 UTC (4 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +33 -27 lines
url2pkg: extract code for analyzing the distfile URL

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.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Feb 6 17:11:37 2022 UTC (4 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -4 lines
url2pkg: add type annotation for usage

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Jan 1 15:29:14 2022 UTC (4 years, 10 months ago) by rillig
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +25 -2 lines
url2pkg: improve MASTER_SITES and HOMEPAGE for PyPI packages

https://mail-index.netbsd.org/tech-pkg/2021/12/31/msg025908.html

Bump version.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Jan 1 14:04:11 2022 UTC (4 years, 10 months ago) by rillig
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +7 -7 lines
url2pkg: remove interactivity

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.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Nov 14 09:20:15 2021 UTC (5 years ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +11 -3 lines
pkgtools/url2pkg: update to 21.3.0

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.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue May 25 17:56:24 2021 UTC (5 years, 5 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2 lines
url2pkg: fix dependency pattern for buildlink3 Python dependencies

This includes the PYPKGPREFIX for Python dependencies, whether or not
they use buildlink3.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue May 25 17:44:08 2021 UTC (5 years, 5 months ago) by rillig
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +10 -9 lines
url2pkg: generate proper package name for Python dependencies

Reported by Brook Milligan via private mail.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue May 25 17:14:44 2021 UTC (5 years, 5 months ago) by rillig
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +99 -51 lines
url2pkg: break long lines, no functional change

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun May 23 16:27:39 2021 UTC (5 years, 5 months ago) by rillig
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +5 -4 lines
url2pkg: update to 21.1.0

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.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Oct 17 22:39:01 2020 UTC (6 years ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +28 -5 lines
pkgtools/url2pkg: update to 20.3.0

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

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Nov 18 07:50:51 2019 UTC (6 years, 11 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +15 -3 lines
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.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Nov 14 20:03:47 2019 UTC (7 years ago) by rillig
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -2 lines
pkgtools/url2pkg: update to 19.3.6

Changes since 19.3.5:

No longer print a stack trace when Ctrl+C is pressed.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Oct 28 20:17:24 2019 UTC (7 years ago) by rillig
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +63 -15 lines
pkgtools/url2pkg: update to 19.3.5

Changes since 19.3.4:

Added the license names from R2pkg and texlive2pkg.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Oct 27 19:19:55 2019 UTC (7 years ago) by rillig
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +43 -7 lines
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.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Oct 27 13:15:04 2019 UTC (7 years ago) by rillig
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +55 -6 lines
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.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Oct 13 08:48:23 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -10 lines
pkgtools/url2pkg: remove unnecessary update_vars field

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Oct 12 17:38:16 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +40 -40 lines
pkgtools/url2pkg: rename type Url2Pkg to Globals

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Oct 12 17:28:44 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +123 -82 lines
pkgtools/url2pkg: fix type hinting declarations

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Oct 7 09:28:13 2019 UTC (7 years, 1 month ago) by prlw1
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
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.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Oct 6 12:50:23 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -1 lines
pkgtools/url2pkg: refer to R2pkg for creating R packages

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Oct 6 08:24:18 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +20 -25 lines
pkgtools/url2pkg: improve determining WRKSRC

For setting WRKSRC, only the directories in WRKDIR are relevant, not the
files.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Oct 6 05:53:00 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -4 lines
pkgtools/url2pkg: fix version tag detection

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Oct 5 22:02:32 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
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.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Oct 5 21:05:50 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +40 -41 lines
pkgtools/url2pkg: clean up path handling

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Oct 5 19:59:04 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +9 -14 lines
pkgtools/url2pkg: clean up code

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Oct 5 19:24:35 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +22 -22 lines
pkgtools/url2pkg: add test for main function

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Oct 5 18:00:09 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +95 -66 lines
pkgtools/url2pkg: fixed migration of Python packages from GitHub to PyPI

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Oct 5 12:22:51 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -6 lines
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.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Oct 5 11:02:30 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +86 -64 lines
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

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Oct 4 22:26:34 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +349 -327 lines
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.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Oct 3 23:02:59 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +106 -97 lines
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.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Oct 3 18:28:29 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
pkgtools/url2pkg: ignore commented variables

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Oct 3 16:43:58 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -3 lines
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.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Oct 3 16:32:47 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +24 -10 lines
pkgtools/url2pkg: add BUILDLINK_API_DEPENDS and BUILDLINK_DEPENDS

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Oct 3 14:48:48 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -7 lines
pkgtools/url2pkg: remove leftover debug print statement

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Oct 3 12:52:54 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +23 -19 lines
pkgtools/url2pkg: improve Python implementation

* verbose mode no longer crashes
* licenses and other variables are copied to the package Makefile
* several more automatic tests

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Oct 3 09:37:41 2019 UTC (7 years, 1 month ago) by rillig
Branches: MAIN
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.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>