diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2021-02-12 18:50:32 +0000 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2021-02-12 18:50:32 +0000 |
commit | 67ca0858661920d6332a4f4df1c2cab9fb072394 (patch) | |
tree | 98e8f74eb74da0d2ac16a1d63fb567d330720186 /databases/py-berkeleydb/files/patch-setup2.py | |
parent | Belatedly add 13.0-BETA1 MANIFEST files. (diff) |
databases/py-berkeleydb: Import over repocopied py-bsddb3
Notes
Notes:
svn path=/head/; revision=565050
Diffstat (limited to 'databases/py-berkeleydb/files/patch-setup2.py')
-rw-r--r-- | databases/py-berkeleydb/files/patch-setup2.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/databases/py-berkeleydb/files/patch-setup2.py b/databases/py-berkeleydb/files/patch-setup2.py deleted file mode 100644 index 4ed3fdfd8d8f..000000000000 --- a/databases/py-berkeleydb/files/patch-setup2.py +++ /dev/null @@ -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+).*') |