git: 0ff406ab9fe9 - main - devel/py-setuptools_scm: Fix update with portmaster

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Fri, 12 Nov 2021 13:55:29 UTC
The branch main has been updated by kai:

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

commit 0ff406ab9fe97470ebdab5ea55fb5b201f7d332b
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2021-11-12 13:53:22 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2021-11-12 13:54:20 +0000

    devel/py-setuptools_scm: Fix update with portmaster
    
    * In environments where devel/py-setuptools_scm is already installed
      the port textproc/py-tomli is required during build time.
    
    PR:             259797
    Reported by:    Ivan Rozhuk <rozhuk.im@gmail.com>
---
 devel/py-setuptools_scm/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/devel/py-setuptools_scm/Makefile b/devel/py-setuptools_scm/Makefile
index 597e30454b64..1468cf2268a3 100644
--- a/devel/py-setuptools_scm/Makefile
+++ b/devel/py-setuptools_scm/Makefile
@@ -29,6 +29,7 @@ OPTIONS_DEFINE=		TOML
 OPTIONS_DEFAULT=	TOML
 
 TOML_DESC=		Support PEP 517/518 (Keep this enabled to avoid build errors)
+TOML_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tomli>=1.0.0:textproc/py-tomli@${PY_FLAVOR}
 TOML_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tomli>=1.0.0:textproc/py-tomli@${PY_FLAVOR}
 
 # Skip integration tests that require a more recent version of py-virtualenv