aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2011-10-28 14:22:03 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2011-10-28 14:22:03 +0000
commit9e1979e853e7e8ddb6a7c4f98426793f510b9d02 (patch)
tree849447075234dab86a8d83e3b79c76efefb692aa
parent4ad3ec06fb62dd2519954f4d9b6646a907119848 (diff)
downloadports-9e1979e853e7e8ddb6a7c4f98426793f510b9d02.tar.gz
ports-9e1979e853e7e8ddb6a7c4f98426793f510b9d02.zip
Notes
-rw-r--r--databases/Makefile1
-rw-r--r--databases/py-leveldb/Makefile33
-rw-r--r--databases/py-leveldb/distinfo2
-rw-r--r--databases/py-leveldb/pkg-descr7
4 files changed, 43 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index e2182d55ef79..3fd57ee2965c 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -664,6 +664,7 @@
SUBDIR += py-gdbm
SUBDIR += py-htsql
SUBDIR += py-kyotocabinet
+ SUBDIR += py-leveldb
SUBDIR += py-memcached
SUBDIR += py-migrate
SUBDIR += py-mssql
diff --git a/databases/py-leveldb/Makefile b/databases/py-leveldb/Makefile
new file mode 100644
index 000000000000..db0a4028ffbc
--- /dev/null
+++ b/databases/py-leveldb/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: py-leveldb
+# Date created: 2011-10-04
+# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= leveldb
+PORTVERSION= 0.1.20111024
+CATEGORIES= databases python
+MASTER_SITES= LOCAL/sunpoet
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= py-${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Thread-safe Python binding for LevelDB
+
+LIB_DEPENDS= leveldb:${PORTSDIR}/databases/leveldb
+
+USE_PYTHON= -2.7
+USE_PYDISTUTILS= yes
+USE_XZ= yes
+
+PLIST_FILES= %%PYTHON_SITELIBDIR%%/leveldb.so
+PYDISTUTILS_EGGINFO= ${PORTNAME}-${PORTVERSION:R}-py${PYTHON_VER}.egg-info
+
+post-patch:
+ @${REINPLACE_CMD} \
+ -e "s|^\(extra_compile_args = \).*$$|\1\['-I${LOCALBASE}/include'\]|" \
+ -e "s|^\(extra_link_args = \).*$$|\1\['-L${LOCALBASE}/lib', '-lleveldb'\]|" \
+ ${WRKSRC}/setup.py
+
+.include <bsd.port.mk>
diff --git a/databases/py-leveldb/distinfo b/databases/py-leveldb/distinfo
new file mode 100644
index 000000000000..2ec509782f07
--- /dev/null
+++ b/databases/py-leveldb/distinfo
@@ -0,0 +1,2 @@
+SHA256 (py-leveldb-0.1.20111024.tar.xz) = 15d354aabcc101bd2ff1af79bee4aca99854e9d7be78017fe5e894a4bb1fb771
+SIZE (py-leveldb-0.1.20111024.tar.xz) = 19372
diff --git a/databases/py-leveldb/pkg-descr b/databases/py-leveldb/pkg-descr
new file mode 100644
index 000000000000..4df144dd63b7
--- /dev/null
+++ b/databases/py-leveldb/pkg-descr
@@ -0,0 +1,7 @@
+py-leveldb is a thread-safe Python bindings for LevelDB. It has all features
+from the LevelDB API, except for:
+- Arbitrary key comparison
+- Snapshots
+- All iteration except for single-step forward
+
+WWW: http://code.google.com/p/py-leveldb/