fritzkink
2023-12-25 92403c4d44b8479a50eb92bbf9311fa929ee3804
transforms/generate-cleanup
@@ -80,13 +80,15 @@
<transform dir file link hardlink path=usr\/lib\/python3\.\d+\/vendor-packages\/[^/]+\.dist-info/RECORD$ -> drop>
# Strip Python 3 cpython ABI extension
<transform file -> \
   edit path "^(usr/lib/python3\.\d+/vendor-packages/(.*/)?[^/]+)\.cpython-3\d+[dmu]*\.so$" "\1.so">
   edit path "^(usr/lib/python3\.\d+/vendor-packages/(.*/)?[^/]+)\.cpython-3\d+\.so$" "\1.so">
# Strip Python 3 abi3 ABI extension
<transform file -> \
   edit path "^(usr/lib/python3\.\d+/vendor-packages/(.*/)?[^/]+)\.abi3\.so$" "\1.so">
# Replace Python version by $(PYVER)
<transform dir file link hardlink -> \
   edit path "^(usr/bin/[^/]+-)3\.\d+$" "\1$!(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 -> \
@@ -115,9 +117,9 @@
#    edit target "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)">
<transform dir file link hardlink -> \
   edit path "$(HUMAN_VERSION)" "$!(HUMAN_VERSION)">
   edit path "$(HUMAN_VERSION_RE)" "$!(HUMAN_VERSION)">
<transform dir file link hardlink -> \
   edit target "$(HUMAN_VERSION)" "$!(HUMAN_VERSION)">
   edit target "$(HUMAN_VERSION_RE)" "$!(HUMAN_VERSION)">
<transform dir file link hardlink -> \
   edit path "$(COMPONENT_RE_VERSION)" "$!(COMPONENT_VERSION)">