python3-pyicu: updated to version 2.16

This commit is contained in:
2026-01-20 15:45:30 +00:00
parent 0a8db556be
commit ef501b6454
3 changed files with 16 additions and 46 deletions

View File

@@ -2,14 +2,13 @@ drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/python3.12/
drwxr-xr-x root/root usr/lib/python3.12/site-packages/
drwxr-xr-x root/root usr/lib/python3.12/site-packages/PyICU-2.14.dist-info/
-rw-r--r-- root/root usr/lib/python3.12/site-packages/PyICU-2.14.dist-info/LICENSE
-rw-r--r-- root/root usr/lib/python3.12/site-packages/PyICU-2.14.dist-info/METADATA
-rw-r--r-- root/root usr/lib/python3.12/site-packages/PyICU-2.14.dist-info/RECORD
-rw-r--r-- root/root usr/lib/python3.12/site-packages/PyICU-2.14.dist-info/WHEEL
-rw-r--r-- root/root usr/lib/python3.12/site-packages/PyICU-2.14.dist-info/top_level.txt
drwxr-xr-x root/root usr/lib/python3.12/site-packages/icu/
-rw-r--r-- root/root usr/lib/python3.12/site-packages/icu/__init__.py
drwxr-xr-x root/root usr/lib/python3.12/site-packages/icu/__pycache__/
-rw-r--r-- root/root usr/lib/python3.12/site-packages/icu/__pycache__/__init__.cpython-312.opt-2.pyc
-rwxr-xr-x root/root usr/lib/python3.12/site-packages/icu/_icu_.cpython-312-x86_64-linux-LIBC.so
-rwxr-xr-x root/root usr/lib/python3.12/site-packages/icu/_icu_.cpython-312-x86_64-linux-gnu.so
drwxr-xr-x root/root usr/lib/python3.12/site-packages/pyicu-2.16.dist-info/
-rw-r--r-- root/root usr/lib/python3.12/site-packages/pyicu-2.16.dist-info/METADATA
-rw-r--r-- root/root usr/lib/python3.12/site-packages/pyicu-2.16.dist-info/RECORD
-rw-r--r-- root/root usr/lib/python3.12/site-packages/pyicu-2.16.dist-info/WHEEL
-rw-r--r-- root/root usr/lib/python3.12/site-packages/pyicu-2.16.dist-info/top_level.txt

View File

@@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/jmq.pub
RWTTPlFarK9CxHUC6hMOqShxpD2B2TYB1Nk1cu2ngeDWZ/vpXppIiWGMwsiuG69H67iz5erG1EA5sp4TQ8OGYgEArMxo+uFeSwM=
SHA256 (Pkgfile) = 10db831b49e1f38cc87c8aad12eaad528bcd68429e21308646334fe84541bb32
SHA256 (.footprint) = 7329756d0712aca02c746dd448ae37ad457c2c89959278e34aa06907c79eb8a0
SHA256 (pyicu-v2.14.tar.gz) = 306ab7071e075937ecd79ee1c15ec4a702368b67ad1ddc05d2950b3e20ef9d33
RWTTPlFarK9CxCoqHg3W7kff4vXQIko4cM6HF6PDLLPMMDHl5qw75kjI+8RPTBN1ZYXsEAvcoNP7B0C5hDxMWGsLeVeBCMvNIAo=
SHA256 (Pkgfile) = d258356ae62ad940b75526985f0519eb837af0f6c4587815c20a0574576e9d4b
SHA256 (.footprint) = 345d731de91486b23eef767f1d7394616355594be6fb800e0b6671208bacd9fb
SHA256 (pyicu-2.16.tar.gz) = 42b3a8062e3b23e927ca727e6b5e1730d86c70279834e4887152895d2eb012d9

View File

@@ -4,44 +4,15 @@
# Depends on: python3-build icu
name=python3-pyicu
version=2.14
version=2.16
release=1
source=(https://gitlab.pyicu.org/main/pyicu/-/archive/v$version/pyicu-v$version.tar.gz)
_commit=8d558b30deb33eb583c0bcae3e64d6db8316b69461a04bb9db5ff63d3f6e
source=(https://files.pythonhosted.org/packages/11/c3/$_commit/pyicu-$version.tar.gz)
build() {
cd ${name##python3-}-v$version
cd pyicu-$version
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
}
check_footprint() {
local CN CM
local package="$PKGMK_PACKAGE_DIR/$name#$version-$release.pkg.tar.$PKGMK_COMPRESSION_MODE"
local LIBC=$(pkginfo -o /usr/lib/libc.so 2>/dev/null | awk '/libc.so/ {sub(/glibc/,"gnu",$1); print $1}')
local TRUTH="$PKGMK_ROOT/.footprint"; local diffs=0; local severity=error;
[ -f "$package" ] || \
{ error "${package##*/} not found. Cannot check footprint."; exit $E_FOOTPRINT; }
if [ -f "$TRUTH" ]; then
diff -w -t -U 0 <(sed "s/LIBC\.so/$LIBC.so/" "$TRUTH" | sort) <(pkginfo -f "$package" | sort) | \
sed '/^@@/d; /^+++/d; /^---/d; s/^+/NEW /g; s/^-/MISSING /g' > ".footprint.diff"
if [ -s ".footprint.diff" ]; then
CN=$(grep -c ^NEW ".footprint.diff"); CM=$(grep -c ^MISSING ".footprint.diff")
[ "$PKGMK_IGNORE_MISSING" = "yes" ] || diffs=$CM
[ "$PKGMK_IGNORE_FOOTPRINT" = "yes" ] && diffs=0 || diffs=$(( diffs+CN ))
(( diffs == 0 )) && severity=warning
$severity "footprint mismatch found:"; cat ".footprint.diff" >&2
fi
rm ".footprint.diff"
else
warning "footprint not found, creating new."
make_footprint
fi
(( diffs == 0 )) || { cleanup_work; exit $E_FOOTPRINT; }
}
make_footprint() {
local package="$PKGMK_PACKAGE_DIR/$name#$version-$release.pkg.tar.$PKGMK_COMPRESSION_MODE"
pkginfo -f "$package" | sed "s/$LIBC\.so/LIBC.so/" | sort -k3 > "$PKGMK_ROOT/.footprint"
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir="$PKG" dist/*.whl
rm -rf "$PKG"/usr/lib/python3.12/site-packages/pyicu-$version.dist-info/licenses
}