update to py3-platformdirs-2.5.4

This commit is contained in:
sthen 2022-11-25 12:05:04 +00:00
parent c39a953f96
commit e414892690
4 changed files with 33 additions and 22 deletions

View File

@ -1,30 +1,29 @@
COMMENT = determine appropriate platform-specific directories
COMMENT= determine appropriate platform-specific directories
MODPY_EGG_VERSION = 2.5.2
DISTNAME = platformdirs-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
REVISION = 0
MODPY_EGG_VERSION= 2.5.4
DISTNAME= platformdirs-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
CATEGORIES = sysutils
CATEGORIES= sysutils
HOMEPAGE = https://github.com/platformdirs/platformdirs
HOMEPAGE= https://github.com/platformdirs/platformdirs
# MIT
PERMIT_PACKAGE = Yes
PERMIT_PACKAGE= Yes
MODULES = lang/python
MODULES= lang/python
MODPY_PI = Yes
MODPY_PYBUILD = hatchling
MODPY_PYTEST = Yes
MODPY_TEST_LIBDIR = src
MODPY_PI= Yes
MODPY_PYBUILD= hatchling
MODPY_PYTEST= Yes
#MODPY_TEST_LIBDIR= src
BUILD_DEPENDS = devel/py-hatch-vcs${MODPY_FLAVOR} \
devel/py-setuptools_scm${MODPY_FLAVOR}
TEST_DEPENDS = devel/py-appdirs${MODPY_FLAVOR} \
devel/py-test-mock${MODPY_FLAVOR}
BUILD_DEPENDS= devel/py-hatch-vcs${MODPY_FLAVOR} \
devel/py-setuptools_scm${MODPY_FLAVOR}
TEST_DEPENDS= devel/py-appdirs${MODPY_FLAVOR} \
devel/py-test-mock${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR = python3
FLAVORS= python3
FLAVOR= python3
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (platformdirs-2.5.2.tar.gz) = WMirsH3LRB5u5LEdjfCshWA4+USrmLe+ayeyo8f+7xk=
SIZE (platformdirs-2.5.2.tar.gz) = 22529
SHA256 (platformdirs-2.5.4.tar.gz) = EAZkdkbYDxYTDwUkBMa5AegO5O1r72eS4fI4qJaRBvc=
SIZE (platformdirs-2.5.4.tar.gz) = 20843

View File

@ -0,0 +1,12 @@
Index: src/platformdirs/unix.py
--- src/platformdirs/unix.py.orig
+++ src/platformdirs/unix.py
@@ -7,7 +7,7 @@ from pathlib import Path
from .api import PlatformDirsABC
-if sys.platform.startswith("linux"): # pragma: no branch # no op check, only to please the type checker
+if sys.platform.startswith("linux") or sys.platform.startswith("openbsd"): # pragma: no branch # no op check, only to please the type checker
from os import getuid
else:

View File

@ -4,7 +4,7 @@ lib/python${MODPY_VERSION}/site-packages/platformdirs-${MODPY_EGG_VERSION}.dist-
lib/python${MODPY_VERSION}/site-packages/platformdirs-${MODPY_EGG_VERSION}.dist-info/RECORD
lib/python${MODPY_VERSION}/site-packages/platformdirs-${MODPY_EGG_VERSION}.dist-info/WHEEL
lib/python${MODPY_VERSION}/site-packages/platformdirs-${MODPY_EGG_VERSION}.dist-info/licenses/
lib/python${MODPY_VERSION}/site-packages/platformdirs-${MODPY_EGG_VERSION}.dist-info/licenses/LICENSE.txt
lib/python${MODPY_VERSION}/site-packages/platformdirs-${MODPY_EGG_VERSION}.dist-info/licenses/LICENSE
lib/python${MODPY_VERSION}/site-packages/platformdirs/__init__.py
lib/python${MODPY_VERSION}/site-packages/platformdirs/__main__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/platformdirs/${MODPY_PYCACHE}/