# $OpenBSD: Makefile,v 1.13 2021/05/21 19:50:34 kmos Exp $

COMMENT =	python tools to analyze OLE files

MODPY_EGG_VERSION = 0.53.1
DISTNAME =	oletools-${MODPY_EGG_VERSION}
REVISION =	0

CATEGORIES =	security

HOMEPAGE =	http://www.decalage.info/python/oletools

MAINTAINER =	Remi Pointel <rpointel@openbsd.org>

# BSD (apart from the thirdparty folder which contains third-party files published with their own license.)
PERMIT_PACKAGE =	Yes

MODULES =	lang/python
MODPY_VERSION =	${MODPY_DEFAULT_VERSION_2}
MODPY_PI =	Yes
MODPY_SETUPTOOLS =	Yes

EXTRACT_SUFX =	.zip

RUN_DEPENDS +=	${MODPY_TKINTER_DEPENDS} \
		devel/py-parsing

MODPY_ADJ_FILES = oletools/*.py

post-install:
	chmod +x ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/oletools/*.py
#.for i in ezhexviewer mraptor msodde olebrowse oledir oleid olemap olemeta oleobj oletimes olevba pyxswf rtfobj
#.endfor

NO_TEST =	Yes

.include <bsd.port.mk>
