git: 3c3eebe53abd - main - devel/py-coverage: Add TOML option

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 13 May 2022 11:49:04 UTC
The branch main has been updated by sunpoet:

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

commit 3c3eebe53abdb9d15d1770ff56630745844fa17b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-05-13 11:36:08 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-05-13 11:40:11 +0000

    devel/py-coverage: Add TOML option
    
    - Bump PORTREVISION for dependency change
    
    Approved by:    lwhsu (maintainer)
---
 devel/py-coverage/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/devel/py-coverage/Makefile b/devel/py-coverage/Makefile
index 9c14f42ad4b4..641fd631e144 100644
--- a/devel/py-coverage/Makefile
+++ b/devel/py-coverage/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	coverage
 PORTVERSION=	6.3.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,6 +15,12 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR}
 USES=		python
 USE_PYTHON=	autoplist concurrent distutils
 
+OPTIONS_DEFINE=	TOML
+OPTIONS_DEFAULT=TOML
+TOML_DESC=	Enable pyproject.toml support
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/coverage/tracer*.so