git: 17644d65cccc - main - misc/boxes: update to version 2.2.0

From: Jimmy Olgeni <olgeni_at_FreeBSD.org>
Date: Fri, 23 Sep 2022 18:58:11 UTC
The branch main has been updated by olgeni:

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

commit 17644d65cccc0f27fdd8fc6a3af81f9699b161fd
Author:     Jimmy Olgeni <olgeni@FreeBSD.org>
AuthorDate: 2022-09-23 18:56:34 +0000
Commit:     Jimmy Olgeni <olgeni@FreeBSD.org>
CommitDate: 2022-09-23 18:56:39 +0000

    misc/boxes: update to version 2.2.0
---
 misc/boxes/Makefile | 21 ++++++++++++++-------
 misc/boxes/distinfo |  6 +++---
 2 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/misc/boxes/Makefile b/misc/boxes/Makefile
index 66a629b7ff9a..c8a078025e40 100644
--- a/misc/boxes/Makefile
+++ b/misc/boxes/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	boxes
-PORTVERSION=	1.3
+PORTVERSION=	2.2.0
 DISTVERSIONPREFIX=	v
 CATEGORIES=	misc
 
@@ -7,19 +7,26 @@ MAINTAINER=	olgeni@FreeBSD.org
 COMMENT=	Draws ASCII-art configurable boxes around text or code
 WWW=		https://boxes.thomasjensen.com/
 
-LICENSE=	GPLv2
+LICENSE=	GPLv3
+
+LIB_DEPENDS=	libpcre2-32.so:devel/pcre2 \
+		libunistring.so:devel/libunistring
+
+USES=		bison gmake
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	ascii-boxes
 
-USES=		bison gmake
+MAKE_ARGS=	CC="${CC}" \
+		CFLAGS="${CFLAGS} -I. -I../src -I${LOCALBASE}/include" \
+		GLOBALCONF=${GLOBALCONF} \
+		LDFLAGS="-L${LOCALBASE}/lib"
 ALL_TARGET=	build
-MAKE_ARGS=	CC="${CC}" GLOBALCONF=${GLOBALCONF} CFLAGS="${CFLAGS} -ansi -I. -Iregexp"
 
 GLOBALCONF=	${DATADIR}/boxes-config
 
-PLIST_FILES=	bin/${PORTNAME} \
-		${DATADIR_REL}/${PORTNAME}-config \
+PLIST_FILES=	${DATADIR_REL}/${PORTNAME}-config \
+		bin/${PORTNAME} \
 		man/man1/${PORTNAME}.1.gz
 
 PORTDOCS=	README.md
@@ -30,7 +37,7 @@ post-patch:
 	@${RM} ${WRKSRC}/src/${PORTNAME}.h ${WRKSRC}/doc/${PORTNAME}.1
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_PROGRAM} ${WRKSRC}/out/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
 	@${MKDIR} ${STAGEDIR}${DATADIR}
 	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-config ${STAGEDIR}${DATADIR}
 	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \
diff --git a/misc/boxes/distinfo b/misc/boxes/distinfo
index 3a5439725425..f37684d63947 100644
--- a/misc/boxes/distinfo
+++ b/misc/boxes/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1550832815
-SHA256 (ascii-boxes-boxes-v1.3_GH0.tar.gz) = cbb46b3b0ef2c016f9ebcebea5acf6c2bfec39dfb6696dc8f4427a3f844cd567
-SIZE (ascii-boxes-boxes-v1.3_GH0.tar.gz) = 99507
+TIMESTAMP = 1663955701
+SHA256 (ascii-boxes-boxes-v2.2.0_GH0.tar.gz) = 98b8e3cf5008f46f096d5775d129c34db9f718728bffb0f5d67ae89bb494102e
+SIZE (ascii-boxes-boxes-v2.2.0_GH0.tar.gz) = 230099