Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2021 14:32:48 GMT
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: da566bc8534e - main - databases/py-apsw: Add option to enable EXTENSION loading.
Message-ID:  <202107201432.16KEWmWa020042@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by madpilot:

URL: https://cgit.FreeBSD.org/ports/commit/?id=da566bc8534e93a6c9c15e3db46c315d3cd96a62

commit da566bc8534e93a6c9c15e3db46c315d3cd96a62
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2021-07-20 14:28:42 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2021-07-20 14:28:42 +0000

    databases/py-apsw: Add option to enable EXTENSION loading.
    
    The new option adds support to load DB extensions at runtime.
    
    The option is enabled by default because it is required by the
    latest version of deskutils/calibre.
    
    PR:             257111
    Approved by:    sunpoet (maintainer)
---
 databases/py-apsw/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/databases/py-apsw/Makefile b/databases/py-apsw/Makefile
index 8b5dc4fffcde..d205bea531e5 100644
--- a/databases/py-apsw/Makefile
+++ b/databases/py-apsw/Makefile
@@ -3,6 +3,7 @@
 PORTNAME=	apsw
 PORTVERSION=	3.35.4
 DISTVERSIONSUFFIX=	-r1
+PORTREVISION=	1
 CATEGORIES=	databases python
 MASTER_SITES=	https://github.com/rogerbinns/apsw/releases/download/${PORTVERSION}${DISTVERSIONSUFFIX}/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -17,6 +18,14 @@ BUILD_DEPENDS=	sqlite3>=${PORTVERSION:R},1:databases/sqlite3
 USES=		localbase python:3.6+ sqlite:3 zip
 USE_PYTHON=	autoplist concurrent distutils
 
+OPTIONS_DEFINE=	EXTENSION
+OPTIONS_DEFAULT=	EXTENSION
+
+EXTENSION_DESC=	Allow loadable extensions
+
+EXTENSION_VARS=	PYDISTUTILS_BUILDARGS+=--enable=load_extension
+EXTENSION_VARS_OFF=	PYDISTUTILS_BUILDARGS+=--omit=load_extension
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/apsw*.so
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107201432.16KEWmWa020042>