Date: Sun, 8 Apr 2001 20:40:52 -0700 (PDT) From: perky@python.or.kr To: freebsd-gnats-submit@FreeBSD.org Subject: ports/26448: New port: databases/py-bsddb3 Message-ID: <200104090340.f393eqQ72002@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 26448 >Category: ports >Synopsis: New port: databases/py-bsddb3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Apr 08 20:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Chang, Hye-Shik >Release: FreeBSD 4.2 >Organization: Yonsei University >Environment: FreeBSD free.yonsei.ac.kr 4.3-RC FreeBSD 4.3-RC #0: Wed Apr 4 07:18:43 KST 2001 root@free.yonsei.ac.kr:/usr/src/sys/compile/RYOKO i386 >Description: official version of py-bsddb3 was released. Description: This module provides a nearly complete wrapping of the Sleepycat C API for the Database Environment, Database, Cursor, and Transaction objects, and each of these is exposed as a Python Type in the bsddb3.db module. developer was warned that there are collision between python-built-in bsddb & this bsddb3, sometimes. but, In my test at FreeBSD it works without any problem. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-bsddb3 # py-bsddb3/files # py-bsddb3/files/patch-src:_db.c # py-bsddb3/files/patch-setup.py # py-bsddb3/pkg-comment # py-bsddb3/pkg-descr # py-bsddb3/distinfo # py-bsddb3/Makefile # py-bsddb3/pkg-plist # echo c - py-bsddb3 mkdir -p py-bsddb3 > /dev/null 2>&1 echo c - py-bsddb3/files mkdir -p py-bsddb3/files > /dev/null 2>&1 echo x - py-bsddb3/files/patch-src:_db.c sed 's/^X//' >py-bsddb3/files/patch-src:_db.c << 'END-of-py-bsddb3/files/patch-src:_db.c' X--- src/_db.c.orig Mon Apr 9 12:26:03 2001 X+++ src/_db.c Mon Apr 9 12:26:18 2001 X@@ -70,7 +70,7 @@ X /* --------------------------------------------------------------------- */ X X #include <Python.h> X-#include <db.h> X+#include <db3/db.h> X X /* --------------------------------------------------------------------- */ X /* Various macro definitions */ END-of-py-bsddb3/files/patch-src:_db.c echo x - py-bsddb3/files/patch-setup.py sed 's/^X//' >py-bsddb3/files/patch-setup.py << 'END-of-py-bsddb3/files/patch-setup.py' X--- setup.py.orig Mon Apr 9 12:29:06 2001 X+++ setup.py Mon Apr 9 12:29:15 2001 X@@ -90,7 +90,7 @@ X if not status and string.find(results, 'libdb.') >= 0: X static = 1 X X- if static: X+ if 0: X print """\ X \aWARNING: X \tIt appears that the old bsddb module is staticly linked in the END-of-py-bsddb3/files/patch-setup.py echo x - py-bsddb3/pkg-comment sed 's/^X//' >py-bsddb3/pkg-comment << 'END-of-py-bsddb3/pkg-comment' XBerkeleyDB3 wrapper module for Python END-of-py-bsddb3/pkg-comment echo x - py-bsddb3/pkg-descr sed 's/^X//' >py-bsddb3/pkg-descr << 'END-of-py-bsddb3/pkg-descr' XThis module provides a nearly complete wrapping of the Sleepycat C API Xfor the Database Environment, Database, Cursor, and Transaction Xobjects, and each of these is exposed as a Python Type in the Xbsddb3.db module. The database objects can use different access Xmethods, btree, hash, recno, and queue. For the first time all of Xthese are fully supported in the Python wrappers. Please see the Xdocument in developers' web site for more details on the types and Xmethods provided. X XWWW: http://pybsddb.sourceforge.net/ Xdeveloped by Robin Dunn et al X X- Hye-Shik Chang, a.k.a. "Perky" END-of-py-bsddb3/pkg-descr echo x - py-bsddb3/distinfo sed 's/^X//' >py-bsddb3/distinfo << 'END-of-py-bsddb3/distinfo' XMD5 (bsddb3-3.0.tar.gz) = 7c819ff6b26e95fae2bd6bf27e821c03 END-of-py-bsddb3/distinfo echo x - py-bsddb3/Makefile sed 's/^X//' >py-bsddb3/Makefile << 'END-of-py-bsddb3/Makefile' X# New ports collection makefile for: py-bsddb3 X# Date created: 22 March 2001 X# Whom: Hye-Shik Chang <perky@python.or.kr> X# X# $FreeBSD$ X# X XPORTNAME= bsddb3 XPORTVERSION= 3.0 XCATEGORIES= databases python XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= pybsddb XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} X XMAINTAINER= perky@python.or.kr X XBUILD_DEPENDS= ${LOCALBASE}/lib/libdb3.so:${PORTSDIR}/databases/db3 XRUN_DEPENDS= ${LOCALBASE}/lib/libdb3.so:${PORTSDIR}/databases/db3 X XUSE_PYTHON= yes XSETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py X XPLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g} X Xdo-build: X ${SETUP_CMD} build_ext --libs="-ldb3" --berkeley-db=${LOCALBASE} --inplace X Xdo-install: X ${SETUP_CMD} install X X.include <bsd.port.mk> END-of-py-bsddb3/Makefile echo x - py-bsddb3/pkg-plist sed 's/^X//' >py-bsddb3/pkg-plist << 'END-of-py-bsddb3/pkg-plist' X%%PYTHON_SITELIBDIR%%/bsddb3/__init__.py X%%PYTHON_SITELIBDIR%%/bsddb3/__init__.pyc X%%PYTHON_SITELIBDIR%%/bsddb3/_db.so X%%PYTHON_SITELIBDIR%%/bsddb3/db.py X%%PYTHON_SITELIBDIR%%/bsddb3/db.pyc X%%PYTHON_SITELIBDIR%%/bsddb3/dbobj.py X%%PYTHON_SITELIBDIR%%/bsddb3/dbobj.pyc X%%PYTHON_SITELIBDIR%%/bsddb3/dbrecio.py X%%PYTHON_SITELIBDIR%%/bsddb3/dbrecio.pyc X%%PYTHON_SITELIBDIR%%/bsddb3/dbshelve.py X%%PYTHON_SITELIBDIR%%/bsddb3/dbshelve.pyc X%%PYTHON_SITELIBDIR%%/bsddb3/dbtables.py X%%PYTHON_SITELIBDIR%%/bsddb3/dbtables.pyc X%%PYTHON_SITELIBDIR%%/bsddb3/dbutils.py X%%PYTHON_SITELIBDIR%%/bsddb3/dbutils.pyc X@dirrm %%PYTHON_SITELIBDIR%%/bsddb3 END-of-py-bsddb3/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104090340.f393eqQ72002>