if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
46 lines
994 B
Makefile
46 lines
994 B
Makefile
# $OpenBSD: Makefile,v 1.6 2021/02/23 19:39:39 sthen Exp $
|
|
|
|
BROKEN-i386 = uint128_t
|
|
|
|
COMMENT = reverse engineering framework in Python
|
|
|
|
MODPY_EGG_VERSION = 2.0.1.1
|
|
DISTNAME = miasm-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME}
|
|
|
|
GH_ACCOUNT = cea-sec
|
|
GH_PROJECT = miasm
|
|
GH_COMMIT = f7157afaccd897fb00eeb97817d124790f0ede67
|
|
|
|
CATEGORIES = security devel
|
|
|
|
HOMEPAGE = https://github.com/cea-sec/miasm
|
|
|
|
MAINTAINER = Remi Pointel <rpointel@openbsd.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MODULES = lang/python
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
|
|
|
|
WANTLIB += pthread ${MODPY_WANTLIB}
|
|
|
|
RUN_DEPENDS = security/py-elfesteem \
|
|
devel/py-llvmlite \
|
|
devel/py-parsing
|
|
|
|
TEST_DEPENDS = devel/py-cparser
|
|
|
|
post-build:
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${WRKSRC}/example
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/${MODPY_PY_PREFIX}miasm
|
|
cp -r ${WRKSRC}/example ${PREFIX}/share/${MODPY_PY_PREFIX}miasm/
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/test && ${MODPY_BIN} ./test_all.py -m
|
|
|
|
.include <bsd.port.mk>
|