git: 01dd2473297e - main - converters/ascii2binary: Modernize port

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sat, 01 Mar 2025 11:41:45 UTC
The branch main has been updated by diizzy:

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

commit 01dd2473297e4fd182c0be2cdf770acd2fe0dee5
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-03-01 09:42:02 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-03-01 09:42:05 +0000

    converters/ascii2binary: Modernize port
    
    * Utilize more helpers
    * Define LICENSE_FILE
    * Fold separate patch into port Makefile
    * Adjust Makefile to follow Porters Handbook more closely
    
    PR:             284673
    Approved by:    maintainter timeout, 2+ weeks
---
 converters/ascii2binary/Makefile                | 13 +++++++------
 converters/ascii2binary/files/patch-Makefile.in | 11 -----------
 2 files changed, 7 insertions(+), 17 deletions(-)

diff --git a/converters/ascii2binary/Makefile b/converters/ascii2binary/Makefile
index 9ea71a49205f..805c8db718bf 100644
--- a/converters/ascii2binary/Makefile
+++ b/converters/ascii2binary/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	ascii2binary
-PORTVERSION=	2.14
+DISTVERSION=	2.14
 PORTREVISION=	2
 CATEGORIES=	converters
 MASTER_SITES=	http://billposer.org/Software/Downloads/
@@ -9,15 +9,16 @@ COMMENT=	Convert between textual representations of numbers and binary
 WWW=		https://billposer.org/Software/a2b.html
 
 LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		gettext tar:bzip2
+USES=		gettext-runtime localbase:ldflags tar:bzip2
 
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
 
-PLIST_FILES=	bin/ascii2binary bin/binary2ascii \
+LDFLAGS+=	-lintl
+
+PLIST_FILES=	bin/ascii2binary \
+		bin/binary2ascii \
 		share/man/man1/ascii2binary.1.gz \
 		share/man/man1/binary2ascii.1.gz
 
diff --git a/converters/ascii2binary/files/patch-Makefile.in b/converters/ascii2binary/files/patch-Makefile.in
deleted file mode 100644
index 0e697db9d20e..000000000000
--- a/converters/ascii2binary/files/patch-Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.in.orig	Sat Mar 11 20:44:53 2006
-+++ Makefile.in	Sun Mar 12 10:59:23 2006
-@@ -115,7 +115,7 @@
- INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
- LDFLAGS = @LDFLAGS@
- LIBOBJS = @LIBOBJS@
--LIBS = @LIBS@
-+LIBS = @LIBS@ -lintl
- LTLIBOBJS = @LTLIBOBJS@
- MAKEINFO = @MAKEINFO@
- OBJEXT = @OBJEXT@