diff options
Diffstat (limited to '')
-rw-r--r-- | devel/py-inotify-simple/Makefile | 7 | ||||
-rw-r--r-- | devel/py-inotify-simple/distinfo | 6 | ||||
-rw-r--r-- | devel/py-inotify-simple/files/patch-inotify__simple.py | 25 | ||||
-rw-r--r-- | devel/py-inotify-simple/files/patch-pyproject.toml | 12 |
4 files changed, 31 insertions, 19 deletions
diff --git a/devel/py-inotify-simple/Makefile b/devel/py-inotify-simple/Makefile index 1674a5c756ba..c1ea5c6694c2 100644 --- a/devel/py-inotify-simple/Makefile +++ b/devel/py-inotify-simple/Makefile @@ -1,5 +1,5 @@ PORTNAME= inotify-simple -PORTVERSION= 1.3.5 +PORTVERSION= 2.0.1 PORTREVISION= 2 CATEGORIES= devel python MASTER_SITES= PYPI @@ -13,10 +13,13 @@ WWW= https://github.com/chrisjbillington/inotify_simple LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + LIB_DEPENDS= libinotify.so:devel/libinotify USES= python -USE_PYTHON= autoplist distutils +USE_PYTHON= autoplist pep517 NO_ARCH= yes diff --git a/devel/py-inotify-simple/distinfo b/devel/py-inotify-simple/distinfo index e783015aa211..24a9fe721a2a 100644 --- a/devel/py-inotify-simple/distinfo +++ b/devel/py-inotify-simple/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1707611159 -SHA256 (inotify_simple-1.3.5.tar.gz) = 8440ffe49c4ae81a8df57c1ae1eb4b6bfa7acb830099bfb3e305b383005cc128 -SIZE (inotify_simple-1.3.5.tar.gz) = 9747 +TIMESTAMP = 1757006525 +SHA256 (inotify_simple-2.0.1.tar.gz) = f010bbbd8283bd71a9f4eb2de94765804ede24bd47320b0e6ef4136e541cdc2c +SIZE (inotify_simple-2.0.1.tar.gz) = 7101 diff --git a/devel/py-inotify-simple/files/patch-inotify__simple.py b/devel/py-inotify-simple/files/patch-inotify__simple.py index 346f1722618b..776f877be4d8 100644 --- a/devel/py-inotify-simple/files/patch-inotify__simple.py +++ b/devel/py-inotify-simple/files/patch-inotify__simple.py @@ -1,6 +1,6 @@ ---- inotify_simple.py.orig 2020-08-06 00:20:49 UTC +--- inotify_simple.py.orig 2025-08-25 06:27:48 UTC +++ inotify_simple.py -@@ -4,6 +4,7 @@ from enum import Enum, IntEnum +@@ -3,6 +3,7 @@ from enum import IntEnum from collections import namedtuple from struct import unpack_from, calcsize from select import poll @@ -8,18 +8,15 @@ from time import sleep from ctypes import CDLL, get_errno, c_int from ctypes.util import find_library -@@ -82,7 +83,7 @@ class INotify(FileIO): - manually with ``os.read(fd)``) to raise ``BlockingIOError`` if no data - is available.""" - try: -- libc_so = find_library('c') -+ libc_so = find_library('inotify') - except RuntimeError: # Python on Synology NASs raises a RuntimeError - libc_so = None - global _libc; _libc = _libc or CDLL(libc_so or 'libc.so.6', use_errno=True) -@@ -90,7 +91,7 @@ class INotify(FileIO): - flags = (not inheritable) * O_CLOEXEC | bool(nonblocking) * os.O_NONBLOCK - FileIO.__init__(self, _libc_call(_libc.inotify_init1, flags), mode='rb') +@@ -76,12 +77,12 @@ class INotify(FileIO): + object is garbage collected or when `~inotify_simple.INotify.close` is + called.""" + +- global _libc; _libc = _libc or CDLL(find_library('c'), use_errno=True) ++ global _libc; _libc = _libc or CDLL(find_library('inotify'), use_errno=True) + flags = (not inheritable) * os.O_CLOEXEC | bool(nonblocking) * os.O_NONBLOCK + fd = _libc_call(_libc.inotify_init1, flags) + super().__init__(fd, mode='rb', closefd=closefd) self._poller = poll() - self._poller.register(self.fileno()) + self._poller.register(self.fileno(), POLLIN) diff --git a/devel/py-inotify-simple/files/patch-pyproject.toml b/devel/py-inotify-simple/files/patch-pyproject.toml new file mode 100644 index 000000000000..34bee038fbe8 --- /dev/null +++ b/devel/py-inotify-simple/files/patch-pyproject.toml @@ -0,0 +1,12 @@ +--- pyproject.toml.orig 2025-08-25 06:27:48 UTC ++++ pyproject.toml +@@ -12,8 +12,7 @@ authors = [ + {name = "Chris Billington", email = "chrisjbillington@gmail.com"}, + ] + keywords = ["inotify"] +-license = "BSD-2-Clause" +-license-files = ["LICENSE"] ++license = {text = "BSD-2-Clause"} + requires-python = ">=3.6" + dynamic = ["version"] + |