mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
34 lines
861 B
Makefile
34 lines
861 B
Makefile
# Created by: Keith Gaughan <k@sterechro.me>
|
|
|
|
PORTNAME= lmdb
|
|
PORTVERSION= 0.97
|
|
CATEGORIES= databases python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= k@stereochro.me
|
|
COMMENT= Python bindings for LMDB
|
|
|
|
LICENSE= OPENLDAP
|
|
LICENSE_NAME= OpenLDAP Public LIcense
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>0.8:devel/py-cffi@${PY_FLAVOR}
|
|
LIB_DEPENDS= liblmdb.so:databases/lmdb
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
|
|
|
|
USES= localbase python:3.6+
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
MAKE_ENV= LMDB_FORCE_SYSTEM=1 \
|
|
LMDB_FORCE_CFFI=1
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/lmdb/lmdb_cffi*.so
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
|
|
|
|
.include <bsd.port.mk>
|