git: d9211cc5f7be - main - databases/py-aiosqlite: Fix build

From: Romain Tartière <romain_at_FreeBSD.org>
Date: Thu, 02 Mar 2023 05:47:46 UTC
The branch main has been updated by romain:

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

commit d9211cc5f7be2194696a6641cf5673ea155184b6
Author:     Romain Tartière <romain@FreeBSD.org>
AuthorDate: 2023-03-02 05:46:03 +0000
Commit:     Romain Tartière <romain@FreeBSD.org>
CommitDate: 2023-03-02 05:46:27 +0000

    databases/py-aiosqlite: Fix build
    
    The previous commit was done by mistake (some work in progress leftover
    and forgotten that got committed after a poudriere build that not build
    this port succeeded).
    
    Fix the port to make it buildable again.  No need to bump PORTREVISION
    since the port was completely unbuildable.
    
    Pointy hat to:  me
---
 databases/py-aiosqlite/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/databases/py-aiosqlite/Makefile b/databases/py-aiosqlite/Makefile
index e7366f7ce09e..fc515bd82ce6 100644
--- a/databases/py-aiosqlite/Makefile
+++ b/databases/py-aiosqlite/Makefile
@@ -10,11 +10,14 @@ WWW=		https://pypi.python.org/pypi/aiosqlite
 
 LICENSE=	MIT
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>2:devel/py-flit-core@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}
 
 USES=		python:3.7+
-USE_PYTHON=	autoplist distutils
+USE_PYTHON=	autoplist pep517
 
 NO_ARCH=	yes
+MAKE_ENV+=	PYTHONDONTWRITEBYTECODE=1
 
 .include <bsd.port.mk>