43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= sequoia
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.1.0
|
|
CATEGORIES= security python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= phryk-ports@wzff.de
|
|
COMMENT= Python binding of sequoia (alpha)
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/../../../LICENSE.txt
|
|
|
|
LIB_DEPENDS= libsequoia_ffi.so:security/sequoia
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1:devel/py-cffi@${PY_FLAVOR}
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR}
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1:devel/py-cffi@${PY_FLAVOR}
|
|
|
|
USES= python:3.4+
|
|
USE_PYTHON= distutils autoplist concurrent
|
|
USE_GITLAB= yes
|
|
|
|
WRKSRC_SUBDIR= ffi/lang/python
|
|
|
|
GL_ACCOUNT= sequoia-pgp
|
|
GL_PROJECT= sequoia
|
|
GL_COMMIT= f44d645fe665b031a1286e70075b69f92e5bb919
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
OPTIONS_DEFINE= TEST
|
|
post-build-TEST-on: test
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${PYTHON_CMD} setup.py test
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_sequoia.abi3*.so
|
|
|
|
.include <bsd.port.mk>
|