2017-01-22 08:18:04 +00:00
|
|
|
COMMENT = Python bindings for The Sleuth Kit (libtsk)
|
|
|
|
|
|
2026-05-22 08:27:29 +00:00
|
|
|
MODPY_DISTV = 20260418
|
2024-12-21 11:38:51 +00:00
|
|
|
DISTNAME = pytsk3-${MODPY_DISTV}
|
|
|
|
|
PKGNAME = py-tsk-${MODPY_DISTV}
|
2026-05-22 08:27:29 +00:00
|
|
|
|
|
|
|
|
# download a copy from github archive as well, to fill in the incomplete
|
|
|
|
|
# tests dir from the pypi sdist (this is simpler than fetching the whole
|
|
|
|
|
# port from github as it needs a submodule + autoconf scripts generating)
|
|
|
|
|
DIST_TUPLE = github py4n6 pytsk ${MODPY_DISTV} .
|
2017-01-22 08:18:04 +00:00
|
|
|
|
|
|
|
|
CATEGORIES = sysutils
|
|
|
|
|
|
|
|
|
|
HOMEPAGE = https://github.com/py4n6/pytsk/
|
2026-05-22 08:27:29 +00:00
|
|
|
MAINTAINER = Sebastian Reitenbach <sebastia@openbsd.org>
|
2017-01-22 08:18:04 +00:00
|
|
|
|
|
|
|
|
# Apache v2
|
2019-07-12 20:49:33 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2017-01-22 08:18:04 +00:00
|
|
|
|
2025-01-28 09:05:14 +00:00
|
|
|
MODULES = lang/python
|
2026-05-22 08:27:29 +00:00
|
|
|
## so that we get gawk poisoning in the sleuthkit part
|
|
|
|
|
#MODULES += gnu
|
2018-05-30 06:47:23 +00:00
|
|
|
|
2017-01-22 08:18:04 +00:00
|
|
|
MODPY_PI = Yes
|
2022-11-26 15:02:49 +00:00
|
|
|
MODPY_PYBUILD = setuptools
|
2017-01-22 08:18:04 +00:00
|
|
|
|
2026-05-22 08:27:29 +00:00
|
|
|
WANTLIB += ${COMPILER_LIBCXX} m
|
2017-01-22 08:18:04 +00:00
|
|
|
|
2020-03-17 20:42:46 +00:00
|
|
|
# C++11
|
2025-01-28 09:05:14 +00:00
|
|
|
COMPILER= base-clang ports-gcc
|
2020-03-17 20:42:46 +00:00
|
|
|
|
2026-05-22 08:27:29 +00:00
|
|
|
post-extract:
|
|
|
|
|
mv ${WRKDIR}/pytsk-${MODPY_DISTV}/tests/* ${WRKSRC}/tests/
|
2017-01-22 08:18:04 +00:00
|
|
|
|
2026-05-22 08:27:29 +00:00
|
|
|
# Ran 30 tests in 0.094s
|
2017-01-22 08:18:04 +00:00
|
|
|
do-test:
|
2026-05-22 08:27:29 +00:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${MODPY_BIN} run_tests.py
|
2017-01-22 08:18:04 +00:00
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|