aboutsummaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorMarcus von Appen <mva@FreeBSD.org>2012-07-26 05:44:07 +0000
committerMarcus von Appen <mva@FreeBSD.org>2012-07-26 05:44:07 +0000
commit6744e39a0f251e590f133de41558b65537b3f8dc (patch)
tree15677457499310e87b3b1d7713e73cfdf2649dd7 /databases
parent9346b215f04cc84bbb7125ff2fcf03978f859a21 (diff)
downloadports-6744e39a0f251e590f133de41558b65537b3f8dc.tar.gz
ports-6744e39a0f251e590f133de41558b65537b3f8dc.zip
Notes
Diffstat (limited to 'databases')
-rw-r--r--databases/py-sqlite3/Makefile2
-rw-r--r--databases/py-sqlite3/files/setup.py6
-rw-r--r--databases/py-sqlite3/files/setup3.py6
3 files changed, 13 insertions, 1 deletions
diff --git a/databases/py-sqlite3/Makefile b/databases/py-sqlite3/Makefile
index c49945e742bb..827d722b45e4 100644
--- a/databases/py-sqlite3/Makefile
+++ b/databases/py-sqlite3/Makefile
@@ -7,7 +7,7 @@
PORTNAME= sqlite3
PORTVERSION= ${PYTHON_PORTVERSION}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases python
MASTER_SITES= ${PYTHON_MASTER_SITES}
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
diff --git a/databases/py-sqlite3/files/setup.py b/databases/py-sqlite3/files/setup.py
index 3805fc5afe8f..d913319f1f12 100644
--- a/databases/py-sqlite3/files/setup.py
+++ b/databases/py-sqlite3/files/setup.py
@@ -32,6 +32,12 @@ sqlite_srcs = [
'_sqlite/statement.c',
'_sqlite/util.c']
+try:
+ import ctypes
+ ctypes.CDLL('libsqlite3.so').sqlite3_load_extension
+except AttributeError:
+ macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1'))
+
setup(name = "_sqlite3",
description = "SQLite 3 extension to Python",
diff --git a/databases/py-sqlite3/files/setup3.py b/databases/py-sqlite3/files/setup3.py
index 8bd5cce3771b..549fd496ab37 100644
--- a/databases/py-sqlite3/files/setup3.py
+++ b/databases/py-sqlite3/files/setup3.py
@@ -31,6 +31,12 @@ sqlite_srcs = [
'_sqlite/statement.c',
'_sqlite/util.c']
+try:
+ import ctypes
+ ctypes.CDLL('libsqlite3.so').sqlite3_load_extension
+except AttributeError:
+ macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1'))
+
setup(name = "_sqlite3",
description = "SQLite 3 extension to Python",