aboutsummaryrefslogtreecommitdiffstats
path: root/security/py-merkletools/Makefile
blob: 2d08af89f8f0cd8b36e9f3746973888a6f786661 (plain) (blame)
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
PORTNAME=	merkletools
DISTVERSION=	1.0.3
PORTREVISION=	3
CATEGORIES=	security python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Tools for working with Merkle trees
WWW=		https://github.com/Tierion/pymerkletools

LICENSE=	MIT

USES=		python
USE_PYTHON=	distutils autoplist

NO_ARCH=	yesA

POST_PLIST=	rm-tests-from-plist

post-patch:
	@${RM} ${WRKSRC}/requirements.txt ${WRKSRC}/merkletools.egg-info/requires.txt
	@${REINPLACE_CMD} -e '/pysha3/d' ${WRKSRC}/setup.py

post-install:
	@${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/tests

rm-tests-from-plist:
	@${REINPLACE_CMD} '/\/tests\//d' ${TMPPLIST}

.include <bsd.port.mk>