FreeBSD Bugzilla – Attachment 168613 Details for
Bug 208285
databases/py-bsddb3: Convert to master port for databases/py3-bsddb3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to convert databases/py3-bsddb3 to slave port of databases/py-bsddb3
py3-bsddb3.diff (text/plain), 7.34 KB, created by
Ben Woods
on 2016-03-25 11:42:00 UTC
(
hide
)
Description:
Patch to convert databases/py3-bsddb3 to slave port of databases/py-bsddb3
Filename:
MIME Type:
Creator:
Ben Woods
Created:
2016-03-25 11:42:00 UTC
Size:
7.34 KB
patch
obsolete
>Index: databases/py-bsddb3/Makefile >=================================================================== >--- databases/py-bsddb3/Makefile (revision 411813) >+++ databases/py-bsddb3/Makefile (working copy) >@@ -13,7 +13,7 @@ > LICENSE= BSD3CLAUSE > > USE_BDB= yes >-USES= python >+USES?= python > USE_PYTHON= distutils autoplist > > PYDISTUTILS_CONFIGUREARGS=--libs="-l${BDB_LIB_NAME}" --berkeley-db=${LOCALBASE} >Index: databases/py3-bsddb3/Makefile >=================================================================== >--- databases/py3-bsddb3/Makefile (revision 411813) >+++ databases/py3-bsddb3/Makefile (working copy) >@@ -1,37 +1,8 @@ > # Created by: Ben Woods <woodsb02@gmail.com> > # $FreeBSD$ > >-PORTNAME= bsddb3 >-PORTVERSION= 6.1.1 >-CATEGORIES= databases python >-MASTER_SITES= CHEESESHOP >-PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+MASTERDIR= ${.CURDIR}/../py-bsddb3 > >-MAINTAINER= woodsb02@gmail.com >-COMMENT= Python extension module for BerkeleyDB 3 and 4 >+USES= python:3.2+ > >-LICENSE= BSD3CLAUSE >- >-USE_BDB= yes >-USES= python:3 >-USE_PYTHON= distutils autoplist >- >-PYDISTUTILS_CONFIGUREARGS=--libs="-l${BDB_LIB_NAME}" --berkeley-db=${LOCALBASE} >-PYDISTUTILS_BUILDARGS= --libs="-l${BDB_LIB_NAME}" --berkeley-db=${LOCALBASE} >-PYDISTUTILS_INSTALLARGS=-c -O1 --prefix=${PREFIX} --berkeley-db=${LOCALBASE} >- >-PORTDOCS= * >-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 ${WRKSRC}/setup3.py >- ${REINPLACE_CMD} 's,%%BDB_LIB_NAME%%,${BDB_LIB_NAME},' ${WRKSRC}/setup3.py >- >-post-install: >- @${MKDIR} ${STAGEDIR}${DOCSDIR} >- (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}) >- ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/bsddb3/_pybsddb.so >- >-.include <bsd.port.mk> >+.include "${MASTERDIR}/Makefile" >Index: databases/py3-bsddb3/distinfo >=================================================================== >--- databases/py3-bsddb3/distinfo (revision 411813) >+++ databases/py3-bsddb3/distinfo (nonexistent) >@@ -1,2 +0,0 @@ >-SHA256 (bsddb3-6.1.1.tar.gz) = 6f21b0252125c07798d784c164ef135ad153d226c01b290258ee1c5b9e7c4dd3 >-SIZE (bsddb3-6.1.1.tar.gz) = 450571 > >Property changes on: databases/py3-bsddb3/distinfo >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: databases/py3-bsddb3/files/patch-setup2.py >=================================================================== >--- databases/py3-bsddb3/files/patch-setup2.py (revision 411813) >+++ databases/py3-bsddb3/files/patch-setup2.py (nonexistent) >@@ -1,35 +0,0 @@ >---- setup2.py.orig 2016-02-08 21:14:26 UTC >-+++ setup2.py >-@@ -81,11 +81,7 @@ if (sys.version_info[0] < 3) and (sys.ve >- category=DeprecationWarning) >- >- >--try : >-- 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 >- >-@@ -288,8 +284,8 @@ if os.name == 'posix': >- 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 = [] >-@@ -328,7 +324,7 @@ if os.name == 'posix': >- >- # read db.h to figure out what version of Berkeley DB this is >- ver = None >-- with open(os.path.join(incdir, 'db.h'), 'r') as f : >-+ with open('%%BDB_INCLUDE_DIR%%/db.h', 'r') as f : >- db_h_lines = f.readlines() >- db_ver_re = re.compile( >- r'^#define\s+DB_VERSION_STRING\s.*Berkeley DB (\d+\.\d+).*') > >Property changes on: databases/py3-bsddb3/files/patch-setup2.py >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: databases/py3-bsddb3/files/patch-setup3.py >=================================================================== >--- databases/py3-bsddb3/files/patch-setup3.py (revision 411813) >+++ databases/py3-bsddb3/files/patch-setup3.py (nonexistent) >@@ -1,35 +0,0 @@ >---- setup3.py.orig 2016-02-08 21:18:47 UTC >-+++ setup3.py >-@@ -81,11 +81,7 @@ if (sys.version_info[0] < 3) and (sys.ve >- category=DeprecationWarning) >- >- >--try : >-- 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 >- >-@@ -288,8 +284,8 @@ if os.name == 'posix': >- 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%%BDB_LIB_NAME%%' in LIBS: >-+ libname = ['%%BDB_LIB_NAME%%'] >- else: >- if debug: print("LIBS already contains '-ldb' not adding our own", "'-l"+dblib+"'") >- libname = [] >-@@ -328,7 +324,7 @@ if os.name == 'posix': >- >- # read db.h to figure out what version of Berkeley DB this is >- ver = None >-- with open(os.path.join(incdir, 'db.h'), 'r') as f : >-+ with open('%%BDB_INCLUDE_DIR%%/db.h', 'r') as f : >- db_h_lines = f.readlines() >- db_ver_re = re.compile( >- r'^#define\s+DB_VERSION_STRING\s.*Berkeley DB (\d+\.\d+).*') > >Property changes on: databases/py3-bsddb3/files/patch-setup3.py >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: databases/py3-bsddb3/pkg-descr >=================================================================== >--- databases/py3-bsddb3/pkg-descr (revision 411813) >+++ databases/py3-bsddb3/pkg-descr (nonexistent) >@@ -1,10 +0,0 @@ >-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. The database objects can use different access >-methods, btree, hash, recno, and queue. For the first time all of >-these are fully supported in the Python wrappers. Please see the >-document in developers' web site for more details on the types and >-methods provided. >- >-WWW: http://www.jcea.es/programacion/pybsddb.htm > >Property changes on: databases/py3-bsddb3/pkg-descr >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
woodsb02
:
maintainer-approval?
(
bofh
)
Actions:
View
|
Diff
Attachments on
bug 208285
: 168613 |
168615