aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2017-09-11 22:30:17 +0800
committervanilla <vanilla@FreeBSD.org>2017-09-11 22:30:17 +0800
commit187b59d7e81d76f7ba5af39809c59a5e45d78860 (patch)
treeaba8e0278b6ce0cfc486979e099782735283c515
parent57d391900f0e8d35571ad52a2079bdb846a1e4b3 (diff)
downloadfreebsd-ports-gnome-187b59d7e81d76f7ba5af39809c59a5e45d78860.tar.gz
freebsd-ports-gnome-187b59d7e81d76f7ba5af39809c59a5e45d78860.tar.zst
freebsd-ports-gnome-187b59d7e81d76f7ba5af39809c59a5e45d78860.zip
Add py-lmdb 0.93, python bindings for LMDB.
PR: 222188 Submitted by: Keith Gaughan <k@sterechro.me>
-rw-r--r--databases/Makefile1
-rw-r--r--databases/py-lmdb/Makefile30
-rw-r--r--databases/py-lmdb/distinfo3
-rw-r--r--databases/py-lmdb/pkg-descr4
4 files changed, 38 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 53dbf3a81cf4..d892ea0cfeaf 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -778,6 +778,7 @@
SUBDIR += py-htsql-pgsql
SUBDIR += py-kyotocabinet
SUBDIR += py-leveldb
+ SUBDIR += py-lmdb
SUBDIR += py-motor
SUBDIR += py-mycli
SUBDIR += py-mysql-connector-python
diff --git a/databases/py-lmdb/Makefile b/databases/py-lmdb/Makefile
new file mode 100644
index 000000000000..98a040237e6b
--- /dev/null
+++ b/databases/py-lmdb/Makefile
@@ -0,0 +1,30 @@
+# Created by: Keith Gaughan <k@sterechro.me>
+# $FreeBSD$
+
+PORTNAME= lmdb
+PORTVERSION= 0.93
+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
+LIB_DEPENDS= liblmdb.so:databases/lmdb
+
+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
+
+.include <bsd.port.mk>
diff --git a/databases/py-lmdb/distinfo b/databases/py-lmdb/distinfo
new file mode 100644
index 000000000000..0c9f8c8323ed
--- /dev/null
+++ b/databases/py-lmdb/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1505036252
+SHA256 (lmdb-0.93.tar.gz) = 146b085b698bf480b35da4eac3a0bd8e331e002a9bafa69842867a879258b775
+SIZE (lmdb-0.93.tar.gz) = 870651
diff --git a/databases/py-lmdb/pkg-descr b/databases/py-lmdb/pkg-descr
new file mode 100644
index 000000000000..cd8c33df5034
--- /dev/null
+++ b/databases/py-lmdb/pkg-descr
@@ -0,0 +1,4 @@
+This is a port of py-lmdb, which provides bindings for OpenLDAP's Lightning
+Memory-mapped Database (LMDB).
+
+WWW: https://github.com/dw/py-lmdb/