git: 8825013f1e9e - 2025Q2 - devel/newt: Update 0.52.24 => 0.52.25, set maintainership

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Fri, 09 May 2025 14:07:01 UTC
The branch 2025Q2 has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8825013f1e9ec6dcb7d47b08bb437cb047ecceed

commit 8825013f1e9ec6dcb7d47b08bb437cb047ecceed
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-05-09 13:51:55 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-09 14:06:50 +0000

    devel/newt: Update 0.52.24 => 0.52.25, set maintainership
    
    Changelog:
    https://pagure.io/newt/blob/master/f/CHANGES
    
    Improve port:
    - Replace PORTVERSION with DISTVERSION
    - Replace CPPFLAGS and LDFLAGS with USES=localbase:ldflags
    - Remove GNU_CONFIGURE_MANPREFIX
    - Remove MAKE_JOBS_UNSAFE
    - Fix {NLS,PYTHON}_USES - gettext-runtime
    - Fix TCL option with tcl86 (workaround)
    - Fix warnings from portclippy
    - Set MAINTAINER to Atanu Biswas <atanubiswas484@gmail.com>
    
    PR:             286432
    Co-authored-by: Atanu Biswas <atanubiswas484@gmail.com>
    MFH:            2025Q2
    (cherry picked from commit 4a8caba0e86e024c4c38a04ecdd716b27c2fd241)
---
 devel/newt/Makefile | 32 +++++++++++++-------------------
 devel/newt/distinfo |  6 +++---
 2 files changed, 16 insertions(+), 22 deletions(-)

diff --git a/devel/newt/Makefile b/devel/newt/Makefile
index 24157f025f46..afe23b969e00 100644
--- a/devel/newt/Makefile
+++ b/devel/newt/Makefile
@@ -1,9 +1,9 @@
 PORTNAME=	newt
-PORTVERSION=	0.52.24
+DISTVERSION=	0.52.25
 CATEGORIES=	devel
 MASTER_SITES=	https://releases.pagure.org/newt/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	atanubiswas484@gmail.com
 COMMENT=	Not Eriks Windowing Toolkit: console I/O handling library
 WWW=		https://pagure.io/newt
 
@@ -13,37 +13,30 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 LIB_DEPENDS=	libpopt.so:devel/popt \
 		libslang.so:devel/libslang2
 
-USES=		autoreconf gmake localbase ncurses pathfix
+USES=		autoreconf gmake localbase:ldflags ncurses pathfix
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 MAKE_ENV=	PCFLAGS="${CFLAGS}"
-MAKE_JOBS_UNSAFE=	yes
-
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib -lncurses
 
 SUB_FILES=	pkgIndex.tcl
-SUB_LIST=	VERSION="${PORTVERSION}"
+SUB_LIST=	VERSION="${DISTVERSION}"
 
-PLIST_SUB=	SOVERSION="${SOVERSION}" \
-		VERSION="${PORTVERSION}"
+PLIST_SUB=	SOVERSION="${DISTVERSION:R:E}" \
+		VERSION="${DISTVERSION}"
 
 OPTIONS_DEFINE=		NLS PYTHON TCL
 OPTIONS_DEFAULT=	PYTHON
 OPTIONS_SUB=		yes
 
-NLS_USES=		gettext
+NLS_USES=		gettext-runtime
 NLS_CONFIGURE_ENABLE=	nls
-PYTHON_USES=		python
+PYTHON_USES=		gettext-runtime 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}
-TCL_CPPFLAGS=		-I${TCL_INCLUDEDIR:Q}
-
-SOVERSION=	${PORTVERSION:R:E}
+TCL_CPPFLAGS=		-I${TCL_INCLUDEDIR:Q} -DUSE_INTERP_RESULT
 
 post-patch:
 	@${REINPLACE_CMD} -e \
@@ -65,10 +58,11 @@ post-install-PYTHON-on:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_snack.so
 
 post-install-TCL-on:
-	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/whip${DISTVERSION}
 	(cd ${WRKSRC} && ${INSTALL_LIB} whiptcl.so \
-		${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION})
+		${STAGEDIR}${PREFIX}/lib/whip${DISTVERSION})
 	(cd ${WRKDIR} && ${INSTALL_DATA} pkgIndex.tcl \
-		${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION})
+		${STAGEDIR}${PREFIX}/lib/whip${DISTVERSION})
+	@${RM} ${STAGEDIR}${PREFIX}/lib/whiptcl.so
 
 .include <bsd.port.mk>
diff --git a/devel/newt/distinfo b/devel/newt/distinfo
index 9f14252e7a37..1fdbb875a9a1 100644
--- a/devel/newt/distinfo
+++ b/devel/newt/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1721747769
-SHA256 (newt-0.52.24.tar.gz) = 5ded7e221f85f642521c49b1826c8de19845aa372baf5d630a51774b544fbdbb
-SIZE (newt-0.52.24.tar.gz) = 176693
+TIMESTAMP = 1745899706
+SHA256 (newt-0.52.25.tar.gz) = ef0ca9ee27850d1a5c863bb7ff9aa08096c9ed312ece9087b30f3a426828de82
+SIZE (newt-0.52.25.tar.gz) = 176729