git: 6147179016a6 - main - devel/newt: Fix configure failure after update to 0.52.21

From: Neel Chauhan <nc_at_FreeBSD.org>
Date: Wed, 13 Oct 2021 15:12:55 UTC
The branch main has been updated by nc:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6147179016a67da893ace8f2df6d8c89e56ad0bb

commit 6147179016a67da893ace8f2df6d8c89e56ad0bb
Author:     Boris Korzun <drtr0jan@yandex.ru>
AuthorDate: 2021-10-13 15:12:23 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2021-10-13 15:12:23 +0000

    devel/newt: Fix configure failure after update to 0.52.21
    
    PR:     259101
---
 devel/newt/Makefile | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/devel/newt/Makefile b/devel/newt/Makefile
index 596020b9cd44..2c483b11e33a 100644
--- a/devel/newt/Makefile
+++ b/devel/newt/Makefile
@@ -35,7 +35,7 @@ OPTIONS_SUB=		yes
 NLS_USES=		gettext
 NLS_CONFIGURE_ENABLE=	nls
 PYTHON_USES=		python
-PYTHON_CONFIGURE_WITH=	python
+PYTHON_CONFIGURE_WITH=	python=${PYTHON_VERSION}
 TCL_USES=		tcl
 TCL_CONFIGURE_WITH=	tcl
 TCL_CONFIGURE_ENV=	ac_cv_c_tclconfig=${TCL_LIBDIR:Q}
@@ -52,10 +52,6 @@ post-patch:
 		 /make -C/s|^|#| ; \
 		 /whiptcl.$$(SOEXT)/s|install|${TRUE}|' ${WRKSRC}/Makefile.in
 
-post-patch-PYTHON-on:
-	@${REINPLACE_CMD} -e \
-		'/PYTHONVERS/s|=.*|=${PYTHON_VERSION}|' ${WRKSRC}/configure.ac
-
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/whiptail
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnewt.so