git: be77181aa392 - main - devel/splint: Refactor

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 02 Jun 2025 21:57:31 UTC
The branch main has been updated by bofh:

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

commit be77181aa392a66a0904f5d06a9b6ddbdbd6f3e0
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-06-02 21:34:10 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-06-02 21:56:30 +0000

    devel/splint: Refactor
    
    - Use DISTVERSION
    - Remove NOOP GNU_CONFIGURE_MANPREFIX
    - Use DISTNAME/WRKSRC and USES=tar instead offf EXTRACT_SUFX
    
    Approved by:    portmgr (blanket)
---
 devel/splint/Makefile | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/devel/splint/Makefile b/devel/splint/Makefile
index f443eb390741..ab32d3c97c00 100644
--- a/devel/splint/Makefile
+++ b/devel/splint/Makefile
@@ -1,9 +1,9 @@
 PORTNAME=	splint
-PORTVERSION=	3.1.2
+DISTVERSION=	3.1.2
 PORTREVISION=	1
 CATEGORIES=	devel security
 MASTER_SITES=	http://www.splint.org/downloads/
-EXTRACT_SUFX=	.src.tgz
+DISTNAME=	${PORTNAME}-${PORTVERSION}.src
 
 MAINTAINER=	lwhsu@FreeBSD.org
 COMMENT=	Tool for statically checking sourcecode for security vulnerabilities
@@ -11,12 +11,15 @@ WWW=		https://www.splint.org/
 
 LICENSE=	GPLv2+
 
-USES=		gmake
+USES=		gmake tar:tgz
+
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 CONFIGURE_ENV=	BISON=no
+
 MAKE_JOBS_UNSAFE=	yes
 
+WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
+
 post-patch:
 	@${REINPLACE_CMD} -e \
 		's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/Headers/constants.h