summaryrefslogtreecommitdiff
path: root/devel/plasma/Makefile
blob: 31626371e4091540884221ba624b84b252775370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
PORTNAME=	plasma
DISTVERSION=	g20180708
PORTREVISION=	1
CATEGORIES=	devel python

MAINTAINER=	kai@FreeBSD.org
COMMENT=	Interactive disassembler for x86/ARM/MIPS

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	bash:shells/bash \
		binutils>=2:devel/binutils \
		capstone4>=3:devel/capstone4
RUN_DEPENDS=	binutils>=2:devel/binutils \
		${PYTHON_PKGNAMEPREFIX}capstone>=3:devel/py-capstone@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}keystone-engine>=:devel/py-keystone-engine@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}msgpack>=0:devel/py-msgpack@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}pefile>=0:devel/py-pefile@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}pyelftools>=0:devel/py-pyelftools@${PY_FLAVOR}

USES=		python:3.4+ shebangfix

USE_GITHUB=	yes
GH_ACCOUNT=	plasma-disassembler
GH_TAGNAME=	5bb07b3

USE_PYTHON=	distutils noflavors autoplist
SHEBANG_FILES=	tests/analyzer/run.sh
SHEBANG_GLOB=	*.py

post-patch:
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/setup.py
	@${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|g' ${WRKSRC}/Makefile

.include <bsd.port.mk>