Makefile 844 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # $OpenBSD: Makefile,v 1.2 2017/03/07 10:11:27 rpointel Exp $
  2. COMMENT = Python bindings for The Sleuth Kit (libtsk)
  3. MODPY_EGG_VERSION = 20170128
  4. DISTNAME = pytsk3-${MODPY_EGG_VERSION}
  5. PKGNAME = py-tsk-${MODPY_EGG_VERSION}
  6. CATEGORIES = sysutils
  7. HOMEPAGE = https://github.com/py4n6/pytsk/
  8. MAINTAINER = Remi Pointel <rpointel@openbsd.org>
  9. # Apache v2
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MODULES = lang/python
  12. MODPY_PI = Yes
  13. MODPY_SETUPTOOLS = Yes
  14. WANTLIB += pthread talloc tsk ${MODPY_WANTLIB}
  15. pre-configure:
  16. ${SUBST_DATA} ${WRKSRC}/setup.py ${WRKSRC}/setup.py.new
  17. mv ${WRKSRC}/setup.py.new ${WRKSRC}/setup.py
  18. LIB_DEPENDS = sysutils/sleuthkit \
  19. devel/libtalloc
  20. TEST_DEPENDS = sysutils/py-tsk=${MODPY_EGG_VERSION}
  21. # it needs test_data/* in the Github repository
  22. do-test:
  23. cd ${WRKSRC} && ${MODPY_BIN} run_tests.py
  24. .include <bsd.port.mk>