1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

- Update to 4.7.6 [1]

- Use COPYTREE_SHARE to install documents

PR:		ports/130412 [1]
Submitted by:	David Naylor <naylor.b.david AT gmail.com>
Approved by:	maintainer timeout (6 months)
This commit is contained in:
Li-Wen Hsu 2009-06-30 08:49:35 +00:00
parent 3e1c4bea78
commit e82d16a272
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=236802
6 changed files with 42 additions and 29 deletions

View File

@ -6,10 +6,9 @@
# #
PORTNAME= bsddb3 PORTNAME= bsddb3
PORTVERSION= 4.5.0 PORTVERSION= 4.7.6
CATEGORIES= databases python CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= CHEESESHOP
MASTER_SITE_SUBDIR= pybsddb
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= perky@FreeBSD.org MAINTAINER= perky@FreeBSD.org
@ -26,14 +25,13 @@ PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
post-patch: post-patch:
${REINPLACE_CMD} 's,%%DBVERSION%%,${BDB_LIB_NAME},g' ${WRKSRC}/setup.py ${REINPLACE_CMD} 's,%%DBVERSION%%,${BDB_LIB_NAME},g' ${WRKSRC}/setup2.py ${WRKSRC}/setup3.py
${REINPLACE_CMD} 's,<db\.h>,<${BDB_INCLUDE_DIR}/db.h>,' ${WRKSRC}/extsrc/_bsddb.c ${REINPLACE_CMD} 's,<db\.h>,<${BDB_INCLUDE_DIR}/db.h>,' ${WRKSRC}/Modules/bsddb.h
post-install: post-install:
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR} @${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/docs && ${FIND} . | \ (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR})
.endif .endif
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (bsddb3-4.5.0.tar.gz) = e08e50b0e602396864c6061168987318 MD5 (bsddb3-4.7.6.tar.gz) = 53c06e0247b2aa4d8523d52e53378cb5
SHA256 (bsddb3-4.5.0.tar.gz) = bb904694cc0a8b309ac19e020d857b2252b2323eb75ca672ca334631649c09c0 SHA256 (bsddb3-4.7.6.tar.gz) = 062e18332e3169263b425c50d0478c910395ffd0fd6559ac8d5c68dd1bcd1975
SIZE (bsddb3-4.5.0.tar.gz) = 522126 SIZE (bsddb3-4.7.6.tar.gz) = 207478

View File

