git: 9b3561dae92b - main - devel/py-pyyaml: fix dependency on cython

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Wed, 19 Mar 2025 18:47:16 UTC
The branch main has been updated by amdmi3:

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

commit 9b3561dae92b7f844dfa601671057bfacb746663
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2025-03-19 17:25:04 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2025-03-19 18:47:07 +0000

    devel/py-pyyaml: fix dependency on cython
    
    pyyaml only builds with lang/cython and doesn't build with lang/cython3,
    however USE_PYTHON=cython introduces a build-dependency on cython
    executable which is installed by either cython version, thus the
    dependency may be fulfilled by cython3 if it's installed, which is
    incorrect and leads to a build failure. Fix this by switching to
    explicit dependency on cython (and not cython3) package.
    
    Approved by:    portmgr blanket
---
 devel/py-pyyaml/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/devel/py-pyyaml/Makefile b/devel/py-pyyaml/Makefile
index d9186aff1859..4cb05ac6621c 100644
--- a/devel/py-pyyaml/Makefile
+++ b/devel/py-pyyaml/Makefile
@@ -13,8 +13,10 @@ WWW=		https://pyyaml.org/
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cython>=0:lang/cython@${PY_FLAVOR}
+
 USES=		python
-USE_PYTHON=	autoplist concurrent cython distutils
+USE_PYTHON=	autoplist concurrent distutils
 
 OPTIONS_DEFINE=	LIBYAML EXAMPLES
 OPTIONS_DEFAULT=LIBYAML