git: 1890c6493c9f - main - devel/newt: fix when WITHOUT=PYTHON

From: Mathieu Arnold <mat_at_FreeBSD.org>
Date: Wed, 13 Oct 2021 16:38:17 UTC
The branch main has been updated by mat:

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

commit 1890c6493c9f684659714ecc332be87007f7dbaa
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2021-10-13 16:37:35 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2021-10-13 16:38:02 +0000

    devel/newt: fix when WITHOUT=PYTHON
---
 devel/newt/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devel/newt/Makefile b/devel/newt/Makefile
index 2c483b11e33a..9d2ab5c7014f 100644
--- a/devel/newt/Makefile
+++ b/devel/newt/Makefile
@@ -21,7 +21,6 @@ MAKE_JOBS_UNSAFE=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib -lncurses
 
-BINARY_ALIAS=	python3=${PYTHON_VERSION}
 SUB_FILES=	pkgIndex.tcl
 SUB_LIST=	VERSION="${PORTVERSION}"
 
@@ -36,6 +35,7 @@ NLS_USES=		gettext
 NLS_CONFIGURE_ENABLE=	nls
 PYTHON_USES=		python
 PYTHON_CONFIGURE_WITH=	python=${PYTHON_VERSION}
+PYTHON_VARS=		BINARY_ALIAS=python3=${PYTHON_VERSION}
 TCL_USES=		tcl
 TCL_CONFIGURE_WITH=	tcl
 TCL_CONFIGURE_ENV=	ac_cv_c_tclconfig=${TCL_LIBDIR:Q}