diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2011-10-28 22:22:03 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2011-10-28 22:22:03 +0800 |
commit | 586c6d12f11c96fed229d10b73ea1762c6b63169 (patch) | |
tree | 5d46c464fdb142a3d126744c0916d531949d0dcd /databases | |
parent | fce0f66ff351036f288503c90712d579744e2d88 (diff) | |
download | freebsd-ports-gnome-586c6d12f11c96fed229d10b73ea1762c6b63169.tar.gz freebsd-ports-gnome-586c6d12f11c96fed229d10b73ea1762c6b63169.tar.zst freebsd-ports-gnome-586c6d12f11c96fed229d10b73ea1762c6b63169.zip |
- Add py-leveldb 0.1.20111024
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/
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/py-leveldb/Makefile | 33 | ||||
-rw-r--r-- | databases/py-leveldb/distinfo | 2 | ||||
-rw-r--r-- | databases/py-leveldb/pkg-descr | 7 |
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/ |