aboutsummaryrefslogtreecommitdiff
path: root/databases/py-bsddb3
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2014-04-28 15:07:11 +0000
committerWen Heping <wen@FreeBSD.org>2014-04-28 15:07:11 +0000
commit2e5f89101977fa9878262504f655f3c08b7ca1c3 (patch)
tree957512b60e221241b10669ccb59ff97ee3afca70 /databases/py-bsddb3
parentafd3782547298a3b4c66f32096cc5ae2ca233aed (diff)
downloadports-2e5f89101977fa9878262504f655f3c08b7ca1c3.tar.gz
ports-2e5f89101977fa9878262504f655f3c08b7ca1c3.zip
Notes
Diffstat (limited to 'databases/py-bsddb3')
-rw-r--r--databases/py-bsddb3/Makefile7
-rw-r--r--databases/py-bsddb3/distinfo4
-rw-r--r--databases/py-bsddb3/files/patch-setup2.py13
3 files changed, 18 insertions, 6 deletions
diff --git a/databases/py-bsddb3/Makefile b/databases/py-bsddb3/Makefile
index 1d4a192d8d5e..7f216af9c634 100644
--- a/databases/py-bsddb3/Makefile
+++ b/databases/py-bsddb3/Makefile
@@ -2,14 +2,16 @@
# $FreeBSD$
PORTNAME= bsddb3
-PORTVERSION= 5.3.0
+PORTVERSION= 6.0.1
CATEGORIES= databases python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-MAINTAINER= wen@FreeBSD.org
+MAINTAINER= 5u623l20@gmail.com
COMMENT= Python extension module for BerkeleyDB 3 and 4
+LICENSE= BSD3CLAUSE
+
USE_BDB= 43+
USE_PYTHON= yes
USE_PYDISTUTILS= yes
@@ -25,6 +27,7 @@ DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
post-patch:
${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}/Modules/bsddb.h
+ ${REINPLACE_CMD} 's,%%BDB_INCLUDE_DIR%%,${BDB_INCLUDE_DIR},' ${WRKSRC}/setup2.py
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/databases/py-bsddb3/distinfo b/databases/py-bsddb3/distinfo
index 9e7a7cc7a8f0..b12da8b50b8f 100644
--- a/databases/py-bsddb3/distinfo
+++ b/databases/py-bsddb3/distinfo
@@ -1,2 +1,2 @@
-SHA256 (bsddb3-5.3.0.tar.gz) = 4619f6189e5f94e337c62ae398ccb9c25568f3c3cab39970a4ea7625d38f8b3e
-SIZE (bsddb3-5.3.0.tar.gz) = 385113
+SHA256 (bsddb3-6.0.1.tar.gz) = abc34d83d6cbb40f1626ecc2b62e8163ba204f4bb6a65c23b125a171d224bf6d
+SIZE (bsddb3-6.0.1.tar.gz) = 347002
diff --git a/databases/py-bsddb3/files/patch-setup2.py b/databases/py-bsddb3/files/patch-setup2.py
index 9b14214ca822..a98b2e723b75 100644
--- a/databases/py-bsddb3/files/patch-setup2.py
+++ b/databases/py-bsddb3/files/patch-setup2.py
@@ -1,6 +1,6 @@
--- setup2.py.orig 2011-03-08 22:16:14.000000000 +0800
+++ setup2.py 2011-03-15 16:00:42.000000000 +0800
-@@ -53,10 +53,7 @@
+@@ -86,10 +86,7 @@
category=DeprecationWarning)
@@ -12,7 +12,7 @@
from distutils.dep_util import newer
import distutils.ccompiler
-@@ -247,8 +244,8 @@
+@@ -292,8 +289,8 @@
incdir = os.path.join(BERKELEYDB_DIR, 'include')
if not libdir:
libdir = os.path.join(BERKELEYDB_DIR, 'lib')
@@ -23,3 +23,12 @@
else:
if debug: print "LIBS already contains '-ldb' not adding our own", "'-l"+dblib+"'"
libname = []
+@@ -332,7 +329,7 @@
+
+ # read db.h to figure out what version of Berkeley DB this is
+ ver = None
+- db_h_lines = open(os.path.join(incdir, 'db.h'), 'r').readlines()
++ db_h_lines = open('%%BDB_INCLUDE_DIR%%/db.h', 'r').readlines()
+ db_ver_re = re.compile(
+ r'^#define\s+DB_VERSION_STRING\s.*Berkeley DB (\d+\.\d+).*')
+ db_ver2 = db_ver