@ -1,6 +1,6 @@
--- setup.py.orig Fri Jun 3 16:27:21 2005 --- setup2.py.orig 2009-06-30 14:58:28.711417858 +0800
+++ setup.py Mon Oct 10 22:43:16 2005 +++ setup2.py 2009-06-30 14:59:05.363767161 +0800
@@ -197,8 +197,8 @@ @@ -204,8 +204,8 @@
incdir = os.path.join(BERKELEYDB_DIR, 'include') incdir = os.path.join(BERKELEYDB_DIR, 'include')
if not libdir: if not libdir:
libdir = os.path.join(BERKELEYDB_DIR, 'lib') libdir = os.path.join(BERKELEYDB_DIR, 'lib')
@ -11,12 +11,3 @@
else: else:
if debug: print "LIBS already contains '-ldb' not adding our own", "'-l"+dblib+"'" if debug: print "LIBS already contains '-ldb' not adding our own", "'-l"+dblib+"'"
libname = [] libname = []
@@ -221,7 +221,7 @@
if not status and results.find('libdb.') >= 0:
static = 1
- if static:
+ if 0:
print """\
\aWARNING:
\tIt appears that the old bsddb module is staticly linked in the

View File

@ -0,0 +1,13 @@
--- setup3.py.orig 2009-06-30 14:58:24.819924337 +0800
+++ setup3.py 2009-06-30 14:59:39.207070800 +0800
@@ -204,8 +204,8 @@
incdir = os.path.join(BERKELEYDB_DIR, 'include')
if not libdir:
libdir = os.path.join(BERKELEYDB_DIR, 'lib')
- if not '-ldb' in LIBS:
- libname = [dblib]
+ if not '-l%%DBVERSION%%' in LIBS:
+ libname = ['%%DBVERSION%%']
else:
if debug: print("LIBS already contains '-ldb' not adding our own", "'-l"+dblib+"'")
libname = []

View File

@ -7,4 +7,4 @@ these are fully supported in the Python wrappers. Please see the
document in developers' web site for more details on the types and document in developers' web site for more details on the types and
methods provided. methods provided.
WWW: http://pybsddb.sourceforge.net/ WWW: http://www.jcea.es/programacion/pybsddb.htm

View File

@ -1,3 +1,4 @@
%%PYTHON_INCLUDEDIR%%/bsddb3/bsddb.h
%%PYTHON_SITELIBDIR%%/bsddb3/__init__.py %%PYTHON_SITELIBDIR%%/bsddb3/__init__.py
%%PYTHON_SITELIBDIR%%/bsddb3/__init__.pyc %%PYTHON_SITELIBDIR%%/bsddb3/__init__.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/__init__.pyo %%PYTHON_SITELIBDIR%%/bsddb3/__init__.pyo
@ -20,12 +21,12 @@
%%PYTHON_SITELIBDIR%%/bsddb3/dbutils.py %%PYTHON_SITELIBDIR%%/bsddb3/dbutils.py
%%PYTHON_SITELIBDIR%%/bsddb3/dbutils.pyc %%PYTHON_SITELIBDIR%%/bsddb3/dbutils.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/dbutils.pyo %%PYTHON_SITELIBDIR%%/bsddb3/dbutils.pyo
%%PYTHON_SITELIBDIR%%/bsddb3/test_support.py
%%PYTHON_SITELIBDIR%%/bsddb3/test_support.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/test_support.pyo
%%PYTHON_SITELIBDIR%%/bsddb3/tests/__init__.py %%PYTHON_SITELIBDIR%%/bsddb3/tests/__init__.py
%%PYTHON_SITELIBDIR%%/bsddb3/tests/__init__.pyc %%PYTHON_SITELIBDIR%%/bsddb3/tests/__init__.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/tests/__init__.pyo %%PYTHON_SITELIBDIR%%/bsddb3/tests/__init__.pyo
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_1413192.py
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_1413192.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_1413192.pyo
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_all.py %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_all.py
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_all.pyc %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_all.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_all.pyo %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_all.pyo
@ -53,9 +54,15 @@
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_dbtables.py %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_dbtables.py
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_dbtables.pyc %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_dbtables.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_dbtables.pyo %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_dbtables.pyo
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_env_close.py %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_distributed_transactions.py
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_env_close.pyc %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_distributed_transactions.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_env_close.pyo %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_distributed_transactions.pyo
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_early_close.py
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_early_close.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_early_close.pyo
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_fileid.py
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_fileid.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_fileid.pyo
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_get_none.py %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_get_none.py
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_get_none.pyc %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_get_none.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_get_none.pyo %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_get_none.pyo
@ -77,11 +84,15 @@
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_recno.py %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_recno.py
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_recno.pyc %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_recno.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_recno.pyo %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_recno.pyo
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_replication.py
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_replication.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_replication.pyo
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_sequence.py %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_sequence.py
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_sequence.pyc %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_sequence.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_sequence.pyo %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_sequence.pyo
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_thread.py %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_thread.py
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_thread.pyc %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_thread.pyc
%%PYTHON_SITELIBDIR%%/bsddb3/tests/test_thread.pyo %%PYTHON_SITELIBDIR%%/bsddb3/tests/test_thread.pyo
@dirrm %%PYTHON_INCLUDEDIR%%/bsddb3
@dirrm %%PYTHON_SITELIBDIR%%/bsddb3/tests @dirrm %%PYTHON_SITELIBDIR%%/bsddb3/tests
@dirrm %%PYTHON_SITELIBDIR%%/bsddb3 @dirrm %%PYTHON_SITELIBDIR%%/bsddb3