git: 232a91bc5351 - main - devel/cutils: Optionize INFO

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 21 Oct 2023 10:11:02 UTC
The branch main has been updated by bofh:

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

commit 232a91bc53512c4b8bef90d17816a65170d3d74b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-10-21 08:28:50 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-10-21 10:10:50 +0000

    devel/cutils: Optionize INFO
    
    - Add LICENSE BSD2CLAUSE
    - Pet portclippy
---
 devel/cutils/Makefile | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/devel/cutils/Makefile b/devel/cutils/Makefile
index 49be403a3e65..2e9c248fc534 100644
--- a/devel/cutils/Makefile
+++ b/devel/cutils/Makefile
@@ -8,12 +8,23 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Miscellaneous C programmer's utilities
 WWW=		http://www.sigala.it/sandro/software.php #cutils
 
-USES=		makeinfo
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYRIGHT
+
 GNU_CONFIGURE=	yes
-MAKE_ENV=	MAKEINFO="${MAKEINFO}"
-INFO=		cutils
+
 MAKE_JOBS_UNSAFE=	yes
 
 CONFLICTS=	cdecl
 
+OPTIONS_DEFINE=	INFO
+OPTIONS_DEFAULT=	INFO
+
+INFO_USES=		makeinfo
+INFO_MAKE_ENV=	MAKEINFO="${MAKEINFO}"
+INFO_INFO=		cutils
+
+post-patch-INFO-off:
+	@${REINPLACE_CMD} -e '/^subdirs/s|doc||g' ${WRKSRC}/Makefile.in
+
 .include <bsd.port.mk>