mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 15:33:55 +02:00
34 lines
736 B
Makefile
34 lines
736 B
Makefile
COMMENT= Python bindings for LMDB
|
|
|
|
MODPY_DISTV= 2.2.0
|
|
DISTNAME= lmdb-${MODPY_DISTV}
|
|
PKGNAME= py-${DISTNAME}
|
|
|
|
CATEGORIES= databases
|
|
|
|
HOMEPAGE= http://github.com/jnwatson/py-lmdb/
|
|
|
|
# OpenLDAP (BSD-like)
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += lmdb
|
|
|
|
MODULES= lang/python
|
|
MODPY_PYBUILD= setuptools
|
|
MODPY_PI= Yes
|
|
|
|
# otherwise the cpython extension is not found, and py-lmdb falls back
|
|
# to a cffi-based implementation
|
|
MODPY_TEST_LINK_SO= Yes
|
|
|
|
# many tests in this file cause the test runner to crash (segfaults, FPE)
|
|
MODPY_PYTEST_ARGS= --ignore tests/cve_test.py
|
|
|
|
BUILD_DEPENDS= devel/py-cffi
|
|
LIB_DEPENDS= databases/lmdb
|
|
MAKE_ENV= LMDB_INCLUDEDIR=${LOCALBASE}/include \
|
|
LMDB_LIBDIR=${LOCALBASE}/lib \
|
|
LMDB_FORCE_SYSTEM=1
|
|
|
|
.include <bsd.port.mk>
|