Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/py-tsk/Makefile,v
diff -u -r1.24 Makefile
--- Makefile	8 Feb 2026 12:22:41 -0000	1.24
+++ Makefile	11 Feb 2026 19:09:57 -0000
@@ -1,13 +1,13 @@
 COMMENT =	Python bindings for The Sleuth Kit (libtsk)
 
-MODPY_DISTV =	20200117
+MODPY_DISTV =	20250801
 DISTNAME =	pytsk3-${MODPY_DISTV}
 PKGNAME =	py-tsk-${MODPY_DISTV}
-REVISION =	11
 
 CATEGORIES =	sysutils
 
 HOMEPAGE =	https://github.com/py4n6/pytsk/
+MAINTAINER =	Sebastian Reitenbach <sebastia@openbsd.org>
 
 # Apache v2
 PERMIT_PACKAGE =	Yes
@@ -24,13 +24,13 @@
 # C++11
 COMPILER=	base-clang ports-gcc
 
-pre-configure:
-		${SUBST_DATA} ${WRKSRC}/setup.py ${WRKSRC}/setup.py.new
-		mv ${WRKSRC}/setup.py.new ${WRKSRC}/setup.py
-
+BUILD_DEPENDS =	sysutils/sleuthkit:patch
 LIB_DEPENDS =	sysutils/sleuthkit \
 		devel/libtalloc
 TEST_DEPENDS =	sysutils/py-tsk=${MODPY_DISTV}
+
+post-extract:
+	ln -s ${WRKDIR}/sysutils/sleuthkit/sleuthkit-*/ ${WRKSRC}/sleuthkit
 
 # it needs test_data/* in the Github repository
 do-test:
Index: distinfo
===================================================================
RCS file: /cvs/ports/sysutils/py-tsk/distinfo,v
diff -u -r1.7 distinfo
--- distinfo	17 Mar 2020 20:42:46 -0000	1.7
+++ distinfo	11 Feb 2026 19:09:57 -0000
@@ -1,2 +1,2 @@
-SHA256 (pytsk3-20200117.tar.gz) = VhdxZKNY6YuqJYKWqi6aUJME3I2rBTq6w0dDWgl42WI=
-SIZE (pytsk3-20200117.tar.gz) = 3060827
+SHA256 (pytsk3-20250801.tar.gz) = asypmY1GEMRv231jeULcNU3KWLIn2M7jZi7Jm0qKor0=
+SIZE (pytsk3-20250801.tar.gz) = 3327891
Index: patches/patch-setup_py
===================================================================
RCS file: patches/patch-setup_py
diff -N patches/patch-setup_py
--- patches/patch-setup_py	11 Mar 2022 19:57:54 -0000	1.3
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,39 +0,0 @@
-Index: setup.py
---- setup.py.orig
-+++ setup.py
-@@ -180,7 +180,7 @@ class BuildExtCommand(build_ext):
-     # pylint: disable=attribute-defined-outside-init
-     self.define = self.configure_source_tree(compiler)
- 
--    libtsk_path = os.path.join("sleuthkit", "tsk")
-+    libtsk_path = os.path.join("${LOCALBASE}", "include", "tsk")
- 
-     if not os.access("pytsk3.c", os.R_OK):
-       # Generate the Python binding code (pytsk3.c).
-@@ -390,7 +390,7 @@ class ProjectBuilder(object):
-     self._argv = argv
- 
-     # The path to the sleuthkit/tsk directory.
--    self._libtsk_path = os.path.join("sleuthkit", "tsk")
-+    self._libtsk_path = os.path.join("${LOCALBASE}", "include", "tsk")
- 
-     # Paths under the sleuthkit/tsk directory which contain files we need
-     # to compile.
-@@ -400,13 +400,13 @@ class ProjectBuilder(object):
-     # The args for the extension builder.
-     self.extension_args = {
-         "define_macros": [],
--        "include_dirs": ["talloc", self._libtsk_path, "sleuthkit", "."],
--        "library_dirs": [],
--        "libraries": []}
-+        "include_dirs": [".", os.path.join("${LOCALBASE}", "include")],
-+        "library_dirs": [os.path.join("${LOCALBASE}","lib")],
-+        "libraries": ["tsk", "talloc"]}
- 
-     # The sources to build.
-     self._source_files = [
--        "class.c", "error.c", "tsk3.c", "pytsk3.c", "talloc/talloc.c"]
-+        "class.c", "error.c", "tsk3.c", "pytsk3.c"]
- 
-     # Path to the top of the unpacked sleuthkit sources.
-     self._sleuthkit_path = "sleuthkit"
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/sysutils/py-tsk/pkg/PLIST,v
diff -u -r1.7 PLIST
--- pkg/PLIST	29 Apr 2025 10:40:03 -0000	1.7
+++ pkg/PLIST	11 Feb 2026 19:09:57 -0000
@@ -3,7 +3,5 @@
 lib/python${MODPY_VERSION}/site-packages/pytsk3-${MODPY_DISTV}.dist-info/METADATA
 lib/python${MODPY_VERSION}/site-packages/pytsk3-${MODPY_DISTV}.dist-info/RECORD
 lib/python${MODPY_VERSION}/site-packages/pytsk3-${MODPY_DISTV}.dist-info/WHEEL
-lib/python${MODPY_VERSION}/site-packages/pytsk3-${MODPY_DISTV}.dist-info/licenses/
-lib/python${MODPY_VERSION}/site-packages/pytsk3-${MODPY_DISTV}.dist-info/licenses/LICENSE
 lib/python${MODPY_VERSION}/site-packages/pytsk3-${MODPY_DISTV}.dist-info/top_level.txt
 @so lib/python${MODPY_VERSION}/site-packages/pytsk3.${MODPY_PYC_MAGIC_TAG}so
