git: 0b82429db400 - main - math/jacal: Optionize INFO

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 20 Oct 2023 21:04:50 UTC
The branch main has been updated by bofh:

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

commit 0b82429db400e2b8d7cea1aa2808a93c443cd921
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-10-20 19:04:36 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-10-20 21:04:38 +0000

    math/jacal: Optionize INFO
---
 math/jacal/Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/math/jacal/Makefile b/math/jacal/Makefile
index 5c2285bc873e..7176c974e6c9 100644
--- a/math/jacal/Makefile
+++ b/math/jacal/Makefile
@@ -12,19 +12,27 @@ LICENSE=	GPLv3
 RUN_DEPENDS=	scm:lang/scm \
 		${LOCALBASE}/share/slib/require.scm:lang/slib
 
-USES=		gmake makeinfo zip
+USES=		gmake zip
 
 HAS_CONFIGURE=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
 NO_BUILD=	yes
 
-INFO=		jacal
+OPTIONS_DEFINE=	INFO
+OPTIONS_DEFAULT=	INFO
+
+INFO_USES=		makeinfo
+INFO_INFO=		jacal
 
 post-patch:
 	${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' {} \;
 	${CHMOD} +x ${WRKSRC}/configure
 
+post-patch-INFO-off:
+	${REINPLACE_CMD} -e '/^install:/s|install-infoz||g' \
+		${WRKSRC}/Makefile
+
 post-install:
 	${SED} -i '' -e 's|${STAGEDIR}${PREFIX}|${PREFIX}|g' ${STAGEDIR}${PREFIX}/bin/jacal