From 569d11dd1e92103f039251b41bce8d9a79156ae6 Mon Sep 17 00:00:00 2001 From: xsa Date: Mon, 11 Oct 2004 19:03:10 +0000 Subject: [PATCH] Initial import of py-cdb-0.32. The python-cdb extension module is an adaptation of D. J. Bernstein's constant database package (see http://cr.yp.to/cdb.html). cdb files are mappings of keys to values, designed for wickedly fast lookups and atomic updates. This module mimics the normal cdb utilities, cdb(get|dump|make), via convenient, high-level Python objects. Submitted and maintained by Lars Hansson . --- databases/py-cdb/Makefile | 34 +++++++++++++++++++++++++++++++ databases/py-cdb/distinfo | 3 +++ databases/py-cdb/pkg/DESCR | 7 +++++++ databases/py-cdb/pkg/PFRAG.shared | 2 ++ databases/py-cdb/pkg/PLIST | 6 ++++++ 5 files changed, 52 insertions(+) create mode 100644 databases/py-cdb/Makefile create mode 100644 databases/py-cdb/distinfo create mode 100644 databases/py-cdb/pkg/DESCR create mode 100644 databases/py-cdb/pkg/PFRAG.shared create mode 100644 databases/py-cdb/pkg/PLIST diff --git a/databases/py-cdb/Makefile b/databases/py-cdb/Makefile new file mode 100644 index 00000000000..2e4a9c7b13f --- /dev/null +++ b/databases/py-cdb/Makefile @@ -0,0 +1,34 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2004/10/11 19:03:10 xsa Exp $ + +COMMENT= "Python extension module for accessing cdb databases" + +DISTNAME= python-cdb-0.32 +PKGNAME= ${DISTNAME:S/python/py/} +CATEGORIES= databases + +HOMEPAGE= http://pilcrow.madison.wi.us/ + +MAINTAINER= Lars Hansson + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${HOMEPAGE}/python-cdb/ + +MODULES= lang/python + +NO_REGRESS= Yes + +DOCSDIR= ${PREFIX}/share/doc/py-cdb +EXAMPLESDIR= ${PREFIX}/share/examples/py-cdb + +post-install: + ${INSTALL_DATA_DIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${INSTALL_DATA_DIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/Example ${EXAMPLESDIR} + +.include diff --git a/databases/py-cdb/distinfo b/databases/py-cdb/distinfo new file mode 100644 index 00000000000..9d3e20f27ed --- /dev/null +++ b/databases/py-cdb/distinfo @@ -0,0 +1,3 @@ +MD5 (python-cdb-0.32.tar.gz) = 0e303095f8c0ea9f09d7f11faf89805f +RMD160 (python-cdb-0.32.tar.gz) = 665102db0d08df00dde5bb235d708158fe15c2ce +SHA1 (python-cdb-0.32.tar.gz) = b2a109d601f36cf6a829992461a6c7db61022c45 diff --git a/databases/py-cdb/pkg/DESCR b/databases/py-cdb/pkg/DESCR new file mode 100644 index 00000000000..595ec0c78af --- /dev/null +++ b/databases/py-cdb/pkg/DESCR @@ -0,0 +1,7 @@ +The python-cdb extension module is an adaptation of D. J. Bernstein's +constant database package (see http://cr.yp.to/cdb.html). + +cdb files are mappings of keys to values, designed for wickedly fast +lookups and atomic updates. This module mimics the normal cdb +utilities, cdb(get|dump|make), via convenient, high-level Python +objects. diff --git a/databases/py-cdb/pkg/PFRAG.shared b/databases/py-cdb/pkg/PFRAG.shared new file mode 100644 index 00000000000..1d1ad90572f --- /dev/null +++ b/databases/py-cdb/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2004/10/11 19:03:10 xsa Exp $ +lib/python${MODPY_VERSION}/site-packages/cdbmodule.so diff --git a/databases/py-cdb/pkg/PLIST b/databases/py-cdb/pkg/PLIST new file mode 100644 index 00000000000..10622f429e6 --- /dev/null +++ b/databases/py-cdb/pkg/PLIST @@ -0,0 +1,6 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2004/10/11 19:03:10 xsa Exp $ +%%SHARED%% +share/doc/py-cdb/ +share/doc/py-cdb/README +share/examples/py-cdb/ +share/examples/py-cdb/Example