aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobak <robak@FreeBSD.org>2014-09-03 20:48:52 +0800
committerrobak <robak@FreeBSD.org>2014-09-03 20:48:52 +0800
commite5d1984175a7a16e1aa5f27d526a7eaa53effc8a (patch)
tree243d135924e7dcd1ebe978e94c71ee792bf8cfc9
parent953f35ae2186c3775bebeab4ab35244732f07a6c (diff)
downloadfreebsd-ports-gnome-e5d1984175a7a16e1aa5f27d526a7eaa53effc8a.tar.gz
freebsd-ports-gnome-e5d1984175a7a16e1aa5f27d526a7eaa53effc8a.tar.zst
freebsd-ports-gnome-e5d1984175a7a16e1aa5f27d526a7eaa53effc8a.zip
databases/py-bsddb3: update 6.0.1 -> 6.1.0
PR: 192988 Submitted by: Muhammad Moinur Rahman <5u623l20@gmail.com> Reviewed by: marino (mentor) Approved by: implicit (mentors)
-rw-r--r--databases/py-bsddb3/Makefile11
-rw-r--r--databases/py-bsddb3/distinfo4
-rw-r--r--databases/py-bsddb3/files/patch-setup2.py19
3 files changed, 17 insertions, 17 deletions
diff --git a/databases/py-bsddb3/Makefile b/databases/py-bsddb3/Makefile
index 42241069ba00..8763b10bdcdf 100644
--- a/databases/py-bsddb3/Makefile
+++ b/databases/py-bsddb3/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= bsddb3
-PORTVERSION= 6.0.1
-PORTREVISION= 1
+PORTVERSION= 6.1.0
CATEGORIES= databases python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,10 +12,9 @@ COMMENT= Python extension module for BerkeleyDB 3 and 4
LICENSE= BSD3CLAUSE
-USE_BDB= 43+
-USE_PYTHON= yes
-USE_PYDISTUTILS= yes
-PYDISTUTILS_AUTOPLIST= yes
+USE_BDB= yes
+USES= python
+USE_PYTHON= distutils autoplist
PYDISTUTILS_CONFIGUREARGS=--libs="-l${BDB_LIB_NAME}" --berkeley-db=${LOCALBASE}
PYDISTUTILS_BUILDARGS= --libs="-l${BDB_LIB_NAME}" --berkeley-db=${LOCALBASE}
@@ -33,5 +31,6 @@ post-patch:
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
+ ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/bsddb3/_pybsddb.so
.include <bsd.port.mk>
diff --git a/databases/py-bsddb3/distinfo b/databases/py-bsddb3/distinfo
index b12da8b50b8f..ff27f45128d5 100644
--- a/databases/py-bsddb3/distinfo
+++ b/databases/py-bsddb3/distinfo
@@ -1,2 +1,2 @@
-SHA256 (bsddb3-6.0.1.tar.gz) = abc34d83d6cbb40f1626ecc2b62e8163ba204f4bb6a65c23b125a171d224bf6d
-SIZE (bsddb3-6.0.1.tar.gz) = 347002
+SHA256 (bsddb3-6.1.0.tar.gz) = b13163e3891c32390aea66edcf7880eb245abc89199a766b7b1907fc5c1efd15
+SIZE (bsddb3-6.1.0.tar.gz) = 340966
diff --git a/databases/py-bsddb3/files/patch-setup2.py b/databases/py-bsddb3/files/patch-setup2.py
index a98b2e723b75..de43b6a35d8c 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
-@@ -86,10 +86,7 @@
+@@ -86,11 +86,7 @@
category=DeprecationWarning)
@@ -8,11 +8,12 @@
- from setuptools import setup, Extension
-except :
- from distutils.core import setup, Extension
+-
+from distutils.core import setup, Extension
-
from distutils.dep_util import newer
import distutils.ccompiler
-@@ -292,8 +289,8 @@
+
+@@ -295,8 +291,8 @@
incdir = os.path.join(BERKELEYDB_DIR, 'include')
if not libdir:
libdir = os.path.join(BERKELEYDB_DIR, 'lib')
@@ -23,12 +24,12 @@
else:
if debug: print "LIBS already contains '-ldb' not adding our own", "'-l"+dblib+"'"
libname = []
-@@ -332,7 +329,7 @@
-
+@@ -336,7 +332,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()
+ # This should move to "with" when we drop support for Python 2.4 and 2.5
+- f = open(os.path.join(incdir, 'db.h'), 'r')
++ f = open('%%BDB_INCLUDE_DIR%%/db.h', 'r')
+ db_h_lines = f.readlines()
+ f.close()
db_ver_re = re.compile(
- r'^#define\s+DB_VERSION_STRING\s.*Berkeley DB (\d+\.\d+).*')
- db_ver2 = db_ver