aboutsummaryrefslogtreecommitdiffstats
path: root/security/py-pysha3/Makefile
blob: f716b0f1268e161bbb9e449b30e2ed2546345893 (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
# Created by: Kubilay Kocak <koobs.freebsd@gmail.com>
# $FreeBSD$

PORTNAME=   pysha3
PORTVERSION=    0.2.2
CATEGORIES= security python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= koobs.freebsd@gmail.com
COMMENT=    SHA-3 (Keccak) for Python

# Python3 ready
USE_PYTHON= yes
USE_PYDISTUTILS=yes

PLIST_FILES=    %%PYTHON_SITELIBDIR%%/_sha3.so \
        %%PYTHON_SITELIBDIR%%/sha3.py \
        %%PYTHON_SITELIBDIR%%/sha3.pyc \
        %%PYTHON_SITELIBDIR%%/sha3.pyo

.include <bsd.port.pre.mk>

.if ${PYTHON_REL} >= 320
.include "${FILESDIR}/py3k-fix-pkg-plist.inc"
.endif

regression-test: build
    @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test

.include <bsd.port.post.mk>