git: 4a41cd7501fc - main - graphics/gauche-gl: Optionize INFO

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 22 Oct 2023 14:45:14 UTC
The branch main has been updated by bofh:

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

commit 4a41cd7501fccf18ca3028221307b9f75c8d5328
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-10-21 21:39:43 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-10-22 14:45:02 +0000

    graphics/gauche-gl: Optionize INFO
    
    - Pet portclippy
---
 graphics/gauche-gl/Makefile | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/graphics/gauche-gl/Makefile b/graphics/gauche-gl/Makefile
index 393cf608100d..fd1c68450cda 100644
--- a/graphics/gauche-gl/Makefile
+++ b/graphics/gauche-gl/Makefile
@@ -16,25 +16,30 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 BUILD_DEPENDS=	gosh:lang/gauche
 RUN_DEPENDS=	gosh:lang/gauche
 
-USES=		gl localbase makeinfo tar:tgz xorg
+USES=		gl localbase tar:tgz xorg
 USE_CSTD=	gnu99
-USE_XORG=	ice sm x11 xext xmu xi
 USE_GL=		gl glu glut
+USE_XORG=	ice sm x11 xext xmu xi
+
 GNU_CONFIGURE=	yes
+
 MAKE_JOBS_UNSAFE=	yes
-GAUCHE_ABI=	0.98
 
 DOCSDIR=	${PREFIX}/share/doc/gauche/${PORTNAME}
 EXAMPLESDIR=	${PREFIX}/share/examples/gauche/${PORTNAME}
 
 PLIST_SUB=	TARGET="${CONFIGURE_TARGET}" ABI_VER=${GAUCHE_ABI}
 
-INFO=		gauche-gl-refe gauche-gl-refj
+OPTIONS_DEFINE=	DOCS EXAMPLES INFO
+OPTIONS_DEFAULT=	INFO
+
+INFO_USES=	makeinfo
+INFO_INFO=		gauche-gl-refe gauche-gl-refj
 
-OPTIONS_DEFINE=	DOCS EXAMPLES
+GAUCHE_ABI=	0.98
 
 post-patch:
-.for i in configure src/gauche-gl.c src/gauche-gl.h src/glut-lib.stub
+.for i in configure src/gauche-gl.h src/glut-lib.stub
 	@${REINPLACE_CMD} -e '/glut.h/s|GLUT|GL|' ${WRKSRC}/${i}
 .endfor
 
@@ -42,10 +47,6 @@ do-install:
 .for i in src lib
 	@(cd ${WRKSRC}/${i} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
 		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
-.endfor
-.for i in ${INFO}
-	${GZCAT} ${WRKSRC}/doc/${i}.info.gz \
-		> ${STAGEDIR}${PREFIX}/${INFO_PATH}/${i}.info
 .endfor
 	@(cd ${STAGEDIR}${PREFIX}/lib/gauche-${GAUCHE_ABI}/site/${CONFIGURE_TARGET} && \
 		${CHMOD} u+w libgauche-*.so && ${STRIP_CMD} libgauche-*.so && \