From 00fdc1139b715cf3833e0c7fda58e0e112e5be2f Mon Sep 17 00:00:00 2001 From: Marcel Telka <marcel@telka.sk> Date: Sun, 07 Apr 2024 17:16:14 +0200 Subject: [PATCH] python/rapidfuzz: update to 3.8.0 --- transforms/generate-cleanup | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/transforms/generate-cleanup b/transforms/generate-cleanup index a357366..13bc742 100644 --- a/transforms/generate-cleanup +++ b/transforms/generate-cleanup @@ -62,6 +62,38 @@ edit path "^(usr/perl5/.*/)i86pc-solaris-(64int|thread-multi-64)/" "\1$!(PERL_ARCH)/"> <transform dir file link hardlink -> \ edit path "^(usr/perl5/(vendor_perl/)?)5\.[^/]*" "\1$!(PERLVER)"> +<transform dir file link hardlink \ + path=usr/perl5/.*/perllocal\.pod$ -> drop> +<transform dir file link hardlink \ + path=usr/perl5/.*/\.packlist$ -> drop> + +# Python support +<transform dir file link hardlink path=usr\/lib\/python2\.7\/.*\.pyc$ -> drop> +<transform dir file link hardlink path=usr\/lib\/python2\.7\/.*\.pyo$ -> drop> +<transform dir file link hardlink path=usr\/lib\/python3\.\d+\/(.*\/)?__pycache__\/ -> drop> +# Drop backports/__init__.py because all supported Python versions are PEP 420 +# compliant so this file is no longer needed. +# See https://github.com/jaraco/backports.entry_points_selectable/issues/5 +<transform dir file link hardlink path=usr\/lib\/python3\.\d+\/vendor-packages\/backports\/__init__\.py$ -> drop> +# PEP 627 made the RECORD file optional. Since we do not need the file and it +# could contain inaccurate info we simply drop it. +<transform dir file link hardlink path=usr\/lib\/python3\.\d+\/vendor-packages\/[^/]+\.dist-info/RECORD$ -> drop> +# Replace Python version by $(PYV) +<transform file -> \ + edit path "^(usr/lib/python3\.\d+/vendor-packages/(.*/)?[^/]+\.cpython-)3\d+\.so$" "\1$!(PYV).so"> +# Replace Python version by $(PYVER) +<transform file path=usr/bin/[^/]+-3\.\d+$ -> default tmp.fmri "$(COMPONENT_FMRI)"> +<transform file tmp.fmri=.*runtime/python -> edit path "^(usr/bin/[^/]+-)3\.\d+$" "\1$!(PYVER)"> +<transform file tmp.fmri=.*library/python/ -> edit path "^(usr/bin/[^/]+-)3\.\d+$" "\1$!(PYVER)"> +<transform file tmp.fmri=.* -> delete tmp.fmri .*> +<transform dir file link hardlink -> \ + edit path "^(usr/lib/python3\.\d+/vendor-packages/[^/]+-py)3\.\d+(\.egg-info(/.*)?)$" "\1$!(PYVER)\2"> +<transform dir file link hardlink -> \ + edit path "^(usr/lib/python3\.\d+/vendor-packages/[^/]+-py)3\.\d+(-nspkg\.pth)$" "\1$!(PYVER)\2"> +<transform dir file link hardlink -> \ + edit path "^(usr/lib/python)3\.\d+(/.*)?$" "\1$!(PYVER)\2"> +<transform dir file link hardlink -> \ + edit path "^(usr/include/python)3\.\d+(/.*)?$" "\1$!(PYVER)\2"> <transform dir file link hardlink -> \ edit target "/(sparcv9|amd64)$" "/$!(MACH64)"> @@ -84,6 +116,11 @@ # edit target "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)"> <transform dir file link hardlink -> \ + edit path "$(HUMAN_VERSION_RE)" "$!(HUMAN_VERSION)"> +<transform dir file link hardlink -> \ + edit target "$(HUMAN_VERSION_RE)" "$!(HUMAN_VERSION)"> + +<transform dir file link hardlink -> \ edit path "$(COMPONENT_RE_VERSION)" "$!(COMPONENT_VERSION)"> <transform dir file link hardlink -> \ edit target "$(COMPONENT_RE_VERSION)" "$!(COMPONENT_VERSION)"> -- Gitblit v1.9.3