git: 20f895af04b0 - main - sysutils/syslog-ng: Fix PYTHON=ON build

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Mon, 13 Mar 2023 15:09:05 UTC
The branch main has been updated by cy:

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

commit 20f895af04b0e2ab425dfc376fd6ffdd27841989
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-03-13 15:04:14 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-03-13 15:08:38 +0000

    sysutils/syslog-ng: Fix PYTHON=ON build
    
    PYTHON=ON requires devel/py-setuptools to build properly.
    
    PR:             270153
    Submitted by:   Christian Ulrich <chris _AT_ chrullrich.net>
    Reviewed by:    Peter Czanik <peter.czanik _AT_ balabit.com>
---
 sysutils/syslog-ng/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sysutils/syslog-ng/Makefile b/sysutils/syslog-ng/Makefile
index 1575366f08ee..8b5fb0ac6303 100644
--- a/sysutils/syslog-ng/Makefile
+++ b/sysutils/syslog-ng/Makefile
@@ -149,6 +149,7 @@ JAVA_MOD_PLIST_FILES=		lib/syslog-ng/java-modules/log4j-api-2.17.2.jar \
 				lib/syslog-ng/java-modules/syslog-ng-common.jar
 
 PYTHON_USES=			python:3.5+
+PYTHON_BUILD_DEPENDS=		${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
 PYTHON_CONFIGURE_ON=		--enable-python
 PYTHON_CONFIGURE_OFF=		--disable-python
 PYTHON_PLIST_FILES=		lib/syslog-ng/libmod-python.so \