1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/databases/py-lmdb/Makefile
Kai Knoblich d7af142cec databases/py-lmdb: Update to 0.97
* Update WWW field as upstream has a new maintainer.

* While I'm here: Add "do-test" target to make future QA easier.

Notable changes since 0.93:

* Only preload the value with the GIL (= Global Interpreter Lock) unlocked
  when the value is actually requested. This significantly improves read
  performance to retrieve keys with large values when the value isn't
  retrieved.

* Handling of the Environment(create=True) flag was improved.

* Database names may be reused after they are dropped on CFFI, without
  reopening the environment.

* Python argument parsing now matches the behaviour of CFFI, and most sane
  Python APIs: a bool parameter is considered to be true if it is any truthy
  value, not just if it is exactly True.

* Updated LMDB to version 0.9.22.

* Fixed several 2.7/3 bugs in command line tool.

https://github.com/jnwatson/py-lmdb/blob/py-lmdb_0.97/ChangeLog

PR:		241367
Submitted by:	Keith Gaughan <k@stereochro.me> (maintainer)
MFH:		2019Q4
2019-10-25 10:01:15 +00:00

35 lines
867 B
Makefile

# Created by: Keith Gaughan <k@sterechro.me>
# $FreeBSD$
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
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>